Merge from emacs-23
[emacs.git] / configure
blobe63b74b878024d572c85061288c058c744045ca2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT=''
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
695 GREP
696 EGREP
697 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 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 GCONF_CFLAGS
720 GCONF_LIBS
721 FONTCONFIG_CFLAGS
722 FONTCONFIG_LIBS
723 XFT_CFLAGS
724 XFT_LIBS
725 LIBOTF_CFLAGS
726 LIBOTF_LIBS
727 M17N_FLT_CFLAGS
728 M17N_FLT_LIBS
729 FREETYPE_CFLAGS
730 FREETYPE_LIBS
731 LIBXPM
732 LIBJPEG
733 LIBPNG
734 LIBTIFF
735 LIBGIF
736 LIBGPM
737 ALLOCA
738 liblockfile
739 LIBS_MAIL
740 LIBOBJS
741 NEED_SETGID
742 KMEM_GROUP
743 GETLOADAVG_LIBS
744 GETOPT_H
745 GETOPTOBJS
746 LIBHESIOD
747 LIBRESOLV
748 COM_ERRLIB
749 CRYPTOLIB
750 KRB5LIB
751 DESLIB
752 KRB4LIB
753 version
754 configuration
755 canonical
756 srcdir
757 lispdir
758 locallisppath
759 lisppath
760 x_default_search_path
761 etcdir
762 archlibdir
763 bitmapdir
764 gamedir
765 gameuser
766 c_switch_system
767 c_switch_machine
768 LD_SWITCH_X_SITE
769 LD_SWITCH_X_SITE_AUX
770 C_SWITCH_X_SITE
771 X_TOOLKIT_TYPE
772 machfile
773 opsysfile
774 ns_appdir
775 ns_appbindir
776 ns_appresdir
777 ns_appsrc
778 GNUSTEP_MAKEFILES
779 GNUSTEP_SYSTEM_HEADERS
780 GNUSTEP_SYSTEM_LIBRARIES
781 GNU_OBJC_CFLAGS
782 LIB_SRC_EXTRA_INSTALLABLES
783 OTHER_FILES
784 LTLIBOBJS'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 with_pop
789 with_kerberos
790 with_kerberos5
791 with_hesiod
792 with_mmdf
793 with_mail_unlink
794 with_mailhost
795 with_sound
796 with_sync_input
797 with_x_toolkit
798 with_xpm
799 with_jpeg
800 with_tiff
801 with_gif
802 with_png
803 with_rsvg
804 with_xft
805 with_libotf
806 with_m17n_flt
807 with_toolkit_scroll_bars
808 with_xaw3d
809 with_xim
810 with_ns
811 with_gpm
812 with_dbus
813 with_gconf
814 with_makeinfo
815 with_gtk
816 with_gcc
817 with_pkg_config_prog
818 with_gnustep_conf
819 enable_ns_self_contained
820 enable_asserts
821 enable_maintainer_mode
822 enable_locallisppath
823 enable_checking
824 enable_profiling
825 enable_autodepend
826 enable_largefile
827 with_x
829 ac_precious_vars='build_alias
830 host_alias
831 target_alias
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
838 XMKMF'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
900 case $ac_option in
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *) ac_optarg=yes ;;
903 esac
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
909 ac_dashdash=yes ;;
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
928 --config-cache | -C)
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948 { (exit 1); exit 1; }; }
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1197 { (exit 1); exit 1; }; }
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1228 Try \`$0 --help' for more information." >&2
1229 { (exit 1); exit 1; }; }
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1236 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1237 { (exit 1); exit 1; }; }
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 esac
1250 done
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1255 { (exit 1); exit 1; }; }
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1262 { (exit 1); exit 1; }; } ;;
1263 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
1287 done
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1341 /^X\(\/\/\)$/{
1342 s//\1/
1345 /^X\(\/\).*/{
1346 s//\1/
1349 s/.*/./; q'`
1350 srcdir=$ac_confdir
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 srcdir=..
1354 else
1355 ac_srcdir_defaulted=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360 { (exit 1); exit 1; }; }
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1365 { (exit 1); exit 1; }; }
1366 pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1400 Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1446 cat <<\_ACEOF
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453 X features:
1454 --x-includes=DIR X include files are in DIR
1455 --x-libraries=DIR X library files are in DIR
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 _ACEOF
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1466 esac
1467 cat <<\_ACEOF
1469 Optional Features:
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --disable-ns-self-contained
1474 disable self contained build under NeXTstep
1475 --enable-asserts compile code with asserts enabled
1476 --enable-maintainer-mode
1477 enable make rules and dependencies not useful (and
1478 sometimes confusing) to the casual installer
1479 --enable-locallisppath=PATH
1480 directories Emacs should search for lisp files
1481 specific to this site
1482 --enable-checking[=LIST]
1483 enable expensive run-time checks. With LIST, enable
1484 only specific categories of checks. Categories are:
1485 all,yes,no. Flags are: stringbytes, stringoverrun,
1486 stringfreelist, xmallocoverrun, conslist
1487 --enable-profiling build emacs with profiling support. This might not
1488 work on all platforms
1489 --enable-autodepend automatically generate dependencies to .h-files.
1490 Requires GNU Make and Gcc. Enabled if GNU Make and
1491 Gcc is found
1492 --disable-largefile omit support for large files
1494 Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --without-pop don't support POP mail retrieval with movemail
1498 --with-kerberos support Kerberos-authenticated POP
1499 --with-kerberos5 support Kerberos version 5 authenticated POP
1500 --with-hesiod support Hesiod to get the POP server host
1501 --with-mmdf support MMDF mailboxes
1502 --with-mail-unlink unlink, rather than empty, mail spool after reading
1503 --with-mailhost=HOSTNAME
1504 string giving default POP mail host
1505 --without-sound don't compile with sound support
1506 --without-sync-input process async input synchronously
1507 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1508 athena, motif, no)
1509 --without-xpm don't compile with XPM image support
1510 --without-jpeg don't compile with JPEG image support
1511 --without-tiff don't compile with TIFF image support
1512 --without-gif don't compile with GIF image support
1513 --without-png don't compile with PNG image support
1514 --without-rsvg don't compile with SVG image support
1515 --without-xft don't use XFT for anti aliased fonts
1516 --without-libotf don't use libotf for OpenType font support
1517 --without-m17n-flt don't use m17n-flt for text shaping
1518 --without-toolkit-scroll-bars
1519 don't use Motif or Xaw3d scroll bars
1520 --without-xaw3d don't use Xaw3d
1521 --without-xim don't use X11 XIM
1522 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1523 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1524 console
1525 --without-dbus don't compile with D-Bus support
1526 --without-gconf don't compile with GConf support
1527 --without-makeinfo don't require makeinfo for building manuals
1529 --with-pkg-config-prog=PATH
1530 path to pkg-config for finding GTK and librsvg
1531 --with-gnustep-conf=PATH
1532 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1533 or /etc/GNUstep/GNUstep.conf
1534 --with-x use the X Window System
1536 Some influential environment variables:
1537 CC C compiler command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
1541 LIBS libraries to pass to the linker, e.g. -l<library>
1542 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1543 you have headers in a nonstandard directory <include dir>
1544 CPP C preprocessor
1545 XMKMF Path to xmkmf, Makefile generator for X Window System
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1550 _ACEOF
1551 ac_status=$?
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559 continue
1560 ac_builddir=.
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1578 case $srcdir in
1579 .) # We are building in place.
1580 ac_srcdir=.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1587 *) # Relative name.
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1602 else
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 fi || ac_status=$?
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1606 done
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611 cat <<\_ACEOF
1612 emacs configure 24.0.50
1613 generated by GNU Autoconf 2.62
1615 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1616 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1619 _ACEOF
1620 exit
1622 cat >config.log <<_ACEOF
1623 This file contains any messages produced by compilers while
1624 running configure, to aid debugging if configure makes a mistake.
1626 It was created by emacs $as_me 24.0.50, which was
1627 generated by GNU Autoconf 2.62. Invocation command line was
1629 $ $0 $@
1631 _ACEOF
1632 exec 5>>config.log
1634 cat <<_ASUNAME
1635 ## --------- ##
1636 ## Platform. ##
1637 ## --------- ##
1639 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1640 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1641 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1642 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1643 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1645 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1646 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1648 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1649 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1650 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1651 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1652 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1653 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1654 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1656 _ASUNAME
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 $as_echo "PATH: $as_dir"
1664 done
1665 IFS=$as_save_IFS
1667 } >&5
1669 cat >&5 <<_ACEOF
1672 ## ----------- ##
1673 ## Core tests. ##
1674 ## ----------- ##
1676 _ACEOF
1679 # Keep a trace of the command line.
1680 # Strip out --no-create and --no-recursion so they do not pile up.
1681 # Strip out --silent because we don't want to record it for future runs.
1682 # Also quote any args containing shell meta-characters.
1683 # Make two passes to allow for proper duplicate-argument suppression.
1684 ac_configure_args=
1685 ac_configure_args0=
1686 ac_configure_args1=
1687 ac_must_keep_next=false
1688 for ac_pass in 1 2
1690 for ac_arg
1692 case $ac_arg in
1693 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1695 | -silent | --silent | --silen | --sile | --sil)
1696 continue ;;
1697 *\'*)
1698 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1699 esac
1700 case $ac_pass in
1701 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1703 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1704 if test $ac_must_keep_next = true; then
1705 ac_must_keep_next=false # Got value, back to normal.
1706 else
1707 case $ac_arg in
1708 *=* | --config-cache | -C | -disable-* | --disable-* \
1709 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1710 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1711 | -with-* | --with-* | -without-* | --without-* | --x)
1712 case "$ac_configure_args0 " in
1713 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1714 esac
1716 -* ) ac_must_keep_next=true ;;
1717 esac
1719 ac_configure_args="$ac_configure_args '$ac_arg'"
1721 esac
1722 done
1723 done
1724 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1725 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1727 # When interrupted or exit'd, cleanup temporary files, and complete
1728 # config.log. We remove comments because anyway the quotes in there
1729 # would cause problems or look ugly.
1730 # WARNING: Use '\'' to represent an apostrophe within the trap.
1731 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1732 trap 'exit_status=$?
1733 # Save into config.log some information that might help in debugging.
1735 echo
1737 cat <<\_ASBOX
1738 ## ---------------- ##
1739 ## Cache variables. ##
1740 ## ---------------- ##
1741 _ASBOX
1742 echo
1743 # The following way of writing the cache mishandles newlines in values,
1745 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1746 eval ac_val=\$$ac_var
1747 case $ac_val in #(
1748 *${as_nl}*)
1749 case $ac_var in #(
1750 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1751 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1752 esac
1753 case $ac_var in #(
1754 _ | IFS | as_nl) ;; #(
1755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1756 *) $as_unset $ac_var ;;
1757 esac ;;
1758 esac
1759 done
1760 (set) 2>&1 |
1761 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1762 *${as_nl}ac_space=\ *)
1763 sed -n \
1764 "s/'\''/'\''\\\\'\'''\''/g;
1765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1766 ;; #(
1768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1770 esac |
1771 sort
1773 echo
1775 cat <<\_ASBOX
1776 ## ----------------- ##
1777 ## Output variables. ##
1778 ## ----------------- ##
1779 _ASBOX
1780 echo
1781 for ac_var in $ac_subst_vars
1783 eval ac_val=\$$ac_var
1784 case $ac_val in
1785 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786 esac
1787 $as_echo "$ac_var='\''$ac_val'\''"
1788 done | sort
1789 echo
1791 if test -n "$ac_subst_files"; then
1792 cat <<\_ASBOX
1793 ## ------------------- ##
1794 ## File substitutions. ##
1795 ## ------------------- ##
1796 _ASBOX
1797 echo
1798 for ac_var in $ac_subst_files
1800 eval ac_val=\$$ac_var
1801 case $ac_val in
1802 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803 esac
1804 $as_echo "$ac_var='\''$ac_val'\''"
1805 done | sort
1806 echo
1809 if test -s confdefs.h; then
1810 cat <<\_ASBOX
1811 ## ----------- ##
1812 ## confdefs.h. ##
1813 ## ----------- ##
1814 _ASBOX
1815 echo
1816 cat confdefs.h
1817 echo
1819 test "$ac_signal" != 0 &&
1820 $as_echo "$as_me: caught signal $ac_signal"
1821 $as_echo "$as_me: exit $exit_status"
1822 } >&5
1823 rm -f core *.core core.conftest.* &&
1824 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1825 exit $exit_status
1827 for ac_signal in 1 2 13 15; do
1828 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1829 done
1830 ac_signal=0
1832 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1833 rm -f -r conftest* confdefs.h
1835 # Predefined preprocessor variables.
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_NAME "$PACKAGE_NAME"
1839 _ACEOF
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1844 _ACEOF
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1849 _ACEOF
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_STRING "$PACKAGE_STRING"
1854 _ACEOF
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1859 _ACEOF
1862 # Let the site file select an alternate cache file if it wants to.
1863 # Prefer an explicitly selected file to automatically selected ones.
1864 ac_site_file1=NONE
1865 ac_site_file2=NONE
1866 if test -n "$CONFIG_SITE"; then
1867 ac_site_file1=$CONFIG_SITE
1868 elif test "x$prefix" != xNONE; then
1869 ac_site_file1=$prefix/share/config.site
1870 ac_site_file2=$prefix/etc/config.site
1871 else
1872 ac_site_file1=$ac_default_prefix/share/config.site
1873 ac_site_file2=$ac_default_prefix/etc/config.site
1875 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1877 test "x$ac_site_file" = xNONE && continue
1878 if test -r "$ac_site_file"; then
1879 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1880 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1881 sed 's/^/| /' "$ac_site_file" >&5
1882 . "$ac_site_file"
1884 done
1886 if test -r "$cache_file"; then
1887 # Some versions of bash will fail to source /dev/null (special
1888 # files actually), so we avoid doing that.
1889 if test -f "$cache_file"; then
1890 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1891 $as_echo "$as_me: loading cache $cache_file" >&6;}
1892 case $cache_file in
1893 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1894 *) . "./$cache_file";;
1895 esac
1897 else
1898 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1899 $as_echo "$as_me: creating cache $cache_file" >&6;}
1900 >$cache_file
1903 ac_header_list="$ac_header_list sys/time.h"
1904 ac_header_list="$ac_header_list unistd.h"
1905 ac_func_list="$ac_func_list alarm"
1906 # Check that the precious variables saved in the cache have kept the same
1907 # value.
1908 ac_cache_corrupted=false
1909 for ac_var in $ac_precious_vars; do
1910 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1911 eval ac_new_set=\$ac_env_${ac_var}_set
1912 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1913 eval ac_new_val=\$ac_env_${ac_var}_value
1914 case $ac_old_set,$ac_new_set in
1915 set,)
1916 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1917 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1918 ac_cache_corrupted=: ;;
1919 ,set)
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1921 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1923 ,);;
1925 if test "x$ac_old_val" != "x$ac_new_val"; then
1926 # differences in whitespace do not lead to failure.
1927 ac_old_val_w=`echo x $ac_old_val`
1928 ac_new_val_w=`echo x $ac_new_val`
1929 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1930 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1932 ac_cache_corrupted=:
1933 else
1934 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1935 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1936 eval $ac_var=\$ac_old_val
1938 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1939 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1940 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1942 fi;;
1943 esac
1944 # Pass precious variables to config.status.
1945 if test "$ac_new_set" = set; then
1946 case $ac_new_val in
1947 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 *) ac_arg=$ac_var=$ac_new_val ;;
1949 esac
1950 case " $ac_configure_args " in
1951 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1952 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1953 esac
1955 done
1956 if $ac_cache_corrupted; then
1957 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1958 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1959 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1960 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1961 { (exit 1); exit 1; }; }
1988 ac_ext=c
1989 ac_cpp='$CPP $CPPFLAGS'
1990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1999 test "$program_prefix" != NONE &&
2000 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2001 # Use a double $ so make ignores it.
2002 test "$program_suffix" != NONE &&
2003 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2004 # Double any \ or $.
2005 # By default was `s,x,x', remove it if useless.
2006 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2007 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2010 lispdir='${datadir}/emacs/${version}/lisp'
2011 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2012 '${datadir}/emacs/site-lisp'
2013 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2014 etcdir='${datadir}/emacs/${version}/etc'
2015 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2016 docdir='${datadir}/emacs/${version}/etc'
2017 gamedir='${localstatedir}/games/emacs'
2019 gameuser=games
2024 # Check whether --with-pop was given.
2025 if test "${with_pop+set}" = set; then
2026 withval=$with_pop;
2027 else
2028 with_pop=yes
2031 if test "$with_pop" = yes; then
2032 cat >>confdefs.h <<\_ACEOF
2033 #define MAIL_USE_POP 1
2034 _ACEOF
2040 # Check whether --with-kerberos was given.
2041 if test "${with_kerberos+set}" = set; then
2042 withval=$with_kerberos;
2043 else
2044 with_kerberos=no
2047 if test "$with_kerberos" != no; then
2048 cat >>confdefs.h <<\_ACEOF
2049 #define KERBEROS 1
2050 _ACEOF
2056 # Check whether --with-kerberos5 was given.
2057 if test "${with_kerberos5+set}" = set; then
2058 withval=$with_kerberos5;
2059 else
2060 with_kerberos5=no
2063 if test "${with_kerberos5}" != no; then
2064 if test "${with_kerberos}" = no; then
2065 with_kerberos=yes
2066 cat >>confdefs.h <<\_ACEOF
2067 #define KERBEROS 1
2068 _ACEOF
2072 cat >>confdefs.h <<\_ACEOF
2073 #define KERBEROS5 1
2074 _ACEOF
2079 # Check whether --with-hesiod was given.
2080 if test "${with_hesiod+set}" = set; then
2081 withval=$with_hesiod;
2082 else
2083 with_hesiod=no
2086 if test "$with_hesiod" != no; then
2088 cat >>confdefs.h <<\_ACEOF
2089 #define HESIOD 1
2090 _ACEOF
2095 # Check whether --with-mmdf was given.
2096 if test "${with_mmdf+set}" = set; then
2097 withval=$with_mmdf;
2098 else
2099 with_mmdf=no
2102 if test "$with_mmdf" != no; then
2104 cat >>confdefs.h <<\_ACEOF
2105 #define MAIL_USE_MMDF 1
2106 _ACEOF
2111 # Check whether --with-mail-unlink was given.
2112 if test "${with_mail_unlink+set}" = set; then
2113 withval=$with_mail_unlink;
2114 else
2115 with_mail_unlink=no
2118 if test "$with_mail_unlink" != no; then
2120 cat >>confdefs.h <<\_ACEOF
2121 #define MAIL_UNLINK_SPOOL 1
2122 _ACEOF
2127 # Check whether --with-mailhost was given.
2128 if test "${with_mailhost+set}" = set; then
2129 withval=$with_mailhost;
2130 cat >>confdefs.h <<_ACEOF
2131 #define MAILHOST "$withval"
2132 _ACEOF
2138 # Check whether --with-sound was given.
2139 if test "${with_sound+set}" = set; then
2140 withval=$with_sound;
2141 else
2142 with_sound=yes
2147 # Check whether --with-sync-input was given.
2148 if test "${with_sync_input+set}" = set; then
2149 withval=$with_sync_input;
2150 else
2151 with_sync_input=yes
2154 if test "$with_sync_input" = yes; then
2156 cat >>confdefs.h <<\_ACEOF
2157 #define SYNC_INPUT 1
2158 _ACEOF
2163 # Check whether --with-x-toolkit was given.
2164 if test "${with_x_toolkit+set}" = set; then
2165 withval=$with_x_toolkit; case "${withval}" in
2166 y | ye | yes ) val=gtk ;;
2167 n | no ) val=no ;;
2168 l | lu | luc | luci | lucid ) val=lucid ;;
2169 a | at | ath | athe | athen | athena ) val=athena ;;
2170 m | mo | mot | moti | motif ) val=motif ;;
2171 g | gt | gtk ) val=gtk ;;
2173 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2174 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2175 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2176 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2177 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2178 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2179 { (exit 1); exit 1; }; }
2181 esac
2182 with_x_toolkit=$val
2188 # Check whether --with-xpm was given.
2189 if test "${with_xpm+set}" = set; then
2190 withval=$with_xpm;
2191 else
2192 with_xpm=yes
2196 # Check whether --with-jpeg was given.
2197 if test "${with_jpeg+set}" = set; then
2198 withval=$with_jpeg;
2199 else
2200 with_jpeg=yes
2204 # Check whether --with-tiff was given.
2205 if test "${with_tiff+set}" = set; then
2206 withval=$with_tiff;
2207 else
2208 with_tiff=yes
2212 # Check whether --with-gif was given.
2213 if test "${with_gif+set}" = set; then
2214 withval=$with_gif;
2215 else
2216 with_gif=yes
2220 # Check whether --with-png was given.
2221 if test "${with_png+set}" = set; then
2222 withval=$with_png;
2223 else
2224 with_png=yes
2228 # Check whether --with-rsvg was given.
2229 if test "${with_rsvg+set}" = set; then
2230 withval=$with_rsvg;
2231 else
2232 with_rsvg=yes
2237 # Check whether --with-xft was given.
2238 if test "${with_xft+set}" = set; then
2239 withval=$with_xft;
2240 else
2241 with_xft=yes
2245 # Check whether --with-libotf was given.
2246 if test "${with_libotf+set}" = set; then
2247 withval=$with_libotf;
2248 else
2249 with_libotf=yes
2253 # Check whether --with-m17n-flt was given.
2254 if test "${with_m17n_flt+set}" = set; then
2255 withval=$with_m17n_flt;
2256 else
2257 with_m17n_flt=yes
2262 # Check whether --with-toolkit-scroll-bars was given.
2263 if test "${with_toolkit_scroll_bars+set}" = set; then
2264 withval=$with_toolkit_scroll_bars;
2265 else
2266 with_toolkit_scroll_bars=yes
2270 # Check whether --with-xaw3d was given.
2271 if test "${with_xaw3d+set}" = set; then
2272 withval=$with_xaw3d;
2273 else
2274 with_xaw3d=yes
2278 # Check whether --with-xim was given.
2279 if test "${with_xim+set}" = set; then
2280 withval=$with_xim;
2281 else
2282 with_xim=yes
2286 # Check whether --with-ns was given.
2287 if test "${with_ns+set}" = set; then
2288 withval=$with_ns;
2289 else
2290 with_ns=no
2295 # Check whether --with-gpm was given.
2296 if test "${with_gpm+set}" = set; then
2297 withval=$with_gpm;
2298 else
2299 with_gpm=yes
2303 # Check whether --with-dbus was given.
2304 if test "${with_dbus+set}" = set; then
2305 withval=$with_dbus;
2306 else
2307 with_dbus=yes
2311 # Check whether --with-gconf was given.
2312 if test "${with_gconf+set}" = set; then
2313 withval=$with_gconf;
2314 else
2315 with_gconf=yes
2319 ## For the times when you want to build Emacs but don't have
2320 ## a suitable makeinfo, and can live without the manuals.
2322 # Check whether --with-makeinfo was given.
2323 if test "${with_makeinfo+set}" = set; then
2324 withval=$with_makeinfo;
2325 else
2326 with_makeinfo=yes
2331 # Check whether --with-gtk was given.
2332 if test "${with_gtk+set}" = set; then
2333 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2334 specify a toolkit." >&5
2335 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2336 specify a toolkit." >&2;}
2337 { (exit 1); exit 1; }; }
2342 # Check whether --with-gcc was given.
2343 if test "${with_gcc+set}" = set; then
2344 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2345 variable to specify a compiler." >&5
2346 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2347 variable to specify a compiler." >&2;}
2348 { (exit 1); exit 1; }; }
2353 # Check whether --with-pkg-config-prog was given.
2354 if test "${with_pkg_config_prog+set}" = set; then
2355 withval=$with_pkg_config_prog;
2358 if test "X${with_pkg_config_prog}" != X; then
2359 if test "${with_pkg_config_prog}" != yes; then
2360 PKG_CONFIG="${with_pkg_config_prog}"
2365 # Check whether --with-gnustep-conf was given.
2366 if test "${with_gnustep_conf+set}" = set; then
2367 withval=$with_gnustep_conf;
2370 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2371 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2372 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2373 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2375 # Check whether --enable-ns-self-contained was given.
2376 if test "${enable_ns_self_contained+set}" = set; then
2377 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2378 else
2379 EN_NS_SELF_CONTAINED=yes
2383 # Check whether --enable-asserts was given.
2384 if test "${enable_asserts+set}" = set; then
2385 enableval=$enable_asserts; USE_XASSERTS=$enableval
2386 else
2387 USE_XASSERTS=no
2391 # Check whether --enable-maintainer-mode was given.
2392 if test "${enable_maintainer_mode+set}" = set; then
2393 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2394 else
2395 USE_MAINTAINER_MODE=no
2398 if test $USE_MAINTAINER_MODE = yes; then
2399 MAINT=
2400 else
2401 MAINT=#
2405 # Check whether --enable-locallisppath was given.
2406 if test "${enable_locallisppath+set}" = set; then
2407 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2408 locallisppath=
2409 elif test "${enableval}" != "yes"; then
2410 locallisppath=${enableval}
2415 # Check whether --enable-checking was given.
2416 if test "${enable_checking+set}" = set; then
2417 enableval=$enable_checking; ac_checking_flags="${enableval}"
2420 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2421 for check in $ac_checking_flags
2423 case $check in
2424 # these set all the flags to specific states
2425 yes) ac_enable_checking=1 ;;
2426 no) ac_enable_checking= ;
2427 ac_gc_check_stringbytes= ;
2428 ac_gc_check_string_overrun= ;
2429 ac_gc_check_string_free_list= ;
2430 ac_xmalloc_overrun= ;
2431 ac_gc_check_cons_list= ;;
2432 all) ac_enable_checking=1 ;
2433 ac_gc_check_stringbytes=1 ;
2434 ac_gc_check_string_overrun=1 ;
2435 ac_gc_check_string_free_list=1 ;
2436 ac_xmalloc_overrun=1 ;
2437 ac_gc_check_cons_list=1 ;;
2438 # these enable particular checks
2439 stringbytes) ac_gc_check_stringbytes=1 ;;
2440 stringoverrun) ac_gc_check_string_overrun=1 ;;
2441 stringfreelist) ac_gc_check_string_free_list=1 ;;
2442 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2443 conslist) ac_gc_check_cons_list=1 ;;
2444 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2445 $as_echo "$as_me: error: unknown check category $check" >&2;}
2446 { (exit 1); exit 1; }; } ;;
2447 esac
2448 done
2449 IFS="$ac_save_IFS"
2451 if test x$ac_enable_checking != x ; then
2453 cat >>confdefs.h <<\_ACEOF
2454 #define ENABLE_CHECKING 1
2455 _ACEOF
2458 if test x$ac_gc_check_stringbytes != x ; then
2460 cat >>confdefs.h <<\_ACEOF
2461 #define GC_CHECK_STRING_BYTES 1
2462 _ACEOF
2465 if test x$ac_gc_check_stringoverrun != x ; then
2467 cat >>confdefs.h <<\_ACEOF
2468 #define GC_CHECK_STRING_OVERRUN 1
2469 _ACEOF
2472 if test x$ac_gc_check_string_free_list != x ; then
2474 cat >>confdefs.h <<\_ACEOF
2475 #define GC_CHECK_STRING_FREE_LIST 1
2476 _ACEOF
2479 if test x$ac_xmalloc_overrun != x ; then
2481 cat >>confdefs.h <<\_ACEOF
2482 #define XMALLOC_OVERRUN_CHECK 1
2483 _ACEOF
2486 if test x$ac_gc_check_cons_list != x ; then
2488 cat >>confdefs.h <<\_ACEOF
2489 #define GC_CHECK_CONS_LIST 1
2490 _ACEOF
2494 # Check whether --enable-profiling was given.
2495 if test "${enable_profiling+set}" = set; then
2496 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2499 if test x$ac_enable_profiling != x ; then
2500 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2501 PROFILING_LDFLAGS="-pg"
2502 else
2503 PROFILING_CFLAGS=
2504 PROFILING_LDFLAGS=
2507 # Check whether --enable-autodepend was given.
2508 if test "${enable_autodepend+set}" = set; then
2509 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2510 else
2511 ac_enable_autodepend=yes
2515 #### Make srcdir absolute, if it isn't already. It's important to
2516 #### avoid running the path through pwd unnecessarily, since pwd can
2517 #### give you automounter prefixes, which can go away. We do all this
2518 #### so Emacs can find its files when run uninstalled.
2519 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2520 unset CDPATH
2521 case "${srcdir}" in
2522 /* ) ;;
2524 ## We may be able to use the $PWD environment variable to make this
2525 ## absolute. But sometimes PWD is inaccurate.
2526 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2527 ## but that tested only for a well-formed and valid PWD,
2528 ## it did not object when PWD was well-formed and valid but just wrong.
2529 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2530 then
2531 srcdir="$PWD"
2532 else
2533 srcdir="`(cd ${srcdir}; pwd)`"
2536 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2537 esac
2539 #### Check if the source directory already has a configured system in it.
2540 if test `pwd` != `(cd ${srcdir} && pwd)` \
2541 && test -f "${srcdir}/src/config.h" ; then
2542 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2543 as a build directory right now; it has been configured in its own
2544 right. To configure in another directory as well, you MUST
2545 use GNU make. If you do not have GNU make, then you must
2546 now do \`make distclean' in ${srcdir},
2547 and then run $0 again." >&5
2548 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2549 as a build directory right now; it has been configured in its own
2550 right. To configure in another directory as well, you MUST
2551 use GNU make. If you do not have GNU make, then you must
2552 now do \`make distclean' in ${srcdir},
2553 and then run $0 again." >&2;}
2556 #### Given the configuration name, set machfile and opsysfile to the
2557 #### names of the m/*.h and s/*.h files we should use.
2559 ### Canonicalize the configuration name.
2561 ac_aux_dir=
2562 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2563 if test -f "$ac_dir/install-sh"; then
2564 ac_aux_dir=$ac_dir
2565 ac_install_sh="$ac_aux_dir/install-sh -c"
2566 break
2567 elif test -f "$ac_dir/install.sh"; then
2568 ac_aux_dir=$ac_dir
2569 ac_install_sh="$ac_aux_dir/install.sh -c"
2570 break
2571 elif test -f "$ac_dir/shtool"; then
2572 ac_aux_dir=$ac_dir
2573 ac_install_sh="$ac_aux_dir/shtool install -c"
2574 break
2576 done
2577 if test -z "$ac_aux_dir"; then
2578 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2579 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2580 { (exit 1); exit 1; }; }
2583 # These three variables are undocumented and unsupported,
2584 # and are intended to be withdrawn in a future Autoconf release.
2585 # They can cause serious problems if a builder's source tree is in a directory
2586 # whose full name contains unusual characters.
2587 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2588 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2589 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2592 # Make sure we can run config.sub.
2593 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2594 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2595 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2596 { (exit 1); exit 1; }; }
2598 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2599 $as_echo_n "checking build system type... " >&6; }
2600 if test "${ac_cv_build+set}" = set; then
2601 $as_echo_n "(cached) " >&6
2602 else
2603 ac_build_alias=$build_alias
2604 test "x$ac_build_alias" = x &&
2605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2606 test "x$ac_build_alias" = x &&
2607 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2608 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2609 { (exit 1); exit 1; }; }
2610 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2611 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2612 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2613 { (exit 1); exit 1; }; }
2616 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2617 $as_echo "$ac_cv_build" >&6; }
2618 case $ac_cv_build in
2619 *-*-*) ;;
2620 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2621 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2622 { (exit 1); exit 1; }; };;
2623 esac
2624 build=$ac_cv_build
2625 ac_save_IFS=$IFS; IFS='-'
2626 set x $ac_cv_build
2627 shift
2628 build_cpu=$1
2629 build_vendor=$2
2630 shift; shift
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2633 build_os=$*
2634 IFS=$ac_save_IFS
2635 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2639 $as_echo_n "checking host system type... " >&6; }
2640 if test "${ac_cv_host+set}" = set; then
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test "x$host_alias" = x; then
2644 ac_cv_host=$ac_cv_build
2645 else
2646 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2647 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2648 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2649 { (exit 1); exit 1; }; }
2653 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2654 $as_echo "$ac_cv_host" >&6; }
2655 case $ac_cv_host in
2656 *-*-*) ;;
2657 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2658 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2659 { (exit 1); exit 1; }; };;
2660 esac
2661 host=$ac_cv_host
2662 ac_save_IFS=$IFS; IFS='-'
2663 set x $ac_cv_host
2664 shift
2665 host_cpu=$1
2666 host_vendor=$2
2667 shift; shift
2668 # Remember, the first character of IFS is used to create $*,
2669 # except with old shells:
2670 host_os=$*
2671 IFS=$ac_save_IFS
2672 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2675 canonical=$host
2676 configuration=${host_alias-${build_alias-$host}}
2680 ### If you add support for a new configuration, add code to this
2681 ### switch statement to recognize your configuration name and select
2682 ### the appropriate operating system and machine description files.
2684 ### You would hope that you could choose an m/*.h file pretty much
2685 ### based on the machine portion of the configuration name, and an s-
2686 ### file based on the operating system portion. However, it turns out
2687 ### that each m/*.h file is pretty manufacturer-specific - for
2688 ### example mips.h is MIPS
2689 ### So we basically have to have a special case for each
2690 ### configuration name.
2692 ### As far as handling version numbers on operating systems is
2693 ### concerned, make sure things will fail in a fixable way. If
2694 ### /etc/MACHINES doesn't say anything about version numbers, be
2695 ### prepared to handle anything reasonably. If version numbers
2696 ### matter, be sure /etc/MACHINES says something about it.
2698 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2699 ### "System V Release 4"; he writes, "The old convention encouraged
2700 ### confusion between `system' and `release' levels'."
2702 machine='' opsys='' unported=no
2703 case "${canonical}" in
2705 ## FreeBSD ports
2706 *-*-freebsd* )
2707 opsys=freebsd
2708 case "${canonical}" in
2709 alpha*-*-freebsd*) machine=alpha ;;
2710 arm*-*-freebsd*) machine=arm ;;
2711 ia64-*-freebsd*) machine=ia64 ;;
2712 sparc-*-freebsd*) machine=sparc ;;
2713 sparc64-*-freebsd*) machine=sparc ;;
2714 powerpc-*-freebsd*) machine=macppc ;;
2715 i[3456]86-*-freebsd*) machine=intel386 ;;
2716 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2717 esac
2720 ## FreeBSD kernel + glibc based userland
2721 *-*-kfreebsd*gnu* )
2722 opsys=gnu-kfreebsd
2723 case "${canonical}" in
2724 alpha*-*-kfreebsd*) machine=alpha ;;
2725 ia64-*-kfreebsd*) machine=ia64 ;;
2726 sparc-*-kfreebsd*) machine=sparc ;;
2727 sparc64-*-kfreebsd*) machine=sparc ;;
2728 powerpc-*-kfreebsd*) machine=macppc ;;
2729 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2730 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2731 esac
2734 ## NetBSD ports
2735 *-*-netbsd* )
2736 opsys=netbsd
2737 if test -f /usr/lib/crti.o; then
2739 cat >>confdefs.h <<\_ACEOF
2740 #define HAVE_CRTIN /**/
2741 _ACEOF
2745 case "${canonical}" in
2746 alpha*-*-netbsd*) machine=alpha ;;
2747 i[3456]86-*-netbsd*) machine=intel386 ;;
2748 mips-*-netbsd*) machine=mips ;;
2749 mipsel-*-netbsd*) machine=mips ;;
2750 mipseb-*-netbsd*) machine=mips ;;
2751 powerpc-*-netbsd*) machine=macppc ;;
2752 sparc*-*-netbsd*) machine=sparc ;;
2753 vax-*-netbsd*) machine=vax ;;
2754 arm-*-netbsd*) machine=arm ;;
2755 x86_64-*-netbsd*) machine=amdx86-64 ;;
2756 hppa-*-netbsd*) machine=hp800 ;;
2757 m68k-*-netbsd*) machine=m68k ;;
2758 esac
2761 ## OpenBSD ports
2762 *-*-openbsd* )
2763 opsys=openbsd
2764 case "${canonical}" in
2765 alpha*-*-openbsd*) machine=alpha ;;
2766 arm-*-openbsd*) machine=arm ;;
2767 i386-*-openbsd*) machine=intel386 ;;
2768 powerpc-*-openbsd*) machine=macppc ;;
2769 sparc*-*-openbsd*) machine=sparc ;;
2770 vax-*-openbsd*) machine=vax ;;
2771 x86_64-*-openbsd*) machine=amdx86-64 ;;
2772 hppa-*-openbsd*) machine=hp800 ;;
2773 esac
2776 ## LynxOS ports
2777 *-*-lynxos* )
2778 opsys=lynxos
2779 case "${canonical}" in
2780 i[3456]86-*-lynxos*) machine=intel386 ;;
2781 powerpc-*-lynxos*) machine=powerpc ;;
2782 esac
2785 alpha*-*-linux-gnu* )
2786 machine=alpha opsys=gnu-linux
2789 arm*-*-linux-gnu* )
2790 machine=arm opsys=gnu-linux
2793 ## Apple Darwin / Mac OS X
2794 *-apple-darwin* )
2795 case "${canonical}" in
2796 i[3456]86-* ) machine=intel386 ;;
2797 powerpc-* ) machine=macppc ;;
2798 x86_64-* ) machine=amdx86-64 ;;
2799 * ) unported=yes ;;
2800 esac
2801 opsys=darwin
2802 # Define CPP as follows to make autoconf work correctly.
2803 CPP="${CC-cc} -E -no-cpp-precomp"
2804 # Use fink packages if available.
2805 if test -d /sw/include && test -d /sw/lib; then
2806 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2807 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2808 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2812 ## HP 9000 series 700 and 800, running HP/UX
2813 hppa*-hp-hpux10.2* )
2814 machine=hp800 opsys=hpux10-20
2816 hppa*-hp-hpux1[1-9]* )
2817 machine=hp800 opsys=hpux11
2818 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2821 hppa*-*-linux-gnu* )
2822 machine=hp800 opsys=gnu-linux
2825 ## IBM machines
2826 s390-*-linux-gnu* )
2827 machine=ibms390 opsys=gnu-linux
2829 s390x-*-linux-gnu* )
2830 machine=ibms390x opsys=gnu-linux
2832 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2833 machine=ibmrs6000 opsys=aix4-2
2835 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2836 machine=ibmrs6000 opsys=aix4-2
2838 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2839 machine=ibmrs6000 opsys=aix4-2
2841 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2842 machine=ibmrs6000 opsys=aix4-2
2845 ## Macintosh PowerPC
2846 powerpc*-*-linux-gnu* )
2847 machine=macppc opsys=gnu-linux
2850 ## Silicon Graphics machines
2851 ## Iris 4D
2852 mips-sgi-irix6.5 )
2853 machine=iris4d opsys=irix6-5
2854 # Without defining _LANGUAGE_C, things get masked out in the headers
2855 # so that, for instance, grepping for `free' in stdlib.h fails and
2856 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2857 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2858 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2861 ## Suns
2862 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2863 machine=sparc opsys=gnu-linux
2866 *-sun-solaris* \
2867 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2868 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2869 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2870 case "${canonical}" in
2871 i[3456]86-*-* ) machine=intel386 ;;
2872 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2873 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2874 sparc* ) machine=sparc ;;
2875 * ) unported=yes ;;
2876 esac
2877 case "${canonical}" in
2878 *-sunos5.3* | *-solaris2.3* )
2879 opsys=sol2-3
2880 NON_GNU_CPP=/usr/ccs/lib/cpp
2882 *-sunos5.4* | *-solaris2.4* )
2883 opsys=sol2-4
2884 NON_GNU_CPP=/usr/ccs/lib/cpp
2885 RANLIB="ar -ts"
2887 *-sunos5.5* | *-solaris2.5* )
2888 opsys=sol2-5
2889 NON_GNU_CPP=/usr/ccs/lib/cpp
2890 RANLIB="ar -ts"
2892 *-sunos5.6* | *-solaris2.6* )
2893 opsys=sol2-6
2894 NON_GNU_CPP=/usr/ccs/lib/cpp
2895 RANLIB="ar -ts"
2897 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2898 opsys=sol2-6
2899 emacs_check_sunpro_c=yes
2900 NON_GNU_CPP=/usr/ccs/lib/cpp
2902 *-sunos5* | *-solaris* )
2903 opsys=sol2-10
2904 emacs_check_sunpro_c=yes
2905 NON_GNU_CPP=/usr/ccs/lib/cpp
2907 esac
2908 ## Watch out for a compiler that we know will not work.
2909 case "${canonical}" in
2910 *-solaris* | *-sunos5* )
2911 if [ "x$CC" = x/usr/ucb/cc ]; then
2912 ## /usr/ucb/cc doesn't work;
2913 ## we should find some other compiler that does work.
2914 unset CC
2917 *) ;;
2918 esac
2921 ## IA-64
2922 ia64*-*-linux* )
2923 machine=ia64 opsys=gnu-linux
2926 ## Intel 386 machines where we don't care about the manufacturer
2927 i[3456]86-*-* )
2928 machine=intel386
2929 case "${canonical}" in
2930 *-cygwin ) opsys=cygwin ;;
2931 *-darwin* ) opsys=darwin
2932 CPP="${CC-cc} -E -no-cpp-precomp"
2934 *-linux-gnu* ) opsys=gnu-linux ;;
2935 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2936 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2937 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2938 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2939 esac
2942 ## m68k Linux-based GNU system
2943 m68k-*-linux-gnu* )
2944 machine=m68k opsys=gnu-linux
2947 ## Mips Linux-based GNU system
2948 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2949 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2950 machine=mips opsys=gnu-linux
2953 ## AMD x86-64 Linux-based GNU system
2954 x86_64-*-linux-gnu* )
2955 machine=amdx86-64 opsys=gnu-linux
2958 ## Tensilica Xtensa Linux-based GNU system
2959 xtensa*-*-linux-gnu* )
2960 machine=xtensa opsys=gnu-linux
2963 ## SuperH Linux-based GNU system
2964 sh[34]*-*-linux-gnu* )
2965 machine=sh3 opsys=gnu-linux
2969 unported=yes
2971 esac
2973 ### If the code above didn't choose an operating system, just choose
2974 ### an operating system based on the configuration name. You really
2975 ### only want to use this when you have no idea what the right
2976 ### operating system is; if you know what operating systems a machine
2977 ### runs, it's cleaner to make it explicit in the case statement
2978 ### above.
2979 if test x"${opsys}" = x; then
2980 case "${canonical}" in
2981 *-gnu* ) opsys=gnu ;;
2982 *-sysv4.2uw* ) opsys=unixware ;;
2983 *-sysv5uw* ) opsys=unixware ;;
2984 *-sysv5OpenUNIX* ) opsys=unixware ;;
2985 *-sysv4.1* | *-sysvr4.1* )
2986 NON_GNU_CPP=/usr/lib/cpp
2987 opsys=usg5-4 ;;
2988 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2989 if [ x$NON_GNU_CPP = x ]; then
2990 if [ -f /usr/ccs/lib/cpp ]; then
2991 NON_GNU_CPP=/usr/ccs/lib/cpp
2992 else
2993 NON_GNU_CPP=/lib/cpp
2996 opsys=usg5-4-2 ;;
2997 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2999 unported=yes
3001 esac
3006 if test $unported = yes; then
3007 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3008 Check \`etc/MACHINES' for recognized configuration names." >&5
3009 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3010 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3011 { (exit 1); exit 1; }; }
3014 machfile="m/${machine}.h"
3015 opsysfile="s/${opsys}.h"
3018 #### Choose a compiler.
3019 test -n "$CC" && cc_specified=yes
3021 # Save the value of CFLAGS that the user specified.
3022 SPECIFIED_CFLAGS="$CFLAGS"
3024 ac_ext=c
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3051 done
3052 done
3053 IFS=$as_save_IFS
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062 { $as_echo "$as_me:$LINENO: result: no" >&5
3063 $as_echo "no" >&6; }
3068 if test -z "$ac_cv_prog_CC"; then
3069 ac_ct_CC=$CC
3070 # Extract the first word of "gcc", so it can be a program name with args.
3071 set dummy gcc; ac_word=$2
3072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3075 $as_echo_n "(cached) " >&6
3076 else
3077 if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_ac_ct_CC="gcc"
3088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3091 done
3092 done
3093 IFS=$as_save_IFS
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100 $as_echo "$ac_ct_CC" >&6; }
3101 else
3102 { $as_echo "$as_me:$LINENO: result: no" >&5
3103 $as_echo "no" >&6; }
3106 if test "x$ac_ct_CC" = x; then
3107 CC=""
3108 else
3109 case $cross_compiling:$ac_tool_warned in
3110 yes:)
3111 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3112 whose name does not start with the host triplet. If you think this
3113 configuration is useful to you, please write to autoconf@gnu.org." >&5
3114 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3115 whose name does not start with the host triplet. If you think this
3116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3117 ac_tool_warned=yes ;;
3118 esac
3119 CC=$ac_ct_CC
3121 else
3122 CC="$ac_cv_prog_CC"
3125 if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3128 set dummy ${ac_tool_prefix}cc; ac_word=$2
3129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if test "${ac_cv_prog_CC+set}" = set; then
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC="$CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 ac_cv_prog_CC="${ac_tool_prefix}cc"
3145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3148 done
3149 done
3150 IFS=$as_save_IFS
3154 CC=$ac_cv_prog_CC
3155 if test -n "$CC"; then
3156 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3157 $as_echo "$CC" >&6; }
3158 else
3159 { $as_echo "$as_me:$LINENO: result: no" >&5
3160 $as_echo "no" >&6; }
3166 if test -z "$CC"; then
3167 # Extract the first word of "cc", so it can be a program name with args.
3168 set dummy cc; ac_word=$2
3169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if test "${ac_cv_prog_CC+set}" = set; then
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC="$CC" # Let the user override the test.
3176 else
3177 ac_prog_rejected=no
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3186 ac_prog_rejected=yes
3187 continue
3189 ac_cv_prog_CC="cc"
3190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3193 done
3194 done
3195 IFS=$as_save_IFS
3197 if test $ac_prog_rejected = yes; then
3198 # We found a bogon in the path, so make sure we never use it.
3199 set dummy $ac_cv_prog_CC
3200 shift
3201 if test $# != 0; then
3202 # We chose a different compiler from the bogus one.
3203 # However, it has the same basename, so the bogon will be chosen
3204 # first if we set CC to just the basename; use the full file name.
3205 shift
3206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3211 CC=$ac_cv_prog_CC
3212 if test -n "$CC"; then
3213 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3215 else
3216 { $as_echo "$as_me:$LINENO: result: no" >&5
3217 $as_echo "no" >&6; }
3222 if test -z "$CC"; then
3223 if test -n "$ac_tool_prefix"; then
3224 for ac_prog in cl.exe
3226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_CC+set}" = set; then
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3249 IFS=$as_save_IFS
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3257 else
3258 { $as_echo "$as_me:$LINENO: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$CC" && break
3264 done
3266 if test -z "$CC"; then
3267 ac_ct_CC=$CC
3268 for ac_prog in cl.exe
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271 set dummy $ac_prog; ac_word=$2
3272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3275 $as_echo_n "(cached) " >&6
3276 else
3277 if test -n "$ac_ct_CC"; then
3278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_ac_ct_CC="$ac_prog"
3288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3291 done
3292 done
3293 IFS=$as_save_IFS
3297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3298 if test -n "$ac_ct_CC"; then
3299 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3300 $as_echo "$ac_ct_CC" >&6; }
3301 else
3302 { $as_echo "$as_me:$LINENO: result: no" >&5
3303 $as_echo "no" >&6; }
3307 test -n "$ac_ct_CC" && break
3308 done
3310 if test "x$ac_ct_CC" = x; then
3311 CC=""
3312 else
3313 case $cross_compiling:$ac_tool_warned in
3314 yes:)
3315 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3316 whose name does not start with the host triplet. If you think this
3317 configuration is useful to you, please write to autoconf@gnu.org." >&5
3318 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3319 whose name does not start with the host triplet. If you think this
3320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3321 ac_tool_warned=yes ;;
3322 esac
3323 CC=$ac_ct_CC
3330 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3331 See \`config.log' for more details." >&5
3332 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3333 See \`config.log' for more details." >&2;}
3334 { (exit 1); exit 1; }; }
3336 # Provide some information about the compiler.
3337 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3338 set X $ac_compile
3339 ac_compiler=$2
3340 { (ac_try="$ac_compiler --version >&5"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347 (eval "$ac_compiler --version >&5") 2>&5
3348 ac_status=$?
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }
3351 { (ac_try="$ac_compiler -v >&5"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_compiler -v >&5") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362 { (ac_try="$ac_compiler -V >&5"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3368 $as_echo "$ac_try_echo") >&5
3369 (eval "$ac_compiler -V >&5") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3382 main ()
3386 return 0;
3388 _ACEOF
3389 ac_clean_files_save=$ac_clean_files
3390 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3391 # Try to create an executable without -o first, disregard a.out.
3392 # It will help us diagnose broken compilers, and finding out an intuition
3393 # of exeext.
3394 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3395 $as_echo_n "checking for C compiler default output file name... " >&6; }
3396 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3398 # The possible output files:
3399 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3401 ac_rmfiles=
3402 for ac_file in $ac_files
3404 case $ac_file in
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3407 esac
3408 done
3409 rm -f $ac_rmfiles
3411 if { (ac_try="$ac_link_default"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3417 $as_echo "$ac_try_echo") >&5
3418 (eval "$ac_link_default") 2>&5
3419 ac_status=$?
3420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; then
3422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3423 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3424 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3425 # so that the user can short-circuit this test for compilers unknown to
3426 # Autoconf.
3427 for ac_file in $ac_files ''
3429 test -f "$ac_file" || continue
3430 case $ac_file in
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3433 [ab].out )
3434 # We found the default executable, but exeext='' is most
3435 # certainly right.
3436 break;;
3437 *.* )
3438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3439 then :; else
3440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3442 # We set ac_cv_exeext here because the later test for it is not
3443 # safe: cross compilers may not add the suffix if given an `-o'
3444 # argument, so we may need to know it at that point already.
3445 # Even if this section looks crufty: it has the advantage of
3446 # actually working.
3447 break;;
3449 break;;
3450 esac
3451 done
3452 test "$ac_cv_exeext" = no && ac_cv_exeext=
3454 else
3455 ac_file=''
3458 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3459 $as_echo "$ac_file" >&6; }
3460 if test -z "$ac_file"; then
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3465 See \`config.log' for more details." >&5
3466 $as_echo "$as_me: error: C compiler cannot create executables
3467 See \`config.log' for more details." >&2;}
3468 { (exit 77); exit 77; }; }
3471 ac_exeext=$ac_cv_exeext
3473 # Check that the compiler produces executables we can run. If not, either
3474 # the compiler is broken, or we cross compile.
3475 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3476 $as_echo_n "checking whether the C compiler works... " >&6; }
3477 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3478 # If not cross compiling, check that we can run a simple program.
3479 if test "$cross_compiling" != yes; then
3480 if { ac_try='./$ac_file'
3481 { (case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487 (eval "$ac_try") 2>&5
3488 ac_status=$?
3489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3491 cross_compiling=no
3492 else
3493 if test "$cross_compiling" = maybe; then
3494 cross_compiling=yes
3495 else
3496 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3497 If you meant to cross compile, use \`--host'.
3498 See \`config.log' for more details." >&5
3499 $as_echo "$as_me: error: cannot run C compiled programs.
3500 If you meant to cross compile, use \`--host'.
3501 See \`config.log' for more details." >&2;}
3502 { (exit 1); exit 1; }; }
3506 { $as_echo "$as_me:$LINENO: result: yes" >&5
3507 $as_echo "yes" >&6; }
3509 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3510 ac_clean_files=$ac_clean_files_save
3511 # Check that the compiler produces executables we can run. If not, either
3512 # the compiler is broken, or we cross compile.
3513 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3514 $as_echo_n "checking whether we are cross compiling... " >&6; }
3515 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3516 $as_echo "$cross_compiling" >&6; }
3518 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3519 $as_echo_n "checking for suffix of executables... " >&6; }
3520 if { (ac_try="$ac_link"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3526 $as_echo "$ac_try_echo") >&5
3527 (eval "$ac_link") 2>&5
3528 ac_status=$?
3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; then
3531 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3532 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3533 # work properly (i.e., refer to `conftest.exe'), while it won't with
3534 # `rm'.
3535 for ac_file in conftest.exe conftest conftest.*; do
3536 test -f "$ac_file" || continue
3537 case $ac_file in
3538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540 break;;
3541 * ) break;;
3542 esac
3543 done
3544 else
3545 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details." >&5
3547 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3548 See \`config.log' for more details." >&2;}
3549 { (exit 1); exit 1; }; }
3552 rm -f conftest$ac_cv_exeext
3553 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3554 $as_echo "$ac_cv_exeext" >&6; }
3556 rm -f conftest.$ac_ext
3557 EXEEXT=$ac_cv_exeext
3558 ac_exeext=$EXEEXT
3559 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3560 $as_echo_n "checking for suffix of object files... " >&6; }
3561 if test "${ac_cv_objext+set}" = set; then
3562 $as_echo_n "(cached) " >&6
3563 else
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h. */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3572 main ()
3576 return 0;
3578 _ACEOF
3579 rm -f conftest.o conftest.obj
3580 if { (ac_try="$ac_compile"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3586 $as_echo "$ac_try_echo") >&5
3587 (eval "$ac_compile") 2>&5
3588 ac_status=$?
3589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; then
3591 for ac_file in conftest.o conftest.obj conftest.*; do
3592 test -f "$ac_file" || continue;
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3596 break;;
3597 esac
3598 done
3599 else
3600 $as_echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3604 See \`config.log' for more details." >&5
3605 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }
3610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3612 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3613 $as_echo "$ac_cv_objext" >&6; }
3614 OBJEXT=$ac_cv_objext
3615 ac_objext=$OBJEXT
3616 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3617 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3619 $as_echo_n "(cached) " >&6
3620 else
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3629 main ()
3631 #ifndef __GNUC__
3632 choke me
3633 #endif
3636 return 0;
3638 _ACEOF
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647 (eval "$ac_compile") 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } && {
3654 test -z "$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 } && test -s conftest.$ac_objext; then
3657 ac_compiler_gnu=yes
3658 else
3659 $as_echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 ac_compiler_gnu=no
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3671 if test $ac_compiler_gnu = yes; then
3672 GCC=yes
3673 else
3674 GCC=
3676 ac_test_CFLAGS=${CFLAGS+set}
3677 ac_save_CFLAGS=$CFLAGS
3678 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3679 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3680 if test "${ac_cv_prog_cc_g+set}" = set; then
3681 $as_echo_n "(cached) " >&6
3682 else
3683 ac_save_c_werror_flag=$ac_c_werror_flag
3684 ac_c_werror_flag=yes
3685 ac_cv_prog_cc_g=no
3686 CFLAGS="-g"
3687 cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h. */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3695 main ()
3699 return 0;
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3704 case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710 (eval "$ac_compile") 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
3720 ac_cv_prog_cc_g=yes
3721 else
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 CFLAGS=""
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h. */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3734 main ()
3738 return 0;
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3760 else
3761 $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 ac_c_werror_flag=$ac_save_c_werror_flag
3765 CFLAGS="-g"
3766 cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h. */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3774 main ()
3778 return 0;
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3799 ac_cv_prog_cc_g=yes
3800 else
3801 $as_echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3816 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3822 CFLAGS="-g -O2"
3823 else
3824 CFLAGS="-g"
3826 else
3827 if test "$GCC" = yes; then
3828 CFLAGS="-O2"
3829 else
3830 CFLAGS=
3833 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835 if test "${ac_cv_prog_cc_c89+set}" = set; then
3836 $as_echo_n "(cached) " >&6
3837 else
3838 ac_cv_prog_cc_c89=no
3839 ac_save_CC=$CC
3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h. */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 #include <stdarg.h>
3847 #include <stdio.h>
3848 #include <sys/types.h>
3849 #include <sys/stat.h>
3850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3851 struct buf { int x; };
3852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853 static char *e (p, i)
3854 char **p;
3855 int i;
3857 return p[i];
3859 static char *f (char * (*g) (char **, int), char **p, ...)
3861 char *s;
3862 va_list v;
3863 va_start (v,p);
3864 s = g (p, va_arg (v,int));
3865 va_end (v);
3866 return s;
3869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3870 function prototypes and stuff, but not '\xHH' hex character constants.
3871 These don't provoke an error unfortunately, instead are silently treated
3872 as 'x'. The following induces an error, until -std is added to get
3873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3874 array size at least. It's necessary to write '\x00'==0 to get something
3875 that's true only with -std. */
3876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879 inside strings and character constants. */
3880 #define FOO(x) 'x'
3881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3883 int test (int i, double x);
3884 struct s1 {int (*f) (int a);};
3885 struct s2 {int (*f) (double a);};
3886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3887 int argc;
3888 char **argv;
3890 main ()
3892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3894 return 0;
3896 _ACEOF
3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3900 CC="$ac_save_CC $ac_arg"
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3919 ac_cv_prog_cc_c89=$ac_arg
3920 else
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3927 rm -f core conftest.err conftest.$ac_objext
3928 test "x$ac_cv_prog_cc_c89" != "xno" && break
3929 done
3930 rm -f conftest.$ac_ext
3931 CC=$ac_save_CC
3934 # AC_CACHE_VAL
3935 case "x$ac_cv_prog_cc_c89" in
3937 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3938 $as_echo "none needed" >&6; } ;;
3939 xno)
3940 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3941 $as_echo "unsupported" >&6; } ;;
3943 CC="$CC $ac_cv_prog_cc_c89"
3944 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3946 esac
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 # On Suns, sometimes $CPP names a directory.
3957 if test -n "$CPP" && test -d "$CPP"; then
3958 CPP=
3961 ## If not using gcc, and on Solaris, and no CPP specified, see if
3962 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3963 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3964 test x"$CPP" = x; then
3965 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3966 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3968 if test "${emacs_cv_sunpro_c+set}" = set; then
3969 $as_echo_n "(cached) " >&6
3970 else
3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3979 main ()
3981 #ifndef __SUNPRO_C
3982 fail;
3983 #endif
3986 return 0;
3988 _ACEOF
3989 rm -f conftest.$ac_objext conftest$ac_exeext
3990 if { (ac_try="$ac_link"
3991 case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3994 esac
3995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3996 $as_echo "$ac_try_echo") >&5
3997 (eval "$ac_link") 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } && {
4004 test -z "$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4006 } && test -s conftest$ac_exeext && {
4007 test "$cross_compiling" = yes ||
4008 $as_test_x conftest$ac_exeext
4009 }; then
4010 emacs_cv_sunpro_c=yes
4011 else
4012 $as_echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 emacs_cv_sunpro_c=no
4018 rm -rf conftest.dSYM
4019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4020 conftest$ac_exeext conftest.$ac_ext
4023 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4024 $as_echo "$emacs_cv_sunpro_c" >&6; }
4026 if test x"$emacs_cv_sunpro_c" = xyes; then
4027 NON_GNU_CPP="$CC -E -Xs"
4031 #### Some systems specify a CPP to use unless we are using GCC.
4032 #### Now that we know whether we are using GCC, we can decide whether
4033 #### to use that one.
4034 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4035 then
4036 CPP="$NON_GNU_CPP"
4039 #### Some systems specify a CC to use unless we are using GCC.
4040 #### Now that we know whether we are using GCC, we can decide whether
4041 #### to use that one.
4042 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4043 test x$cc_specified != xyes
4044 then
4045 CC="$NON_GNU_CC"
4048 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4049 then
4050 CC="$CC $GCC_TEST_OPTIONS"
4053 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4054 then
4055 CC="$CC $NON_GCC_TEST_OPTIONS"
4058 ac_ext=c
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4064 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4065 # On Suns, sometimes $CPP names a directory.
4066 if test -n "$CPP" && test -d "$CPP"; then
4067 CPP=
4069 if test -z "$CPP"; then
4070 if test "${ac_cv_prog_CPP+set}" = set; then
4071 $as_echo_n "(cached) " >&6
4072 else
4073 # Double quotes because CPP needs to be expanded
4074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4076 ac_preproc_ok=false
4077 for ac_c_preproc_warn_flag in '' yes
4079 # Use a header file that comes with gcc, so configuring glibc
4080 # with a fresh cross-compiler works.
4081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082 # <limits.h> exists even on freestanding compilers.
4083 # On the NeXT, cc -E runs the code through the compiler's parser,
4084 # not just through cpp. "Syntax error" is here to catch this case.
4085 cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h. */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 #ifdef __STDC__
4092 # include <limits.h>
4093 #else
4094 # include <assert.h>
4095 #endif
4096 Syntax error
4097 _ACEOF
4098 if { (ac_try="$ac_cpp conftest.$ac_ext"
4099 case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4104 $as_echo "$ac_try_echo") >&5
4105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } >/dev/null && {
4112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4113 test ! -s conftest.err
4114 }; then
4116 else
4117 $as_echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 # Broken: fails on valid input.
4121 continue
4124 rm -f conftest.err conftest.$ac_ext
4126 # OK, works on sane cases. Now check whether nonexistent headers
4127 # can be detected and how.
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #include <ac_nonexistent.h>
4135 _ACEOF
4136 if { (ac_try="$ac_cpp conftest.$ac_ext"
4137 case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4142 $as_echo "$ac_try_echo") >&5
4143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } >/dev/null && {
4150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4152 }; then
4153 # Broken: success on invalid input.
4154 continue
4155 else
4156 $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 # Passes both tests.
4160 ac_preproc_ok=:
4161 break
4164 rm -f conftest.err conftest.$ac_ext
4166 done
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then
4170 break
4173 done
4174 ac_cv_prog_CPP=$CPP
4177 CPP=$ac_cv_prog_CPP
4178 else
4179 ac_cv_prog_CPP=$CPP
4181 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4182 $as_echo "$CPP" >&6; }
4183 ac_preproc_ok=false
4184 for ac_c_preproc_warn_flag in '' yes
4186 # Use a header file that comes with gcc, so configuring glibc
4187 # with a fresh cross-compiler works.
4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189 # <limits.h> exists even on freestanding compilers.
4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4191 # not just through cpp. "Syntax error" is here to catch this case.
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 #ifdef __STDC__
4199 # include <limits.h>
4200 #else
4201 # include <assert.h>
4202 #endif
4203 Syntax error
4204 _ACEOF
4205 if { (ac_try="$ac_cpp conftest.$ac_ext"
4206 case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209 esac
4210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4211 $as_echo "$ac_try_echo") >&5
4212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null && {
4219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4221 }; then
4223 else
4224 $as_echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 # Broken: fails on valid input.
4228 continue
4231 rm -f conftest.err conftest.$ac_ext
4233 # OK, works on sane cases. Now check whether nonexistent headers
4234 # can be detected and how.
4235 cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h. */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4242 _ACEOF
4243 if { (ac_try="$ac_cpp conftest.$ac_ext"
4244 case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4249 $as_echo "$ac_try_echo") >&5
4250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev/null && {
4257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4258 test ! -s conftest.err
4259 }; then
4260 # Broken: success on invalid input.
4261 continue
4262 else
4263 $as_echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 # Passes both tests.
4267 ac_preproc_ok=:
4268 break
4271 rm -f conftest.err conftest.$ac_ext
4273 done
4274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4275 rm -f conftest.err conftest.$ac_ext
4276 if $ac_preproc_ok; then
4278 else
4279 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4280 See \`config.log' for more details." >&5
4281 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4282 See \`config.log' for more details." >&2;}
4283 { (exit 1); exit 1; }; }
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4294 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4295 if test "${ac_cv_path_GREP+set}" = set; then
4296 $as_echo_n "(cached) " >&6
4297 else
4298 if test -z "$GREP"; then
4299 ac_path_GREP_found=false
4300 # Loop through the user's path and test for each of PROGNAME-LIST
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_prog in grep ggrep; do
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4310 # Check for GNU ac_path_GREP and select it if it is found.
4311 # Check for GNU $ac_path_GREP
4312 case `"$ac_path_GREP" --version 2>&1` in
4313 *GNU*)
4314 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4316 ac_count=0
4317 $as_echo_n 0123456789 >"conftest.in"
4318 while :
4320 cat "conftest.in" "conftest.in" >"conftest.tmp"
4321 mv "conftest.tmp" "conftest.in"
4322 cp "conftest.in" "conftest.nl"
4323 $as_echo 'GREP' >> "conftest.nl"
4324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326 ac_count=`expr $ac_count + 1`
4327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4328 # Best one so far, save it but keep looking for a better one
4329 ac_cv_path_GREP="$ac_path_GREP"
4330 ac_path_GREP_max=$ac_count
4332 # 10*(2^10) chars as input seems more than enough
4333 test $ac_count -gt 10 && break
4334 done
4335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336 esac
4338 $ac_path_GREP_found && break 3
4339 done
4340 done
4341 done
4342 IFS=$as_save_IFS
4343 if test -z "$ac_cv_path_GREP"; then
4344 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4345 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4346 { (exit 1); exit 1; }; }
4348 else
4349 ac_cv_path_GREP=$GREP
4353 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4354 $as_echo "$ac_cv_path_GREP" >&6; }
4355 GREP="$ac_cv_path_GREP"
4358 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4359 $as_echo_n "checking for egrep... " >&6; }
4360 if test "${ac_cv_path_EGREP+set}" = set; then
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4364 then ac_cv_path_EGREP="$GREP -E"
4365 else
4366 if test -z "$EGREP"; then
4367 ac_path_EGREP_found=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_prog in egrep; do
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4377 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4378 # Check for GNU ac_path_EGREP and select it if it is found.
4379 # Check for GNU $ac_path_EGREP
4380 case `"$ac_path_EGREP" --version 2>&1` in
4381 *GNU*)
4382 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4384 ac_count=0
4385 $as_echo_n 0123456789 >"conftest.in"
4386 while :
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo 'EGREP' >> "conftest.nl"
4392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394 ac_count=`expr $ac_count + 1`
4395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_EGREP="$ac_path_EGREP"
4398 ac_path_EGREP_max=$ac_count
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4402 done
4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404 esac
4406 $ac_path_EGREP_found && break 3
4407 done
4408 done
4409 done
4410 IFS=$as_save_IFS
4411 if test -z "$ac_cv_path_EGREP"; then
4412 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4413 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4416 else
4417 ac_cv_path_EGREP=$EGREP
4422 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4423 $as_echo "$ac_cv_path_EGREP" >&6; }
4424 EGREP="$ac_cv_path_EGREP"
4427 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4428 $as_echo_n "checking for ANSI C header files... " >&6; }
4429 if test "${ac_cv_header_stdc+set}" = set; then
4430 $as_echo_n "(cached) " >&6
4431 else
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h. */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 #include <stdlib.h>
4439 #include <stdarg.h>
4440 #include <string.h>
4441 #include <float.h>
4444 main ()
4448 return 0;
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (ac_try="$ac_compile"
4453 case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458 $as_echo "$ac_try_echo") >&5
4459 (eval "$ac_compile") 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest.$ac_objext; then
4469 ac_cv_header_stdc=yes
4470 else
4471 $as_echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 ac_cv_header_stdc=no
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 if test $ac_cv_header_stdc = yes; then
4480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h. */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 #include <string.h>
4489 _ACEOF
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "memchr" >/dev/null 2>&1; then
4493 else
4494 ac_cv_header_stdc=no
4496 rm -f conftest*
4500 if test $ac_cv_header_stdc = yes; then
4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502 cat >conftest.$ac_ext <<_ACEOF
4503 /* confdefs.h. */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 #include <stdlib.h>
4510 _ACEOF
4511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512 $EGREP "free" >/dev/null 2>&1; then
4514 else
4515 ac_cv_header_stdc=no
4517 rm -f conftest*
4521 if test $ac_cv_header_stdc = yes; then
4522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4523 if test "$cross_compiling" = yes; then
4525 else
4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h. */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 #include <ctype.h>
4533 #include <stdlib.h>
4534 #if ((' ' & 0x0FF) == 0x020)
4535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4537 #else
4538 # define ISLOWER(c) \
4539 (('a' <= (c) && (c) <= 'i') \
4540 || ('j' <= (c) && (c) <= 'r') \
4541 || ('s' <= (c) && (c) <= 'z'))
4542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4543 #endif
4545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4547 main ()
4549 int i;
4550 for (i = 0; i < 256; i++)
4551 if (XOR (islower (i), ISLOWER (i))
4552 || toupper (i) != TOUPPER (i))
4553 return 2;
4554 return 0;
4556 _ACEOF
4557 rm -f conftest$ac_exeext
4558 if { (ac_try="$ac_link"
4559 case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4562 esac
4563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4564 $as_echo "$ac_try_echo") >&5
4565 (eval "$ac_link") 2>&5
4566 ac_status=$?
4567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4569 { (case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_try") 2>&5
4576 ac_status=$?
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4580 else
4581 $as_echo "$as_me: program exited with status $ac_status" >&5
4582 $as_echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 ( exit $ac_status )
4586 ac_cv_header_stdc=no
4588 rm -rf conftest.dSYM
4589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4595 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4596 $as_echo "$ac_cv_header_stdc" >&6; }
4597 if test $ac_cv_header_stdc = yes; then
4599 cat >>confdefs.h <<\_ACEOF
4600 #define STDC_HEADERS 1
4601 _ACEOF
4605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4616 inttypes.h stdint.h unistd.h
4618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4620 $as_echo_n "checking for $ac_header... " >&6; }
4621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4622 $as_echo_n "(cached) " >&6
4623 else
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 $ac_includes_default
4632 #include <$ac_header>
4633 _ACEOF
4634 rm -f conftest.$ac_objext
4635 if { (ac_try="$ac_compile"
4636 case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639 esac
4640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4641 $as_echo "$ac_try_echo") >&5
4642 (eval "$ac_compile") 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.$ac_objext; then
4652 eval "$as_ac_Header=yes"
4653 else
4654 $as_echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 eval "$as_ac_Header=no"
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 ac_res=`eval 'as_val=${'$as_ac_Header'}
4663 $as_echo "$as_val"'`
4664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4665 $as_echo "$ac_res" >&6; }
4666 if test `eval 'as_val=${'$as_ac_Header'}
4667 $as_echo "$as_val"'` = yes; then
4668 cat >>confdefs.h <<_ACEOF
4669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4670 _ACEOF
4674 done
4678 if test "${ac_cv_header_minix_config_h+set}" = set; then
4679 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4680 $as_echo_n "checking for minix/config.h... " >&6; }
4681 if test "${ac_cv_header_minix_config_h+set}" = set; then
4682 $as_echo_n "(cached) " >&6
4684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4685 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4686 else
4687 # Is the header compilable?
4688 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4689 $as_echo_n "checking minix/config.h usability... " >&6; }
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h. */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 $ac_includes_default
4697 #include <minix/config.h>
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (ac_try="$ac_compile"
4701 case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
4717 ac_header_compiler=yes
4718 else
4719 $as_echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 ac_header_compiler=no
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4727 $as_echo "$ac_header_compiler" >&6; }
4729 # Is the header present?
4730 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4731 $as_echo_n "checking minix/config.h presence... " >&6; }
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #include <minix/config.h>
4739 _ACEOF
4740 if { (ac_try="$ac_cpp conftest.$ac_ext"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4746 $as_echo "$ac_try_echo") >&5
4747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4748 ac_status=$?
4749 grep -v '^ *+' conftest.er1 >conftest.err
4750 rm -f conftest.er1
4751 cat conftest.err >&5
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } >/dev/null && {
4754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4755 test ! -s conftest.err
4756 }; then
4757 ac_header_preproc=yes
4758 else
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 ac_header_preproc=no
4765 rm -f conftest.err conftest.$ac_ext
4766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4767 $as_echo "$ac_header_preproc" >&6; }
4769 # So? What about this header?
4770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4771 yes:no: )
4772 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4773 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4776 ac_header_preproc=yes
4778 no:yes:* )
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4788 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4793 esac
4794 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4795 $as_echo_n "checking for minix/config.h... " >&6; }
4796 if test "${ac_cv_header_minix_config_h+set}" = set; then
4797 $as_echo_n "(cached) " >&6
4798 else
4799 ac_cv_header_minix_config_h=$ac_header_preproc
4801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4802 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4805 if test $ac_cv_header_minix_config_h = yes; then
4806 MINIX=yes
4807 else
4808 MINIX=
4812 if test "$MINIX" = yes; then
4814 cat >>confdefs.h <<\_ACEOF
4815 #define _POSIX_SOURCE 1
4816 _ACEOF
4819 cat >>confdefs.h <<\_ACEOF
4820 #define _POSIX_1_SOURCE 2
4821 _ACEOF
4824 cat >>confdefs.h <<\_ACEOF
4825 #define _MINIX 1
4826 _ACEOF
4832 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4834 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4835 $as_echo_n "(cached) " >&6
4836 else
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 # define __EXTENSIONS__ 1
4845 $ac_includes_default
4847 main ()
4851 return 0;
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (ac_try="$ac_compile"
4856 case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859 esac
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862 (eval "$ac_compile") 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4872 ac_cv_safe_to_define___extensions__=yes
4873 else
4874 $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 ac_cv_safe_to_define___extensions__=no
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4883 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4884 test $ac_cv_safe_to_define___extensions__ = yes &&
4885 cat >>confdefs.h <<\_ACEOF
4886 #define __EXTENSIONS__ 1
4887 _ACEOF
4889 cat >>confdefs.h <<\_ACEOF
4890 #define _ALL_SOURCE 1
4891 _ACEOF
4893 cat >>confdefs.h <<\_ACEOF
4894 #define _GNU_SOURCE 1
4895 _ACEOF
4897 cat >>confdefs.h <<\_ACEOF
4898 #define _POSIX_PTHREAD_SEMANTICS 1
4899 _ACEOF
4901 cat >>confdefs.h <<\_ACEOF
4902 #define _TANDEM_SOURCE 1
4903 _ACEOF
4907 ### Use -Wno-pointer-sign if the compiler supports it
4908 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4909 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4910 SAVE_CFLAGS="$CFLAGS"
4911 CFLAGS="$CFLAGS -Wno-pointer-sign"
4912 cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h. */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4920 main ()
4924 return 0;
4926 _ACEOF
4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4929 case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932 esac
4933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4934 $as_echo "$ac_try_echo") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
4945 has_option=yes
4946 else
4947 $as_echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 has_option=no
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 if test $has_option = yes; then
4955 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4957 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4958 $as_echo "$has_option" >&6; }
4959 CFLAGS="$SAVE_CFLAGS"
4960 unset has_option
4961 unset SAVE_CFLAGS
4963 ### Use -Wdeclaration-after-statement if the compiler supports it
4964 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4965 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4966 SAVE_CFLAGS="$CFLAGS"
4967 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4968 cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h. */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4976 main ()
4980 return 0;
4982 _ACEOF
4983 rm -f conftest.$ac_objext
4984 if { (ac_try="$ac_compile"
4985 case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988 esac
4989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990 $as_echo "$ac_try_echo") >&5
4991 (eval "$ac_compile") 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && {
4998 test -z "$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 } && test -s conftest.$ac_objext; then
5001 has_option=yes
5002 else
5003 $as_echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 has_option=no
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 if test $has_option = yes; then
5011 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5013 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5014 $as_echo "$has_option" >&6; }
5015 CFLAGS="$SAVE_CFLAGS"
5016 unset has_option
5017 unset SAVE_CFLAGS
5019 #### Some other nice autoconf tests.
5021 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5022 $as_echo_n "checking whether ln -s works... " >&6; }
5023 LN_S=$as_ln_s
5024 if test "$LN_S" = "ln -s"; then
5025 { $as_echo "$as_me:$LINENO: result: yes" >&5
5026 $as_echo "yes" >&6; }
5027 else
5028 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5029 $as_echo "no, using $LN_S" >&6; }
5032 ac_ext=c
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5038 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5039 # On Suns, sometimes $CPP names a directory.
5040 if test -n "$CPP" && test -d "$CPP"; then
5041 CPP=
5043 if test -z "$CPP"; then
5044 if test "${ac_cv_prog_CPP+set}" = set; then
5045 $as_echo_n "(cached) " >&6
5046 else
5047 # Double quotes because CPP needs to be expanded
5048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5050 ac_preproc_ok=false
5051 for ac_c_preproc_warn_flag in '' yes
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 #ifdef __STDC__
5066 # include <limits.h>
5067 #else
5068 # include <assert.h>
5069 #endif
5070 Syntax error
5071 _ACEOF
5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
5073 case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5078 $as_echo "$ac_try_echo") >&5
5079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev/null && {
5086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5088 }; then
5090 else
5091 $as_echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 # Broken: fails on valid input.
5095 continue
5098 rm -f conftest.err conftest.$ac_ext
5100 # OK, works on sane cases. Now check whether nonexistent headers
5101 # can be detected and how.
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <ac_nonexistent.h>
5109 _ACEOF
5110 if { (ac_try="$ac_cpp conftest.$ac_ext"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5116 $as_echo "$ac_try_echo") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null && {
5124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 }; then
5127 # Broken: success on invalid input.
5128 continue
5129 else
5130 $as_echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 # Passes both tests.
5134 ac_preproc_ok=:
5135 break
5138 rm -f conftest.err conftest.$ac_ext
5140 done
5141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142 rm -f conftest.err conftest.$ac_ext
5143 if $ac_preproc_ok; then
5144 break
5147 done
5148 ac_cv_prog_CPP=$CPP
5151 CPP=$ac_cv_prog_CPP
5152 else
5153 ac_cv_prog_CPP=$CPP
5155 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5156 $as_echo "$CPP" >&6; }
5157 ac_preproc_ok=false
5158 for ac_c_preproc_warn_flag in '' yes
5160 # Use a header file that comes with gcc, so configuring glibc
5161 # with a fresh cross-compiler works.
5162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163 # <limits.h> exists even on freestanding compilers.
5164 # On the NeXT, cc -E runs the code through the compiler's parser,
5165 # not just through cpp. "Syntax error" is here to catch this case.
5166 cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h. */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 #ifdef __STDC__
5173 # include <limits.h>
5174 #else
5175 # include <assert.h>
5176 #endif
5177 Syntax error
5178 _ACEOF
5179 if { (ac_try="$ac_cpp conftest.$ac_ext"
5180 case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183 esac
5184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5185 $as_echo "$ac_try_echo") >&5
5186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null && {
5193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 }; then
5197 else
5198 $as_echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 # Broken: fails on valid input.
5202 continue
5205 rm -f conftest.err conftest.$ac_ext
5207 # OK, works on sane cases. Now check whether nonexistent headers
5208 # can be detected and how.
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #include <ac_nonexistent.h>
5216 _ACEOF
5217 if { (ac_try="$ac_cpp conftest.$ac_ext"
5218 case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221 esac
5222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5223 $as_echo "$ac_try_echo") >&5
5224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev/null && {
5231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5232 test ! -s conftest.err
5233 }; then
5234 # Broken: success on invalid input.
5235 continue
5236 else
5237 $as_echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 # Passes both tests.
5241 ac_preproc_ok=:
5242 break
5245 rm -f conftest.err conftest.$ac_ext
5247 done
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.err conftest.$ac_ext
5250 if $ac_preproc_ok; then
5252 else
5253 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5254 See \`config.log' for more details." >&5
5255 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5256 See \`config.log' for more details." >&2;}
5257 { (exit 1); exit 1; }; }
5260 ac_ext=c
5261 ac_cpp='$CPP $CPPFLAGS'
5262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266 # Find a good install program. We prefer a C program (faster),
5267 # so one script is as good as another. But avoid the broken or
5268 # incompatible versions:
5269 # SysV /etc/install, /usr/sbin/install
5270 # SunOS /usr/etc/install
5271 # IRIX /sbin/install
5272 # AIX /bin/install
5273 # AmigaOS /C/install, which installs bootblocks on floppy discs
5274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5277 # OS/2's system install, which has a completely different semantic
5278 # ./install, which can be erroneously created by make from ./install.sh.
5279 # Reject install programs that cannot install multiple files.
5280 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5281 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5282 if test -z "$INSTALL"; then
5283 if test "${ac_cv_path_install+set}" = set; then
5284 $as_echo_n "(cached) " >&6
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 # Account for people who put trailing slashes in PATH elements.
5292 case $as_dir/ in
5293 ./ | .// | /cC/* | \
5294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5295 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5296 /usr/ucb/* ) ;;
5298 # OSF1 and SCO ODT 3.0 have their own names for install.
5299 # Don't use installbsd from OSF since it installs stuff as root
5300 # by default.
5301 for ac_prog in ginstall scoinst install; do
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5304 if test $ac_prog = install &&
5305 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5306 # AIX install. It has an incompatible calling convention.
5308 elif test $ac_prog = install &&
5309 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5310 # program-specific install script used by HP pwplus--don't use.
5312 else
5313 rm -rf conftest.one conftest.two conftest.dir
5314 echo one > conftest.one
5315 echo two > conftest.two
5316 mkdir conftest.dir
5317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5318 test -s conftest.one && test -s conftest.two &&
5319 test -s conftest.dir/conftest.one &&
5320 test -s conftest.dir/conftest.two
5321 then
5322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5323 break 3
5327 done
5328 done
5330 esac
5332 done
5333 IFS=$as_save_IFS
5335 rm -rf conftest.one conftest.two conftest.dir
5338 if test "${ac_cv_path_install+set}" = set; then
5339 INSTALL=$ac_cv_path_install
5340 else
5341 # As a last resort, use the slow shell script. Don't cache a
5342 # value for INSTALL within a source directory, because that will
5343 # break other packages using the cache if that directory is
5344 # removed, or if the value is a relative name.
5345 INSTALL=$ac_install_sh
5348 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5349 $as_echo "$INSTALL" >&6; }
5351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5352 # It thinks the first close brace ends the variable substitution.
5353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5359 if test "x$RANLIB" = x; then
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_prog_RANLIB+set}" = set; then
5366 $as_echo_n "(cached) " >&6
5367 else
5368 if test -n "$RANLIB"; then
5369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5382 done
5383 done
5384 IFS=$as_save_IFS
5388 RANLIB=$ac_cv_prog_RANLIB
5389 if test -n "$RANLIB"; then
5390 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5391 $as_echo "$RANLIB" >&6; }
5392 else
5393 { $as_echo "$as_me:$LINENO: result: no" >&5
5394 $as_echo "no" >&6; }
5399 if test -z "$ac_cv_prog_RANLIB"; then
5400 ac_ct_RANLIB=$RANLIB
5401 # Extract the first word of "ranlib", so it can be a program name with args.
5402 set dummy ranlib; ac_word=$2
5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if test -n "$ac_ct_RANLIB"; then
5409 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_ac_ct_RANLIB="ranlib"
5419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5422 done
5423 done
5424 IFS=$as_save_IFS
5428 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5429 if test -n "$ac_ct_RANLIB"; then
5430 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5431 $as_echo "$ac_ct_RANLIB" >&6; }
5432 else
5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5434 $as_echo "no" >&6; }
5437 if test "x$ac_ct_RANLIB" = x; then
5438 RANLIB=":"
5439 else
5440 case $cross_compiling:$ac_tool_warned in
5441 yes:)
5442 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5443 whose name does not start with the host triplet. If you think this
5444 configuration is useful to you, please write to autoconf@gnu.org." >&5
5445 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5446 whose name does not start with the host triplet. If you think this
5447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5448 ac_tool_warned=yes ;;
5449 esac
5450 RANLIB=$ac_ct_RANLIB
5452 else
5453 RANLIB="$ac_cv_prog_RANLIB"
5457 # Extract the first word of "install-info", so it can be a program name with args.
5458 set dummy install-info; ac_word=$2
5459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5463 else
5464 case $INSTALL_INFO in
5465 [\\/]* | ?:[\\/]*)
5466 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5480 done
5481 done
5482 IFS=$as_save_IFS
5485 esac
5487 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5488 if test -n "$INSTALL_INFO"; then
5489 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5490 $as_echo "$INSTALL_INFO" >&6; }
5491 else
5492 { $as_echo "$as_me:$LINENO: result: no" >&5
5493 $as_echo "no" >&6; }
5497 # Extract the first word of "install-info", so it can be a program name with args.
5498 set dummy install-info; ac_word=$2
5499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5502 $as_echo_n "(cached) " >&6
5503 else
5504 case $INSTALL_INFO in
5505 [\\/]* | ?:[\\/]*)
5506 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in /usr/sbin
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5520 done
5521 done
5522 IFS=$as_save_IFS
5525 esac
5527 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5528 if test -n "$INSTALL_INFO"; then
5529 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5530 $as_echo "$INSTALL_INFO" >&6; }
5531 else
5532 { $as_echo "$as_me:$LINENO: result: no" >&5
5533 $as_echo "no" >&6; }
5537 # Extract the first word of "install-info", so it can be a program name with args.
5538 set dummy install-info; ac_word=$2
5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5543 else
5544 case $INSTALL_INFO in
5545 [\\/]* | ?:[\\/]*)
5546 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in /sbin
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5560 done
5561 done
5562 IFS=$as_save_IFS
5564 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5566 esac
5568 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5569 if test -n "$INSTALL_INFO"; then
5570 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5571 $as_echo "$INSTALL_INFO" >&6; }
5572 else
5573 { $as_echo "$as_me:$LINENO: result: no" >&5
5574 $as_echo "no" >&6; }
5578 # Extract the first word of "gzip", so it can be a program name with args.
5579 set dummy gzip; ac_word=$2
5580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5583 $as_echo_n "(cached) " >&6
5584 else
5585 case $GZIP_PROG in
5586 [\\/]* | ?:[\\/]*)
5587 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5601 done
5602 done
5603 IFS=$as_save_IFS
5606 esac
5608 GZIP_PROG=$ac_cv_path_GZIP_PROG
5609 if test -n "$GZIP_PROG"; then
5610 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5611 $as_echo "$GZIP_PROG" >&6; }
5612 else
5613 { $as_echo "$as_me:$LINENO: result: no" >&5
5614 $as_echo "no" >&6; }
5620 ## Need makeinfo >= 4.6 (?) to build the manuals.
5621 # Extract the first word of "makeinfo", so it can be a program name with args.
5622 set dummy makeinfo; ac_word=$2
5623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5626 $as_echo_n "(cached) " >&6
5627 else
5628 case $MAKEINFO in
5629 [\\/]* | ?:[\\/]*)
5630 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5646 IFS=$as_save_IFS
5648 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5650 esac
5652 MAKEINFO=$ac_cv_path_MAKEINFO
5653 if test -n "$MAKEINFO"; then
5654 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5655 $as_echo "$MAKEINFO" >&6; }
5656 else
5657 { $as_echo "$as_me:$LINENO: result: no" >&5
5658 $as_echo "no" >&6; }
5662 if test "$MAKEINFO" != "no" && \
5663 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
5664 MAKEINFO=no
5667 ## Makeinfo is unusual. For a released Emacs, the manuals are
5668 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5669 ## therefore in the category of "special tools" not normally required, which
5670 ## configure does not have to check for (eg autoconf itself).
5671 ## In a Bazaar checkout on the other hand, the manuals are not included.
5672 ## So makeinfo is a requirement to build from Bazaar, and configure
5673 ## should test for it as it does for any other build requirement.
5674 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5675 ## with pre-built manuals, from a Bazaar checkout.
5676 if test "$MAKEINFO" = "no"; then
5677 if test "x${with_makeinfo}" = "xno"; then
5678 MAKEINFO=off
5679 elif ! test -e $srcdir/info/emacs; then
5680 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5681 source tree does not seem to have pre-built manuals in the \`info' directory.
5682 Either install a suitable version of makeinfo, or re-run configure
5683 with the \`--without-makeinfo' option to build without the manuals. " >&5
5684 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5685 source tree does not seem to have pre-built manuals in the \`info' directory.
5686 Either install a suitable version of makeinfo, or re-run configure
5687 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5688 { (exit 1); exit 1; }; }
5693 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5694 then
5695 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5698 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5699 then
5700 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5704 late_LDFLAGS=$LDFLAGS
5705 if test "$GCC" = yes; then
5706 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5707 else
5708 LDFLAGS="$LDFLAGS -znocombreloc"
5711 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5712 $as_echo_n "checking for -znocombreloc... " >&6; }
5713 cat >conftest.$ac_ext <<_ACEOF
5714 main(){return 0;}
5715 _ACEOF
5716 rm -f conftest.$ac_objext conftest$ac_exeext
5717 if { (ac_try="$ac_link"
5718 case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721 esac
5722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723 $as_echo "$ac_try_echo") >&5
5724 (eval "$ac_link") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest$ac_exeext && {
5734 test "$cross_compiling" = yes ||
5735 $as_test_x conftest$ac_exeext
5736 }; then
5737 { $as_echo "$as_me:$LINENO: result: yes" >&5
5738 $as_echo "yes" >&6; }
5739 else
5740 $as_echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 LDFLAGS=$late_LDFLAGS
5744 { $as_echo "$as_me:$LINENO: result: no" >&5
5745 $as_echo "no" >&6; }
5748 rm -rf conftest.dSYM
5749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5750 conftest$ac_exeext conftest.$ac_ext
5752 #### Extract some information from the operating system and machine files.
5754 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5755 - which libraries the lib-src programs will want, and
5756 - whether the GNU malloc routines are usable..." >&5
5757 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5758 - which libraries the lib-src programs will want, and
5759 - whether the GNU malloc routines are usable..." >&6;}
5761 ### First figure out CFLAGS (which we use for running the compiler here)
5762 ### and REAL_CFLAGS (which we use for real compilation).
5763 ### The two are the same except on a few systems, where they are made
5764 ### different to work around various lossages. For example,
5765 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5766 ### as implying static linking.
5768 ### If the CFLAGS env var is specified, we use that value
5769 ### instead of the default.
5771 ### It's not important that this name contain the PID; you can't run
5772 ### two configures in the same directory and have anything work
5773 ### anyway.
5774 tempcname="conftest.c"
5776 echo '
5777 #include "'${srcdir}'/src/'${opsysfile}'"
5778 #include "'${srcdir}'/src/'${machfile}'"
5779 #ifndef LIBS_MACHINE
5780 #define LIBS_MACHINE
5781 #endif
5782 #ifndef LIBS_SYSTEM
5783 #define LIBS_SYSTEM
5784 #endif
5785 #ifndef C_SWITCH_SYSTEM
5786 #define C_SWITCH_SYSTEM
5787 #endif
5788 #ifndef C_SWITCH_MACHINE
5789 #define C_SWITCH_MACHINE
5790 #endif
5791 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5792 configure___ c_switch_system=C_SWITCH_SYSTEM
5793 configure___ c_switch_machine=C_SWITCH_MACHINE
5795 #ifndef LIB_X11_LIB
5796 #define LIB_X11_LIB -lX11
5797 #endif
5799 configure___ LIBX=LIB_X11_LIB
5801 #ifdef UNEXEC
5802 configure___ unexec=UNEXEC
5803 #else
5804 configure___ unexec=unexec.o
5805 #endif
5807 #ifdef SYSTEM_MALLOC
5808 configure___ system_malloc=yes
5809 #else
5810 configure___ system_malloc=no
5811 #endif
5813 #ifdef USE_MMAP_FOR_BUFFERS
5814 configure___ use_mmap_for_buffers=yes
5815 #else
5816 configure___ use_mmap_for_buffers=no
5817 #endif
5819 #ifndef C_DEBUG_SWITCH
5820 #define C_DEBUG_SWITCH -g
5821 #endif
5823 #ifndef C_OPTIMIZE_SWITCH
5824 #ifdef __GNUC__
5825 #define C_OPTIMIZE_SWITCH -O2
5826 #else
5827 #define C_OPTIMIZE_SWITCH -O
5828 #endif
5829 #endif
5831 #ifndef C_WARNINGS_SWITCH
5832 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5833 #endif
5835 #ifndef LD_SWITCH_MACHINE
5836 #define LD_SWITCH_MACHINE
5837 #endif
5839 #ifndef LD_SWITCH_SYSTEM
5840 #define LD_SWITCH_SYSTEM
5841 #endif
5843 #ifndef LD_SWITCH_X_SITE_AUX
5844 #define LD_SWITCH_X_SITE_AUX
5845 #endif
5847 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5848 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5850 #ifdef THIS_IS_CONFIGURE
5852 /* Get the CFLAGS for tests in configure. */
5853 #ifdef __GNUC__
5854 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5855 #else
5856 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5857 #endif
5859 #else /* not THIS_IS_CONFIGURE */
5861 /* Get the CFLAGS for real compilation. */
5862 #ifdef __GNUC__
5863 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5864 #else
5865 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5866 #endif
5868 #endif /* not THIS_IS_CONFIGURE */
5869 ' > ${tempcname}
5871 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5873 # The value of CPP is a quoted variable reference, so we need to do this
5874 # to get its actual value...
5875 CPP=`eval "echo $CPP"`
5876 eval `${CPP} -Isrc ${tempcname} \
5877 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5878 if test "x$SPECIFIED_CFLAGS" = x; then
5879 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5880 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5881 else
5882 REAL_CFLAGS="$CFLAGS"
5884 rm ${tempcname}
5886 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5888 ### Make sure subsequent tests use flags consistent with the build flags.
5890 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5891 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5892 else
5893 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5898 # Check whether --enable-largefile was given.
5899 if test "${enable_largefile+set}" = set; then
5900 enableval=$enable_largefile;
5903 if test "$enable_largefile" != no; then
5905 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5906 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5907 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5908 $as_echo_n "(cached) " >&6
5909 else
5910 ac_cv_sys_largefile_CC=no
5911 if test "$GCC" != yes; then
5912 ac_save_CC=$CC
5913 while :; do
5914 # IRIX 6.2 and later do not support large files by default,
5915 # so use the C compiler's -n32 option if that helps.
5916 cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h. */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 #include <sys/types.h>
5923 /* Check that off_t can represent 2**63 - 1 correctly.
5924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5925 since some C++ compilers masquerading as C compilers
5926 incorrectly reject 9223372036854775807. */
5927 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5929 && LARGE_OFF_T % 2147483647 == 1)
5930 ? 1 : -1];
5932 main ()
5936 return 0;
5938 _ACEOF
5939 rm -f conftest.$ac_objext
5940 if { (ac_try="$ac_compile"
5941 case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944 esac
5945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5946 $as_echo "$ac_try_echo") >&5
5947 (eval "$ac_compile") 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && {
5954 test -z "$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 } && test -s conftest.$ac_objext; then
5957 break
5958 else
5959 $as_echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5965 rm -f core conftest.err conftest.$ac_objext
5966 CC="$CC -n32"
5967 rm -f conftest.$ac_objext
5968 if { (ac_try="$ac_compile"
5969 case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972 esac
5973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5974 $as_echo "$ac_try_echo") >&5
5975 (eval "$ac_compile") 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } && {
5982 test -z "$ac_c_werror_flag" ||
5983 test ! -s conftest.err
5984 } && test -s conftest.$ac_objext; then
5985 ac_cv_sys_largefile_CC=' -n32'; break
5986 else
5987 $as_echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5993 rm -f core conftest.err conftest.$ac_objext
5994 break
5995 done
5996 CC=$ac_save_CC
5997 rm -f conftest.$ac_ext
6000 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6001 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6002 if test "$ac_cv_sys_largefile_CC" != no; then
6003 CC=$CC$ac_cv_sys_largefile_CC
6006 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6007 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6008 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6009 $as_echo_n "(cached) " >&6
6010 else
6011 while :; do
6012 cat >conftest.$ac_ext <<_ACEOF
6013 /* confdefs.h. */
6014 _ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6018 #include <sys/types.h>
6019 /* Check that off_t can represent 2**63 - 1 correctly.
6020 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6021 since some C++ compilers masquerading as C compilers
6022 incorrectly reject 9223372036854775807. */
6023 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6025 && LARGE_OFF_T % 2147483647 == 1)
6026 ? 1 : -1];
6028 main ()
6032 return 0;
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6037 case "(($ac_try" in
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6040 esac
6041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6042 $as_echo "$ac_try_echo") >&5
6043 (eval "$ac_compile") 2>conftest.er1
6044 ac_status=$?
6045 grep -v '^ *+' conftest.er1 >conftest.err
6046 rm -f conftest.er1
6047 cat conftest.err >&5
6048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } && {
6050 test -z "$ac_c_werror_flag" ||
6051 test ! -s conftest.err
6052 } && test -s conftest.$ac_objext; then
6053 ac_cv_sys_file_offset_bits=no; break
6054 else
6055 $as_echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #define _FILE_OFFSET_BITS 64
6069 #include <sys/types.h>
6070 /* Check that off_t can represent 2**63 - 1 correctly.
6071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6072 since some C++ compilers masquerading as C compilers
6073 incorrectly reject 9223372036854775807. */
6074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6076 && LARGE_OFF_T % 2147483647 == 1)
6077 ? 1 : -1];
6079 main ()
6083 return 0;
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6093 $as_echo "$ac_try_echo") >&5
6094 (eval "$ac_compile") 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && {
6101 test -z "$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 } && test -s conftest.$ac_objext; then
6104 ac_cv_sys_file_offset_bits=64; break
6105 else
6106 $as_echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 ac_cv_sys_file_offset_bits=unknown
6114 break
6115 done
6117 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6118 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6119 case $ac_cv_sys_file_offset_bits in #(
6120 no | unknown) ;;
6122 cat >>confdefs.h <<_ACEOF
6123 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6124 _ACEOF
6126 esac
6127 rm -rf conftest*
6128 if test $ac_cv_sys_file_offset_bits = unknown; then
6129 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6130 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6131 if test "${ac_cv_sys_large_files+set}" = set; then
6132 $as_echo_n "(cached) " >&6
6133 else
6134 while :; do
6135 cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h. */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #include <sys/types.h>
6142 /* Check that off_t can represent 2**63 - 1 correctly.
6143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6144 since some C++ compilers masquerading as C compilers
6145 incorrectly reject 9223372036854775807. */
6146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6148 && LARGE_OFF_T % 2147483647 == 1)
6149 ? 1 : -1];
6151 main ()
6155 return 0;
6157 _ACEOF
6158 rm -f conftest.$ac_objext
6159 if { (ac_try="$ac_compile"
6160 case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163 esac
6164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6165 $as_echo "$ac_try_echo") >&5
6166 (eval "$ac_compile") 2>conftest.er1
6167 ac_status=$?
6168 grep -v '^ *+' conftest.er1 >conftest.err
6169 rm -f conftest.er1
6170 cat conftest.err >&5
6171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } && {
6173 test -z "$ac_c_werror_flag" ||
6174 test ! -s conftest.err
6175 } && test -s conftest.$ac_objext; then
6176 ac_cv_sys_large_files=no; break
6177 else
6178 $as_echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 #define _LARGE_FILES 1
6192 #include <sys/types.h>
6193 /* Check that off_t can represent 2**63 - 1 correctly.
6194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6195 since some C++ compilers masquerading as C compilers
6196 incorrectly reject 9223372036854775807. */
6197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6199 && LARGE_OFF_T % 2147483647 == 1)
6200 ? 1 : -1];
6202 main ()
6206 return 0;
6208 _ACEOF
6209 rm -f conftest.$ac_objext
6210 if { (ac_try="$ac_compile"
6211 case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214 esac
6215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6216 $as_echo "$ac_try_echo") >&5
6217 (eval "$ac_compile") 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && {
6224 test -z "$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest.$ac_objext; then
6227 ac_cv_sys_large_files=1; break
6228 else
6229 $as_echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 ac_cv_sys_large_files=unknown
6237 break
6238 done
6240 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6241 $as_echo "$ac_cv_sys_large_files" >&6; }
6242 case $ac_cv_sys_large_files in #(
6243 no | unknown) ;;
6245 cat >>confdefs.h <<_ACEOF
6246 #define _LARGE_FILES $ac_cv_sys_large_files
6247 _ACEOF
6249 esac
6250 rm -rf conftest*
6256 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6257 ### be located in either /usr/lib64 or /usr/lib.
6258 ### In some rare cases, /usr/lib64 exists but does not contain the
6259 ### relevant files (bug#1287). Hence test for crtn.o.
6260 case "${canonical}" in
6261 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6262 if test -e /usr/lib64/crtn.o; then
6264 cat >>confdefs.h <<\_ACEOF
6265 #define HAVE_LIB64_DIR 1
6266 _ACEOF
6269 esac
6274 if test "${with_sound}" != "no"; then
6275 # Sound support for GNU/Linux and the free BSDs.
6279 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6283 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6284 $as_echo_n "checking for $ac_header... " >&6; }
6285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 $as_echo_n "(cached) " >&6
6288 ac_res=`eval 'as_val=${'$as_ac_Header'}
6289 $as_echo "$as_val"'`
6290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6291 $as_echo "$ac_res" >&6; }
6292 else
6293 # Is the header compilable?
6294 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6295 $as_echo_n "checking $ac_header usability... " >&6; }
6296 cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h. */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 $ac_includes_default
6303 #include <$ac_header>
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6307 case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310 esac
6311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6312 $as_echo "$ac_try_echo") >&5
6313 (eval "$ac_compile") 2>conftest.er1
6314 ac_status=$?
6315 grep -v '^ *+' conftest.er1 >conftest.err
6316 rm -f conftest.er1
6317 cat conftest.err >&5
6318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && {
6320 test -z "$ac_c_werror_flag" ||
6321 test ! -s conftest.err
6322 } && test -s conftest.$ac_objext; then
6323 ac_header_compiler=yes
6324 else
6325 $as_echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 ac_header_compiler=no
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6333 $as_echo "$ac_header_compiler" >&6; }
6335 # Is the header present?
6336 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6337 $as_echo_n "checking $ac_header presence... " >&6; }
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 #include <$ac_header>
6345 _ACEOF
6346 if { (ac_try="$ac_cpp conftest.$ac_ext"
6347 case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350 esac
6351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6352 $as_echo "$ac_try_echo") >&5
6353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } >/dev/null && {
6360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6361 test ! -s conftest.err
6362 }; then
6363 ac_header_preproc=yes
6364 else
6365 $as_echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 ac_header_preproc=no
6371 rm -f conftest.err conftest.$ac_ext
6372 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6373 $as_echo "$ac_header_preproc" >&6; }
6375 # So? What about this header?
6376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6377 yes:no: )
6378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6379 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6381 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6382 ac_header_preproc=yes
6384 no:yes:* )
6385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6386 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6388 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6390 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6392 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6394 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6396 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6399 esac
6400 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6401 $as_echo_n "checking for $ac_header... " >&6; }
6402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6403 $as_echo_n "(cached) " >&6
6404 else
6405 eval "$as_ac_Header=\$ac_header_preproc"
6407 ac_res=`eval 'as_val=${'$as_ac_Header'}
6408 $as_echo "$as_val"'`
6409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6410 $as_echo "$ac_res" >&6; }
6413 if test `eval 'as_val=${'$as_ac_Header'}
6414 $as_echo "$as_val"'` = yes; then
6415 cat >>confdefs.h <<_ACEOF
6416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6417 _ACEOF
6421 done
6423 # Emulation library used on NetBSD.
6424 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6425 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6426 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6427 $as_echo_n "(cached) " >&6
6428 else
6429 ac_check_lib_save_LIBS=$LIBS
6430 LIBS="-lossaudio $LIBS"
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6438 /* Override any GCC internal prototype to avoid an error.
6439 Use char because int might match the return type of a GCC
6440 builtin and then its argument prototype would still apply. */
6441 #ifdef __cplusplus
6442 extern "C"
6443 #endif
6444 char _oss_ioctl ();
6446 main ()
6448 return _oss_ioctl ();
6450 return 0;
6452 _ACEOF
6453 rm -f conftest.$ac_objext conftest$ac_exeext
6454 if { (ac_try="$ac_link"
6455 case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458 esac
6459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6460 $as_echo "$ac_try_echo") >&5
6461 (eval "$ac_link") 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && {
6468 test -z "$ac_c_werror_flag" ||
6469 test ! -s conftest.err
6470 } && test -s conftest$ac_exeext && {
6471 test "$cross_compiling" = yes ||
6472 $as_test_x conftest$ac_exeext
6473 }; then
6474 ac_cv_lib_ossaudio__oss_ioctl=yes
6475 else
6476 $as_echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6479 ac_cv_lib_ossaudio__oss_ioctl=no
6482 rm -rf conftest.dSYM
6483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6484 conftest$ac_exeext conftest.$ac_ext
6485 LIBS=$ac_check_lib_save_LIBS
6487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6488 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6489 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6490 LIBSOUND=-lossaudio
6491 else
6492 LIBSOUND=
6497 ALSA_REQUIRED=1.0.0
6498 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6500 succeeded=no
6502 # Extract the first word of "pkg-config", so it can be a program name with args.
6503 set dummy pkg-config; ac_word=$2
6504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6507 $as_echo_n "(cached) " >&6
6508 else
6509 case $PKG_CONFIG in
6510 [\\/]* | ?:[\\/]*)
6511 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6525 done
6526 done
6527 IFS=$as_save_IFS
6529 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6531 esac
6533 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6534 if test -n "$PKG_CONFIG"; then
6535 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6536 $as_echo "$PKG_CONFIG" >&6; }
6537 else
6538 { $as_echo "$as_me:$LINENO: result: no" >&5
6539 $as_echo "no" >&6; }
6544 if test "$PKG_CONFIG" = "no" ; then
6545 HAVE_ALSA=no
6546 else
6547 PKG_CONFIG_MIN_VERSION=0.9.0
6548 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6549 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6550 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6552 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6553 { $as_echo "$as_me:$LINENO: result: yes" >&5
6554 $as_echo "yes" >&6; }
6555 succeeded=yes
6557 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6558 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6559 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6560 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6561 $as_echo "$ALSA_CFLAGS" >&6; }
6563 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6564 $as_echo_n "checking ALSA_LIBS... " >&6; }
6565 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6566 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6567 $as_echo "$ALSA_LIBS" >&6; }
6568 else
6569 { $as_echo "$as_me:$LINENO: result: no" >&5
6570 $as_echo "no" >&6; }
6571 ALSA_CFLAGS=""
6572 ALSA_LIBS=""
6573 ## If we have a custom action on failure, don't print errors, but
6574 ## do set a variable so people can do so.
6575 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6581 else
6582 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6583 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6587 if test $succeeded = yes; then
6588 HAVE_ALSA=yes
6589 else
6590 HAVE_ALSA=no
6593 if test $HAVE_ALSA = yes; then
6594 SAVE_CFLAGS="$CFLAGS"
6595 SAVE_LDFLAGS="$LDFLAGS"
6596 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6597 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6598 cat >conftest.$ac_ext <<_ACEOF
6599 /* confdefs.h. */
6600 _ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 #include <asoundlib.h>
6606 main ()
6608 snd_lib_error_set_handler (0);
6610 return 0;
6612 _ACEOF
6613 rm -f conftest.$ac_objext
6614 if { (ac_try="$ac_compile"
6615 case "(($ac_try" in
6616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6617 *) ac_try_echo=$ac_try;;
6618 esac
6619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6620 $as_echo "$ac_try_echo") >&5
6621 (eval "$ac_compile") 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } && {
6628 test -z "$ac_c_werror_flag" ||
6629 test ! -s conftest.err
6630 } && test -s conftest.$ac_objext; then
6631 emacs_alsa_normal=yes
6632 else
6633 $as_echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6636 emacs_alsa_normal=no
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 if test "$emacs_alsa_normal" != yes; then
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h. */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 #include <alsa/asoundlib.h>
6649 main ()
6651 snd_lib_error_set_handler (0);
6653 return 0;
6655 _ACEOF
6656 rm -f conftest.$ac_objext
6657 if { (ac_try="$ac_compile"
6658 case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661 esac
6662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6663 $as_echo "$ac_try_echo") >&5
6664 (eval "$ac_compile") 2>conftest.er1
6665 ac_status=$?
6666 grep -v '^ *+' conftest.er1 >conftest.err
6667 rm -f conftest.er1
6668 cat conftest.err >&5
6669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && {
6671 test -z "$ac_c_werror_flag" ||
6672 test ! -s conftest.err
6673 } && test -s conftest.$ac_objext; then
6674 emacs_alsa_subdir=yes
6675 else
6676 $as_echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6679 emacs_alsa_subdir=no
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 if test "$emacs_alsa_subdir" != yes; then
6684 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6685 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6686 { (exit 1); exit 1; }; }
6688 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6691 CFLAGS="$SAVE_CFLAGS"
6692 LDFLAGS="$SAVE_LDFLAGS"
6693 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6694 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6696 cat >>confdefs.h <<\_ACEOF
6697 #define HAVE_ALSA 1
6698 _ACEOF
6729 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6730 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6731 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6732 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6733 sys/utsname.h pwd.h utmp.h
6735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6738 $as_echo_n "checking for $ac_header... " >&6; }
6739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6740 $as_echo_n "(cached) " >&6
6742 ac_res=`eval 'as_val=${'$as_ac_Header'}
6743 $as_echo "$as_val"'`
6744 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6745 $as_echo "$ac_res" >&6; }
6746 else
6747 # Is the header compilable?
6748 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6749 $as_echo_n "checking $ac_header usability... " >&6; }
6750 cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h. */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 $ac_includes_default
6757 #include <$ac_header>
6758 _ACEOF
6759 rm -f conftest.$ac_objext
6760 if { (ac_try="$ac_compile"
6761 case "(($ac_try" in
6762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763 *) ac_try_echo=$ac_try;;
6764 esac
6765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6766 $as_echo "$ac_try_echo") >&5
6767 (eval "$ac_compile") 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && {
6774 test -z "$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6776 } && test -s conftest.$ac_objext; then
6777 ac_header_compiler=yes
6778 else
6779 $as_echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_header_compiler=no
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6787 $as_echo "$ac_header_compiler" >&6; }
6789 # Is the header present?
6790 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6791 $as_echo_n "checking $ac_header presence... " >&6; }
6792 cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h. */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <$ac_header>
6799 _ACEOF
6800 if { (ac_try="$ac_cpp conftest.$ac_ext"
6801 case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804 esac
6805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6806 $as_echo "$ac_try_echo") >&5
6807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } >/dev/null && {
6814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6815 test ! -s conftest.err
6816 }; then
6817 ac_header_preproc=yes
6818 else
6819 $as_echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 ac_header_preproc=no
6825 rm -f conftest.err conftest.$ac_ext
6826 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6827 $as_echo "$ac_header_preproc" >&6; }
6829 # So? What about this header?
6830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6831 yes:no: )
6832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6833 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6836 ac_header_preproc=yes
6838 no:yes:* )
6839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6840 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6842 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6844 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6846 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6848 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6850 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6853 esac
6854 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6855 $as_echo_n "checking for $ac_header... " >&6; }
6856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6857 $as_echo_n "(cached) " >&6
6858 else
6859 eval "$as_ac_Header=\$ac_header_preproc"
6861 ac_res=`eval 'as_val=${'$as_ac_Header'}
6862 $as_echo "$as_val"'`
6863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6864 $as_echo "$ac_res" >&6; }
6867 if test `eval 'as_val=${'$as_ac_Header'}
6868 $as_echo "$as_val"'` = yes; then
6869 cat >>confdefs.h <<_ACEOF
6870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6871 _ACEOF
6875 done
6878 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6879 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 #include <sys/personality.h>
6888 main ()
6890 personality (PER_LINUX32)
6892 return 0;
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (ac_try="$ac_compile"
6897 case "(($ac_try" in
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6900 esac
6901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6902 $as_echo "$ac_try_echo") >&5
6903 (eval "$ac_compile") 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest.$ac_objext; then
6913 emacs_cv_personality_linux32=yes
6914 else
6915 $as_echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 emacs_cv_personality_linux32=no
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6923 $as_echo "$emacs_cv_personality_linux32" >&6; }
6925 if test $emacs_cv_personality_linux32 = yes; then
6927 cat >>confdefs.h <<\_ACEOF
6928 #define HAVE_PERSONALITY_LINUX32 1
6929 _ACEOF
6934 for ac_header in term.h
6936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6938 $as_echo_n "checking for $ac_header... " >&6; }
6939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6940 $as_echo_n "(cached) " >&6
6941 else
6942 cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h. */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 #include <$ac_header>
6949 _ACEOF
6950 if { (ac_try="$ac_cpp conftest.$ac_ext"
6951 case "(($ac_try" in
6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6954 esac
6955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6956 $as_echo "$ac_try_echo") >&5
6957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } >/dev/null && {
6964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 }; then
6967 eval "$as_ac_Header=yes"
6968 else
6969 $as_echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 eval "$as_ac_Header=no"
6975 rm -f conftest.err conftest.$ac_ext
6977 ac_res=`eval 'as_val=${'$as_ac_Header'}
6978 $as_echo "$as_val"'`
6979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6980 $as_echo "$ac_res" >&6; }
6981 if test `eval 'as_val=${'$as_ac_Header'}
6982 $as_echo "$as_val"'` = yes; then
6983 cat >>confdefs.h <<_ACEOF
6984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6985 _ACEOF
6989 done
6991 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6992 $as_echo_n "checking for ANSI C header files... " >&6; }
6993 if test "${ac_cv_header_stdc+set}" = set; then
6994 $as_echo_n "(cached) " >&6
6995 else
6996 cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h. */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 #include <stdlib.h>
7003 #include <stdarg.h>
7004 #include <string.h>
7005 #include <float.h>
7008 main ()
7012 return 0;
7014 _ACEOF
7015 rm -f conftest.$ac_objext
7016 if { (ac_try="$ac_compile"
7017 case "(($ac_try" in
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7020 esac
7021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7022 $as_echo "$ac_try_echo") >&5
7023 (eval "$ac_compile") 2>conftest.er1
7024 ac_status=$?
7025 grep -v '^ *+' conftest.er1 >conftest.err
7026 rm -f conftest.er1
7027 cat conftest.err >&5
7028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } && {
7030 test -z "$ac_c_werror_flag" ||
7031 test ! -s conftest.err
7032 } && test -s conftest.$ac_objext; then
7033 ac_cv_header_stdc=yes
7034 else
7035 $as_echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7038 ac_cv_header_stdc=no
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043 if test $ac_cv_header_stdc = yes; then
7044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 #include <string.h>
7053 _ACEOF
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055 $EGREP "memchr" >/dev/null 2>&1; then
7057 else
7058 ac_cv_header_stdc=no
7060 rm -f conftest*
7064 if test $ac_cv_header_stdc = yes; then
7065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7066 cat >conftest.$ac_ext <<_ACEOF
7067 /* confdefs.h. */
7068 _ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h. */
7072 #include <stdlib.h>
7074 _ACEOF
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "free" >/dev/null 2>&1; then
7078 else
7079 ac_cv_header_stdc=no
7081 rm -f conftest*
7085 if test $ac_cv_header_stdc = yes; then
7086 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7087 if test "$cross_compiling" = yes; then
7089 else
7090 cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h. */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 #include <ctype.h>
7097 #include <stdlib.h>
7098 #if ((' ' & 0x0FF) == 0x020)
7099 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7100 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7101 #else
7102 # define ISLOWER(c) \
7103 (('a' <= (c) && (c) <= 'i') \
7104 || ('j' <= (c) && (c) <= 'r') \
7105 || ('s' <= (c) && (c) <= 'z'))
7106 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7107 #endif
7109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7111 main ()
7113 int i;
7114 for (i = 0; i < 256; i++)
7115 if (XOR (islower (i), ISLOWER (i))
7116 || toupper (i) != TOUPPER (i))
7117 return 2;
7118 return 0;
7120 _ACEOF
7121 rm -f conftest$ac_exeext
7122 if { (ac_try="$ac_link"
7123 case "(($ac_try" in
7124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7126 esac
7127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7128 $as_echo "$ac_try_echo") >&5
7129 (eval "$ac_link") 2>&5
7130 ac_status=$?
7131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7133 { (case "(($ac_try" in
7134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7136 esac
7137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7138 $as_echo "$ac_try_echo") >&5
7139 (eval "$ac_try") 2>&5
7140 ac_status=$?
7141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7144 else
7145 $as_echo "$as_me: program exited with status $ac_status" >&5
7146 $as_echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 ( exit $ac_status )
7150 ac_cv_header_stdc=no
7152 rm -rf conftest.dSYM
7153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7159 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7160 $as_echo "$ac_cv_header_stdc" >&6; }
7161 if test $ac_cv_header_stdc = yes; then
7163 cat >>confdefs.h <<\_ACEOF
7164 #define STDC_HEADERS 1
7165 _ACEOF
7169 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7170 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7171 if test "${ac_cv_header_time+set}" = set; then
7172 $as_echo_n "(cached) " >&6
7173 else
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h. */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 #include <sys/types.h>
7181 #include <sys/time.h>
7182 #include <time.h>
7185 main ()
7187 if ((struct tm *) 0)
7188 return 0;
7190 return 0;
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7195 case "(($ac_try" in
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7198 esac
7199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7200 $as_echo "$ac_try_echo") >&5
7201 (eval "$ac_compile") 2>conftest.er1
7202 ac_status=$?
7203 grep -v '^ *+' conftest.er1 >conftest.err
7204 rm -f conftest.er1
7205 cat conftest.err >&5
7206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest.$ac_objext; then
7211 ac_cv_header_time=yes
7212 else
7213 $as_echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7216 ac_cv_header_time=no
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7222 $as_echo "$ac_cv_header_time" >&6; }
7223 if test $ac_cv_header_time = yes; then
7225 cat >>confdefs.h <<\_ACEOF
7226 #define TIME_WITH_SYS_TIME 1
7227 _ACEOF
7231 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7232 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7233 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7234 $as_echo_n "(cached) " >&6
7235 else
7236 cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h. */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 $ac_includes_default
7244 main ()
7246 #ifndef sys_siglist
7247 (void) sys_siglist;
7248 #endif
7251 return 0;
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (ac_try="$ac_compile"
7256 case "(($ac_try" in
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7259 esac
7260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7261 $as_echo "$ac_try_echo") >&5
7262 (eval "$ac_compile") 2>conftest.er1
7263 ac_status=$?
7264 grep -v '^ *+' conftest.er1 >conftest.err
7265 rm -f conftest.er1
7266 cat conftest.err >&5
7267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && {
7269 test -z "$ac_c_werror_flag" ||
7270 test ! -s conftest.err
7271 } && test -s conftest.$ac_objext; then
7272 ac_cv_have_decl_sys_siglist=yes
7273 else
7274 $as_echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7277 ac_cv_have_decl_sys_siglist=no
7280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7283 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7284 if test $ac_cv_have_decl_sys_siglist = yes; then
7286 cat >>confdefs.h <<_ACEOF
7287 #define HAVE_DECL_SYS_SIGLIST 1
7288 _ACEOF
7291 else
7292 cat >>confdefs.h <<_ACEOF
7293 #define HAVE_DECL_SYS_SIGLIST 0
7294 _ACEOF
7300 if test $ac_cv_have_decl_sys_siglist != yes; then
7301 # For Tru64, at least:
7302 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7303 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7304 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7305 $as_echo_n "(cached) " >&6
7306 else
7307 cat >conftest.$ac_ext <<_ACEOF
7308 /* confdefs.h. */
7309 _ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7313 $ac_includes_default
7315 main ()
7317 #ifndef __sys_siglist
7318 (void) __sys_siglist;
7319 #endif
7322 return 0;
7324 _ACEOF
7325 rm -f conftest.$ac_objext
7326 if { (ac_try="$ac_compile"
7327 case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330 esac
7331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7332 $as_echo "$ac_try_echo") >&5
7333 (eval "$ac_compile") 2>conftest.er1
7334 ac_status=$?
7335 grep -v '^ *+' conftest.er1 >conftest.err
7336 rm -f conftest.er1
7337 cat conftest.err >&5
7338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && {
7340 test -z "$ac_c_werror_flag" ||
7341 test ! -s conftest.err
7342 } && test -s conftest.$ac_objext; then
7343 ac_cv_have_decl___sys_siglist=yes
7344 else
7345 $as_echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 ac_cv_have_decl___sys_siglist=no
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7354 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7355 if test $ac_cv_have_decl___sys_siglist = yes; then
7357 cat >>confdefs.h <<_ACEOF
7358 #define HAVE_DECL___SYS_SIGLIST 1
7359 _ACEOF
7362 else
7363 cat >>confdefs.h <<_ACEOF
7364 #define HAVE_DECL___SYS_SIGLIST 0
7365 _ACEOF
7371 if test $ac_cv_have_decl___sys_siglist = yes; then
7373 cat >>confdefs.h <<\_ACEOF
7374 #define sys_siglist __sys_siglist
7375 _ACEOF
7379 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7380 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7381 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7382 $as_echo_n "(cached) " >&6
7383 else
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 #include <sys/types.h>
7391 #include <sys/wait.h>
7392 #ifndef WEXITSTATUS
7393 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7394 #endif
7395 #ifndef WIFEXITED
7396 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7397 #endif
7400 main ()
7402 int s;
7403 wait (&s);
7404 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7406 return 0;
7408 _ACEOF
7409 rm -f conftest.$ac_objext
7410 if { (ac_try="$ac_compile"
7411 case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414 esac
7415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7416 $as_echo "$ac_try_echo") >&5
7417 (eval "$ac_compile") 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest.$ac_objext; then
7427 ac_cv_header_sys_wait_h=yes
7428 else
7429 $as_echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7432 ac_cv_header_sys_wait_h=no
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7438 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7439 if test $ac_cv_header_sys_wait_h = yes; then
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_SYS_WAIT_H 1
7443 _ACEOF
7448 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7449 $as_echo_n "checking for struct utimbuf... " >&6; }
7450 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7451 $as_echo_n "(cached) " >&6
7452 else
7453 cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h. */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 #ifdef TIME_WITH_SYS_TIME
7460 #include <sys/time.h>
7461 #include <time.h>
7462 #else
7463 #ifdef HAVE_SYS_TIME_H
7464 #include <sys/time.h>
7465 #else
7466 #include <time.h>
7467 #endif
7468 #endif
7469 #ifdef HAVE_UTIME_H
7470 #include <utime.h>
7471 #endif
7473 main ()
7475 static struct utimbuf x; x.actime = x.modtime;
7477 return 0;
7479 _ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (ac_try="$ac_compile"
7482 case "(($ac_try" in
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7485 esac
7486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7487 $as_echo "$ac_try_echo") >&5
7488 (eval "$ac_compile") 2>conftest.er1
7489 ac_status=$?
7490 grep -v '^ *+' conftest.er1 >conftest.err
7491 rm -f conftest.er1
7492 cat conftest.err >&5
7493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_c_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest.$ac_objext; then
7498 emacs_cv_struct_utimbuf=yes
7499 else
7500 $as_echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7503 emacs_cv_struct_utimbuf=no
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7509 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7510 if test $emacs_cv_struct_utimbuf = yes; then
7512 cat >>confdefs.h <<\_ACEOF
7513 #define HAVE_STRUCT_UTIMBUF 1
7514 _ACEOF
7518 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7519 $as_echo_n "checking return type of signal handlers... " >&6; }
7520 if test "${ac_cv_type_signal+set}" = set; then
7521 $as_echo_n "(cached) " >&6
7522 else
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 #include <sys/types.h>
7530 #include <signal.h>
7533 main ()
7535 return *(signal (0, 0)) (0) == 1;
7537 return 0;
7539 _ACEOF
7540 rm -f conftest.$ac_objext
7541 if { (ac_try="$ac_compile"
7542 case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7545 esac
7546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7547 $as_echo "$ac_try_echo") >&5
7548 (eval "$ac_compile") 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && {
7555 test -z "$ac_c_werror_flag" ||
7556 test ! -s conftest.err
7557 } && test -s conftest.$ac_objext; then
7558 ac_cv_type_signal=int
7559 else
7560 $as_echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 ac_cv_type_signal=void
7566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7569 $as_echo "$ac_cv_type_signal" >&6; }
7571 cat >>confdefs.h <<_ACEOF
7572 #define RETSIGTYPE $ac_cv_type_signal
7573 _ACEOF
7577 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7578 $as_echo_n "checking for speed_t... " >&6; }
7579 if test "${emacs_cv_speed_t+set}" = set; then
7580 $as_echo_n "(cached) " >&6
7581 else
7582 cat >conftest.$ac_ext <<_ACEOF
7583 /* confdefs.h. */
7584 _ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7588 #include <termios.h>
7590 main ()
7592 speed_t x = 1;
7594 return 0;
7596 _ACEOF
7597 rm -f conftest.$ac_objext
7598 if { (ac_try="$ac_compile"
7599 case "(($ac_try" in
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7602 esac
7603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7604 $as_echo "$ac_try_echo") >&5
7605 (eval "$ac_compile") 2>conftest.er1
7606 ac_status=$?
7607 grep -v '^ *+' conftest.er1 >conftest.err
7608 rm -f conftest.er1
7609 cat conftest.err >&5
7610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest.$ac_objext; then
7615 emacs_cv_speed_t=yes
7616 else
7617 $as_echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 emacs_cv_speed_t=no
7623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7626 $as_echo "$emacs_cv_speed_t" >&6; }
7627 if test $emacs_cv_speed_t = yes; then
7629 cat >>confdefs.h <<\_ACEOF
7630 #define HAVE_SPEED_T 1
7631 _ACEOF
7635 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7636 $as_echo_n "checking for struct timeval... " >&6; }
7637 if test "${emacs_cv_struct_timeval+set}" = set; then
7638 $as_echo_n "(cached) " >&6
7639 else
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h. */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 #ifdef TIME_WITH_SYS_TIME
7647 #include <sys/time.h>
7648 #include <time.h>
7649 #else
7650 #ifdef HAVE_SYS_TIME_H
7651 #include <sys/time.h>
7652 #else
7653 #include <time.h>
7654 #endif
7655 #endif
7657 main ()
7659 static struct timeval x; x.tv_sec = x.tv_usec;
7661 return 0;
7663 _ACEOF
7664 rm -f conftest.$ac_objext
7665 if { (ac_try="$ac_compile"
7666 case "(($ac_try" in
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7669 esac
7670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7671 $as_echo "$ac_try_echo") >&5
7672 (eval "$ac_compile") 2>conftest.er1
7673 ac_status=$?
7674 grep -v '^ *+' conftest.er1 >conftest.err
7675 rm -f conftest.er1
7676 cat conftest.err >&5
7677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } && {
7679 test -z "$ac_c_werror_flag" ||
7680 test ! -s conftest.err
7681 } && test -s conftest.$ac_objext; then
7682 emacs_cv_struct_timeval=yes
7683 else
7684 $as_echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7687 emacs_cv_struct_timeval=no
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7693 $as_echo "$emacs_cv_struct_timeval" >&6; }
7694 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7695 if test $emacs_cv_struct_timeval = yes; then
7697 cat >>confdefs.h <<\_ACEOF
7698 #define HAVE_TIMEVAL 1
7699 _ACEOF
7703 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7704 $as_echo_n "checking for struct exception... " >&6; }
7705 if test "${emacs_cv_struct_exception+set}" = set; then
7706 $as_echo_n "(cached) " >&6
7707 else
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h. */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 #include <math.h>
7716 main ()
7718 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7720 return 0;
7722 _ACEOF
7723 rm -f conftest.$ac_objext
7724 if { (ac_try="$ac_compile"
7725 case "(($ac_try" in
7726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7727 *) ac_try_echo=$ac_try;;
7728 esac
7729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7730 $as_echo "$ac_try_echo") >&5
7731 (eval "$ac_compile") 2>conftest.er1
7732 ac_status=$?
7733 grep -v '^ *+' conftest.er1 >conftest.err
7734 rm -f conftest.er1
7735 cat conftest.err >&5
7736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } && {
7738 test -z "$ac_c_werror_flag" ||
7739 test ! -s conftest.err
7740 } && test -s conftest.$ac_objext; then
7741 emacs_cv_struct_exception=yes
7742 else
7743 $as_echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7746 emacs_cv_struct_exception=no
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7752 $as_echo "$emacs_cv_struct_exception" >&6; }
7753 HAVE_EXCEPTION=$emacs_cv_struct_exception
7754 if test $emacs_cv_struct_exception != yes; then
7756 cat >>confdefs.h <<\_ACEOF
7757 #define NO_MATHERR 1
7758 _ACEOF
7763 for ac_header in sys/socket.h
7765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7768 $as_echo_n "checking for $ac_header... " >&6; }
7769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7770 $as_echo_n "(cached) " >&6
7772 ac_res=`eval 'as_val=${'$as_ac_Header'}
7773 $as_echo "$as_val"'`
7774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7775 $as_echo "$ac_res" >&6; }
7776 else
7777 # Is the header compilable?
7778 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7779 $as_echo_n "checking $ac_header usability... " >&6; }
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h. */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 $ac_includes_default
7787 #include <$ac_header>
7788 _ACEOF
7789 rm -f conftest.$ac_objext
7790 if { (ac_try="$ac_compile"
7791 case "(($ac_try" in
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7794 esac
7795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7796 $as_echo "$ac_try_echo") >&5
7797 (eval "$ac_compile") 2>conftest.er1
7798 ac_status=$?
7799 grep -v '^ *+' conftest.er1 >conftest.err
7800 rm -f conftest.er1
7801 cat conftest.err >&5
7802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.$ac_objext; then
7807 ac_header_compiler=yes
7808 else
7809 $as_echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 ac_header_compiler=no
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7817 $as_echo "$ac_header_compiler" >&6; }
7819 # Is the header present?
7820 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7821 $as_echo_n "checking $ac_header presence... " >&6; }
7822 cat >conftest.$ac_ext <<_ACEOF
7823 /* confdefs.h. */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7828 #include <$ac_header>
7829 _ACEOF
7830 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
7844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 }; then
7847 ac_header_preproc=yes
7848 else
7849 $as_echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7852 ac_header_preproc=no
7855 rm -f conftest.err conftest.$ac_ext
7856 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7857 $as_echo "$ac_header_preproc" >&6; }
7859 # So? What about this header?
7860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7861 yes:no: )
7862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7863 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7866 ac_header_preproc=yes
7868 no:yes:* )
7869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7870 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7872 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7874 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7876 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7878 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7880 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7883 esac
7884 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7885 $as_echo_n "checking for $ac_header... " >&6; }
7886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7887 $as_echo_n "(cached) " >&6
7888 else
7889 eval "$as_ac_Header=\$ac_header_preproc"
7891 ac_res=`eval 'as_val=${'$as_ac_Header'}
7892 $as_echo "$as_val"'`
7893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7894 $as_echo "$ac_res" >&6; }
7897 if test `eval 'as_val=${'$as_ac_Header'}
7898 $as_echo "$as_val"'` = yes; then
7899 cat >>confdefs.h <<_ACEOF
7900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7901 _ACEOF
7905 done
7908 for ac_header in net/if.h
7910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7912 $as_echo_n "checking for $ac_header... " >&6; }
7913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7914 $as_echo_n "(cached) " >&6
7915 else
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h. */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 $ac_includes_default
7923 #if HAVE_SYS_SOCKET_H
7924 #include <sys/socket.h>
7925 #endif
7927 #include <$ac_header>
7928 _ACEOF
7929 rm -f conftest.$ac_objext
7930 if { (ac_try="$ac_compile"
7931 case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934 esac
7935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7936 $as_echo "$ac_try_echo") >&5
7937 (eval "$ac_compile") 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest.$ac_objext; then
7947 eval "$as_ac_Header=yes"
7948 else
7949 $as_echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 eval "$as_ac_Header=no"
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 ac_res=`eval 'as_val=${'$as_ac_Header'}
7958 $as_echo "$as_val"'`
7959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7960 $as_echo "$ac_res" >&6; }
7961 if test `eval 'as_val=${'$as_ac_Header'}
7962 $as_echo "$as_val"'` = yes; then
7963 cat >>confdefs.h <<_ACEOF
7964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7965 _ACEOF
7969 done
7972 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7973 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7974 if test "${ac_cv_struct_tm+set}" = set; then
7975 $as_echo_n "(cached) " >&6
7976 else
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 #include <sys/types.h>
7984 #include <time.h>
7987 main ()
7989 struct tm tm;
7990 int *p = &tm.tm_sec;
7991 return !p;
7993 return 0;
7995 _ACEOF
7996 rm -f conftest.$ac_objext
7997 if { (ac_try="$ac_compile"
7998 case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001 esac
8002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8003 $as_echo "$ac_try_echo") >&5
8004 (eval "$ac_compile") 2>conftest.er1
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
8009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } && {
8011 test -z "$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest.$ac_objext; then
8014 ac_cv_struct_tm=time.h
8015 else
8016 $as_echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8019 ac_cv_struct_tm=sys/time.h
8022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8025 $as_echo "$ac_cv_struct_tm" >&6; }
8026 if test $ac_cv_struct_tm = sys/time.h; then
8028 cat >>confdefs.h <<\_ACEOF
8029 #define TM_IN_SYS_TIME 1
8030 _ACEOF
8034 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8035 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8036 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8037 $as_echo_n "(cached) " >&6
8038 else
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h. */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 #include <sys/types.h>
8046 #include <$ac_cv_struct_tm>
8050 main ()
8052 static struct tm ac_aggr;
8053 if (ac_aggr.tm_zone)
8054 return 0;
8056 return 0;
8058 _ACEOF
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8061 case "(($ac_try" in
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8064 esac
8065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8066 $as_echo "$ac_try_echo") >&5
8067 (eval "$ac_compile") 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && {
8074 test -z "$ac_c_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest.$ac_objext; then
8077 ac_cv_member_struct_tm_tm_zone=yes
8078 else
8079 $as_echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8082 cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 #include <sys/types.h>
8089 #include <$ac_cv_struct_tm>
8093 main ()
8095 static struct tm ac_aggr;
8096 if (sizeof ac_aggr.tm_zone)
8097 return 0;
8099 return 0;
8101 _ACEOF
8102 rm -f conftest.$ac_objext
8103 if { (ac_try="$ac_compile"
8104 case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107 esac
8108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8109 $as_echo "$ac_try_echo") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest.$ac_objext; then
8120 ac_cv_member_struct_tm_tm_zone=yes
8121 else
8122 $as_echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 ac_cv_member_struct_tm_tm_zone=no
8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8134 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8135 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8137 cat >>confdefs.h <<_ACEOF
8138 #define HAVE_STRUCT_TM_TM_ZONE 1
8139 _ACEOF
8144 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8146 cat >>confdefs.h <<\_ACEOF
8147 #define HAVE_TM_ZONE 1
8148 _ACEOF
8150 else
8151 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8152 $as_echo_n "checking whether tzname is declared... " >&6; }
8153 if test "${ac_cv_have_decl_tzname+set}" = set; then
8154 $as_echo_n "(cached) " >&6
8155 else
8156 cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h. */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 #include <time.h>
8165 main ()
8167 #ifndef tzname
8168 (void) tzname;
8169 #endif
8172 return 0;
8174 _ACEOF
8175 rm -f conftest.$ac_objext
8176 if { (ac_try="$ac_compile"
8177 case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180 esac
8181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8182 $as_echo "$ac_try_echo") >&5
8183 (eval "$ac_compile") 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest.$ac_objext; then
8193 ac_cv_have_decl_tzname=yes
8194 else
8195 $as_echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_cv_have_decl_tzname=no
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8204 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8205 if test $ac_cv_have_decl_tzname = yes; then
8207 cat >>confdefs.h <<_ACEOF
8208 #define HAVE_DECL_TZNAME 1
8209 _ACEOF
8212 else
8213 cat >>confdefs.h <<_ACEOF
8214 #define HAVE_DECL_TZNAME 0
8215 _ACEOF
8221 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8222 $as_echo_n "checking for tzname... " >&6; }
8223 if test "${ac_cv_var_tzname+set}" = set; then
8224 $as_echo_n "(cached) " >&6
8225 else
8226 cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h. */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8232 #include <time.h>
8233 #if !HAVE_DECL_TZNAME
8234 extern char *tzname[];
8235 #endif
8238 main ()
8240 return tzname[0][0];
8242 return 0;
8244 _ACEOF
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8247 case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250 esac
8251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8252 $as_echo "$ac_try_echo") >&5
8253 (eval "$ac_link") 2>conftest.er1
8254 ac_status=$?
8255 grep -v '^ *+' conftest.er1 >conftest.err
8256 rm -f conftest.er1
8257 cat conftest.err >&5
8258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && {
8260 test -z "$ac_c_werror_flag" ||
8261 test ! -s conftest.err
8262 } && test -s conftest$ac_exeext && {
8263 test "$cross_compiling" = yes ||
8264 $as_test_x conftest$ac_exeext
8265 }; then
8266 ac_cv_var_tzname=yes
8267 else
8268 $as_echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 ac_cv_var_tzname=no
8274 rm -rf conftest.dSYM
8275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8276 conftest$ac_exeext conftest.$ac_ext
8278 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8279 $as_echo "$ac_cv_var_tzname" >&6; }
8280 if test $ac_cv_var_tzname = yes; then
8282 cat >>confdefs.h <<\_ACEOF
8283 #define HAVE_TZNAME 1
8284 _ACEOF
8289 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8290 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8291 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8292 $as_echo_n "(cached) " >&6
8293 else
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h. */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 #include <time.h>
8303 main ()
8305 static struct tm ac_aggr;
8306 if (ac_aggr.tm_gmtoff)
8307 return 0;
8309 return 0;
8311 _ACEOF
8312 rm -f conftest.$ac_objext
8313 if { (ac_try="$ac_compile"
8314 case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317 esac
8318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8319 $as_echo "$ac_try_echo") >&5
8320 (eval "$ac_compile") 2>conftest.er1
8321 ac_status=$?
8322 grep -v '^ *+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } && {
8327 test -z "$ac_c_werror_flag" ||
8328 test ! -s conftest.err
8329 } && test -s conftest.$ac_objext; then
8330 ac_cv_member_struct_tm_tm_gmtoff=yes
8331 else
8332 $as_echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h. */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 #include <time.h>
8344 main ()
8346 static struct tm ac_aggr;
8347 if (sizeof ac_aggr.tm_gmtoff)
8348 return 0;
8350 return 0;
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8355 case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358 esac
8359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8360 $as_echo "$ac_try_echo") >&5
8361 (eval "$ac_compile") 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } && {
8368 test -z "$ac_c_werror_flag" ||
8369 test ! -s conftest.err
8370 } && test -s conftest.$ac_objext; then
8371 ac_cv_member_struct_tm_tm_gmtoff=yes
8372 else
8373 $as_echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 ac_cv_member_struct_tm_tm_gmtoff=no
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8385 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8386 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8388 cat >>confdefs.h <<\_ACEOF
8389 #define HAVE_TM_GMTOFF 1
8390 _ACEOF
8394 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8395 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8396 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8397 $as_echo_n "(cached) " >&6
8398 else
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 #if HAVE_SYS_SOCKET_H
8407 #include <sys/socket.h>
8408 #endif
8409 #if HAVE_NET_IF_H
8410 #include <net/if.h>
8411 #endif
8414 main ()
8416 static struct ifreq ac_aggr;
8417 if (ac_aggr.ifr_flags)
8418 return 0;
8420 return 0;
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8425 case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428 esac
8429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8430 $as_echo "$ac_try_echo") >&5
8431 (eval "$ac_compile") 2>conftest.er1
8432 ac_status=$?
8433 grep -v '^ *+' conftest.er1 >conftest.err
8434 rm -f conftest.er1
8435 cat conftest.err >&5
8436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } && {
8438 test -z "$ac_c_werror_flag" ||
8439 test ! -s conftest.err
8440 } && test -s conftest.$ac_objext; then
8441 ac_cv_member_struct_ifreq_ifr_flags=yes
8442 else
8443 $as_echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h. */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 $ac_includes_default
8453 #if HAVE_SYS_SOCKET_H
8454 #include <sys/socket.h>
8455 #endif
8456 #if HAVE_NET_IF_H
8457 #include <net/if.h>
8458 #endif
8461 main ()
8463 static struct ifreq ac_aggr;
8464 if (sizeof ac_aggr.ifr_flags)
8465 return 0;
8467 return 0;
8469 _ACEOF
8470 rm -f conftest.$ac_objext
8471 if { (ac_try="$ac_compile"
8472 case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8475 esac
8476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8477 $as_echo "$ac_try_echo") >&5
8478 (eval "$ac_compile") 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } && {
8485 test -z "$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8487 } && test -s conftest.$ac_objext; then
8488 ac_cv_member_struct_ifreq_ifr_flags=yes
8489 else
8490 $as_echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 ac_cv_member_struct_ifreq_ifr_flags=no
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8502 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8503 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8505 cat >>confdefs.h <<_ACEOF
8506 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8507 _ACEOF
8511 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8512 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8513 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8514 $as_echo_n "(cached) " >&6
8515 else
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h. */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 #if HAVE_SYS_SOCKET_H
8524 #include <sys/socket.h>
8525 #endif
8526 #if HAVE_NET_IF_H
8527 #include <net/if.h>
8528 #endif
8531 main ()
8533 static struct ifreq ac_aggr;
8534 if (ac_aggr.ifr_hwaddr)
8535 return 0;
8537 return 0;
8539 _ACEOF
8540 rm -f conftest.$ac_objext
8541 if { (ac_try="$ac_compile"
8542 case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545 esac
8546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8547 $as_echo "$ac_try_echo") >&5
8548 (eval "$ac_compile") 2>conftest.er1
8549 ac_status=$?
8550 grep -v '^ *+' conftest.er1 >conftest.err
8551 rm -f conftest.er1
8552 cat conftest.err >&5
8553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } && {
8555 test -z "$ac_c_werror_flag" ||
8556 test ! -s conftest.err
8557 } && test -s conftest.$ac_objext; then
8558 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8559 else
8560 $as_echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #if HAVE_SYS_SOCKET_H
8571 #include <sys/socket.h>
8572 #endif
8573 #if HAVE_NET_IF_H
8574 #include <net/if.h>
8575 #endif
8578 main ()
8580 static struct ifreq ac_aggr;
8581 if (sizeof ac_aggr.ifr_hwaddr)
8582 return 0;
8584 return 0;
8586 _ACEOF
8587 rm -f conftest.$ac_objext
8588 if { (ac_try="$ac_compile"
8589 case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8592 esac
8593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8594 $as_echo "$ac_try_echo") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.$ac_objext; then
8605 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8606 else
8607 $as_echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8619 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8620 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8622 cat >>confdefs.h <<_ACEOF
8623 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8624 _ACEOF
8628 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8629 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8630 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8631 $as_echo_n "(cached) " >&6
8632 else
8633 cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h. */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 $ac_includes_default
8640 #if HAVE_SYS_SOCKET_H
8641 #include <sys/socket.h>
8642 #endif
8643 #if HAVE_NET_IF_H
8644 #include <net/if.h>
8645 #endif
8648 main ()
8650 static struct ifreq ac_aggr;
8651 if (ac_aggr.ifr_netmask)
8652 return 0;
8654 return 0;
8656 _ACEOF
8657 rm -f conftest.$ac_objext
8658 if { (ac_try="$ac_compile"
8659 case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662 esac
8663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8664 $as_echo "$ac_try_echo") >&5
8665 (eval "$ac_compile") 2>conftest.er1
8666 ac_status=$?
8667 grep -v '^ *+' conftest.er1 >conftest.err
8668 rm -f conftest.er1
8669 cat conftest.err >&5
8670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } && {
8672 test -z "$ac_c_werror_flag" ||
8673 test ! -s conftest.err
8674 } && test -s conftest.$ac_objext; then
8675 ac_cv_member_struct_ifreq_ifr_netmask=yes
8676 else
8677 $as_echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 #if HAVE_SYS_SOCKET_H
8688 #include <sys/socket.h>
8689 #endif
8690 #if HAVE_NET_IF_H
8691 #include <net/if.h>
8692 #endif
8695 main ()
8697 static struct ifreq ac_aggr;
8698 if (sizeof ac_aggr.ifr_netmask)
8699 return 0;
8701 return 0;
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8706 case "(($ac_try" in
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8709 esac
8710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8711 $as_echo "$ac_try_echo") >&5
8712 (eval "$ac_compile") 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } && {
8719 test -z "$ac_c_werror_flag" ||
8720 test ! -s conftest.err
8721 } && test -s conftest.$ac_objext; then
8722 ac_cv_member_struct_ifreq_ifr_netmask=yes
8723 else
8724 $as_echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8727 ac_cv_member_struct_ifreq_ifr_netmask=no
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8736 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8737 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8739 cat >>confdefs.h <<_ACEOF
8740 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8741 _ACEOF
8745 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8746 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8747 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8748 $as_echo_n "(cached) " >&6
8749 else
8750 cat >conftest.$ac_ext <<_ACEOF
8751 /* confdefs.h. */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 $ac_includes_default
8757 #if HAVE_SYS_SOCKET_H
8758 #include <sys/socket.h>
8759 #endif
8760 #if HAVE_NET_IF_H
8761 #include <net/if.h>
8762 #endif
8765 main ()
8767 static struct ifreq ac_aggr;
8768 if (ac_aggr.ifr_broadaddr)
8769 return 0;
8771 return 0;
8773 _ACEOF
8774 rm -f conftest.$ac_objext
8775 if { (ac_try="$ac_compile"
8776 case "(($ac_try" in
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8779 esac
8780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8781 $as_echo "$ac_try_echo") >&5
8782 (eval "$ac_compile") 2>conftest.er1
8783 ac_status=$?
8784 grep -v '^ *+' conftest.er1 >conftest.err
8785 rm -f conftest.er1
8786 cat conftest.err >&5
8787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } && {
8789 test -z "$ac_c_werror_flag" ||
8790 test ! -s conftest.err
8791 } && test -s conftest.$ac_objext; then
8792 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8793 else
8794 $as_echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h. */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 $ac_includes_default
8804 #if HAVE_SYS_SOCKET_H
8805 #include <sys/socket.h>
8806 #endif
8807 #if HAVE_NET_IF_H
8808 #include <net/if.h>
8809 #endif
8812 main ()
8814 static struct ifreq ac_aggr;
8815 if (sizeof ac_aggr.ifr_broadaddr)
8816 return 0;
8818 return 0;
8820 _ACEOF
8821 rm -f conftest.$ac_objext
8822 if { (ac_try="$ac_compile"
8823 case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826 esac
8827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8828 $as_echo "$ac_try_echo") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.$ac_objext; then
8839 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8840 else
8841 $as_echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8853 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8854 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8858 _ACEOF
8862 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8863 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8864 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8865 $as_echo_n "(cached) " >&6
8866 else
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 $ac_includes_default
8874 #if HAVE_SYS_SOCKET_H
8875 #include <sys/socket.h>
8876 #endif
8877 #if HAVE_NET_IF_H
8878 #include <net/if.h>
8879 #endif
8882 main ()
8884 static struct ifreq ac_aggr;
8885 if (ac_aggr.ifr_addr)
8886 return 0;
8888 return 0;
8890 _ACEOF
8891 rm -f conftest.$ac_objext
8892 if { (ac_try="$ac_compile"
8893 case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896 esac
8897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8898 $as_echo "$ac_try_echo") >&5
8899 (eval "$ac_compile") 2>conftest.er1
8900 ac_status=$?
8901 grep -v '^ *+' conftest.er1 >conftest.err
8902 rm -f conftest.er1
8903 cat conftest.err >&5
8904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest.$ac_objext; then
8909 ac_cv_member_struct_ifreq_ifr_addr=yes
8910 else
8911 $as_echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8914 cat >conftest.$ac_ext <<_ACEOF
8915 /* confdefs.h. */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920 $ac_includes_default
8921 #if HAVE_SYS_SOCKET_H
8922 #include <sys/socket.h>
8923 #endif
8924 #if HAVE_NET_IF_H
8925 #include <net/if.h>
8926 #endif
8929 main ()
8931 static struct ifreq ac_aggr;
8932 if (sizeof ac_aggr.ifr_addr)
8933 return 0;
8935 return 0;
8937 _ACEOF
8938 rm -f conftest.$ac_objext
8939 if { (ac_try="$ac_compile"
8940 case "(($ac_try" in
8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942 *) ac_try_echo=$ac_try;;
8943 esac
8944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8945 $as_echo "$ac_try_echo") >&5
8946 (eval "$ac_compile") 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && {
8953 test -z "$ac_c_werror_flag" ||
8954 test ! -s conftest.err
8955 } && test -s conftest.$ac_objext; then
8956 ac_cv_member_struct_ifreq_ifr_addr=yes
8957 else
8958 $as_echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8961 ac_cv_member_struct_ifreq_ifr_addr=no
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8970 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8971 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8973 cat >>confdefs.h <<_ACEOF
8974 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8975 _ACEOF
8982 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8983 $as_echo_n "checking for function prototypes... " >&6; }
8984 if test "$ac_cv_prog_cc_c89" != no; then
8985 { $as_echo "$as_me:$LINENO: result: yes" >&5
8986 $as_echo "yes" >&6; }
8988 cat >>confdefs.h <<\_ACEOF
8989 #define PROTOTYPES 1
8990 _ACEOF
8993 cat >>confdefs.h <<\_ACEOF
8994 #define __PROTOTYPES 1
8995 _ACEOF
8997 else
8998 { $as_echo "$as_me:$LINENO: result: no" >&5
8999 $as_echo "no" >&6; }
9002 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9003 $as_echo_n "checking for working volatile... " >&6; }
9004 if test "${ac_cv_c_volatile+set}" = set; then
9005 $as_echo_n "(cached) " >&6
9006 else
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9015 main ()
9018 volatile int x;
9019 int * volatile y = (int *) 0;
9020 return !x && !y;
9022 return 0;
9024 _ACEOF
9025 rm -f conftest.$ac_objext
9026 if { (ac_try="$ac_compile"
9027 case "(($ac_try" in
9028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9029 *) ac_try_echo=$ac_try;;
9030 esac
9031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9032 $as_echo "$ac_try_echo") >&5
9033 (eval "$ac_compile") 2>conftest.er1
9034 ac_status=$?
9035 grep -v '^ *+' conftest.er1 >conftest.err
9036 rm -f conftest.er1
9037 cat conftest.err >&5
9038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } && {
9040 test -z "$ac_c_werror_flag" ||
9041 test ! -s conftest.err
9042 } && test -s conftest.$ac_objext; then
9043 ac_cv_c_volatile=yes
9044 else
9045 $as_echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9048 ac_cv_c_volatile=no
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9054 $as_echo "$ac_cv_c_volatile" >&6; }
9055 if test $ac_cv_c_volatile = no; then
9057 cat >>confdefs.h <<\_ACEOF
9058 #define volatile /**/
9059 _ACEOF
9063 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9064 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9065 if test "${ac_cv_c_const+set}" = set; then
9066 $as_echo_n "(cached) " >&6
9067 else
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h. */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9076 main ()
9078 /* FIXME: Include the comments suggested by Paul. */
9079 #ifndef __cplusplus
9080 /* Ultrix mips cc rejects this. */
9081 typedef int charset[2];
9082 const charset cs;
9083 /* SunOS 4.1.1 cc rejects this. */
9084 char const *const *pcpcc;
9085 char **ppc;
9086 /* NEC SVR4.0.2 mips cc rejects this. */
9087 struct point {int x, y;};
9088 static struct point const zero = {0,0};
9089 /* AIX XL C 1.02.0.0 rejects this.
9090 It does not let you subtract one const X* pointer from another in
9091 an arm of an if-expression whose if-part is not a constant
9092 expression */
9093 const char *g = "string";
9094 pcpcc = &g + (g ? g-g : 0);
9095 /* HPUX 7.0 cc rejects these. */
9096 ++pcpcc;
9097 ppc = (char**) pcpcc;
9098 pcpcc = (char const *const *) ppc;
9099 { /* SCO 3.2v4 cc rejects this. */
9100 char *t;
9101 char const *s = 0 ? (char *) 0 : (char const *) 0;
9103 *t++ = 0;
9104 if (s) return 0;
9106 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9107 int x[] = {25, 17};
9108 const int *foo = &x[0];
9109 ++foo;
9111 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9112 typedef const int *iptr;
9113 iptr p = 0;
9114 ++p;
9116 { /* AIX XL C 1.02.0.0 rejects this saying
9117 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9118 struct s { int j; const int *ap[3]; };
9119 struct s *b; b->j = 5;
9121 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9122 const int foo = 10;
9123 if (!foo) return 0;
9125 return !cs[0] && !zero.x;
9126 #endif
9129 return 0;
9131 _ACEOF
9132 rm -f conftest.$ac_objext
9133 if { (ac_try="$ac_compile"
9134 case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137 esac
9138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9139 $as_echo "$ac_try_echo") >&5
9140 (eval "$ac_compile") 2>conftest.er1
9141 ac_status=$?
9142 grep -v '^ *+' conftest.er1 >conftest.err
9143 rm -f conftest.er1
9144 cat conftest.err >&5
9145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } && {
9147 test -z "$ac_c_werror_flag" ||
9148 test ! -s conftest.err
9149 } && test -s conftest.$ac_objext; then
9150 ac_cv_c_const=yes
9151 else
9152 $as_echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9155 ac_cv_c_const=no
9158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9160 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9161 $as_echo "$ac_cv_c_const" >&6; }
9162 if test $ac_cv_c_const = no; then
9164 cat >>confdefs.h <<\_ACEOF
9165 #define const /**/
9166 _ACEOF
9170 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9171 $as_echo_n "checking for void * support... " >&6; }
9172 if test "${emacs_cv_void_star+set}" = set; then
9173 $as_echo_n "(cached) " >&6
9174 else
9175 cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h. */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9183 main ()
9185 void * foo;
9187 return 0;
9189 _ACEOF
9190 rm -f conftest.$ac_objext
9191 if { (ac_try="$ac_compile"
9192 case "(($ac_try" in
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9195 esac
9196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9197 $as_echo "$ac_try_echo") >&5
9198 (eval "$ac_compile") 2>conftest.er1
9199 ac_status=$?
9200 grep -v '^ *+' conftest.er1 >conftest.err
9201 rm -f conftest.er1
9202 cat conftest.err >&5
9203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } && {
9205 test -z "$ac_c_werror_flag" ||
9206 test ! -s conftest.err
9207 } && test -s conftest.$ac_objext; then
9208 emacs_cv_void_star=yes
9209 else
9210 $as_echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 emacs_cv_void_star=no
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9219 $as_echo "$emacs_cv_void_star" >&6; }
9220 if test $emacs_cv_void_star = yes; then
9221 cat >>confdefs.h <<\_ACEOF
9222 #define POINTER_TYPE void
9223 _ACEOF
9225 else
9226 cat >>confdefs.h <<\_ACEOF
9227 #define POINTER_TYPE char
9228 _ACEOF
9236 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9237 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9238 set x ${MAKE-make}
9239 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9240 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9241 $as_echo_n "(cached) " >&6
9242 else
9243 cat >conftest.make <<\_ACEOF
9244 SHELL = /bin/sh
9245 all:
9246 @echo '@@@%%%=$(MAKE)=@@@%%%'
9247 _ACEOF
9248 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9249 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9250 *@@@%%%=?*=@@@%%%*)
9251 eval ac_cv_prog_make_${ac_make}_set=yes;;
9253 eval ac_cv_prog_make_${ac_make}_set=no;;
9254 esac
9255 rm -f conftest.make
9257 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9258 { $as_echo "$as_me:$LINENO: result: yes" >&5
9259 $as_echo "yes" >&6; }
9260 SET_MAKE=
9261 else
9262 { $as_echo "$as_me:$LINENO: result: no" >&5
9263 $as_echo "no" >&6; }
9264 SET_MAKE="MAKE=${MAKE-make}"
9268 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9269 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9270 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9271 HAVE_GNU_MAKE=no
9272 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9273 if test "x$testval" != x; then
9274 HAVE_GNU_MAKE=yes
9275 else
9276 ac_enable_autodepend=no
9278 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9279 $as_echo "$HAVE_GNU_MAKE" >&6; }
9280 if test $HAVE_GNU_MAKE = yes; then
9281 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9282 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9283 SAVE_CFLAGS="$CFLAGS"
9284 CFLAGS="$CFLAGS -MMD -MF deps.d"
9285 cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h. */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9293 main ()
9297 return 0;
9299 _ACEOF
9300 rm -f conftest.$ac_objext
9301 if { (ac_try="$ac_compile"
9302 case "(($ac_try" in
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9305 esac
9306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9307 $as_echo "$ac_try_echo") >&5
9308 (eval "$ac_compile") 2>conftest.er1
9309 ac_status=$?
9310 grep -v '^ *+' conftest.er1 >conftest.err
9311 rm -f conftest.er1
9312 cat conftest.err >&5
9313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } && {
9315 test -z "$ac_c_werror_flag" ||
9316 test ! -s conftest.err
9317 } && test -s conftest.$ac_objext; then
9319 else
9320 $as_echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9323 ac_enable_autodepend=no
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 CFLAGS="$SAVE_CFLAGS"
9328 test -f deps.d || ac_enable_autodepend=no
9329 rm -rf deps.d
9330 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9331 $as_echo "$ac_enable_autodepend" >&6; }
9333 if test $ac_enable_autodepend = yes; then
9335 cat >>confdefs.h <<\_ACEOF
9336 #define AUTO_DEPEND 1
9337 _ACEOF
9342 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9343 $as_echo_n "checking for long file names... " >&6; }
9344 if test "${ac_cv_sys_long_file_names+set}" = set; then
9345 $as_echo_n "(cached) " >&6
9346 else
9347 ac_cv_sys_long_file_names=yes
9348 # Test for long file names in all the places we know might matter:
9349 # . the current directory, where building will happen
9350 # $prefix/lib where we will be installing things
9351 # $exec_prefix/lib likewise
9352 # $TMPDIR if set, where it might want to write temporary files
9353 # /tmp where it might want to write temporary files
9354 # /var/tmp likewise
9355 # /usr/tmp likewise
9356 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9357 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9358 # in the usual case where exec_prefix is '${prefix}'.
9359 case $ac_dir in #(
9360 . | /* | ?:[\\/]*) ;; #(
9361 *) continue;;
9362 esac
9363 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9364 ac_xdir=$ac_dir/cf$$
9365 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9366 ac_tf1=$ac_xdir/conftest9012345
9367 ac_tf2=$ac_xdir/conftest9012346
9368 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9369 ac_cv_sys_long_file_names=no
9370 rm -f -r "$ac_xdir" 2>/dev/null
9371 test $ac_cv_sys_long_file_names = no && break
9372 done
9374 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9375 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9376 if test $ac_cv_sys_long_file_names = yes; then
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_LONG_FILE_NAMES 1
9380 _ACEOF
9385 #### Choose a window system.
9387 { $as_echo "$as_me:$LINENO: checking for X" >&5
9388 $as_echo_n "checking for X... " >&6; }
9391 # Check whether --with-x was given.
9392 if test "${with_x+set}" = set; then
9393 withval=$with_x;
9396 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9397 if test "x$with_x" = xno; then
9398 # The user explicitly disabled X.
9399 have_x=disabled
9400 else
9401 case $x_includes,$x_libraries in #(
9402 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9403 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9404 { (exit 1); exit 1; }; };; #(
9405 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9406 $as_echo_n "(cached) " >&6
9407 else
9408 # One or both of the vars are not set, and there is no cached value.
9409 ac_x_includes=no ac_x_libraries=no
9410 rm -f -r conftest.dir
9411 if mkdir conftest.dir; then
9412 cd conftest.dir
9413 cat >Imakefile <<'_ACEOF'
9414 incroot:
9415 @echo incroot='${INCROOT}'
9416 usrlibdir:
9417 @echo usrlibdir='${USRLIBDIR}'
9418 libdir:
9419 @echo libdir='${LIBDIR}'
9420 _ACEOF
9421 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9423 for ac_var in incroot usrlibdir libdir; do
9424 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9425 done
9426 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9427 for ac_extension in a so sl dylib la dll; do
9428 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9429 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9430 ac_im_usrlibdir=$ac_im_libdir; break
9432 done
9433 # Screen out bogus values from the imake configuration. They are
9434 # bogus both because they are the default anyway, and because
9435 # using them would break gcc on systems where it needs fixed includes.
9436 case $ac_im_incroot in
9437 /usr/include) ac_x_includes= ;;
9438 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9439 esac
9440 case $ac_im_usrlibdir in
9441 /usr/lib | /lib) ;;
9442 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9443 esac
9445 cd ..
9446 rm -f -r conftest.dir
9449 # Standard set of common directories for X headers.
9450 # Check X11 before X11Rn because it is often a symlink to the current release.
9451 ac_x_header_dirs='
9452 /usr/X11/include
9453 /usr/X11R6/include
9454 /usr/X11R5/include
9455 /usr/X11R4/include
9457 /usr/include/X11
9458 /usr/include/X11R6
9459 /usr/include/X11R5
9460 /usr/include/X11R4
9462 /usr/local/X11/include
9463 /usr/local/X11R6/include
9464 /usr/local/X11R5/include
9465 /usr/local/X11R4/include
9467 /usr/local/include/X11
9468 /usr/local/include/X11R6
9469 /usr/local/include/X11R5
9470 /usr/local/include/X11R4
9472 /usr/X386/include
9473 /usr/x386/include
9474 /usr/XFree86/include/X11
9476 /usr/include
9477 /usr/local/include
9478 /usr/unsupported/include
9479 /usr/athena/include
9480 /usr/local/x11r5/include
9481 /usr/lpp/Xamples/include
9483 /usr/openwin/include
9484 /usr/openwin/share/include'
9486 if test "$ac_x_includes" = no; then
9487 # Guess where to find include files, by looking for Xlib.h.
9488 # First, try using that file with no special directory specified.
9489 cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h. */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9495 #include <X11/Xlib.h>
9496 _ACEOF
9497 if { (ac_try="$ac_cpp conftest.$ac_ext"
9498 case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9501 esac
9502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9503 $as_echo "$ac_try_echo") >&5
9504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9505 ac_status=$?
9506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
9509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } >/dev/null && {
9511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9512 test ! -s conftest.err
9513 }; then
9514 # We can compile using X headers with no special include directory.
9515 ac_x_includes=
9516 else
9517 $as_echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9520 for ac_dir in $ac_x_header_dirs; do
9521 if test -r "$ac_dir/X11/Xlib.h"; then
9522 ac_x_includes=$ac_dir
9523 break
9525 done
9528 rm -f conftest.err conftest.$ac_ext
9529 fi # $ac_x_includes = no
9531 if test "$ac_x_libraries" = no; then
9532 # Check for the libraries.
9533 # See if we find them without any special options.
9534 # Don't add to $LIBS permanently.
9535 ac_save_LIBS=$LIBS
9536 LIBS="-lX11 $LIBS"
9537 cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h. */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543 #include <X11/Xlib.h>
9545 main ()
9547 XrmInitialize ()
9549 return 0;
9551 _ACEOF
9552 rm -f conftest.$ac_objext conftest$ac_exeext
9553 if { (ac_try="$ac_link"
9554 case "(($ac_try" in
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9557 esac
9558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9559 $as_echo "$ac_try_echo") >&5
9560 (eval "$ac_link") 2>conftest.er1
9561 ac_status=$?
9562 grep -v '^ *+' conftest.er1 >conftest.err
9563 rm -f conftest.er1
9564 cat conftest.err >&5
9565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && {
9567 test -z "$ac_c_werror_flag" ||
9568 test ! -s conftest.err
9569 } && test -s conftest$ac_exeext && {
9570 test "$cross_compiling" = yes ||
9571 $as_test_x conftest$ac_exeext
9572 }; then
9573 LIBS=$ac_save_LIBS
9574 # We can link X programs with no special library path.
9575 ac_x_libraries=
9576 else
9577 $as_echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 LIBS=$ac_save_LIBS
9581 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9583 # Don't even attempt the hair of trying to link an X program!
9584 for ac_extension in a so sl dylib la dll; do
9585 if test -r "$ac_dir/libX11.$ac_extension"; then
9586 ac_x_libraries=$ac_dir
9587 break 2
9589 done
9590 done
9593 rm -rf conftest.dSYM
9594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9595 conftest$ac_exeext conftest.$ac_ext
9596 fi # $ac_x_libraries = no
9598 case $ac_x_includes,$ac_x_libraries in #(
9599 no,* | *,no | *\'*)
9600 # Didn't find X, or a directory has "'" in its name.
9601 ac_cv_have_x="have_x=no";; #(
9603 # Record where we found X for the cache.
9604 ac_cv_have_x="have_x=yes\
9605 ac_x_includes='$ac_x_includes'\
9606 ac_x_libraries='$ac_x_libraries'"
9607 esac
9609 ;; #(
9610 *) have_x=yes;;
9611 esac
9612 eval "$ac_cv_have_x"
9613 fi # $with_x != no
9615 if test "$have_x" != yes; then
9616 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9617 $as_echo "$have_x" >&6; }
9618 no_x=yes
9619 else
9620 # If each of the values was on the command line, it overrides each guess.
9621 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9622 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9623 # Update the cache value to reflect the command line values.
9624 ac_cv_have_x="have_x=yes\
9625 ac_x_includes='$x_includes'\
9626 ac_x_libraries='$x_libraries'"
9627 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9628 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9631 if test "$no_x" = yes; then
9632 window_system=none
9633 else
9634 window_system=x11
9637 ## Workaround for bug in autoconf <= 2.62.
9638 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9639 ## No need to do anything special for these standard directories.
9640 ## This is an experiment, take it out if it causes problems.
9641 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9643 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9647 if test "${x_libraries}" != NONE; then
9648 if test -n "${x_libraries}"; then
9649 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9650 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9652 x_default_search_path=""
9653 x_search_path=${x_libraries}
9654 if test -z "${x_search_path}"; then
9655 x_search_path=/usr/lib
9657 for x_library in `echo ${x_search_path}: | \
9658 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9659 x_search_path="\
9660 ${x_library}/X11/%L/%T/%N%C%S:\
9661 ${x_library}/X11/%l/%T/%N%C%S:\
9662 ${x_library}/X11/%T/%N%C%S:\
9663 ${x_library}/X11/%L/%T/%N%S:\
9664 ${x_library}/X11/%l/%T/%N%S:\
9665 ${x_library}/X11/%T/%N%S"
9666 if test x"${x_default_search_path}" = x; then
9667 x_default_search_path=${x_search_path}
9668 else
9669 x_default_search_path="${x_search_path}:${x_default_search_path}"
9671 done
9673 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9674 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9677 if test x"${x_includes}" = x; then
9678 bitmapdir=/usr/include/X11/bitmaps
9679 else
9680 # accumulate include directories that have X11 bitmap subdirectories
9681 bmd_acc="dummyval"
9682 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9683 if test -d "${bmd}/X11/bitmaps"; then
9684 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9686 if test -d "${bmd}/bitmaps"; then
9687 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9689 done
9690 if test ${bmd_acc} != "dummyval"; then
9691 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9695 HAVE_NS=no
9696 NS_IMPL_COCOA=no
9697 NS_IMPL_GNUSTEP=no
9698 tmp_CPPFLAGS="$CPPFLAGS"
9699 tmp_CFLAGS="$CFLAGS"
9700 CPPFLAGS="$CPPFLAGS -x objective-c"
9701 CFLAGS="$CFLAGS -x objective-c"
9702 if test "${with_ns}" != no; then
9703 if test "${opsys}" = darwin; then
9704 NS_IMPL_COCOA=yes
9705 ns_appdir=`pwd`/nextstep/Emacs.app
9706 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9707 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9708 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9709 elif test -f $GNUSTEP_CONFIG_FILE; then
9710 NS_IMPL_GNUSTEP=yes
9711 ns_appdir=`pwd`/nextstep/Emacs.app
9712 ns_appbindir=`pwd`/nextstep/Emacs.app
9713 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9714 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9715 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9716 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9717 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9718 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9719 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9720 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9721 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9723 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9724 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9725 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9726 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9727 $as_echo_n "(cached) " >&6
9729 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9730 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9731 else
9732 # Is the header compilable?
9733 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9734 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h. */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 $ac_includes_default
9742 #include <AppKit/AppKit.h>
9743 _ACEOF
9744 rm -f conftest.$ac_objext
9745 if { (ac_try="$ac_compile"
9746 case "(($ac_try" in
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9749 esac
9750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9751 $as_echo "$ac_try_echo") >&5
9752 (eval "$ac_compile") 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && {
9759 test -z "$ac_c_werror_flag" ||
9760 test ! -s conftest.err
9761 } && test -s conftest.$ac_objext; then
9762 ac_header_compiler=yes
9763 else
9764 $as_echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_header_compiler=no
9770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9771 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9772 $as_echo "$ac_header_compiler" >&6; }
9774 # Is the header present?
9775 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9776 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9777 cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h. */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 #include <AppKit/AppKit.h>
9784 _ACEOF
9785 if { (ac_try="$ac_cpp conftest.$ac_ext"
9786 case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789 esac
9790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } >/dev/null && {
9799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 }; then
9802 ac_header_preproc=yes
9803 else
9804 $as_echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9807 ac_header_preproc=no
9810 rm -f conftest.err conftest.$ac_ext
9811 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9812 $as_echo "$ac_header_preproc" >&6; }
9814 # So? What about this header?
9815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9816 yes:no: )
9817 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9818 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9819 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9820 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9821 ac_header_preproc=yes
9823 no:yes:* )
9824 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9825 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9826 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9827 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9828 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9829 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9830 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9831 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9832 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9833 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9834 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9835 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9838 esac
9839 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9840 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9841 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9842 $as_echo_n "(cached) " >&6
9843 else
9844 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9846 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9847 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9850 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9851 HAVE_NS=yes
9852 else
9853 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9854 files are missing or cannot be compiled." >&5
9855 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9856 files are missing or cannot be compiled." >&2;}
9857 { (exit 1); exit 1; }; }
9861 NS_HAVE_NSINTEGER=yes
9862 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h. */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 #include <Foundation/NSObjCRuntime.h>
9870 main ()
9872 NSInteger i;
9874 return 0;
9876 _ACEOF
9877 rm -f conftest.$ac_objext
9878 if { (ac_try="$ac_compile"
9879 case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9882 esac
9883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9884 $as_echo "$ac_try_echo") >&5
9885 (eval "$ac_compile") 2>conftest.er1
9886 ac_status=$?
9887 grep -v '^ *+' conftest.er1 >conftest.err
9888 rm -f conftest.er1
9889 cat conftest.err >&5
9890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } && {
9892 test -z "$ac_c_werror_flag" ||
9893 test ! -s conftest.err
9894 } && test -s conftest.$ac_objext; then
9895 ns_have_nsinteger=yes
9896 else
9897 $as_echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9900 ns_have_nsinteger=no
9903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9904 if test $ns_have_nsinteger = no; then
9905 NS_HAVE_NSINTEGER=no
9908 if test "${HAVE_NS}" = yes; then
9909 window_system=nextstep
9910 with_xft=no
9911 # set up packaging dirs
9912 exec_prefix=${ns_appbindir}
9913 libexecdir=${ns_appbindir}/libexec
9914 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9915 prefix=${ns_appresdir}
9918 CFLAGS="$tmp_CFLAGS"
9919 CPPFLAGS="$tmp_CPPFLAGS"
9921 case "${window_system}" in
9922 x11 )
9923 HAVE_X_WINDOWS=yes
9924 HAVE_X11=yes
9925 case "${with_x_toolkit}" in
9926 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9927 motif ) USE_X_TOOLKIT=MOTIF ;;
9928 gtk ) with_gtk=yes
9929 USE_X_TOOLKIT=none ;;
9930 no ) USE_X_TOOLKIT=none ;;
9931 * ) USE_X_TOOLKIT=maybe ;;
9932 esac
9934 nextstep | none )
9935 HAVE_X_WINDOWS=no
9936 HAVE_X11=no
9937 USE_X_TOOLKIT=none
9939 esac
9941 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9942 # Extract the first word of "X", so it can be a program name with args.
9943 set dummy X; ac_word=$2
9944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9947 $as_echo_n "(cached) " >&6
9948 else
9949 if test -n "$HAVE_XSERVER"; then
9950 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9951 else
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $PATH
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_prog_HAVE_XSERVER="true"
9960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 break 2
9963 done
9964 done
9965 IFS=$as_save_IFS
9967 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9970 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9971 if test -n "$HAVE_XSERVER"; then
9972 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9973 $as_echo "$HAVE_XSERVER" >&6; }
9974 else
9975 { $as_echo "$as_me:$LINENO: result: no" >&5
9976 $as_echo "no" >&6; }
9980 if test "$HAVE_XSERVER" = true ||
9981 test -n "$DISPLAY" ||
9982 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9983 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9984 were found. You should install the relevant development files for X
9985 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9986 sure you have development files for image handling, i.e.
9987 tiff, gif, jpeg, png and xpm.
9988 If you are sure you want Emacs compiled without X window support, pass
9989 --without-x
9990 to configure." >&5
9991 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9992 were found. You should install the relevant development files for X
9993 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9994 sure you have development files for image handling, i.e.
9995 tiff, gif, jpeg, png and xpm.
9996 If you are sure you want Emacs compiled without X window support, pass
9997 --without-x
9998 to configure." >&2;}
9999 { (exit 1); exit 1; }; }
10003 ### If we're using X11, we should use the X menu package.
10004 HAVE_MENUS=no
10005 case ${HAVE_X11} in
10006 yes ) HAVE_MENUS=yes ;;
10007 esac
10009 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10010 # Assume not, until told otherwise.
10011 GNU_MALLOC=yes
10012 doug_lea_malloc=yes
10013 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10014 $as_echo_n "checking for malloc_get_state... " >&6; }
10015 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10016 $as_echo_n "(cached) " >&6
10017 else
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10026 #define malloc_get_state innocuous_malloc_get_state
10028 /* System header to define __stub macros and hopefully few prototypes,
10029 which can conflict with char malloc_get_state (); below.
10030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031 <limits.h> exists even on freestanding compilers. */
10033 #ifdef __STDC__
10034 # include <limits.h>
10035 #else
10036 # include <assert.h>
10037 #endif
10039 #undef malloc_get_state
10041 /* Override any GCC internal prototype to avoid an error.
10042 Use char because int might match the return type of a GCC
10043 builtin and then its argument prototype would still apply. */
10044 #ifdef __cplusplus
10045 extern "C"
10046 #endif
10047 char malloc_get_state ();
10048 /* The GNU C library defines this for functions which it implements
10049 to always fail with ENOSYS. Some functions are actually named
10050 something starting with __ and the normal name is an alias. */
10051 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10052 choke me
10053 #endif
10056 main ()
10058 return malloc_get_state ();
10060 return 0;
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068 esac
10069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10070 $as_echo "$ac_try_echo") >&5
10071 (eval "$ac_link") 2>conftest.er1
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest$ac_exeext && {
10081 test "$cross_compiling" = yes ||
10082 $as_test_x conftest$ac_exeext
10083 }; then
10084 ac_cv_func_malloc_get_state=yes
10085 else
10086 $as_echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 ac_cv_func_malloc_get_state=no
10092 rm -rf conftest.dSYM
10093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10094 conftest$ac_exeext conftest.$ac_ext
10096 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10097 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10098 if test $ac_cv_func_malloc_get_state = yes; then
10100 else
10101 doug_lea_malloc=no
10104 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10105 $as_echo_n "checking for malloc_set_state... " >&6; }
10106 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10107 $as_echo_n "(cached) " >&6
10108 else
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10117 #define malloc_set_state innocuous_malloc_set_state
10119 /* System header to define __stub macros and hopefully few prototypes,
10120 which can conflict with char malloc_set_state (); below.
10121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10122 <limits.h> exists even on freestanding compilers. */
10124 #ifdef __STDC__
10125 # include <limits.h>
10126 #else
10127 # include <assert.h>
10128 #endif
10130 #undef malloc_set_state
10132 /* Override any GCC internal prototype to avoid an error.
10133 Use char because int might match the return type of a GCC
10134 builtin and then its argument prototype would still apply. */
10135 #ifdef __cplusplus
10136 extern "C"
10137 #endif
10138 char malloc_set_state ();
10139 /* The GNU C library defines this for functions which it implements
10140 to always fail with ENOSYS. Some functions are actually named
10141 something starting with __ and the normal name is an alias. */
10142 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10143 choke me
10144 #endif
10147 main ()
10149 return malloc_set_state ();
10151 return 0;
10153 _ACEOF
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159 esac
10160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10161 $as_echo "$ac_try_echo") >&5
10162 (eval "$ac_link") 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } && {
10169 test -z "$ac_c_werror_flag" ||
10170 test ! -s conftest.err
10171 } && test -s conftest$ac_exeext && {
10172 test "$cross_compiling" = yes ||
10173 $as_test_x conftest$ac_exeext
10174 }; then
10175 ac_cv_func_malloc_set_state=yes
10176 else
10177 $as_echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10180 ac_cv_func_malloc_set_state=no
10183 rm -rf conftest.dSYM
10184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10185 conftest$ac_exeext conftest.$ac_ext
10187 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10188 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10189 if test $ac_cv_func_malloc_set_state = yes; then
10191 else
10192 doug_lea_malloc=no
10195 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10196 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10197 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10198 $as_echo_n "(cached) " >&6
10199 else
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 extern void (* __after_morecore_hook)();
10208 main ()
10210 __after_morecore_hook = 0
10212 return 0;
10214 _ACEOF
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (ac_try="$ac_link"
10217 case "(($ac_try" in
10218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219 *) ac_try_echo=$ac_try;;
10220 esac
10221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10222 $as_echo "$ac_try_echo") >&5
10223 (eval "$ac_link") 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest$ac_exeext && {
10233 test "$cross_compiling" = yes ||
10234 $as_test_x conftest$ac_exeext
10235 }; then
10236 emacs_cv_var___after_morecore_hook=yes
10237 else
10238 $as_echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 emacs_cv_var___after_morecore_hook=no
10244 rm -rf conftest.dSYM
10245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10246 conftest$ac_exeext conftest.$ac_ext
10248 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10249 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10250 if test $emacs_cv_var___after_morecore_hook = no; then
10251 doug_lea_malloc=no
10253 if test "${system_malloc}" = "yes"; then
10254 GNU_MALLOC=no
10255 GNU_MALLOC_reason="
10256 (The GNU allocators don't work with this system configuration.)"
10258 if test "$doug_lea_malloc" = "yes" ; then
10259 if test "$GNU_MALLOC" = yes ; then
10260 GNU_MALLOC_reason="
10261 (Using Doug Lea's new malloc from the GNU C Library.)"
10264 cat >>confdefs.h <<\_ACEOF
10265 #define DOUG_LEA_MALLOC 1
10266 _ACEOF
10270 if test x"${REL_ALLOC}" = x; then
10271 REL_ALLOC=${GNU_MALLOC}
10277 for ac_header in stdlib.h unistd.h
10279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10282 $as_echo_n "checking for $ac_header... " >&6; }
10283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10284 $as_echo_n "(cached) " >&6
10286 ac_res=`eval 'as_val=${'$as_ac_Header'}
10287 $as_echo "$as_val"'`
10288 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10289 $as_echo "$ac_res" >&6; }
10290 else
10291 # Is the header compilable?
10292 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10293 $as_echo_n "checking $ac_header usability... " >&6; }
10294 cat >conftest.$ac_ext <<_ACEOF
10295 /* confdefs.h. */
10296 _ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10300 $ac_includes_default
10301 #include <$ac_header>
10302 _ACEOF
10303 rm -f conftest.$ac_objext
10304 if { (ac_try="$ac_compile"
10305 case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10308 esac
10309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10310 $as_echo "$ac_try_echo") >&5
10311 (eval "$ac_compile") 2>conftest.er1
10312 ac_status=$?
10313 grep -v '^ *+' conftest.er1 >conftest.err
10314 rm -f conftest.er1
10315 cat conftest.err >&5
10316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && {
10318 test -z "$ac_c_werror_flag" ||
10319 test ! -s conftest.err
10320 } && test -s conftest.$ac_objext; then
10321 ac_header_compiler=yes
10322 else
10323 $as_echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10326 ac_header_compiler=no
10329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10330 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10331 $as_echo "$ac_header_compiler" >&6; }
10333 # Is the header present?
10334 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10335 $as_echo_n "checking $ac_header presence... " >&6; }
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h. */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 #include <$ac_header>
10343 _ACEOF
10344 if { (ac_try="$ac_cpp conftest.$ac_ext"
10345 case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10348 esac
10349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10350 $as_echo "$ac_try_echo") >&5
10351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10352 ac_status=$?
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
10356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } >/dev/null && {
10358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10359 test ! -s conftest.err
10360 }; then
10361 ac_header_preproc=yes
10362 else
10363 $as_echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 ac_header_preproc=no
10369 rm -f conftest.err conftest.$ac_ext
10370 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10371 $as_echo "$ac_header_preproc" >&6; }
10373 # So? What about this header?
10374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10375 yes:no: )
10376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10377 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10379 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10380 ac_header_preproc=yes
10382 no:yes:* )
10383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10384 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10386 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10388 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10390 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10392 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10394 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10397 esac
10398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10399 $as_echo_n "checking for $ac_header... " >&6; }
10400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10401 $as_echo_n "(cached) " >&6
10402 else
10403 eval "$as_ac_Header=\$ac_header_preproc"
10405 ac_res=`eval 'as_val=${'$as_ac_Header'}
10406 $as_echo "$as_val"'`
10407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10408 $as_echo "$ac_res" >&6; }
10411 if test `eval 'as_val=${'$as_ac_Header'}
10412 $as_echo "$as_val"'` = yes; then
10413 cat >>confdefs.h <<_ACEOF
10414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10415 _ACEOF
10419 done
10422 for ac_func in getpagesize
10424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10425 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10426 $as_echo_n "checking for $ac_func... " >&6; }
10427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10428 $as_echo_n "(cached) " >&6
10429 else
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10438 #define $ac_func innocuous_$ac_func
10440 /* System header to define __stub macros and hopefully few prototypes,
10441 which can conflict with char $ac_func (); below.
10442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10443 <limits.h> exists even on freestanding compilers. */
10445 #ifdef __STDC__
10446 # include <limits.h>
10447 #else
10448 # include <assert.h>
10449 #endif
10451 #undef $ac_func
10453 /* Override any GCC internal prototype to avoid an error.
10454 Use char because int might match the return type of a GCC
10455 builtin and then its argument prototype would still apply. */
10456 #ifdef __cplusplus
10457 extern "C"
10458 #endif
10459 char $ac_func ();
10460 /* The GNU C library defines this for functions which it implements
10461 to always fail with ENOSYS. Some functions are actually named
10462 something starting with __ and the normal name is an alias. */
10463 #if defined __stub_$ac_func || defined __stub___$ac_func
10464 choke me
10465 #endif
10468 main ()
10470 return $ac_func ();
10472 return 0;
10474 _ACEOF
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (ac_try="$ac_link"
10477 case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10480 esac
10481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10482 $as_echo "$ac_try_echo") >&5
10483 (eval "$ac_link") 2>conftest.er1
10484 ac_status=$?
10485 grep -v '^ *+' conftest.er1 >conftest.err
10486 rm -f conftest.er1
10487 cat conftest.err >&5
10488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } && {
10490 test -z "$ac_c_werror_flag" ||
10491 test ! -s conftest.err
10492 } && test -s conftest$ac_exeext && {
10493 test "$cross_compiling" = yes ||
10494 $as_test_x conftest$ac_exeext
10495 }; then
10496 eval "$as_ac_var=yes"
10497 else
10498 $as_echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 eval "$as_ac_var=no"
10504 rm -rf conftest.dSYM
10505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10506 conftest$ac_exeext conftest.$ac_ext
10508 ac_res=`eval 'as_val=${'$as_ac_var'}
10509 $as_echo "$as_val"'`
10510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10511 $as_echo "$ac_res" >&6; }
10512 if test `eval 'as_val=${'$as_ac_var'}
10513 $as_echo "$as_val"'` = yes; then
10514 cat >>confdefs.h <<_ACEOF
10515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10516 _ACEOF
10519 done
10521 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10522 $as_echo_n "checking for working mmap... " >&6; }
10523 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10524 $as_echo_n "(cached) " >&6
10525 else
10526 if test "$cross_compiling" = yes; then
10527 ac_cv_func_mmap_fixed_mapped=no
10528 else
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h. */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535 $ac_includes_default
10536 /* malloc might have been renamed as rpl_malloc. */
10537 #undef malloc
10539 /* Thanks to Mike Haertel and Jim Avera for this test.
10540 Here is a matrix of mmap possibilities:
10541 mmap private not fixed
10542 mmap private fixed at somewhere currently unmapped
10543 mmap private fixed at somewhere already mapped
10544 mmap shared not fixed
10545 mmap shared fixed at somewhere currently unmapped
10546 mmap shared fixed at somewhere already mapped
10547 For private mappings, we should verify that changes cannot be read()
10548 back from the file, nor mmap's back from the file at a different
10549 address. (There have been systems where private was not correctly
10550 implemented like the infamous i386 svr4.0, and systems where the
10551 VM page cache was not coherent with the file system buffer cache
10552 like early versions of FreeBSD and possibly contemporary NetBSD.)
10553 For shared mappings, we should conversely verify that changes get
10554 propagated back to all the places they're supposed to be.
10556 Grep wants private fixed already mapped.
10557 The main things grep needs to know about mmap are:
10558 * does it exist and is it safe to write into the mmap'd area
10559 * how to use it (BSD variants) */
10561 #include <fcntl.h>
10562 #include <sys/mman.h>
10564 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10565 char *malloc ();
10566 #endif
10568 /* This mess was copied from the GNU getpagesize.h. */
10569 #ifndef HAVE_GETPAGESIZE
10570 /* Assume that all systems that can run configure have sys/param.h. */
10571 # ifndef HAVE_SYS_PARAM_H
10572 # define HAVE_SYS_PARAM_H 1
10573 # endif
10575 # ifdef _SC_PAGESIZE
10576 # define getpagesize() sysconf(_SC_PAGESIZE)
10577 # else /* no _SC_PAGESIZE */
10578 # ifdef HAVE_SYS_PARAM_H
10579 # include <sys/param.h>
10580 # ifdef EXEC_PAGESIZE
10581 # define getpagesize() EXEC_PAGESIZE
10582 # else /* no EXEC_PAGESIZE */
10583 # ifdef NBPG
10584 # define getpagesize() NBPG * CLSIZE
10585 # ifndef CLSIZE
10586 # define CLSIZE 1
10587 # endif /* no CLSIZE */
10588 # else /* no NBPG */
10589 # ifdef NBPC
10590 # define getpagesize() NBPC
10591 # else /* no NBPC */
10592 # ifdef PAGESIZE
10593 # define getpagesize() PAGESIZE
10594 # endif /* PAGESIZE */
10595 # endif /* no NBPC */
10596 # endif /* no NBPG */
10597 # endif /* no EXEC_PAGESIZE */
10598 # else /* no HAVE_SYS_PARAM_H */
10599 # define getpagesize() 8192 /* punt totally */
10600 # endif /* no HAVE_SYS_PARAM_H */
10601 # endif /* no _SC_PAGESIZE */
10603 #endif /* no HAVE_GETPAGESIZE */
10606 main ()
10608 char *data, *data2, *data3;
10609 int i, pagesize;
10610 int fd;
10612 pagesize = getpagesize ();
10614 /* First, make a file with some known garbage in it. */
10615 data = (char *) malloc (pagesize);
10616 if (!data)
10617 return 1;
10618 for (i = 0; i < pagesize; ++i)
10619 *(data + i) = rand ();
10620 umask (0);
10621 fd = creat ("conftest.mmap", 0600);
10622 if (fd < 0)
10623 return 1;
10624 if (write (fd, data, pagesize) != pagesize)
10625 return 1;
10626 close (fd);
10628 /* Next, try to mmap the file at a fixed address which already has
10629 something else allocated at it. If we can, also make sure that
10630 we see the same garbage. */
10631 fd = open ("conftest.mmap", O_RDWR);
10632 if (fd < 0)
10633 return 1;
10634 data2 = (char *) malloc (2 * pagesize);
10635 if (!data2)
10636 return 1;
10637 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10638 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10639 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10640 return 1;
10641 for (i = 0; i < pagesize; ++i)
10642 if (*(data + i) != *(data2 + i))
10643 return 1;
10645 /* Finally, make sure that changes to the mapped area do not
10646 percolate back to the file as seen by read(). (This is a bug on
10647 some variants of i386 svr4.0.) */
10648 for (i = 0; i < pagesize; ++i)
10649 *(data2 + i) = *(data2 + i) + 1;
10650 data3 = (char *) malloc (pagesize);
10651 if (!data3)
10652 return 1;
10653 if (read (fd, data3, pagesize) != pagesize)
10654 return 1;
10655 for (i = 0; i < pagesize; ++i)
10656 if (*(data + i) != *(data3 + i))
10657 return 1;
10658 close (fd);
10659 return 0;
10661 _ACEOF
10662 rm -f conftest$ac_exeext
10663 if { (ac_try="$ac_link"
10664 case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10667 esac
10668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10669 $as_echo "$ac_try_echo") >&5
10670 (eval "$ac_link") 2>&5
10671 ac_status=$?
10672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10674 { (case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10677 esac
10678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10679 $as_echo "$ac_try_echo") >&5
10680 (eval "$ac_try") 2>&5
10681 ac_status=$?
10682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_cv_func_mmap_fixed_mapped=yes
10685 else
10686 $as_echo "$as_me: program exited with status $ac_status" >&5
10687 $as_echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10690 ( exit $ac_status )
10691 ac_cv_func_mmap_fixed_mapped=no
10693 rm -rf conftest.dSYM
10694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10699 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10700 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10701 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10703 cat >>confdefs.h <<\_ACEOF
10704 #define HAVE_MMAP 1
10705 _ACEOF
10708 rm -f conftest.mmap
10710 if test $use_mmap_for_buffers = yes; then
10711 REL_ALLOC=no
10714 LIBS="$libsrc_libs $LIBS"
10717 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10718 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10719 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10720 $as_echo_n "(cached) " >&6
10721 else
10722 ac_check_lib_save_LIBS=$LIBS
10723 LIBS="-ldnet $LIBS"
10724 cat >conftest.$ac_ext <<_ACEOF
10725 /* confdefs.h. */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10731 /* Override any GCC internal prototype to avoid an error.
10732 Use char because int might match the return type of a GCC
10733 builtin and then its argument prototype would still apply. */
10734 #ifdef __cplusplus
10735 extern "C"
10736 #endif
10737 char dnet_ntoa ();
10739 main ()
10741 return dnet_ntoa ();
10743 return 0;
10745 _ACEOF
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (ac_try="$ac_link"
10748 case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10751 esac
10752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10753 $as_echo "$ac_try_echo") >&5
10754 (eval "$ac_link") 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest$ac_exeext && {
10764 test "$cross_compiling" = yes ||
10765 $as_test_x conftest$ac_exeext
10766 }; then
10767 ac_cv_lib_dnet_dnet_ntoa=yes
10768 else
10769 $as_echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 ac_cv_lib_dnet_dnet_ntoa=no
10775 rm -rf conftest.dSYM
10776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10777 conftest$ac_exeext conftest.$ac_ext
10778 LIBS=$ac_check_lib_save_LIBS
10780 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10781 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10782 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10783 cat >>confdefs.h <<_ACEOF
10784 #define HAVE_LIBDNET 1
10785 _ACEOF
10787 LIBS="-ldnet $LIBS"
10792 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10793 $as_echo_n "checking for main in -lXbsd... " >&6; }
10794 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10795 $as_echo_n "(cached) " >&6
10796 else
10797 ac_check_lib_save_LIBS=$LIBS
10798 LIBS="-lXbsd $LIBS"
10799 cat >conftest.$ac_ext <<_ACEOF
10800 /* confdefs.h. */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10808 main ()
10810 return main ();
10812 return 0;
10814 _ACEOF
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (ac_try="$ac_link"
10817 case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820 esac
10821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10822 $as_echo "$ac_try_echo") >&5
10823 (eval "$ac_link") 2>conftest.er1
10824 ac_status=$?
10825 grep -v '^ *+' conftest.er1 >conftest.err
10826 rm -f conftest.er1
10827 cat conftest.err >&5
10828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } && {
10830 test -z "$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10832 } && test -s conftest$ac_exeext && {
10833 test "$cross_compiling" = yes ||
10834 $as_test_x conftest$ac_exeext
10835 }; then
10836 ac_cv_lib_Xbsd_main=yes
10837 else
10838 $as_echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 ac_cv_lib_Xbsd_main=no
10844 rm -rf conftest.dSYM
10845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10846 conftest$ac_exeext conftest.$ac_ext
10847 LIBS=$ac_check_lib_save_LIBS
10849 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10850 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10851 if test $ac_cv_lib_Xbsd_main = yes; then
10852 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10857 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10858 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10859 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10860 $as_echo_n "(cached) " >&6
10861 else
10862 ac_check_lib_save_LIBS=$LIBS
10863 LIBS="-lpthreads $LIBS"
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h. */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10871 /* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10874 #ifdef __cplusplus
10875 extern "C"
10876 #endif
10877 char cma_open ();
10879 main ()
10881 return cma_open ();
10883 return 0;
10885 _ACEOF
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (ac_try="$ac_link"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891 esac
10892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10893 $as_echo "$ac_try_echo") >&5
10894 (eval "$ac_link") 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest$ac_exeext && {
10904 test "$cross_compiling" = yes ||
10905 $as_test_x conftest$ac_exeext
10906 }; then
10907 ac_cv_lib_pthreads_cma_open=yes
10908 else
10909 $as_echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10912 ac_cv_lib_pthreads_cma_open=no
10915 rm -rf conftest.dSYM
10916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10921 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10922 if test $ac_cv_lib_pthreads_cma_open = yes; then
10923 cat >>confdefs.h <<_ACEOF
10924 #define HAVE_LIBPTHREADS 1
10925 _ACEOF
10927 LIBS="-lpthreads $LIBS"
10933 case ${host_os} in
10934 aix*)
10935 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10936 $as_echo_n "checking for -bbigtoc option... " >&6; }
10937 if test "${gdb_cv_bigtoc+set}" = set; then
10938 $as_echo_n "(cached) " >&6
10939 else
10941 case $GCC in
10942 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10943 *) gdb_cv_bigtoc=-bbigtoc ;;
10944 esac
10946 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10947 cat >conftest.$ac_ext <<_ACEOF
10948 /* confdefs.h. */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10955 main ()
10957 int i;
10959 return 0;
10961 _ACEOF
10962 rm -f conftest.$ac_objext conftest$ac_exeext
10963 if { (ac_try="$ac_link"
10964 case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10967 esac
10968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10969 $as_echo "$ac_try_echo") >&5
10970 (eval "$ac_link") 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
10975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } && {
10977 test -z "$ac_c_werror_flag" ||
10978 test ! -s conftest.err
10979 } && test -s conftest$ac_exeext && {
10980 test "$cross_compiling" = yes ||
10981 $as_test_x conftest$ac_exeext
10982 }; then
10984 else
10985 $as_echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10988 gdb_cv_bigtoc=
10991 rm -rf conftest.dSYM
10992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10993 conftest$ac_exeext conftest.$ac_ext
10996 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10997 $as_echo "$gdb_cv_bigtoc" >&6; }
10999 esac
11001 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11002 # used for the tests that follow. We set them back to REAL_CFLAGS and
11003 # REAL_CPPFLAGS later on.
11005 REAL_CPPFLAGS="$CPPFLAGS"
11007 if test "${HAVE_X11}" = "yes"; then
11008 DEFS="$C_SWITCH_X_SITE $DEFS"
11009 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11010 LIBS="$LIBX $LIBS"
11011 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11012 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11014 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11015 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11016 # but it's more convenient here to set LD_RUN_PATH
11017 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11018 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11019 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11020 export LD_RUN_PATH
11023 if test "${opsys}" = "gnu-linux"; then
11024 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11025 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11026 cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h. */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11034 main ()
11036 XOpenDisplay ("foo");
11038 return 0;
11040 _ACEOF
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (ac_try="$ac_link"
11043 case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046 esac
11047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11048 $as_echo "$ac_try_echo") >&5
11049 (eval "$ac_link") 2>conftest.er1
11050 ac_status=$?
11051 grep -v '^ *+' conftest.er1 >conftest.err
11052 rm -f conftest.er1
11053 cat conftest.err >&5
11054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } && {
11056 test -z "$ac_c_werror_flag" ||
11057 test ! -s conftest.err
11058 } && test -s conftest$ac_exeext && {
11059 test "$cross_compiling" = yes ||
11060 $as_test_x conftest$ac_exeext
11061 }; then
11062 xlinux_first_failure=no
11063 else
11064 $as_echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 xlinux_first_failure=yes
11070 rm -rf conftest.dSYM
11071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11072 conftest$ac_exeext conftest.$ac_ext
11073 if test "${xlinux_first_failure}" = "yes"; then
11074 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11075 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11076 OLD_CPPFLAGS="$CPPFLAGS"
11077 OLD_LIBS="$LIBS"
11078 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11079 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11080 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11081 LIBS="$LIBS -b i486-linuxaout"
11082 cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h. */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11090 main ()
11092 XOpenDisplay ("foo");
11094 return 0;
11096 _ACEOF
11097 rm -f conftest.$ac_objext conftest$ac_exeext
11098 if { (ac_try="$ac_link"
11099 case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11102 esac
11103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11104 $as_echo "$ac_try_echo") >&5
11105 (eval "$ac_link") 2>conftest.er1
11106 ac_status=$?
11107 grep -v '^ *+' conftest.er1 >conftest.err
11108 rm -f conftest.er1
11109 cat conftest.err >&5
11110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } && {
11112 test -z "$ac_c_werror_flag" ||
11113 test ! -s conftest.err
11114 } && test -s conftest$ac_exeext && {
11115 test "$cross_compiling" = yes ||
11116 $as_test_x conftest$ac_exeext
11117 }; then
11118 xlinux_second_failure=no
11119 else
11120 $as_echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 xlinux_second_failure=yes
11126 rm -rf conftest.dSYM
11127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11128 conftest$ac_exeext conftest.$ac_ext
11129 if test "${xlinux_second_failure}" = "yes"; then
11130 # If we get the same failure with -b, there is no use adding -b.
11131 # So take it out. This plays safe.
11132 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11133 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11134 CPPFLAGS="$OLD_CPPFLAGS"
11135 LIBS="$OLD_LIBS"
11136 { $as_echo "$as_me:$LINENO: result: no" >&5
11137 $as_echo "no" >&6; }
11138 else
11139 { $as_echo "$as_me:$LINENO: result: yes" >&5
11140 $as_echo "yes" >&6; }
11142 else
11143 { $as_echo "$as_me:$LINENO: result: no" >&5
11144 $as_echo "no" >&6; }
11148 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11149 # header files included from there.
11150 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11151 $as_echo_n "checking for Xkb... " >&6; }
11152 cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h. */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158 #include <X11/Xlib.h>
11159 #include <X11/XKBlib.h>
11161 main ()
11163 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11165 return 0;
11167 _ACEOF
11168 rm -f conftest.$ac_objext conftest$ac_exeext
11169 if { (ac_try="$ac_link"
11170 case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11173 esac
11174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11175 $as_echo "$ac_try_echo") >&5
11176 (eval "$ac_link") 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } && {
11183 test -z "$ac_c_werror_flag" ||
11184 test ! -s conftest.err
11185 } && test -s conftest$ac_exeext && {
11186 test "$cross_compiling" = yes ||
11187 $as_test_x conftest$ac_exeext
11188 }; then
11189 emacs_xkb=yes
11190 else
11191 $as_echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 emacs_xkb=no
11197 rm -rf conftest.dSYM
11198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11199 conftest$ac_exeext conftest.$ac_ext
11200 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11201 $as_echo "$emacs_xkb" >&6; }
11202 if test $emacs_xkb = yes; then
11204 cat >>confdefs.h <<\_ACEOF
11205 #define HAVE_XKBGETKEYBOARD 1
11206 _ACEOF
11214 for ac_func in XrmSetDatabase XScreenResourceString \
11215 XScreenNumberOfScreen XSetWMProtocols
11217 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11218 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11219 $as_echo_n "checking for $ac_func... " >&6; }
11220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11221 $as_echo_n "(cached) " >&6
11222 else
11223 cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h. */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11231 #define $ac_func innocuous_$ac_func
11233 /* System header to define __stub macros and hopefully few prototypes,
11234 which can conflict with char $ac_func (); below.
11235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11236 <limits.h> exists even on freestanding compilers. */
11238 #ifdef __STDC__
11239 # include <limits.h>
11240 #else
11241 # include <assert.h>
11242 #endif
11244 #undef $ac_func
11246 /* Override any GCC internal prototype to avoid an error.
11247 Use char because int might match the return type of a GCC
11248 builtin and then its argument prototype would still apply. */
11249 #ifdef __cplusplus
11250 extern "C"
11251 #endif
11252 char $ac_func ();
11253 /* The GNU C library defines this for functions which it implements
11254 to always fail with ENOSYS. Some functions are actually named
11255 something starting with __ and the normal name is an alias. */
11256 #if defined __stub_$ac_func || defined __stub___$ac_func
11257 choke me
11258 #endif
11261 main ()
11263 return $ac_func ();
11265 return 0;
11267 _ACEOF
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (ac_try="$ac_link"
11270 case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273 esac
11274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11275 $as_echo "$ac_try_echo") >&5
11276 (eval "$ac_link") 2>conftest.er1
11277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } && {
11283 test -z "$ac_c_werror_flag" ||
11284 test ! -s conftest.err
11285 } && test -s conftest$ac_exeext && {
11286 test "$cross_compiling" = yes ||
11287 $as_test_x conftest$ac_exeext
11288 }; then
11289 eval "$as_ac_var=yes"
11290 else
11291 $as_echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 eval "$as_ac_var=no"
11297 rm -rf conftest.dSYM
11298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11299 conftest$ac_exeext conftest.$ac_ext
11301 ac_res=`eval 'as_val=${'$as_ac_var'}
11302 $as_echo "$as_val"'`
11303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11304 $as_echo "$ac_res" >&6; }
11305 if test `eval 'as_val=${'$as_ac_var'}
11306 $as_echo "$as_val"'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11309 _ACEOF
11312 done
11316 if test "${window_system}" = "x11"; then
11317 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11318 $as_echo_n "checking X11 version 6... " >&6; }
11319 if test "${emacs_cv_x11_version_6+set}" = set; then
11320 $as_echo_n "(cached) " >&6
11321 else
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h. */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 #include <X11/Xlib.h>
11330 main ()
11332 #if XlibSpecificationRelease < 6
11333 fail;
11334 #endif
11337 return 0;
11339 _ACEOF
11340 rm -f conftest.$ac_objext conftest$ac_exeext
11341 if { (ac_try="$ac_link"
11342 case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11345 esac
11346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11347 $as_echo "$ac_try_echo") >&5
11348 (eval "$ac_link") 2>conftest.er1
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } && {
11355 test -z "$ac_c_werror_flag" ||
11356 test ! -s conftest.err
11357 } && test -s conftest$ac_exeext && {
11358 test "$cross_compiling" = yes ||
11359 $as_test_x conftest$ac_exeext
11360 }; then
11361 emacs_cv_x11_version_6=yes
11362 else
11363 $as_echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 emacs_cv_x11_version_6=no
11369 rm -rf conftest.dSYM
11370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11371 conftest$ac_exeext conftest.$ac_ext
11374 if test $emacs_cv_x11_version_6 = yes; then
11375 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11376 $as_echo "6 or newer" >&6; }
11378 cat >>confdefs.h <<\_ACEOF
11379 #define HAVE_X11R6 1
11380 _ACEOF
11382 else
11383 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11384 $as_echo "before 6" >&6; }
11389 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11390 HAVE_RSVG=no
11391 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11392 if test "${with_rsvg}" != "no"; then
11393 RSVG_REQUIRED=2.11.0
11394 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11397 succeeded=no
11399 # Extract the first word of "pkg-config", so it can be a program name with args.
11400 set dummy pkg-config; ac_word=$2
11401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11404 $as_echo_n "(cached) " >&6
11405 else
11406 case $PKG_CONFIG in
11407 [\\/]* | ?:[\\/]*)
11408 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11418 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 break 2
11422 done
11423 done
11424 IFS=$as_save_IFS
11426 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11428 esac
11430 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11431 if test -n "$PKG_CONFIG"; then
11432 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11433 $as_echo "$PKG_CONFIG" >&6; }
11434 else
11435 { $as_echo "$as_me:$LINENO: result: no" >&5
11436 $as_echo "no" >&6; }
11441 if test "$PKG_CONFIG" = "no" ; then
11443 else
11444 PKG_CONFIG_MIN_VERSION=0.9.0
11445 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11446 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11447 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11449 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11450 { $as_echo "$as_me:$LINENO: result: yes" >&5
11451 $as_echo "yes" >&6; }
11452 succeeded=yes
11454 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11455 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11456 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11457 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11458 $as_echo "$RSVG_CFLAGS" >&6; }
11460 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11461 $as_echo_n "checking RSVG_LIBS... " >&6; }
11462 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11463 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11464 $as_echo "$RSVG_LIBS" >&6; }
11465 else
11466 { $as_echo "$as_me:$LINENO: result: no" >&5
11467 $as_echo "no" >&6; }
11468 RSVG_CFLAGS=""
11469 RSVG_LIBS=""
11470 ## If we have a custom action on failure, don't print errors, but
11471 ## do set a variable so people can do so.
11472 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11478 else
11479 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11480 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11484 if test $succeeded = yes; then
11486 else
11493 if test ".${RSVG_CFLAGS}" != "."; then
11494 HAVE_RSVG=yes
11496 cat >>confdefs.h <<\_ACEOF
11497 #define HAVE_RSVG 1
11498 _ACEOF
11500 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11501 LIBS="$RSVG_LIBS $LIBS"
11507 HAVE_GTK=no
11508 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11509 GLIB_REQUIRED=2.6
11510 GTK_REQUIRED=2.6
11511 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11514 succeeded=no
11516 # Extract the first word of "pkg-config", so it can be a program name with args.
11517 set dummy pkg-config; ac_word=$2
11518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11519 $as_echo_n "checking for $ac_word... " >&6; }
11520 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11521 $as_echo_n "(cached) " >&6
11522 else
11523 case $PKG_CONFIG in
11524 [\\/]* | ?:[\\/]*)
11525 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529 for as_dir in $PATH
11531 IFS=$as_save_IFS
11532 test -z "$as_dir" && as_dir=.
11533 for ac_exec_ext in '' $ac_executable_extensions; do
11534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11535 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11537 break 2
11539 done
11540 done
11541 IFS=$as_save_IFS
11543 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11545 esac
11547 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11548 if test -n "$PKG_CONFIG"; then
11549 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11550 $as_echo "$PKG_CONFIG" >&6; }
11551 else
11552 { $as_echo "$as_me:$LINENO: result: no" >&5
11553 $as_echo "no" >&6; }
11558 if test "$PKG_CONFIG" = "no" ; then
11559 pkg_check_gtk=no
11560 else
11561 PKG_CONFIG_MIN_VERSION=0.9.0
11562 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11563 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11564 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11566 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11567 { $as_echo "$as_me:$LINENO: result: yes" >&5
11568 $as_echo "yes" >&6; }
11569 succeeded=yes
11571 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11572 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11573 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11574 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11575 $as_echo "$GTK_CFLAGS" >&6; }
11577 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11578 $as_echo_n "checking GTK_LIBS... " >&6; }
11579 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11580 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11581 $as_echo "$GTK_LIBS" >&6; }
11582 else
11583 { $as_echo "$as_me:$LINENO: result: no" >&5
11584 $as_echo "no" >&6; }
11585 GTK_CFLAGS=""
11586 GTK_LIBS=""
11587 ## If we have a custom action on failure, don't print errors, but
11588 ## do set a variable so people can do so.
11589 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11595 else
11596 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11597 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11601 if test $succeeded = yes; then
11602 pkg_check_gtk=yes
11603 else
11604 pkg_check_gtk=no
11607 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11608 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11609 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11610 { (exit 1); exit 1; }; }
11615 if test x"$pkg_check_gtk" = xyes; then
11619 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11620 CFLAGS="$CFLAGS $GTK_CFLAGS"
11621 LIBS="$GTK_LIBS $LIBS"
11622 GTK_COMPILES=no
11624 for ac_func in gtk_main
11626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11627 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11628 $as_echo_n "checking for $ac_func... " >&6; }
11629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11630 $as_echo_n "(cached) " >&6
11631 else
11632 cat >conftest.$ac_ext <<_ACEOF
11633 /* confdefs.h. */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11640 #define $ac_func innocuous_$ac_func
11642 /* System header to define __stub macros and hopefully few prototypes,
11643 which can conflict with char $ac_func (); below.
11644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645 <limits.h> exists even on freestanding compilers. */
11647 #ifdef __STDC__
11648 # include <limits.h>
11649 #else
11650 # include <assert.h>
11651 #endif
11653 #undef $ac_func
11655 /* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11658 #ifdef __cplusplus
11659 extern "C"
11660 #endif
11661 char $ac_func ();
11662 /* The GNU C library defines this for functions which it implements
11663 to always fail with ENOSYS. Some functions are actually named
11664 something starting with __ and the normal name is an alias. */
11665 #if defined __stub_$ac_func || defined __stub___$ac_func
11666 choke me
11667 #endif
11670 main ()
11672 return $ac_func ();
11674 return 0;
11676 _ACEOF
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682 esac
11683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11684 $as_echo "$ac_try_echo") >&5
11685 (eval "$ac_link") 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } && {
11692 test -z "$ac_c_werror_flag" ||
11693 test ! -s conftest.err
11694 } && test -s conftest$ac_exeext && {
11695 test "$cross_compiling" = yes ||
11696 $as_test_x conftest$ac_exeext
11697 }; then
11698 eval "$as_ac_var=yes"
11699 else
11700 $as_echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 eval "$as_ac_var=no"
11706 rm -rf conftest.dSYM
11707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11708 conftest$ac_exeext conftest.$ac_ext
11710 ac_res=`eval 'as_val=${'$as_ac_var'}
11711 $as_echo "$as_val"'`
11712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11713 $as_echo "$ac_res" >&6; }
11714 if test `eval 'as_val=${'$as_ac_var'}
11715 $as_echo "$as_val"'` = yes; then
11716 cat >>confdefs.h <<_ACEOF
11717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11718 _ACEOF
11719 GTK_COMPILES=yes
11721 done
11723 if test "${GTK_COMPILES}" != "yes"; then
11724 if test "$USE_X_TOOLKIT" != "maybe"; then
11725 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11726 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11727 { (exit 1); exit 1; }; };
11729 else
11730 HAVE_GTK=yes
11732 cat >>confdefs.h <<\_ACEOF
11733 #define USE_GTK 1
11734 _ACEOF
11736 USE_X_TOOLKIT=none
11737 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11739 else
11740 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11741 closing open displays. This is no problem if you just use
11742 one display, but if you use more than one and close one of them
11743 Emacs may crash." >&5
11744 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11745 closing open displays. This is no problem if you just use
11746 one display, but if you use more than one and close one of them
11747 Emacs may crash." >&2;}
11748 sleep 3
11755 if test "${HAVE_GTK}" = "yes"; then
11757 if test "$with_toolkit_scroll_bars" != no; then
11758 with_toolkit_scroll_bars=yes
11761 HAVE_GTK_MULTIDISPLAY=no
11763 for ac_func in gdk_display_open
11765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11766 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11767 $as_echo_n "checking for $ac_func... " >&6; }
11768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769 $as_echo_n "(cached) " >&6
11770 else
11771 cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h. */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11779 #define $ac_func innocuous_$ac_func
11781 /* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func (); below.
11783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784 <limits.h> exists even on freestanding compilers. */
11786 #ifdef __STDC__
11787 # include <limits.h>
11788 #else
11789 # include <assert.h>
11790 #endif
11792 #undef $ac_func
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 char $ac_func ();
11801 /* The GNU C library defines this for functions which it implements
11802 to always fail with ENOSYS. Some functions are actually named
11803 something starting with __ and the normal name is an alias. */
11804 #if defined __stub_$ac_func || defined __stub___$ac_func
11805 choke me
11806 #endif
11809 main ()
11811 return $ac_func ();
11813 return 0;
11815 _ACEOF
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821 esac
11822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11823 $as_echo "$ac_try_echo") >&5
11824 (eval "$ac_link") 2>conftest.er1
11825 ac_status=$?
11826 grep -v '^ *+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest$ac_exeext && {
11834 test "$cross_compiling" = yes ||
11835 $as_test_x conftest$ac_exeext
11836 }; then
11837 eval "$as_ac_var=yes"
11838 else
11839 $as_echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11842 eval "$as_ac_var=no"
11845 rm -rf conftest.dSYM
11846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11847 conftest$ac_exeext conftest.$ac_ext
11849 ac_res=`eval 'as_val=${'$as_ac_var'}
11850 $as_echo "$as_val"'`
11851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11852 $as_echo "$ac_res" >&6; }
11853 if test `eval 'as_val=${'$as_ac_var'}
11854 $as_echo "$as_val"'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11857 _ACEOF
11858 HAVE_GTK_MULTIDISPLAY=yes
11860 done
11862 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11864 cat >>confdefs.h <<\_ACEOF
11865 #define HAVE_GTK_MULTIDISPLAY 1
11866 _ACEOF
11870 HAVE_GTK_FILE_SELECTION=no
11871 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11872 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11873 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11874 $as_echo_n "(cached) " >&6
11875 else
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h. */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 $ac_includes_default
11883 #include <gtk/gtk.h>
11886 main ()
11888 #ifndef GTK_TYPE_FILE_SELECTION
11889 (void) GTK_TYPE_FILE_SELECTION;
11890 #endif
11893 return 0;
11895 _ACEOF
11896 rm -f conftest.$ac_objext
11897 if { (ac_try="$ac_compile"
11898 case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11901 esac
11902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11903 $as_echo "$ac_try_echo") >&5
11904 (eval "$ac_compile") 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest.$ac_objext; then
11914 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11915 else
11916 $as_echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11924 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11925 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11926 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11927 HAVE_GTK_FILE_SELECTION=yes
11928 else
11929 HAVE_GTK_FILE_SELECTION=no
11932 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11934 for ac_func in gtk_file_selection_new
11936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 $as_echo_n "checking for $ac_func... " >&6; }
11939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940 $as_echo_n "(cached) " >&6
11941 else
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h. */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11950 #define $ac_func innocuous_$ac_func
11952 /* System header to define __stub macros and hopefully few prototypes,
11953 which can conflict with char $ac_func (); below.
11954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955 <limits.h> exists even on freestanding compilers. */
11957 #ifdef __STDC__
11958 # include <limits.h>
11959 #else
11960 # include <assert.h>
11961 #endif
11963 #undef $ac_func
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char $ac_func ();
11972 /* The GNU C library defines this for functions which it implements
11973 to always fail with ENOSYS. Some functions are actually named
11974 something starting with __ and the normal name is an alias. */
11975 #if defined __stub_$ac_func || defined __stub___$ac_func
11976 choke me
11977 #endif
11980 main ()
11982 return $ac_func ();
11984 return 0;
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992 esac
11993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11994 $as_echo "$ac_try_echo") >&5
11995 (eval "$ac_link") 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && {
12002 test -z "$ac_c_werror_flag" ||
12003 test ! -s conftest.err
12004 } && test -s conftest$ac_exeext && {
12005 test "$cross_compiling" = yes ||
12006 $as_test_x conftest$ac_exeext
12007 }; then
12008 eval "$as_ac_var=yes"
12009 else
12010 $as_echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 eval "$as_ac_var=no"
12016 rm -rf conftest.dSYM
12017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12018 conftest$ac_exeext conftest.$ac_ext
12020 ac_res=`eval 'as_val=${'$as_ac_var'}
12021 $as_echo "$as_val"'`
12022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12023 $as_echo "$ac_res" >&6; }
12024 if test `eval 'as_val=${'$as_ac_var'}
12025 $as_echo "$as_val"'` = yes; then
12026 cat >>confdefs.h <<_ACEOF
12027 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12028 _ACEOF
12029 HAVE_GTK_FILE_SELECTION=yes
12030 else
12031 HAVE_GTK_FILE_SELECTION=no
12033 done
12037 HAVE_GTK_FILE_CHOOSER=no
12038 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12039 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12040 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12041 $as_echo_n "(cached) " >&6
12042 else
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h. */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 $ac_includes_default
12050 #include <gtk/gtk.h>
12053 main ()
12055 #ifndef GTK_TYPE_FILE_CHOOSER
12056 (void) GTK_TYPE_FILE_CHOOSER;
12057 #endif
12060 return 0;
12062 _ACEOF
12063 rm -f conftest.$ac_objext
12064 if { (ac_try="$ac_compile"
12065 case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12068 esac
12069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12070 $as_echo "$ac_try_echo") >&5
12071 (eval "$ac_compile") 2>conftest.er1
12072 ac_status=$?
12073 grep -v '^ *+' conftest.er1 >conftest.err
12074 rm -f conftest.er1
12075 cat conftest.err >&5
12076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } && {
12078 test -z "$ac_c_werror_flag" ||
12079 test ! -s conftest.err
12080 } && test -s conftest.$ac_objext; then
12081 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12082 else
12083 $as_echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12091 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12092 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12093 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12094 HAVE_GTK_FILE_CHOOSER=yes
12095 else
12096 HAVE_GTK_FILE_CHOOSER=no
12099 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12101 for ac_func in gtk_file_chooser_dialog_new
12103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12104 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12105 $as_echo_n "checking for $ac_func... " >&6; }
12106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12107 $as_echo_n "(cached) " >&6
12108 else
12109 cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h. */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12117 #define $ac_func innocuous_$ac_func
12119 /* System header to define __stub macros and hopefully few prototypes,
12120 which can conflict with char $ac_func (); below.
12121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122 <limits.h> exists even on freestanding compilers. */
12124 #ifdef __STDC__
12125 # include <limits.h>
12126 #else
12127 # include <assert.h>
12128 #endif
12130 #undef $ac_func
12132 /* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12135 #ifdef __cplusplus
12136 extern "C"
12137 #endif
12138 char $ac_func ();
12139 /* The GNU C library defines this for functions which it implements
12140 to always fail with ENOSYS. Some functions are actually named
12141 something starting with __ and the normal name is an alias. */
12142 #if defined __stub_$ac_func || defined __stub___$ac_func
12143 choke me
12144 #endif
12147 main ()
12149 return $ac_func ();
12151 return 0;
12153 _ACEOF
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (ac_try="$ac_link"
12156 case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159 esac
12160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12161 $as_echo "$ac_try_echo") >&5
12162 (eval "$ac_link") 2>conftest.er1
12163 ac_status=$?
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
12167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } && {
12169 test -z "$ac_c_werror_flag" ||
12170 test ! -s conftest.err
12171 } && test -s conftest$ac_exeext && {
12172 test "$cross_compiling" = yes ||
12173 $as_test_x conftest$ac_exeext
12174 }; then
12175 eval "$as_ac_var=yes"
12176 else
12177 $as_echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 eval "$as_ac_var=no"
12183 rm -rf conftest.dSYM
12184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12185 conftest$ac_exeext conftest.$ac_ext
12187 ac_res=`eval 'as_val=${'$as_ac_var'}
12188 $as_echo "$as_val"'`
12189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12190 $as_echo "$ac_res" >&6; }
12191 if test `eval 'as_val=${'$as_ac_var'}
12192 $as_echo "$as_val"'` = yes; then
12193 cat >>confdefs.h <<_ACEOF
12194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12195 _ACEOF
12196 HAVE_GTK_FILE_CHOOSER=yes
12197 else
12198 HAVE_GTK_FILE_CHOOSER=no
12200 done
12204 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12205 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12207 cat >>confdefs.h <<\_ACEOF
12208 #define HAVE_GTK_FILE_BOTH 1
12209 _ACEOF
12213 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12214 HAVE_GTK_AND_PTHREAD=no
12216 for ac_header in pthread.h
12218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12221 $as_echo_n "checking for $ac_header... " >&6; }
12222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 $as_echo_n "(cached) " >&6
12225 ac_res=`eval 'as_val=${'$as_ac_Header'}
12226 $as_echo "$as_val"'`
12227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12228 $as_echo "$ac_res" >&6; }
12229 else
12230 # Is the header compilable?
12231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12232 $as_echo_n "checking $ac_header usability... " >&6; }
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 $ac_includes_default
12240 #include <$ac_header>
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (ac_try="$ac_compile"
12244 case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247 esac
12248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12249 $as_echo "$ac_try_echo") >&5
12250 (eval "$ac_compile") 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest.$ac_objext; then
12260 ac_header_compiler=yes
12261 else
12262 $as_echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_header_compiler=no
12268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12270 $as_echo "$ac_header_compiler" >&6; }
12272 # Is the header present?
12273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12274 $as_echo_n "checking $ac_header presence... " >&6; }
12275 cat >conftest.$ac_ext <<_ACEOF
12276 /* confdefs.h. */
12277 _ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 #include <$ac_header>
12282 _ACEOF
12283 if { (ac_try="$ac_cpp conftest.$ac_ext"
12284 case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12287 esac
12288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12289 $as_echo "$ac_try_echo") >&5
12290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12291 ac_status=$?
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
12295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } >/dev/null && {
12297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12298 test ! -s conftest.err
12299 }; then
12300 ac_header_preproc=yes
12301 else
12302 $as_echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12305 ac_header_preproc=no
12308 rm -f conftest.err conftest.$ac_ext
12309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12310 $as_echo "$ac_header_preproc" >&6; }
12312 # So? What about this header?
12313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12314 yes:no: )
12315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12319 ac_header_preproc=yes
12321 no:yes:* )
12322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12336 esac
12337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12338 $as_echo_n "checking for $ac_header... " >&6; }
12339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340 $as_echo_n "(cached) " >&6
12341 else
12342 eval "$as_ac_Header=\$ac_header_preproc"
12344 ac_res=`eval 'as_val=${'$as_ac_Header'}
12345 $as_echo "$as_val"'`
12346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12347 $as_echo "$ac_res" >&6; }
12350 if test `eval 'as_val=${'$as_ac_Header'}
12351 $as_echo "$as_val"'` = yes; then
12352 cat >>confdefs.h <<_ACEOF
12353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12354 _ACEOF
12358 done
12360 if test "$ac_cv_header_pthread_h"; then
12361 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12362 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12363 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12364 $as_echo_n "(cached) " >&6
12365 else
12366 ac_check_lib_save_LIBS=$LIBS
12367 LIBS="-lpthread $LIBS"
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12378 #ifdef __cplusplus
12379 extern "C"
12380 #endif
12381 char pthread_self ();
12383 main ()
12385 return pthread_self ();
12387 return 0;
12389 _ACEOF
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (ac_try="$ac_link"
12392 case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395 esac
12396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12397 $as_echo "$ac_try_echo") >&5
12398 (eval "$ac_link") 2>conftest.er1
12399 ac_status=$?
12400 grep -v '^ *+' conftest.er1 >conftest.err
12401 rm -f conftest.er1
12402 cat conftest.err >&5
12403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && {
12405 test -z "$ac_c_werror_flag" ||
12406 test ! -s conftest.err
12407 } && test -s conftest$ac_exeext && {
12408 test "$cross_compiling" = yes ||
12409 $as_test_x conftest$ac_exeext
12410 }; then
12411 ac_cv_lib_pthread_pthread_self=yes
12412 else
12413 $as_echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ac_cv_lib_pthread_pthread_self=no
12419 rm -rf conftest.dSYM
12420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12424 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12425 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12426 if test $ac_cv_lib_pthread_pthread_self = yes; then
12427 HAVE_GTK_AND_PTHREAD=yes
12431 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12432 case "${canonical}" in
12433 *-hpux*) ;;
12434 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12435 esac
12437 cat >>confdefs.h <<\_ACEOF
12438 #define HAVE_GTK_AND_PTHREAD 1
12439 _ACEOF
12445 HAVE_DBUS=no
12446 if test "${with_dbus}" = "yes"; then
12448 succeeded=no
12450 # Extract the first word of "pkg-config", so it can be a program name with args.
12451 set dummy pkg-config; ac_word=$2
12452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12455 $as_echo_n "(cached) " >&6
12456 else
12457 case $PKG_CONFIG in
12458 [\\/]* | ?:[\\/]*)
12459 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12465 IFS=$as_save_IFS
12466 test -z "$as_dir" && as_dir=.
12467 for ac_exec_ext in '' $ac_executable_extensions; do
12468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12469 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12471 break 2
12473 done
12474 done
12475 IFS=$as_save_IFS
12477 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12479 esac
12481 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12482 if test -n "$PKG_CONFIG"; then
12483 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12484 $as_echo "$PKG_CONFIG" >&6; }
12485 else
12486 { $as_echo "$as_me:$LINENO: result: no" >&5
12487 $as_echo "no" >&6; }
12492 if test "$PKG_CONFIG" = "no" ; then
12493 HAVE_DBUS=no
12494 else
12495 PKG_CONFIG_MIN_VERSION=0.9.0
12496 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12497 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12498 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12500 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12501 { $as_echo "$as_me:$LINENO: result: yes" >&5
12502 $as_echo "yes" >&6; }
12503 succeeded=yes
12505 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12506 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12507 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12508 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12509 $as_echo "$DBUS_CFLAGS" >&6; }
12511 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12512 $as_echo_n "checking DBUS_LIBS... " >&6; }
12513 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12514 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12515 $as_echo "$DBUS_LIBS" >&6; }
12516 else
12517 { $as_echo "$as_me:$LINENO: result: no" >&5
12518 $as_echo "no" >&6; }
12519 DBUS_CFLAGS=""
12520 DBUS_LIBS=""
12521 ## If we have a custom action on failure, don't print errors, but
12522 ## do set a variable so people can do so.
12523 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12529 else
12530 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12531 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12535 if test $succeeded = yes; then
12536 HAVE_DBUS=yes
12537 else
12538 HAVE_DBUS=no
12541 if test "$HAVE_DBUS" = yes; then
12542 LIBS="$LIBS $DBUS_LIBS"
12544 cat >>confdefs.h <<\_ACEOF
12545 #define HAVE_DBUS 1
12546 _ACEOF
12549 for ac_func in dbus_watch_get_unix_fd
12551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12552 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12553 $as_echo_n "checking for $ac_func... " >&6; }
12554 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12555 $as_echo_n "(cached) " >&6
12556 else
12557 cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h. */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12565 #define $ac_func innocuous_$ac_func
12567 /* System header to define __stub macros and hopefully few prototypes,
12568 which can conflict with char $ac_func (); below.
12569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12570 <limits.h> exists even on freestanding compilers. */
12572 #ifdef __STDC__
12573 # include <limits.h>
12574 #else
12575 # include <assert.h>
12576 #endif
12578 #undef $ac_func
12580 /* Override any GCC internal prototype to avoid an error.
12581 Use char because int might match the return type of a GCC
12582 builtin and then its argument prototype would still apply. */
12583 #ifdef __cplusplus
12584 extern "C"
12585 #endif
12586 char $ac_func ();
12587 /* The GNU C library defines this for functions which it implements
12588 to always fail with ENOSYS. Some functions are actually named
12589 something starting with __ and the normal name is an alias. */
12590 #if defined __stub_$ac_func || defined __stub___$ac_func
12591 choke me
12592 #endif
12595 main ()
12597 return $ac_func ();
12599 return 0;
12601 _ACEOF
12602 rm -f conftest.$ac_objext conftest$ac_exeext
12603 if { (ac_try="$ac_link"
12604 case "(($ac_try" in
12605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606 *) ac_try_echo=$ac_try;;
12607 esac
12608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12609 $as_echo "$ac_try_echo") >&5
12610 (eval "$ac_link") 2>conftest.er1
12611 ac_status=$?
12612 grep -v '^ *+' conftest.er1 >conftest.err
12613 rm -f conftest.er1
12614 cat conftest.err >&5
12615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } && {
12617 test -z "$ac_c_werror_flag" ||
12618 test ! -s conftest.err
12619 } && test -s conftest$ac_exeext && {
12620 test "$cross_compiling" = yes ||
12621 $as_test_x conftest$ac_exeext
12622 }; then
12623 eval "$as_ac_var=yes"
12624 else
12625 $as_echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 eval "$as_ac_var=no"
12631 rm -rf conftest.dSYM
12632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12633 conftest$ac_exeext conftest.$ac_ext
12635 ac_res=`eval 'as_val=${'$as_ac_var'}
12636 $as_echo "$as_val"'`
12637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12638 $as_echo "$ac_res" >&6; }
12639 if test `eval 'as_val=${'$as_ac_var'}
12640 $as_echo "$as_val"'` = yes; then
12641 cat >>confdefs.h <<_ACEOF
12642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12643 _ACEOF
12646 done
12651 HAVE_GCONF=no
12652 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12654 succeeded=no
12656 # Extract the first word of "pkg-config", so it can be a program name with args.
12657 set dummy pkg-config; ac_word=$2
12658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12659 $as_echo_n "checking for $ac_word... " >&6; }
12660 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12661 $as_echo_n "(cached) " >&6
12662 else
12663 case $PKG_CONFIG in
12664 [\\/]* | ?:[\\/]*)
12665 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in $PATH
12671 IFS=$as_save_IFS
12672 test -z "$as_dir" && as_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12675 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12677 break 2
12679 done
12680 done
12681 IFS=$as_save_IFS
12683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12685 esac
12687 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12688 if test -n "$PKG_CONFIG"; then
12689 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12690 $as_echo "$PKG_CONFIG" >&6; }
12691 else
12692 { $as_echo "$as_me:$LINENO: result: no" >&5
12693 $as_echo "no" >&6; }
12698 if test "$PKG_CONFIG" = "no" ; then
12699 HAVE_GCONF=no
12700 else
12701 PKG_CONFIG_MIN_VERSION=0.9.0
12702 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12703 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12704 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12706 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12707 { $as_echo "$as_me:$LINENO: result: yes" >&5
12708 $as_echo "yes" >&6; }
12709 succeeded=yes
12711 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12712 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12713 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12714 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12715 $as_echo "$GCONF_CFLAGS" >&6; }
12717 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12718 $as_echo_n "checking GCONF_LIBS... " >&6; }
12719 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12720 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12721 $as_echo "$GCONF_LIBS" >&6; }
12722 else
12723 { $as_echo "$as_me:$LINENO: result: no" >&5
12724 $as_echo "no" >&6; }
12725 GCONF_CFLAGS=""
12726 GCONF_LIBS=""
12727 ## If we have a custom action on failure, don't print errors, but
12728 ## do set a variable so people can do so.
12729 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12735 else
12736 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12737 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12741 if test $succeeded = yes; then
12742 HAVE_GCONF=yes
12743 else
12744 HAVE_GCONF=no
12747 if test "$HAVE_GCONF" = yes; then
12749 cat >>confdefs.h <<\_ACEOF
12750 #define HAVE_GCONF 1
12751 _ACEOF
12756 HAVE_XAW3D=no
12757 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12758 if test "$with_xaw3d" != no; then
12759 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12760 $as_echo_n "checking for xaw3d... " >&6; }
12761 if test "${emacs_cv_xaw3d+set}" = set; then
12762 $as_echo_n "(cached) " >&6
12763 else
12764 cat >conftest.$ac_ext <<_ACEOF
12765 /* confdefs.h. */
12766 _ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12771 #include <X11/Intrinsic.h>
12772 #include <X11/Xaw3d/Simple.h>
12774 main ()
12778 return 0;
12780 _ACEOF
12781 rm -f conftest.$ac_objext conftest$ac_exeext
12782 if { (ac_try="$ac_link"
12783 case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786 esac
12787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12788 $as_echo "$ac_try_echo") >&5
12789 (eval "$ac_link") 2>conftest.er1
12790 ac_status=$?
12791 grep -v '^ *+' conftest.er1 >conftest.err
12792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } && {
12796 test -z "$ac_c_werror_flag" ||
12797 test ! -s conftest.err
12798 } && test -s conftest$ac_exeext && {
12799 test "$cross_compiling" = yes ||
12800 $as_test_x conftest$ac_exeext
12801 }; then
12802 emacs_cv_xaw3d=yes
12803 else
12804 $as_echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 emacs_cv_xaw3d=no
12810 rm -rf conftest.dSYM
12811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12812 conftest$ac_exeext conftest.$ac_ext
12815 else
12816 emacs_cv_xaw3d=no
12818 if test $emacs_cv_xaw3d = yes; then
12819 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12820 $as_echo "yes; using Lucid toolkit" >&6; }
12821 USE_X_TOOLKIT=LUCID
12822 HAVE_XAW3D=yes
12824 cat >>confdefs.h <<\_ACEOF
12825 #define HAVE_XAW3D 1
12826 _ACEOF
12828 else
12829 { $as_echo "$as_me:$LINENO: result: no" >&5
12830 $as_echo "no" >&6; }
12831 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12832 $as_echo_n "checking for libXaw... " >&6; }
12833 if test "${emacs_cv_xaw+set}" = set; then
12834 $as_echo_n "(cached) " >&6
12835 else
12836 cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h. */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12843 #include <X11/Intrinsic.h>
12844 #include <X11/Xaw/Simple.h>
12846 main ()
12850 return 0;
12852 _ACEOF
12853 rm -f conftest.$ac_objext conftest$ac_exeext
12854 if { (ac_try="$ac_link"
12855 case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12858 esac
12859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12860 $as_echo "$ac_try_echo") >&5
12861 (eval "$ac_link") 2>conftest.er1
12862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
12866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } && {
12868 test -z "$ac_c_werror_flag" ||
12869 test ! -s conftest.err
12870 } && test -s conftest$ac_exeext && {
12871 test "$cross_compiling" = yes ||
12872 $as_test_x conftest$ac_exeext
12873 }; then
12874 emacs_cv_xaw=yes
12875 else
12876 $as_echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.$ac_ext >&5
12879 emacs_cv_xaw=no
12882 rm -rf conftest.dSYM
12883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12884 conftest$ac_exeext conftest.$ac_ext
12887 if test $emacs_cv_xaw = yes; then
12888 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12889 $as_echo "yes; using Lucid toolkit" >&6; }
12890 USE_X_TOOLKIT=LUCID
12891 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12892 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12893 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12894 { (exit 1); exit 1; }; }
12895 else
12896 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12897 $as_echo "no; do not use toolkit by default" >&6; }
12898 USE_X_TOOLKIT=none
12903 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12905 if test "${USE_X_TOOLKIT}" != "none"; then
12906 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12907 $as_echo_n "checking X11 toolkit version... " >&6; }
12908 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12909 $as_echo_n "(cached) " >&6
12910 else
12911 cat >conftest.$ac_ext <<_ACEOF
12912 /* confdefs.h. */
12913 _ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12917 #include <X11/Intrinsic.h>
12919 main ()
12921 #if XtSpecificationRelease < 6
12922 fail;
12923 #endif
12926 return 0;
12928 _ACEOF
12929 rm -f conftest.$ac_objext conftest$ac_exeext
12930 if { (ac_try="$ac_link"
12931 case "(($ac_try" in
12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12934 esac
12935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12936 $as_echo "$ac_try_echo") >&5
12937 (eval "$ac_link") 2>conftest.er1
12938 ac_status=$?
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
12942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && {
12944 test -z "$ac_c_werror_flag" ||
12945 test ! -s conftest.err
12946 } && test -s conftest$ac_exeext && {
12947 test "$cross_compiling" = yes ||
12948 $as_test_x conftest$ac_exeext
12949 }; then
12950 emacs_cv_x11_toolkit_version_6=yes
12951 else
12952 $as_echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 emacs_cv_x11_toolkit_version_6=no
12958 rm -rf conftest.dSYM
12959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12960 conftest$ac_exeext conftest.$ac_ext
12963 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12964 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12965 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12966 $as_echo "6 or newer" >&6; }
12968 cat >>confdefs.h <<\_ACEOF
12969 #define HAVE_X11XTR6 1
12970 _ACEOF
12972 else
12973 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12974 $as_echo "before 6" >&6; }
12977 OLDLIBS="$LIBS"
12978 if test x$HAVE_X11XTR6 = xyes; then
12979 LIBS="-lXt -lSM -lICE $LIBS"
12980 else
12981 LIBS="-lXt $LIBS"
12984 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12985 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12986 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12987 $as_echo_n "(cached) " >&6
12988 else
12989 ac_check_lib_save_LIBS=$LIBS
12990 LIBS="-lXmu $LIBS"
12991 cat >conftest.$ac_ext <<_ACEOF
12992 /* confdefs.h. */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 char XmuConvertStandardSelection ();
13006 main ()
13008 return XmuConvertStandardSelection ();
13010 return 0;
13012 _ACEOF
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (ac_try="$ac_link"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018 esac
13019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13020 $as_echo "$ac_try_echo") >&5
13021 (eval "$ac_link") 2>conftest.er1
13022 ac_status=$?
13023 grep -v '^ *+' conftest.er1 >conftest.err
13024 rm -f conftest.er1
13025 cat conftest.err >&5
13026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } && {
13028 test -z "$ac_c_werror_flag" ||
13029 test ! -s conftest.err
13030 } && test -s conftest$ac_exeext && {
13031 test "$cross_compiling" = yes ||
13032 $as_test_x conftest$ac_exeext
13033 }; then
13034 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13035 else
13036 $as_echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13039 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13042 rm -rf conftest.dSYM
13043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13044 conftest$ac_exeext conftest.$ac_ext
13045 LIBS=$ac_check_lib_save_LIBS
13047 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13048 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13049 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13050 cat >>confdefs.h <<_ACEOF
13051 #define HAVE_LIBXMU 1
13052 _ACEOF
13054 LIBS="-lXmu $LIBS"
13058 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13061 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13062 if test "${HAVE_X11}" = "yes"; then
13063 if test "${USE_X_TOOLKIT}" != "none"; then
13065 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13066 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13067 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13068 $as_echo_n "(cached) " >&6
13069 else
13070 ac_check_lib_save_LIBS=$LIBS
13071 LIBS="-lXext $LIBS"
13072 cat >conftest.$ac_ext <<_ACEOF
13073 /* confdefs.h. */
13074 _ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13079 /* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
13082 #ifdef __cplusplus
13083 extern "C"
13084 #endif
13085 char XShapeQueryExtension ();
13087 main ()
13089 return XShapeQueryExtension ();
13091 return 0;
13093 _ACEOF
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (ac_try="$ac_link"
13096 case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099 esac
13100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13101 $as_echo "$ac_try_echo") >&5
13102 (eval "$ac_link") 2>conftest.er1
13103 ac_status=$?
13104 grep -v '^ *+' conftest.er1 >conftest.err
13105 rm -f conftest.er1
13106 cat conftest.err >&5
13107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } && {
13109 test -z "$ac_c_werror_flag" ||
13110 test ! -s conftest.err
13111 } && test -s conftest$ac_exeext && {
13112 test "$cross_compiling" = yes ||
13113 $as_test_x conftest$ac_exeext
13114 }; then
13115 ac_cv_lib_Xext_XShapeQueryExtension=yes
13116 else
13117 $as_echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13120 ac_cv_lib_Xext_XShapeQueryExtension=no
13123 rm -rf conftest.dSYM
13124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13125 conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13128 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13129 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13130 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13131 cat >>confdefs.h <<_ACEOF
13132 #define HAVE_LIBXEXT 1
13133 _ACEOF
13135 LIBS="-lXext $LIBS"
13142 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13143 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13144 $as_echo_n "checking for Motif version 2.1... " >&6; }
13145 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13146 $as_echo_n "(cached) " >&6
13147 else
13148 cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h. */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 #include <Xm/Xm.h>
13156 main ()
13158 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13159 int x = 5;
13160 #else
13161 Motif version prior to 2.1.
13162 #endif
13164 return 0;
13166 _ACEOF
13167 rm -f conftest.$ac_objext
13168 if { (ac_try="$ac_compile"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172 esac
13173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13174 $as_echo "$ac_try_echo") >&5
13175 (eval "$ac_compile") 2>conftest.er1
13176 ac_status=$?
13177 grep -v '^ *+' conftest.er1 >conftest.err
13178 rm -f conftest.er1
13179 cat conftest.err >&5
13180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } && {
13182 test -z "$ac_c_werror_flag" ||
13183 test ! -s conftest.err
13184 } && test -s conftest.$ac_objext; then
13185 emacs_cv_motif_version_2_1=yes
13186 else
13187 $as_echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13190 emacs_cv_motif_version_2_1=no
13193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13195 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13196 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13197 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13198 if test $emacs_cv_motif_version_2_1 = yes; then
13199 HAVE_LIBXP=no
13201 cat >>confdefs.h <<\_ACEOF
13202 #define HAVE_MOTIF_2_1 1
13203 _ACEOF
13205 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13206 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13207 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13208 $as_echo_n "(cached) " >&6
13209 else
13210 ac_check_lib_save_LIBS=$LIBS
13211 LIBS="-lXp $LIBS"
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h. */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13219 /* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13222 #ifdef __cplusplus
13223 extern "C"
13224 #endif
13225 char XpCreateContext ();
13227 main ()
13229 return XpCreateContext ();
13231 return 0;
13233 _ACEOF
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239 esac
13240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13241 $as_echo "$ac_try_echo") >&5
13242 (eval "$ac_link") 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && {
13249 test -z "$ac_c_werror_flag" ||
13250 test ! -s conftest.err
13251 } && test -s conftest$ac_exeext && {
13252 test "$cross_compiling" = yes ||
13253 $as_test_x conftest$ac_exeext
13254 }; then
13255 ac_cv_lib_Xp_XpCreateContext=yes
13256 else
13257 $as_echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13260 ac_cv_lib_Xp_XpCreateContext=no
13263 rm -rf conftest.dSYM
13264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13265 conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13268 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13269 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13270 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13271 HAVE_LIBXP=yes
13274 if test ${HAVE_LIBXP} = yes; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_LIBXP 1
13278 _ACEOF
13281 else
13282 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13283 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13284 if test "${emacs_cv_lesstif+set}" = set; then
13285 $as_echo_n "(cached) " >&6
13286 else
13287 # We put this in CFLAGS temporarily to precede other -I options
13288 # that might be in CFLAGS temporarily.
13289 # We put this in CPPFLAGS where it precedes the other -I options.
13290 OLD_CPPFLAGS=$CPPFLAGS
13291 OLD_CFLAGS=$CFLAGS
13292 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13293 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13294 cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h. */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13300 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13302 main ()
13304 int x = 5;
13306 return 0;
13308 _ACEOF
13309 rm -f conftest.$ac_objext
13310 if { (ac_try="$ac_compile"
13311 case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13314 esac
13315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13316 $as_echo "$ac_try_echo") >&5
13317 (eval "$ac_compile") 2>conftest.er1
13318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } && {
13324 test -z "$ac_c_werror_flag" ||
13325 test ! -s conftest.err
13326 } && test -s conftest.$ac_objext; then
13327 emacs_cv_lesstif=yes
13328 else
13329 $as_echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13332 emacs_cv_lesstif=no
13335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13338 $as_echo "$emacs_cv_lesstif" >&6; }
13339 if test $emacs_cv_lesstif = yes; then
13340 # Make sure this -I option remains in CPPFLAGS after it is set
13341 # back to REAL_CPPFLAGS.
13342 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13343 # have those other -I options anyway. Ultimately, having this
13344 # directory ultimately in CPPFLAGS will be enough.
13345 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13346 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13347 else
13348 CFLAGS=$OLD_CFLAGS
13349 CPPFLAGS=$OLD_CPPFLAGS
13356 USE_TOOLKIT_SCROLL_BARS=no
13357 if test "${with_toolkit_scroll_bars}" != "no"; then
13358 if test "${USE_X_TOOLKIT}" != "none"; then
13359 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13360 cat >>confdefs.h <<\_ACEOF
13361 #define USE_TOOLKIT_SCROLL_BARS 1
13362 _ACEOF
13364 HAVE_XAW3D=no
13365 USE_TOOLKIT_SCROLL_BARS=yes
13366 elif test "${HAVE_XAW3D}" = "yes"; then
13367 cat >>confdefs.h <<\_ACEOF
13368 #define USE_TOOLKIT_SCROLL_BARS 1
13369 _ACEOF
13371 USE_TOOLKIT_SCROLL_BARS=yes
13373 elif test "${HAVE_GTK}" = "yes"; then
13374 cat >>confdefs.h <<\_ACEOF
13375 #define USE_TOOLKIT_SCROLL_BARS 1
13376 _ACEOF
13378 USE_TOOLKIT_SCROLL_BARS=yes
13379 elif test "${HAVE_NS}" = "yes"; then
13380 cat >>confdefs.h <<\_ACEOF
13381 #define USE_TOOLKIT_SCROLL_BARS 1
13382 _ACEOF
13384 USE_TOOLKIT_SCROLL_BARS=yes
13388 cat >conftest.$ac_ext <<_ACEOF
13389 /* confdefs.h. */
13390 _ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13395 #include <X11/Xlib.h>
13396 #include <X11/Xresource.h>
13398 main ()
13400 XIMProc callback;
13402 return 0;
13404 _ACEOF
13405 rm -f conftest.$ac_objext
13406 if { (ac_try="$ac_compile"
13407 case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410 esac
13411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13412 $as_echo "$ac_try_echo") >&5
13413 (eval "$ac_compile") 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } && {
13420 test -z "$ac_c_werror_flag" ||
13421 test ! -s conftest.err
13422 } && test -s conftest.$ac_objext; then
13423 HAVE_XIM=yes
13425 cat >>confdefs.h <<\_ACEOF
13426 #define HAVE_XIM 1
13427 _ACEOF
13429 else
13430 $as_echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13433 HAVE_XIM=no
13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439 if test "${with_xim}" != "no"; then
13441 cat >>confdefs.h <<\_ACEOF
13442 #define USE_XIM 1
13443 _ACEOF
13448 if test "${HAVE_XIM}" != "no"; then
13449 late_CFLAGS=$CFLAGS
13450 if test "$GCC" = yes; then
13451 CFLAGS="$CFLAGS --pedantic-errors"
13453 cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h. */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13460 #include <X11/Xlib.h>
13461 #include <X11/Xresource.h>
13463 main ()
13465 Display *display;
13466 XrmDatabase db;
13467 char *res_name;
13468 char *res_class;
13469 XIMProc callback;
13470 XPointer *client_data;
13471 #ifndef __GNUC__
13472 /* If we're not using GCC, it's probably not XFree86, and this is
13473 probably right, but we can't use something like --pedantic-errors. */
13474 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13475 char*, XIMProc, XPointer*);
13476 #endif
13477 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13478 client_data);
13480 return 0;
13482 _ACEOF
13483 rm -f conftest.$ac_objext
13484 if { (ac_try="$ac_compile"
13485 case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13488 esac
13489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13490 $as_echo "$ac_try_echo") >&5
13491 (eval "$ac_compile") 2>conftest.er1
13492 ac_status=$?
13493 grep -v '^ *+' conftest.er1 >conftest.err
13494 rm -f conftest.er1
13495 cat conftest.err >&5
13496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } && {
13498 test -z "$ac_c_werror_flag" ||
13499 test ! -s conftest.err
13500 } && test -s conftest.$ac_objext; then
13501 emacs_cv_arg6_star=yes
13502 else
13503 $as_echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511 if test "$emacs_cv_arg6_star" = yes; then
13512 cat >>confdefs.h <<\_ACEOF
13513 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13514 _ACEOF
13516 else
13517 cat >>confdefs.h <<\_ACEOF
13518 #define XRegisterIMInstantiateCallback_arg6 XPointer
13519 _ACEOF
13522 CFLAGS=$late_CFLAGS
13525 ### Start of font-backend (under any platform) section.
13526 # (nothing here yet -- this is a placeholder)
13527 ### End of font-backend (under any platform) section.
13529 ### Start of font-backend (under X11) section.
13530 if test "${HAVE_X11}" = "yes"; then
13532 succeeded=no
13534 # Extract the first word of "pkg-config", so it can be a program name with args.
13535 set dummy pkg-config; ac_word=$2
13536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13537 $as_echo_n "checking for $ac_word... " >&6; }
13538 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13539 $as_echo_n "(cached) " >&6
13540 else
13541 case $PKG_CONFIG in
13542 [\\/]* | ?:[\\/]*)
13543 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13547 for as_dir in $PATH
13549 IFS=$as_save_IFS
13550 test -z "$as_dir" && as_dir=.
13551 for ac_exec_ext in '' $ac_executable_extensions; do
13552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13553 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13554 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13555 break 2
13557 done
13558 done
13559 IFS=$as_save_IFS
13561 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13563 esac
13565 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13566 if test -n "$PKG_CONFIG"; then
13567 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13568 $as_echo "$PKG_CONFIG" >&6; }
13569 else
13570 { $as_echo "$as_me:$LINENO: result: no" >&5
13571 $as_echo "no" >&6; }
13576 if test "$PKG_CONFIG" = "no" ; then
13577 HAVE_FC=no
13578 else
13579 PKG_CONFIG_MIN_VERSION=0.9.0
13580 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13581 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13582 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13584 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13585 { $as_echo "$as_me:$LINENO: result: yes" >&5
13586 $as_echo "yes" >&6; }
13587 succeeded=yes
13589 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13590 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13591 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13592 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13593 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13595 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13596 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13597 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13598 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13599 $as_echo "$FONTCONFIG_LIBS" >&6; }
13600 else
13601 { $as_echo "$as_me:$LINENO: result: no" >&5
13602 $as_echo "no" >&6; }
13603 FONTCONFIG_CFLAGS=""
13604 FONTCONFIG_LIBS=""
13605 ## If we have a custom action on failure, don't print errors, but
13606 ## do set a variable so people can do so.
13607 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13613 else
13614 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13615 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13619 if test $succeeded = yes; then
13620 HAVE_FC=yes
13621 else
13622 HAVE_FC=no
13626 ## Use -lXft if available, unless `--with-xft=no'.
13627 HAVE_XFT=maybe
13628 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13629 with_xft="no";
13631 if test "x${with_xft}" != "xno"; then
13634 succeeded=no
13636 # Extract the first word of "pkg-config", so it can be a program name with args.
13637 set dummy pkg-config; ac_word=$2
13638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13639 $as_echo_n "checking for $ac_word... " >&6; }
13640 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13641 $as_echo_n "(cached) " >&6
13642 else
13643 case $PKG_CONFIG in
13644 [\\/]* | ?:[\\/]*)
13645 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13651 IFS=$as_save_IFS
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
13654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13655 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13657 break 2
13659 done
13660 done
13661 IFS=$as_save_IFS
13663 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13665 esac
13667 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13668 if test -n "$PKG_CONFIG"; then
13669 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13670 $as_echo "$PKG_CONFIG" >&6; }
13671 else
13672 { $as_echo "$as_me:$LINENO: result: no" >&5
13673 $as_echo "no" >&6; }
13678 if test "$PKG_CONFIG" = "no" ; then
13679 HAVE_XFT=no
13680 else
13681 PKG_CONFIG_MIN_VERSION=0.9.0
13682 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13683 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13684 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13686 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13687 { $as_echo "$as_me:$LINENO: result: yes" >&5
13688 $as_echo "yes" >&6; }
13689 succeeded=yes
13691 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13692 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13693 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13694 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13695 $as_echo "$XFT_CFLAGS" >&6; }
13697 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13698 $as_echo_n "checking XFT_LIBS... " >&6; }
13699 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13700 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13701 $as_echo "$XFT_LIBS" >&6; }
13702 else
13703 { $as_echo "$as_me:$LINENO: result: no" >&5
13704 $as_echo "no" >&6; }
13705 XFT_CFLAGS=""
13706 XFT_LIBS=""
13707 ## If we have a custom action on failure, don't print errors, but
13708 ## do set a variable so people can do so.
13709 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13715 else
13716 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13717 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13721 if test $succeeded = yes; then
13723 else
13724 HAVE_XFT=no
13727 ## Because xftfont.c uses XRenderQueryExtension, we also
13728 ## need to link to -lXrender.
13729 HAVE_XRENDER=no
13730 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13731 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13732 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13733 $as_echo_n "(cached) " >&6
13734 else
13735 ac_check_lib_save_LIBS=$LIBS
13736 LIBS="-lXrender $LIBS"
13737 cat >conftest.$ac_ext <<_ACEOF
13738 /* confdefs.h. */
13739 _ACEOF
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h. */
13744 /* Override any GCC internal prototype to avoid an error.
13745 Use char because int might match the return type of a GCC
13746 builtin and then its argument prototype would still apply. */
13747 #ifdef __cplusplus
13748 extern "C"
13749 #endif
13750 char XRenderQueryExtension ();
13752 main ()
13754 return XRenderQueryExtension ();
13756 return 0;
13758 _ACEOF
13759 rm -f conftest.$ac_objext conftest$ac_exeext
13760 if { (ac_try="$ac_link"
13761 case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764 esac
13765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13766 $as_echo "$ac_try_echo") >&5
13767 (eval "$ac_link") 2>conftest.er1
13768 ac_status=$?
13769 grep -v '^ *+' conftest.er1 >conftest.err
13770 rm -f conftest.er1
13771 cat conftest.err >&5
13772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } && {
13774 test -z "$ac_c_werror_flag" ||
13775 test ! -s conftest.err
13776 } && test -s conftest$ac_exeext && {
13777 test "$cross_compiling" = yes ||
13778 $as_test_x conftest$ac_exeext
13779 }; then
13780 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13781 else
13782 $as_echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 ac_cv_lib_Xrender_XRenderQueryExtension=no
13788 rm -rf conftest.dSYM
13789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13790 conftest$ac_exeext conftest.$ac_ext
13791 LIBS=$ac_check_lib_save_LIBS
13793 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13794 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13795 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13796 HAVE_XRENDER=yes
13799 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13800 OLD_CPPFLAGS="$CPPFLAGS"
13801 OLD_CFLAGS="$CFLAGS"
13802 OLD_LIBS="$LIBS"
13803 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13804 CFLAGS="$CFLAGS $XFT_CFLAGS"
13805 XFT_LIBS="-lXrender $XFT_LIBS"
13806 LIBS="$XFT_LIBS $LIBS"
13807 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13808 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13809 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13810 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13811 $as_echo_n "(cached) " >&6
13813 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13814 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13815 else
13816 # Is the header compilable?
13817 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13818 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13819 cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h. */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 $ac_includes_default
13826 #include <X11/Xft/Xft.h>
13827 _ACEOF
13828 rm -f conftest.$ac_objext
13829 if { (ac_try="$ac_compile"
13830 case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13833 esac
13834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13835 $as_echo "$ac_try_echo") >&5
13836 (eval "$ac_compile") 2>conftest.er1
13837 ac_status=$?
13838 grep -v '^ *+' conftest.er1 >conftest.err
13839 rm -f conftest.er1
13840 cat conftest.err >&5
13841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } && {
13843 test -z "$ac_c_werror_flag" ||
13844 test ! -s conftest.err
13845 } && test -s conftest.$ac_objext; then
13846 ac_header_compiler=yes
13847 else
13848 $as_echo "$as_me: failed program was:" >&5
13849 sed 's/^/| /' conftest.$ac_ext >&5
13851 ac_header_compiler=no
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13856 $as_echo "$ac_header_compiler" >&6; }
13858 # Is the header present?
13859 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13860 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13861 cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h. */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #include <X11/Xft/Xft.h>
13868 _ACEOF
13869 if { (ac_try="$ac_cpp conftest.$ac_ext"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873 esac
13874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13875 $as_echo "$ac_try_echo") >&5
13876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13877 ac_status=$?
13878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
13881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } >/dev/null && {
13883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13885 }; then
13886 ac_header_preproc=yes
13887 else
13888 $as_echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13891 ac_header_preproc=no
13894 rm -f conftest.err conftest.$ac_ext
13895 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13896 $as_echo "$ac_header_preproc" >&6; }
13898 # So? What about this header?
13899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13900 yes:no: )
13901 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13902 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13903 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13904 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13905 ac_header_preproc=yes
13907 no:yes:* )
13908 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13909 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13910 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13911 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13912 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13913 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13914 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13915 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13916 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13917 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13918 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13919 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13922 esac
13923 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13924 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13925 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13926 $as_echo_n "(cached) " >&6
13927 else
13928 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13930 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13931 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13934 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13935 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13936 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13937 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13938 $as_echo_n "(cached) " >&6
13939 else
13940 ac_check_lib_save_LIBS=$LIBS
13941 LIBS="-lXft $XFT_LIBS $LIBS"
13942 cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h. */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13952 #ifdef __cplusplus
13953 extern "C"
13954 #endif
13955 char XftFontOpen ();
13957 main ()
13959 return XftFontOpen ();
13961 return 0;
13963 _ACEOF
13964 rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (ac_try="$ac_link"
13966 case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969 esac
13970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13971 $as_echo "$ac_try_echo") >&5
13972 (eval "$ac_link") 2>conftest.er1
13973 ac_status=$?
13974 grep -v '^ *+' conftest.er1 >conftest.err
13975 rm -f conftest.er1
13976 cat conftest.err >&5
13977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } && {
13979 test -z "$ac_c_werror_flag" ||
13980 test ! -s conftest.err
13981 } && test -s conftest$ac_exeext && {
13982 test "$cross_compiling" = yes ||
13983 $as_test_x conftest$ac_exeext
13984 }; then
13985 ac_cv_lib_Xft_XftFontOpen=yes
13986 else
13987 $as_echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13990 ac_cv_lib_Xft_XftFontOpen=no
13993 rm -rf conftest.dSYM
13994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13995 conftest$ac_exeext conftest.$ac_ext
13996 LIBS=$ac_check_lib_save_LIBS
13998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13999 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14000 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14001 HAVE_XFT=yes
14008 if test "${HAVE_XFT}" = "yes"; then
14010 cat >>confdefs.h <<\_ACEOF
14011 #define HAVE_XFT 1
14012 _ACEOF
14015 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14016 else
14017 CPPFLAGS="$OLD_CPPFLAGS"
14018 CFLAGS="$OLD_CFLAGS"
14019 LIBS="$OLD_LIBS"
14020 fi # "${HAVE_XFT}" = "yes"
14021 fi # "$HAVE_XFT" != no
14022 fi # "x${with_xft}" != "xno"
14024 if test "$HAVE_XFT" != "yes"; then
14025 HAVE_XFT=no
14029 HAVE_FREETYPE=no
14030 ## We used to allow building with FreeType and without Xft.
14031 ## However, the ftx font backend driver is not in good shape.
14032 if test "${HAVE_XFT}" = "yes"; then
14033 HAVE_FREETYPE=yes
14034 FONTCONFIG_CFLAGS=
14035 FONTCONFIG_LIBS=
14038 HAVE_LIBOTF=no
14039 if test "${HAVE_FREETYPE}" = "yes"; then
14041 cat >>confdefs.h <<\_ACEOF
14042 #define HAVE_FREETYPE 1
14043 _ACEOF
14045 if test "${with_libotf}" != "no"; then
14047 succeeded=no
14049 # Extract the first word of "pkg-config", so it can be a program name with args.
14050 set dummy pkg-config; ac_word=$2
14051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14052 $as_echo_n "checking for $ac_word... " >&6; }
14053 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14054 $as_echo_n "(cached) " >&6
14055 else
14056 case $PKG_CONFIG in
14057 [\\/]* | ?:[\\/]*)
14058 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14062 for as_dir in $PATH
14064 IFS=$as_save_IFS
14065 test -z "$as_dir" && as_dir=.
14066 for ac_exec_ext in '' $ac_executable_extensions; do
14067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14068 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14070 break 2
14072 done
14073 done
14074 IFS=$as_save_IFS
14076 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14078 esac
14080 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14081 if test -n "$PKG_CONFIG"; then
14082 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14083 $as_echo "$PKG_CONFIG" >&6; }
14084 else
14085 { $as_echo "$as_me:$LINENO: result: no" >&5
14086 $as_echo "no" >&6; }
14091 if test "$PKG_CONFIG" = "no" ; then
14092 HAVE_LIBOTF=no
14093 else
14094 PKG_CONFIG_MIN_VERSION=0.9.0
14095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14096 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14097 $as_echo_n "checking for libotf... " >&6; }
14099 if $PKG_CONFIG --exists "libotf" 2>&5; then
14100 { $as_echo "$as_me:$LINENO: result: yes" >&5
14101 $as_echo "yes" >&6; }
14102 succeeded=yes
14104 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14105 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14106 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14107 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14108 $as_echo "$LIBOTF_CFLAGS" >&6; }
14110 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14111 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14112 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14113 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14114 $as_echo "$LIBOTF_LIBS" >&6; }
14115 else
14116 { $as_echo "$as_me:$LINENO: result: no" >&5
14117 $as_echo "no" >&6; }
14118 LIBOTF_CFLAGS=""
14119 LIBOTF_LIBS=""
14120 ## If we have a custom action on failure, don't print errors, but
14121 ## do set a variable so people can do so.
14122 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14128 else
14129 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14130 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14134 if test $succeeded = yes; then
14135 HAVE_LIBOTF=yes
14136 else
14137 HAVE_LIBOTF=no
14140 if test "$HAVE_LIBOTF" = "yes"; then
14142 cat >>confdefs.h <<\_ACEOF
14143 #define HAVE_LIBOTF 1
14144 _ACEOF
14146 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14147 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14148 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14149 $as_echo_n "(cached) " >&6
14150 else
14151 ac_check_lib_save_LIBS=$LIBS
14152 LIBS="-lotf $LIBS"
14153 cat >conftest.$ac_ext <<_ACEOF
14154 /* confdefs.h. */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14160 /* Override any GCC internal prototype to avoid an error.
14161 Use char because int might match the return type of a GCC
14162 builtin and then its argument prototype would still apply. */
14163 #ifdef __cplusplus
14164 extern "C"
14165 #endif
14166 char OTF_get_variation_glyphs ();
14168 main ()
14170 return OTF_get_variation_glyphs ();
14172 return 0;
14174 _ACEOF
14175 rm -f conftest.$ac_objext conftest$ac_exeext
14176 if { (ac_try="$ac_link"
14177 case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14180 esac
14181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14182 $as_echo "$ac_try_echo") >&5
14183 (eval "$ac_link") 2>conftest.er1
14184 ac_status=$?
14185 grep -v '^ *+' conftest.er1 >conftest.err
14186 rm -f conftest.er1
14187 cat conftest.err >&5
14188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && {
14190 test -z "$ac_c_werror_flag" ||
14191 test ! -s conftest.err
14192 } && test -s conftest$ac_exeext && {
14193 test "$cross_compiling" = yes ||
14194 $as_test_x conftest$ac_exeext
14195 }; then
14196 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14197 else
14198 $as_echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14204 rm -rf conftest.dSYM
14205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14206 conftest$ac_exeext conftest.$ac_ext
14207 LIBS=$ac_check_lib_save_LIBS
14209 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14210 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14211 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14212 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14213 else
14214 HAVE_OTF_GET_VARIATION_GLYPHS=no
14217 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14219 cat >>confdefs.h <<\_ACEOF
14220 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14221 _ACEOF
14228 HAVE_M17N_FLT=no
14229 if test "${HAVE_LIBOTF}" = yes; then
14230 if test "${with_m17n_flt}" != "no"; then
14232 succeeded=no
14234 # Extract the first word of "pkg-config", so it can be a program name with args.
14235 set dummy pkg-config; ac_word=$2
14236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14237 $as_echo_n "checking for $ac_word... " >&6; }
14238 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14239 $as_echo_n "(cached) " >&6
14240 else
14241 case $PKG_CONFIG in
14242 [\\/]* | ?:[\\/]*)
14243 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14247 for as_dir in $PATH
14249 IFS=$as_save_IFS
14250 test -z "$as_dir" && as_dir=.
14251 for ac_exec_ext in '' $ac_executable_extensions; do
14252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14253 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14255 break 2
14257 done
14258 done
14259 IFS=$as_save_IFS
14261 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14263 esac
14265 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14266 if test -n "$PKG_CONFIG"; then
14267 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14268 $as_echo "$PKG_CONFIG" >&6; }
14269 else
14270 { $as_echo "$as_me:$LINENO: result: no" >&5
14271 $as_echo "no" >&6; }
14276 if test "$PKG_CONFIG" = "no" ; then
14277 HAVE_M17N_FLT=no
14278 else
14279 PKG_CONFIG_MIN_VERSION=0.9.0
14280 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14281 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14282 $as_echo_n "checking for m17n-flt... " >&6; }
14284 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14285 { $as_echo "$as_me:$LINENO: result: yes" >&5
14286 $as_echo "yes" >&6; }
14287 succeeded=yes
14289 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14290 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14291 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14292 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14293 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14295 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14296 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14297 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14298 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14299 $as_echo "$M17N_FLT_LIBS" >&6; }
14300 else
14301 { $as_echo "$as_me:$LINENO: result: no" >&5
14302 $as_echo "no" >&6; }
14303 M17N_FLT_CFLAGS=""
14304 M17N_FLT_LIBS=""
14305 ## If we have a custom action on failure, don't print errors, but
14306 ## do set a variable so people can do so.
14307 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14313 else
14314 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14315 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14319 if test $succeeded = yes; then
14320 HAVE_M17N_FLT=yes
14321 else
14322 HAVE_M17N_FLT=no
14325 if test "$HAVE_M17N_FLT" = "yes"; then
14327 cat >>confdefs.h <<\_ACEOF
14328 #define HAVE_M17N_FLT 1
14329 _ACEOF
14334 else
14335 HAVE_XFT=no
14336 HAVE_FREETYPE=no
14337 HAVE_LIBOTF=no
14338 HAVE_M17N_FLT=no
14340 ### End of font-backend (under X11) section.
14351 ### Use -lXpm if available, unless `--with-xpm=no'.
14352 HAVE_XPM=no
14353 LIBXPM=
14354 if test "${HAVE_X11}" = "yes"; then
14355 if test "${with_xpm}" != "no"; then
14356 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14357 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14358 $as_echo_n "checking for X11/xpm.h... " >&6; }
14359 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14360 $as_echo_n "(cached) " >&6
14362 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14363 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14364 else
14365 # Is the header compilable?
14366 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14367 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14368 cat >conftest.$ac_ext <<_ACEOF
14369 /* confdefs.h. */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 $ac_includes_default
14375 #include <X11/xpm.h>
14376 _ACEOF
14377 rm -f conftest.$ac_objext
14378 if { (ac_try="$ac_compile"
14379 case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14382 esac
14383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14384 $as_echo "$ac_try_echo") >&5
14385 (eval "$ac_compile") 2>conftest.er1
14386 ac_status=$?
14387 grep -v '^ *+' conftest.er1 >conftest.err
14388 rm -f conftest.er1
14389 cat conftest.err >&5
14390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } && {
14392 test -z "$ac_c_werror_flag" ||
14393 test ! -s conftest.err
14394 } && test -s conftest.$ac_objext; then
14395 ac_header_compiler=yes
14396 else
14397 $as_echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14400 ac_header_compiler=no
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14405 $as_echo "$ac_header_compiler" >&6; }
14407 # Is the header present?
14408 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14409 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14410 cat >conftest.$ac_ext <<_ACEOF
14411 /* confdefs.h. */
14412 _ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 #include <X11/xpm.h>
14417 _ACEOF
14418 if { (ac_try="$ac_cpp conftest.$ac_ext"
14419 case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14422 esac
14423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14424 $as_echo "$ac_try_echo") >&5
14425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14426 ac_status=$?
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
14430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } >/dev/null && {
14432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14433 test ! -s conftest.err
14434 }; then
14435 ac_header_preproc=yes
14436 else
14437 $as_echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14440 ac_header_preproc=no
14443 rm -f conftest.err conftest.$ac_ext
14444 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14445 $as_echo "$ac_header_preproc" >&6; }
14447 # So? What about this header?
14448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14449 yes:no: )
14450 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14451 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14452 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14453 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14454 ac_header_preproc=yes
14456 no:yes:* )
14457 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14458 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14459 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14460 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14461 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14462 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14463 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14464 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14465 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14466 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14467 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14468 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14471 esac
14472 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14473 $as_echo_n "checking for X11/xpm.h... " >&6; }
14474 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14475 $as_echo_n "(cached) " >&6
14476 else
14477 ac_cv_header_X11_xpm_h=$ac_header_preproc
14479 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14480 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14483 if test $ac_cv_header_X11_xpm_h = yes; then
14484 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14485 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14486 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14487 $as_echo_n "(cached) " >&6
14488 else
14489 ac_check_lib_save_LIBS=$LIBS
14490 LIBS="-lXpm -lX11 $LIBS"
14491 cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h. */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14498 /* Override any GCC internal prototype to avoid an error.
14499 Use char because int might match the return type of a GCC
14500 builtin and then its argument prototype would still apply. */
14501 #ifdef __cplusplus
14502 extern "C"
14503 #endif
14504 char XpmReadFileToPixmap ();
14506 main ()
14508 return XpmReadFileToPixmap ();
14510 return 0;
14512 _ACEOF
14513 rm -f conftest.$ac_objext conftest$ac_exeext
14514 if { (ac_try="$ac_link"
14515 case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14518 esac
14519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14520 $as_echo "$ac_try_echo") >&5
14521 (eval "$ac_link") 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } && {
14528 test -z "$ac_c_werror_flag" ||
14529 test ! -s conftest.err
14530 } && test -s conftest$ac_exeext && {
14531 test "$cross_compiling" = yes ||
14532 $as_test_x conftest$ac_exeext
14533 }; then
14534 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14535 else
14536 $as_echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14539 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14542 rm -rf conftest.dSYM
14543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14544 conftest$ac_exeext conftest.$ac_ext
14545 LIBS=$ac_check_lib_save_LIBS
14547 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14548 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14549 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14550 HAVE_XPM=yes
14556 if test "${HAVE_XPM}" = "yes"; then
14557 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14558 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14559 cat >conftest.$ac_ext <<_ACEOF
14560 /* confdefs.h. */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 #include "X11/xpm.h"
14566 #ifndef XpmReturnAllocPixels
14567 no_return_alloc_pixels
14568 #endif
14570 _ACEOF
14571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14572 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14573 HAVE_XPM=no
14574 else
14575 HAVE_XPM=yes
14577 rm -f conftest*
14580 if test "${HAVE_XPM}" = "yes"; then
14581 { $as_echo "$as_me:$LINENO: result: yes" >&5
14582 $as_echo "yes" >&6; }
14583 else
14584 { $as_echo "$as_me:$LINENO: result: no" >&5
14585 $as_echo "no" >&6; }
14590 if test "${HAVE_XPM}" = "yes"; then
14592 cat >>confdefs.h <<\_ACEOF
14593 #define HAVE_XPM 1
14594 _ACEOF
14596 LIBXPM=-lXpm
14601 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14602 HAVE_JPEG=no
14603 LIBJPEG=
14604 if test "${HAVE_X11}" = "yes"; then
14605 if test "${with_jpeg}" != "no"; then
14606 if test "${ac_cv_header_jerror_h+set}" = set; then
14607 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14608 $as_echo_n "checking for jerror.h... " >&6; }
14609 if test "${ac_cv_header_jerror_h+set}" = set; then
14610 $as_echo_n "(cached) " >&6
14612 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14613 $as_echo "$ac_cv_header_jerror_h" >&6; }
14614 else
14615 # Is the header compilable?
14616 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14617 $as_echo_n "checking jerror.h usability... " >&6; }
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h. */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14625 #include <jerror.h>
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (ac_try="$ac_compile"
14629 case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632 esac
14633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14634 $as_echo "$ac_try_echo") >&5
14635 (eval "$ac_compile") 2>conftest.er1
14636 ac_status=$?
14637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
14640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_c_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest.$ac_objext; then
14645 ac_header_compiler=yes
14646 else
14647 $as_echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14650 ac_header_compiler=no
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14655 $as_echo "$ac_header_compiler" >&6; }
14657 # Is the header present?
14658 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14659 $as_echo_n "checking jerror.h presence... " >&6; }
14660 cat >conftest.$ac_ext <<_ACEOF
14661 /* confdefs.h. */
14662 _ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666 #include <jerror.h>
14667 _ACEOF
14668 if { (ac_try="$ac_cpp conftest.$ac_ext"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14672 esac
14673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14674 $as_echo "$ac_try_echo") >&5
14675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14676 ac_status=$?
14677 grep -v '^ *+' conftest.er1 >conftest.err
14678 rm -f conftest.er1
14679 cat conftest.err >&5
14680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } >/dev/null && {
14682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14683 test ! -s conftest.err
14684 }; then
14685 ac_header_preproc=yes
14686 else
14687 $as_echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 ac_header_preproc=no
14693 rm -f conftest.err conftest.$ac_ext
14694 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14695 $as_echo "$ac_header_preproc" >&6; }
14697 # So? What about this header?
14698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14699 yes:no: )
14700 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14701 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14702 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14703 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14704 ac_header_preproc=yes
14706 no:yes:* )
14707 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14708 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14709 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14710 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14711 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14712 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14713 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14714 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14715 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14716 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14717 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14718 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14721 esac
14722 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14723 $as_echo_n "checking for jerror.h... " >&6; }
14724 if test "${ac_cv_header_jerror_h+set}" = set; then
14725 $as_echo_n "(cached) " >&6
14726 else
14727 ac_cv_header_jerror_h=$ac_header_preproc
14729 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14730 $as_echo "$ac_cv_header_jerror_h" >&6; }
14733 if test $ac_cv_header_jerror_h = yes; then
14734 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14735 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14736 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14737 $as_echo_n "(cached) " >&6
14738 else
14739 ac_check_lib_save_LIBS=$LIBS
14740 LIBS="-ljpeg $LIBS"
14741 cat >conftest.$ac_ext <<_ACEOF
14742 /* confdefs.h. */
14743 _ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14748 /* Override any GCC internal prototype to avoid an error.
14749 Use char because int might match the return type of a GCC
14750 builtin and then its argument prototype would still apply. */
14751 #ifdef __cplusplus
14752 extern "C"
14753 #endif
14754 char jpeg_destroy_compress ();
14756 main ()
14758 return jpeg_destroy_compress ();
14760 return 0;
14762 _ACEOF
14763 rm -f conftest.$ac_objext conftest$ac_exeext
14764 if { (ac_try="$ac_link"
14765 case "(($ac_try" in
14766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14768 esac
14769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14770 $as_echo "$ac_try_echo") >&5
14771 (eval "$ac_link") 2>conftest.er1
14772 ac_status=$?
14773 grep -v '^ *+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } && {
14778 test -z "$ac_c_werror_flag" ||
14779 test ! -s conftest.err
14780 } && test -s conftest$ac_exeext && {
14781 test "$cross_compiling" = yes ||
14782 $as_test_x conftest$ac_exeext
14783 }; then
14784 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14785 else
14786 $as_echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14792 rm -rf conftest.dSYM
14793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14794 conftest$ac_exeext conftest.$ac_ext
14795 LIBS=$ac_check_lib_save_LIBS
14797 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14798 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14799 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14800 HAVE_JPEG=yes
14809 if test "${HAVE_JPEG}" = "yes"; then
14810 cat >>confdefs.h <<\_ACEOF
14811 #define HAVE_JPEG 1
14812 _ACEOF
14814 cat >conftest.$ac_ext <<_ACEOF
14815 /* confdefs.h. */
14816 _ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h. */
14820 #include <jpeglib.h>
14821 version=JPEG_LIB_VERSION
14823 _ACEOF
14824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14825 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14826 cat >>confdefs.h <<\_ACEOF
14827 #define HAVE_JPEG 1
14828 _ACEOF
14830 else
14831 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14832 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14833 HAVE_JPEG=no
14835 rm -f conftest*
14838 if test "${HAVE_JPEG}" = "yes"; then
14839 LIBJPEG=-ljpeg
14844 ### Use -lpng if available, unless `--with-png=no'.
14845 HAVE_PNG=no
14846 LIBPNG=
14847 if test "${HAVE_X11}" = "yes"; then
14848 if test "${with_png}" != "no"; then
14849 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14850 # in /usr/include/libpng.
14853 for ac_header in png.h libpng/png.h
14855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14857 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14858 $as_echo_n "checking for $ac_header... " >&6; }
14859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14860 $as_echo_n "(cached) " >&6
14862 ac_res=`eval 'as_val=${'$as_ac_Header'}
14863 $as_echo "$as_val"'`
14864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14865 $as_echo "$ac_res" >&6; }
14866 else
14867 # Is the header compilable?
14868 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14869 $as_echo_n "checking $ac_header usability... " >&6; }
14870 cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h. */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 $ac_includes_default
14877 #include <$ac_header>
14878 _ACEOF
14879 rm -f conftest.$ac_objext
14880 if { (ac_try="$ac_compile"
14881 case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14884 esac
14885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14886 $as_echo "$ac_try_echo") >&5
14887 (eval "$ac_compile") 2>conftest.er1
14888 ac_status=$?
14889 grep -v '^ *+' conftest.er1 >conftest.err
14890 rm -f conftest.er1
14891 cat conftest.err >&5
14892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } && {
14894 test -z "$ac_c_werror_flag" ||
14895 test ! -s conftest.err
14896 } && test -s conftest.$ac_objext; then
14897 ac_header_compiler=yes
14898 else
14899 $as_echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14902 ac_header_compiler=no
14905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14907 $as_echo "$ac_header_compiler" >&6; }
14909 # Is the header present?
14910 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14911 $as_echo_n "checking $ac_header presence... " >&6; }
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h. */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 #include <$ac_header>
14919 _ACEOF
14920 if { (ac_try="$ac_cpp conftest.$ac_ext"
14921 case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924 esac
14925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14926 $as_echo "$ac_try_echo") >&5
14927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
14932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } >/dev/null && {
14934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14936 }; then
14937 ac_header_preproc=yes
14938 else
14939 $as_echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_header_preproc=no
14945 rm -f conftest.err conftest.$ac_ext
14946 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14947 $as_echo "$ac_header_preproc" >&6; }
14949 # So? What about this header?
14950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14951 yes:no: )
14952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14953 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14955 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14956 ac_header_preproc=yes
14958 no:yes:* )
14959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14960 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14962 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14964 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14966 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14968 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14970 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14973 esac
14974 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14975 $as_echo_n "checking for $ac_header... " >&6; }
14976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14977 $as_echo_n "(cached) " >&6
14978 else
14979 eval "$as_ac_Header=\$ac_header_preproc"
14981 ac_res=`eval 'as_val=${'$as_ac_Header'}
14982 $as_echo "$as_val"'`
14983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14984 $as_echo "$ac_res" >&6; }
14987 if test `eval 'as_val=${'$as_ac_Header'}
14988 $as_echo "$as_val"'` = yes; then
14989 cat >>confdefs.h <<_ACEOF
14990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14991 _ACEOF
14995 done
14997 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14998 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14999 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15000 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15001 $as_echo_n "(cached) " >&6
15002 else
15003 ac_check_lib_save_LIBS=$LIBS
15004 LIBS="-lpng -lz -lm $LIBS"
15005 cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h. */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15012 /* Override any GCC internal prototype to avoid an error.
15013 Use char because int might match the return type of a GCC
15014 builtin and then its argument prototype would still apply. */
15015 #ifdef __cplusplus
15016 extern "C"
15017 #endif
15018 char png_get_channels ();
15020 main ()
15022 return png_get_channels ();
15024 return 0;
15026 _ACEOF
15027 rm -f conftest.$ac_objext conftest$ac_exeext
15028 if { (ac_try="$ac_link"
15029 case "(($ac_try" in
15030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15032 esac
15033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15034 $as_echo "$ac_try_echo") >&5
15035 (eval "$ac_link") 2>conftest.er1
15036 ac_status=$?
15037 grep -v '^ *+' conftest.er1 >conftest.err
15038 rm -f conftest.er1
15039 cat conftest.err >&5
15040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } && {
15042 test -z "$ac_c_werror_flag" ||
15043 test ! -s conftest.err
15044 } && test -s conftest$ac_exeext && {
15045 test "$cross_compiling" = yes ||
15046 $as_test_x conftest$ac_exeext
15047 }; then
15048 ac_cv_lib_png_png_get_channels=yes
15049 else
15050 $as_echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 ac_cv_lib_png_png_get_channels=no
15056 rm -rf conftest.dSYM
15057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15058 conftest$ac_exeext conftest.$ac_ext
15059 LIBS=$ac_check_lib_save_LIBS
15061 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15062 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15063 if test $ac_cv_lib_png_png_get_channels = yes; then
15064 HAVE_PNG=yes
15070 if test "${HAVE_PNG}" = "yes"; then
15072 cat >>confdefs.h <<\_ACEOF
15073 #define HAVE_PNG 1
15074 _ACEOF
15076 LIBPNG="-lpng -lz -lm"
15081 ### Use -ltiff if available, unless `--with-tiff=no'.
15082 HAVE_TIFF=no
15083 LIBTIFF=
15084 if test "${HAVE_X11}" = "yes"; then
15085 if test "${with_tiff}" != "no"; then
15086 if test "${ac_cv_header_tiffio_h+set}" = set; then
15087 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15088 $as_echo_n "checking for tiffio.h... " >&6; }
15089 if test "${ac_cv_header_tiffio_h+set}" = set; then
15090 $as_echo_n "(cached) " >&6
15092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15093 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15094 else
15095 # Is the header compilable?
15096 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15097 $as_echo_n "checking tiffio.h usability... " >&6; }
15098 cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h. */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 $ac_includes_default
15105 #include <tiffio.h>
15106 _ACEOF
15107 rm -f conftest.$ac_objext
15108 if { (ac_try="$ac_compile"
15109 case "(($ac_try" in
15110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111 *) ac_try_echo=$ac_try;;
15112 esac
15113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15114 $as_echo "$ac_try_echo") >&5
15115 (eval "$ac_compile") 2>conftest.er1
15116 ac_status=$?
15117 grep -v '^ *+' conftest.er1 >conftest.err
15118 rm -f conftest.er1
15119 cat conftest.err >&5
15120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } && {
15122 test -z "$ac_c_werror_flag" ||
15123 test ! -s conftest.err
15124 } && test -s conftest.$ac_objext; then
15125 ac_header_compiler=yes
15126 else
15127 $as_echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15130 ac_header_compiler=no
15133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15134 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15135 $as_echo "$ac_header_compiler" >&6; }
15137 # Is the header present?
15138 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15139 $as_echo_n "checking tiffio.h presence... " >&6; }
15140 cat >conftest.$ac_ext <<_ACEOF
15141 /* confdefs.h. */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15146 #include <tiffio.h>
15147 _ACEOF
15148 if { (ac_try="$ac_cpp conftest.$ac_ext"
15149 case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15152 esac
15153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15154 $as_echo "$ac_try_echo") >&5
15155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15156 ac_status=$?
15157 grep -v '^ *+' conftest.er1 >conftest.err
15158 rm -f conftest.er1
15159 cat conftest.err >&5
15160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } >/dev/null && {
15162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15163 test ! -s conftest.err
15164 }; then
15165 ac_header_preproc=yes
15166 else
15167 $as_echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 ac_header_preproc=no
15173 rm -f conftest.err conftest.$ac_ext
15174 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15175 $as_echo "$ac_header_preproc" >&6; }
15177 # So? What about this header?
15178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15179 yes:no: )
15180 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15181 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15182 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15183 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15184 ac_header_preproc=yes
15186 no:yes:* )
15187 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15188 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15189 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15190 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15191 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15192 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15193 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15194 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15195 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15196 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15197 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15198 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15201 esac
15202 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15203 $as_echo_n "checking for tiffio.h... " >&6; }
15204 if test "${ac_cv_header_tiffio_h+set}" = set; then
15205 $as_echo_n "(cached) " >&6
15206 else
15207 ac_cv_header_tiffio_h=$ac_header_preproc
15209 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15210 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15213 if test $ac_cv_header_tiffio_h = yes; then
15214 tifflibs="-lz -lm"
15215 # At least one tiff package requires the jpeg library.
15216 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15217 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15218 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15219 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15220 $as_echo_n "(cached) " >&6
15221 else
15222 ac_check_lib_save_LIBS=$LIBS
15223 LIBS="-ltiff $tifflibs $LIBS"
15224 cat >conftest.$ac_ext <<_ACEOF
15225 /* confdefs.h. */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15231 /* Override any GCC internal prototype to avoid an error.
15232 Use char because int might match the return type of a GCC
15233 builtin and then its argument prototype would still apply. */
15234 #ifdef __cplusplus
15235 extern "C"
15236 #endif
15237 char TIFFGetVersion ();
15239 main ()
15241 return TIFFGetVersion ();
15243 return 0;
15245 _ACEOF
15246 rm -f conftest.$ac_objext conftest$ac_exeext
15247 if { (ac_try="$ac_link"
15248 case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15251 esac
15252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15253 $as_echo "$ac_try_echo") >&5
15254 (eval "$ac_link") 2>conftest.er1
15255 ac_status=$?
15256 grep -v '^ *+' conftest.er1 >conftest.err
15257 rm -f conftest.er1
15258 cat conftest.err >&5
15259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } && {
15261 test -z "$ac_c_werror_flag" ||
15262 test ! -s conftest.err
15263 } && test -s conftest$ac_exeext && {
15264 test "$cross_compiling" = yes ||
15265 $as_test_x conftest$ac_exeext
15266 }; then
15267 ac_cv_lib_tiff_TIFFGetVersion=yes
15268 else
15269 $as_echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 ac_cv_lib_tiff_TIFFGetVersion=no
15275 rm -rf conftest.dSYM
15276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15277 conftest$ac_exeext conftest.$ac_ext
15278 LIBS=$ac_check_lib_save_LIBS
15280 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15281 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15282 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15283 HAVE_TIFF=yes
15291 if test "${HAVE_TIFF}" = "yes"; then
15293 cat >>confdefs.h <<\_ACEOF
15294 #define HAVE_TIFF 1
15295 _ACEOF
15297 LIBTIFF=-ltiff
15302 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15303 HAVE_GIF=no
15304 LIBGIF=
15305 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15306 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15307 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15308 $as_echo_n "checking for gif_lib.h... " >&6; }
15309 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15310 $as_echo_n "(cached) " >&6
15312 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15313 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15314 else
15315 # Is the header compilable?
15316 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15317 $as_echo_n "checking gif_lib.h usability... " >&6; }
15318 cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h. */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15324 $ac_includes_default
15325 #include <gif_lib.h>
15326 _ACEOF
15327 rm -f conftest.$ac_objext
15328 if { (ac_try="$ac_compile"
15329 case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15332 esac
15333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15334 $as_echo "$ac_try_echo") >&5
15335 (eval "$ac_compile") 2>conftest.er1
15336 ac_status=$?
15337 grep -v '^ *+' conftest.er1 >conftest.err
15338 rm -f conftest.er1
15339 cat conftest.err >&5
15340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && {
15342 test -z "$ac_c_werror_flag" ||
15343 test ! -s conftest.err
15344 } && test -s conftest.$ac_objext; then
15345 ac_header_compiler=yes
15346 else
15347 $as_echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15350 ac_header_compiler=no
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15355 $as_echo "$ac_header_compiler" >&6; }
15357 # Is the header present?
15358 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15359 $as_echo_n "checking gif_lib.h presence... " >&6; }
15360 cat >conftest.$ac_ext <<_ACEOF
15361 /* confdefs.h. */
15362 _ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 #include <gif_lib.h>
15367 _ACEOF
15368 if { (ac_try="$ac_cpp conftest.$ac_ext"
15369 case "(($ac_try" in
15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371 *) ac_try_echo=$ac_try;;
15372 esac
15373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15374 $as_echo "$ac_try_echo") >&5
15375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15376 ac_status=$?
15377 grep -v '^ *+' conftest.er1 >conftest.err
15378 rm -f conftest.er1
15379 cat conftest.err >&5
15380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } >/dev/null && {
15382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15383 test ! -s conftest.err
15384 }; then
15385 ac_header_preproc=yes
15386 else
15387 $as_echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 ac_header_preproc=no
15393 rm -f conftest.err conftest.$ac_ext
15394 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15395 $as_echo "$ac_header_preproc" >&6; }
15397 # So? What about this header?
15398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15399 yes:no: )
15400 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15401 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15402 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15403 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15404 ac_header_preproc=yes
15406 no:yes:* )
15407 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15408 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15409 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15410 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15411 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15412 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15413 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15414 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15415 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15416 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15417 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15418 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15421 esac
15422 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15423 $as_echo_n "checking for gif_lib.h... " >&6; }
15424 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15425 $as_echo_n "(cached) " >&6
15426 else
15427 ac_cv_header_gif_lib_h=$ac_header_preproc
15429 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15430 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15433 if test $ac_cv_header_gif_lib_h = yes; then
15434 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15435 # Earlier versions can crash Emacs.
15436 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15437 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15438 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15439 $as_echo_n "(cached) " >&6
15440 else
15441 ac_check_lib_save_LIBS=$LIBS
15442 LIBS="-lgif $LIBS"
15443 cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h. */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15450 /* Override any GCC internal prototype to avoid an error.
15451 Use char because int might match the return type of a GCC
15452 builtin and then its argument prototype would still apply. */
15453 #ifdef __cplusplus
15454 extern "C"
15455 #endif
15456 char EGifPutExtensionLast ();
15458 main ()
15460 return EGifPutExtensionLast ();
15462 return 0;
15464 _ACEOF
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15470 esac
15471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15472 $as_echo "$ac_try_echo") >&5
15473 (eval "$ac_link") 2>conftest.er1
15474 ac_status=$?
15475 grep -v '^ *+' conftest.er1 >conftest.err
15476 rm -f conftest.er1
15477 cat conftest.err >&5
15478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } && {
15480 test -z "$ac_c_werror_flag" ||
15481 test ! -s conftest.err
15482 } && test -s conftest$ac_exeext && {
15483 test "$cross_compiling" = yes ||
15484 $as_test_x conftest$ac_exeext
15485 }; then
15486 ac_cv_lib_gif_EGifPutExtensionLast=yes
15487 else
15488 $as_echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15491 ac_cv_lib_gif_EGifPutExtensionLast=no
15494 rm -rf conftest.dSYM
15495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15496 conftest$ac_exeext conftest.$ac_ext
15497 LIBS=$ac_check_lib_save_LIBS
15499 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15500 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15501 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15502 HAVE_GIF=yes
15503 else
15504 HAVE_GIF=maybe
15511 if test "$HAVE_GIF" = yes; then
15512 LIBGIF=-lgif
15513 elif test "$HAVE_GIF" = maybe; then
15514 # If gif_lib.h but no libgif, try libungif.
15515 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15516 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15517 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15518 $as_echo_n "(cached) " >&6
15519 else
15520 ac_check_lib_save_LIBS=$LIBS
15521 LIBS="-lungif $LIBS"
15522 cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h. */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15529 /* Override any GCC internal prototype to avoid an error.
15530 Use char because int might match the return type of a GCC
15531 builtin and then its argument prototype would still apply. */
15532 #ifdef __cplusplus
15533 extern "C"
15534 #endif
15535 char EGifPutExtensionLast ();
15537 main ()
15539 return EGifPutExtensionLast ();
15541 return 0;
15543 _ACEOF
15544 rm -f conftest.$ac_objext conftest$ac_exeext
15545 if { (ac_try="$ac_link"
15546 case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549 esac
15550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15551 $as_echo "$ac_try_echo") >&5
15552 (eval "$ac_link") 2>conftest.er1
15553 ac_status=$?
15554 grep -v '^ *+' conftest.er1 >conftest.err
15555 rm -f conftest.er1
15556 cat conftest.err >&5
15557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } && {
15559 test -z "$ac_c_werror_flag" ||
15560 test ! -s conftest.err
15561 } && test -s conftest$ac_exeext && {
15562 test "$cross_compiling" = yes ||
15563 $as_test_x conftest$ac_exeext
15564 }; then
15565 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15566 else
15567 $as_echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15570 ac_cv_lib_ungif_EGifPutExtensionLast=no
15573 rm -rf conftest.dSYM
15574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15575 conftest$ac_exeext conftest.$ac_ext
15576 LIBS=$ac_check_lib_save_LIBS
15578 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15579 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15580 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15581 HAVE_GIF=yes
15582 else
15583 HAVE_GIF=no
15586 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15589 if test "${HAVE_GIF}" = "yes"; then
15591 cat >>confdefs.h <<\_ACEOF
15592 #define HAVE_GIF 1
15593 _ACEOF
15599 if test "${HAVE_X11}" = "yes"; then
15600 MISSING=""
15601 WITH_NO=""
15602 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15603 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15604 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15605 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15606 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15607 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15608 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15609 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15610 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15611 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15613 if test "X${MISSING}" != X; then
15614 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15615 $MISSING
15616 Maybe some development libraries/packages are missing?
15617 If you don't want to link with them give
15618 $WITH_NO
15619 as options to configure" >&5
15620 $as_echo "$as_me: error: The following required libraries were not found:
15621 $MISSING
15622 Maybe some development libraries/packages are missing?
15623 If you don't want to link with them give
15624 $WITH_NO
15625 as options to configure" >&2;}
15626 { (exit 1); exit 1; }; }
15630 ### Use -lgpm if available, unless `--with-gpm=no'.
15631 HAVE_GPM=no
15632 LIBGPM=
15633 if test "${with_gpm}" != "no"; then
15634 if test "${ac_cv_header_gpm_h+set}" = set; then
15635 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15636 $as_echo_n "checking for gpm.h... " >&6; }
15637 if test "${ac_cv_header_gpm_h+set}" = set; then
15638 $as_echo_n "(cached) " >&6
15640 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15641 $as_echo "$ac_cv_header_gpm_h" >&6; }
15642 else
15643 # Is the header compilable?
15644 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15645 $as_echo_n "checking gpm.h usability... " >&6; }
15646 cat >conftest.$ac_ext <<_ACEOF
15647 /* confdefs.h. */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15652 $ac_includes_default
15653 #include <gpm.h>
15654 _ACEOF
15655 rm -f conftest.$ac_objext
15656 if { (ac_try="$ac_compile"
15657 case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15660 esac
15661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15662 $as_echo "$ac_try_echo") >&5
15663 (eval "$ac_compile") 2>conftest.er1
15664 ac_status=$?
15665 grep -v '^ *+' conftest.er1 >conftest.err
15666 rm -f conftest.er1
15667 cat conftest.err >&5
15668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } && {
15670 test -z "$ac_c_werror_flag" ||
15671 test ! -s conftest.err
15672 } && test -s conftest.$ac_objext; then
15673 ac_header_compiler=yes
15674 else
15675 $as_echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 ac_header_compiler=no
15681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15682 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15683 $as_echo "$ac_header_compiler" >&6; }
15685 # Is the header present?
15686 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15687 $as_echo_n "checking gpm.h presence... " >&6; }
15688 cat >conftest.$ac_ext <<_ACEOF
15689 /* confdefs.h. */
15690 _ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15694 #include <gpm.h>
15695 _ACEOF
15696 if { (ac_try="$ac_cpp conftest.$ac_ext"
15697 case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15700 esac
15701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15702 $as_echo "$ac_try_echo") >&5
15703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15704 ac_status=$?
15705 grep -v '^ *+' conftest.er1 >conftest.err
15706 rm -f conftest.er1
15707 cat conftest.err >&5
15708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } >/dev/null && {
15710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15711 test ! -s conftest.err
15712 }; then
15713 ac_header_preproc=yes
15714 else
15715 $as_echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15718 ac_header_preproc=no
15721 rm -f conftest.err conftest.$ac_ext
15722 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15723 $as_echo "$ac_header_preproc" >&6; }
15725 # So? What about this header?
15726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15727 yes:no: )
15728 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15729 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15730 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15731 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15732 ac_header_preproc=yes
15734 no:yes:* )
15735 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15736 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15737 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15738 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15739 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15740 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15741 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15742 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15743 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15744 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15745 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15746 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15749 esac
15750 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15751 $as_echo_n "checking for gpm.h... " >&6; }
15752 if test "${ac_cv_header_gpm_h+set}" = set; then
15753 $as_echo_n "(cached) " >&6
15754 else
15755 ac_cv_header_gpm_h=$ac_header_preproc
15757 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15758 $as_echo "$ac_cv_header_gpm_h" >&6; }
15761 if test $ac_cv_header_gpm_h = yes; then
15762 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15763 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15764 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15765 $as_echo_n "(cached) " >&6
15766 else
15767 ac_check_lib_save_LIBS=$LIBS
15768 LIBS="-lgpm $LIBS"
15769 cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h. */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15776 /* Override any GCC internal prototype to avoid an error.
15777 Use char because int might match the return type of a GCC
15778 builtin and then its argument prototype would still apply. */
15779 #ifdef __cplusplus
15780 extern "C"
15781 #endif
15782 char Gpm_Open ();
15784 main ()
15786 return Gpm_Open ();
15788 return 0;
15790 _ACEOF
15791 rm -f conftest.$ac_objext conftest$ac_exeext
15792 if { (ac_try="$ac_link"
15793 case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15796 esac
15797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15798 $as_echo "$ac_try_echo") >&5
15799 (eval "$ac_link") 2>conftest.er1
15800 ac_status=$?
15801 grep -v '^ *+' conftest.er1 >conftest.err
15802 rm -f conftest.er1
15803 cat conftest.err >&5
15804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } && {
15806 test -z "$ac_c_werror_flag" ||
15807 test ! -s conftest.err
15808 } && test -s conftest$ac_exeext && {
15809 test "$cross_compiling" = yes ||
15810 $as_test_x conftest$ac_exeext
15811 }; then
15812 ac_cv_lib_gpm_Gpm_Open=yes
15813 else
15814 $as_echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15817 ac_cv_lib_gpm_Gpm_Open=no
15820 rm -rf conftest.dSYM
15821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15822 conftest$ac_exeext conftest.$ac_ext
15823 LIBS=$ac_check_lib_save_LIBS
15825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15826 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15827 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15828 HAVE_GPM=yes
15835 if test "${HAVE_GPM}" = "yes"; then
15837 cat >>confdefs.h <<\_ACEOF
15838 #define HAVE_GPM 1
15839 _ACEOF
15841 LIBGPM=-lgpm
15846 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15847 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15848 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15849 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15850 $as_echo_n "(cached) " >&6
15852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15853 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15854 else
15855 # Is the header compilable?
15856 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15857 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15858 cat >conftest.$ac_ext <<_ACEOF
15859 /* confdefs.h. */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 $ac_includes_default
15865 #include <malloc/malloc.h>
15866 _ACEOF
15867 rm -f conftest.$ac_objext
15868 if { (ac_try="$ac_compile"
15869 case "(($ac_try" in
15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871 *) ac_try_echo=$ac_try;;
15872 esac
15873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15874 $as_echo "$ac_try_echo") >&5
15875 (eval "$ac_compile") 2>conftest.er1
15876 ac_status=$?
15877 grep -v '^ *+' conftest.er1 >conftest.err
15878 rm -f conftest.er1
15879 cat conftest.err >&5
15880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } && {
15882 test -z "$ac_c_werror_flag" ||
15883 test ! -s conftest.err
15884 } && test -s conftest.$ac_objext; then
15885 ac_header_compiler=yes
15886 else
15887 $as_echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.$ac_ext >&5
15890 ac_header_compiler=no
15893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15894 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15895 $as_echo "$ac_header_compiler" >&6; }
15897 # Is the header present?
15898 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15899 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15900 cat >conftest.$ac_ext <<_ACEOF
15901 /* confdefs.h. */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15906 #include <malloc/malloc.h>
15907 _ACEOF
15908 if { (ac_try="$ac_cpp conftest.$ac_ext"
15909 case "(($ac_try" in
15910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911 *) ac_try_echo=$ac_try;;
15912 esac
15913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15914 $as_echo "$ac_try_echo") >&5
15915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15916 ac_status=$?
15917 grep -v '^ *+' conftest.er1 >conftest.err
15918 rm -f conftest.er1
15919 cat conftest.err >&5
15920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } >/dev/null && {
15922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15923 test ! -s conftest.err
15924 }; then
15925 ac_header_preproc=yes
15926 else
15927 $as_echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15930 ac_header_preproc=no
15933 rm -f conftest.err conftest.$ac_ext
15934 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15935 $as_echo "$ac_header_preproc" >&6; }
15937 # So? What about this header?
15938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15939 yes:no: )
15940 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15941 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15942 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15943 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15944 ac_header_preproc=yes
15946 no:yes:* )
15947 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15948 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15949 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15950 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15951 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15952 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15953 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15954 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15955 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15956 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15957 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15958 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15961 esac
15962 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15963 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15964 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15965 $as_echo_n "(cached) " >&6
15966 else
15967 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15969 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15970 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15973 if test $ac_cv_header_malloc_malloc_h = yes; then
15975 cat >>confdefs.h <<\_ACEOF
15976 #define HAVE_MALLOC_MALLOC_H 1
15977 _ACEOF
15983 ### Use NeXTstep API to implement GUI.
15984 if test "${HAVE_NS}" = "yes"; then
15986 cat >>confdefs.h <<\_ACEOF
15987 #define HAVE_NS 1
15988 _ACEOF
15990 if test "${NS_IMPL_COCOA}" = "yes"; then
15992 cat >>confdefs.h <<\_ACEOF
15993 #define NS_IMPL_COCOA 1
15994 _ACEOF
15996 GNU_OBJC_CFLAGS=
15998 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16000 cat >>confdefs.h <<\_ACEOF
16001 #define NS_IMPL_GNUSTEP 1
16002 _ACEOF
16004 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16006 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16008 cat >>confdefs.h <<\_ACEOF
16009 #define NS_HAVE_NSINTEGER 1
16010 _ACEOF
16013 # We also have mouse menus.
16014 HAVE_MENUS=yes
16015 OTHER_FILES=ns-app
16019 ### Use session management (-lSM -lICE) if available
16020 HAVE_X_SM=no
16021 if test "${HAVE_X11}" = "yes"; then
16022 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16023 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16024 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16025 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16026 $as_echo_n "(cached) " >&6
16028 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16029 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16030 else
16031 # Is the header compilable?
16032 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16033 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16034 cat >conftest.$ac_ext <<_ACEOF
16035 /* confdefs.h. */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040 $ac_includes_default
16041 #include <X11/SM/SMlib.h>
16042 _ACEOF
16043 rm -f conftest.$ac_objext
16044 if { (ac_try="$ac_compile"
16045 case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16048 esac
16049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16050 $as_echo "$ac_try_echo") >&5
16051 (eval "$ac_compile") 2>conftest.er1
16052 ac_status=$?
16053 grep -v '^ *+' conftest.er1 >conftest.err
16054 rm -f conftest.er1
16055 cat conftest.err >&5
16056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } && {
16058 test -z "$ac_c_werror_flag" ||
16059 test ! -s conftest.err
16060 } && test -s conftest.$ac_objext; then
16061 ac_header_compiler=yes
16062 else
16063 $as_echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16066 ac_header_compiler=no
16069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16070 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16071 $as_echo "$ac_header_compiler" >&6; }
16073 # Is the header present?
16074 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16075 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16076 cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h. */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 #include <X11/SM/SMlib.h>
16083 _ACEOF
16084 if { (ac_try="$ac_cpp conftest.$ac_ext"
16085 case "(($ac_try" in
16086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087 *) ac_try_echo=$ac_try;;
16088 esac
16089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16090 $as_echo "$ac_try_echo") >&5
16091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16092 ac_status=$?
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
16096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } >/dev/null && {
16098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16099 test ! -s conftest.err
16100 }; then
16101 ac_header_preproc=yes
16102 else
16103 $as_echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 ac_header_preproc=no
16109 rm -f conftest.err conftest.$ac_ext
16110 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16111 $as_echo "$ac_header_preproc" >&6; }
16113 # So? What about this header?
16114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16115 yes:no: )
16116 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16117 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16118 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16119 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16120 ac_header_preproc=yes
16122 no:yes:* )
16123 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16124 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16125 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16126 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16127 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16128 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16129 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16130 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16131 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16132 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16133 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16134 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16137 esac
16138 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16139 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16140 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16141 $as_echo_n "(cached) " >&6
16142 else
16143 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16145 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16146 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16149 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16150 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16151 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16152 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16153 $as_echo_n "(cached) " >&6
16154 else
16155 ac_check_lib_save_LIBS=$LIBS
16156 LIBS="-lSM -lICE $LIBS"
16157 cat >conftest.$ac_ext <<_ACEOF
16158 /* confdefs.h. */
16159 _ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16164 /* Override any GCC internal prototype to avoid an error.
16165 Use char because int might match the return type of a GCC
16166 builtin and then its argument prototype would still apply. */
16167 #ifdef __cplusplus
16168 extern "C"
16169 #endif
16170 char SmcOpenConnection ();
16172 main ()
16174 return SmcOpenConnection ();
16176 return 0;
16178 _ACEOF
16179 rm -f conftest.$ac_objext conftest$ac_exeext
16180 if { (ac_try="$ac_link"
16181 case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16184 esac
16185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16186 $as_echo "$ac_try_echo") >&5
16187 (eval "$ac_link") 2>conftest.er1
16188 ac_status=$?
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } && {
16194 test -z "$ac_c_werror_flag" ||
16195 test ! -s conftest.err
16196 } && test -s conftest$ac_exeext && {
16197 test "$cross_compiling" = yes ||
16198 $as_test_x conftest$ac_exeext
16199 }; then
16200 ac_cv_lib_SM_SmcOpenConnection=yes
16201 else
16202 $as_echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16205 ac_cv_lib_SM_SmcOpenConnection=no
16208 rm -rf conftest.dSYM
16209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16210 conftest$ac_exeext conftest.$ac_ext
16211 LIBS=$ac_check_lib_save_LIBS
16213 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16214 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16215 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16216 HAVE_X_SM=yes
16223 if test "${HAVE_X_SM}" = "yes"; then
16225 cat >>confdefs.h <<\_ACEOF
16226 #define HAVE_X_SM 1
16227 _ACEOF
16229 case "$LIBS" in
16230 *-lSM*) ;;
16231 *) LIBS="-lSM -lICE $LIBS" ;;
16232 esac
16236 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16237 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16238 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16239 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16240 $as_echo_n "(cached) " >&6
16241 else
16242 cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h. */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 #include <netdb.h>
16250 main ()
16252 return h_errno;
16254 return 0;
16256 _ACEOF
16257 rm -f conftest.$ac_objext conftest$ac_exeext
16258 if { (ac_try="$ac_link"
16259 case "(($ac_try" in
16260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261 *) ac_try_echo=$ac_try;;
16262 esac
16263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16264 $as_echo "$ac_try_echo") >&5
16265 (eval "$ac_link") 2>conftest.er1
16266 ac_status=$?
16267 grep -v '^ *+' conftest.er1 >conftest.err
16268 rm -f conftest.er1
16269 cat conftest.err >&5
16270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } && {
16272 test -z "$ac_c_werror_flag" ||
16273 test ! -s conftest.err
16274 } && test -s conftest$ac_exeext && {
16275 test "$cross_compiling" = yes ||
16276 $as_test_x conftest$ac_exeext
16277 }; then
16278 emacs_cv_netdb_declares_h_errno=yes
16279 else
16280 $as_echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16283 emacs_cv_netdb_declares_h_errno=no
16286 rm -rf conftest.dSYM
16287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16288 conftest$ac_exeext conftest.$ac_ext
16290 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16291 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16292 if test $emacs_cv_netdb_declares_h_errno = yes; then
16294 cat >>confdefs.h <<\_ACEOF
16295 #define HAVE_H_ERRNO 1
16296 _ACEOF
16300 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16301 # for constant arguments. Useless!
16302 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16303 $as_echo_n "checking for working alloca.h... " >&6; }
16304 if test "${ac_cv_working_alloca_h+set}" = set; then
16305 $as_echo_n "(cached) " >&6
16306 else
16307 cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h. */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #include <alloca.h>
16315 main ()
16317 char *p = (char *) alloca (2 * sizeof (int));
16318 if (p) return 0;
16320 return 0;
16322 _ACEOF
16323 rm -f conftest.$ac_objext conftest$ac_exeext
16324 if { (ac_try="$ac_link"
16325 case "(($ac_try" in
16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16328 esac
16329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16330 $as_echo "$ac_try_echo") >&5
16331 (eval "$ac_link") 2>conftest.er1
16332 ac_status=$?
16333 grep -v '^ *+' conftest.er1 >conftest.err
16334 rm -f conftest.er1
16335 cat conftest.err >&5
16336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } && {
16338 test -z "$ac_c_werror_flag" ||
16339 test ! -s conftest.err
16340 } && test -s conftest$ac_exeext && {
16341 test "$cross_compiling" = yes ||
16342 $as_test_x conftest$ac_exeext
16343 }; then
16344 ac_cv_working_alloca_h=yes
16345 else
16346 $as_echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16349 ac_cv_working_alloca_h=no
16352 rm -rf conftest.dSYM
16353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16354 conftest$ac_exeext conftest.$ac_ext
16356 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16357 $as_echo "$ac_cv_working_alloca_h" >&6; }
16358 if test $ac_cv_working_alloca_h = yes; then
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_ALLOCA_H 1
16362 _ACEOF
16366 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16367 $as_echo_n "checking for alloca... " >&6; }
16368 if test "${ac_cv_func_alloca_works+set}" = set; then
16369 $as_echo_n "(cached) " >&6
16370 else
16371 cat >conftest.$ac_ext <<_ACEOF
16372 /* confdefs.h. */
16373 _ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 #ifdef __GNUC__
16378 # define alloca __builtin_alloca
16379 #else
16380 # ifdef _MSC_VER
16381 # include <malloc.h>
16382 # define alloca _alloca
16383 # else
16384 # ifdef HAVE_ALLOCA_H
16385 # include <alloca.h>
16386 # else
16387 # ifdef _AIX
16388 #pragma alloca
16389 # else
16390 # ifndef alloca /* predefined by HP cc +Olibcalls */
16391 char *alloca ();
16392 # endif
16393 # endif
16394 # endif
16395 # endif
16396 #endif
16399 main ()
16401 char *p = (char *) alloca (1);
16402 if (p) return 0;
16404 return 0;
16406 _ACEOF
16407 rm -f conftest.$ac_objext conftest$ac_exeext
16408 if { (ac_try="$ac_link"
16409 case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16412 esac
16413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16414 $as_echo "$ac_try_echo") >&5
16415 (eval "$ac_link") 2>conftest.er1
16416 ac_status=$?
16417 grep -v '^ *+' conftest.er1 >conftest.err
16418 rm -f conftest.er1
16419 cat conftest.err >&5
16420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } && {
16422 test -z "$ac_c_werror_flag" ||
16423 test ! -s conftest.err
16424 } && test -s conftest$ac_exeext && {
16425 test "$cross_compiling" = yes ||
16426 $as_test_x conftest$ac_exeext
16427 }; then
16428 ac_cv_func_alloca_works=yes
16429 else
16430 $as_echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 ac_cv_func_alloca_works=no
16436 rm -rf conftest.dSYM
16437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16438 conftest$ac_exeext conftest.$ac_ext
16440 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16441 $as_echo "$ac_cv_func_alloca_works" >&6; }
16443 if test $ac_cv_func_alloca_works = yes; then
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE_ALLOCA 1
16447 _ACEOF
16449 else
16450 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16451 # that cause trouble. Some versions do not even contain alloca or
16452 # contain a buggy version. If you still want to use their alloca,
16453 # use ar to extract alloca.o from them instead of compiling alloca.c.
16455 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16457 cat >>confdefs.h <<\_ACEOF
16458 #define C_ALLOCA 1
16459 _ACEOF
16462 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16463 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16464 if test "${ac_cv_os_cray+set}" = set; then
16465 $as_echo_n "(cached) " >&6
16466 else
16467 cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h. */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16473 #if defined CRAY && ! defined CRAY2
16474 webecray
16475 #else
16476 wenotbecray
16477 #endif
16479 _ACEOF
16480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16481 $EGREP "webecray" >/dev/null 2>&1; then
16482 ac_cv_os_cray=yes
16483 else
16484 ac_cv_os_cray=no
16486 rm -f conftest*
16489 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16490 $as_echo "$ac_cv_os_cray" >&6; }
16491 if test $ac_cv_os_cray = yes; then
16492 for ac_func in _getb67 GETB67 getb67; do
16493 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16494 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16495 $as_echo_n "checking for $ac_func... " >&6; }
16496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16497 $as_echo_n "(cached) " >&6
16498 else
16499 cat >conftest.$ac_ext <<_ACEOF
16500 /* confdefs.h. */
16501 _ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h. */
16505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16507 #define $ac_func innocuous_$ac_func
16509 /* System header to define __stub macros and hopefully few prototypes,
16510 which can conflict with char $ac_func (); below.
16511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16512 <limits.h> exists even on freestanding compilers. */
16514 #ifdef __STDC__
16515 # include <limits.h>
16516 #else
16517 # include <assert.h>
16518 #endif
16520 #undef $ac_func
16522 /* Override any GCC internal prototype to avoid an error.
16523 Use char because int might match the return type of a GCC
16524 builtin and then its argument prototype would still apply. */
16525 #ifdef __cplusplus
16526 extern "C"
16527 #endif
16528 char $ac_func ();
16529 /* The GNU C library defines this for functions which it implements
16530 to always fail with ENOSYS. Some functions are actually named
16531 something starting with __ and the normal name is an alias. */
16532 #if defined __stub_$ac_func || defined __stub___$ac_func
16533 choke me
16534 #endif
16537 main ()
16539 return $ac_func ();
16541 return 0;
16543 _ACEOF
16544 rm -f conftest.$ac_objext conftest$ac_exeext
16545 if { (ac_try="$ac_link"
16546 case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549 esac
16550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16551 $as_echo "$ac_try_echo") >&5
16552 (eval "$ac_link") 2>conftest.er1
16553 ac_status=$?
16554 grep -v '^ *+' conftest.er1 >conftest.err
16555 rm -f conftest.er1
16556 cat conftest.err >&5
16557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } && {
16559 test -z "$ac_c_werror_flag" ||
16560 test ! -s conftest.err
16561 } && test -s conftest$ac_exeext && {
16562 test "$cross_compiling" = yes ||
16563 $as_test_x conftest$ac_exeext
16564 }; then
16565 eval "$as_ac_var=yes"
16566 else
16567 $as_echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 eval "$as_ac_var=no"
16573 rm -rf conftest.dSYM
16574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16575 conftest$ac_exeext conftest.$ac_ext
16577 ac_res=`eval 'as_val=${'$as_ac_var'}
16578 $as_echo "$as_val"'`
16579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16580 $as_echo "$ac_res" >&6; }
16581 if test `eval 'as_val=${'$as_ac_var'}
16582 $as_echo "$as_val"'` = yes; then
16584 cat >>confdefs.h <<_ACEOF
16585 #define CRAY_STACKSEG_END $ac_func
16586 _ACEOF
16588 break
16591 done
16594 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16595 $as_echo_n "checking stack direction for C alloca... " >&6; }
16596 if test "${ac_cv_c_stack_direction+set}" = set; then
16597 $as_echo_n "(cached) " >&6
16598 else
16599 if test "$cross_compiling" = yes; then
16600 ac_cv_c_stack_direction=0
16601 else
16602 cat >conftest.$ac_ext <<_ACEOF
16603 /* confdefs.h. */
16604 _ACEOF
16605 cat confdefs.h >>conftest.$ac_ext
16606 cat >>conftest.$ac_ext <<_ACEOF
16607 /* end confdefs.h. */
16608 $ac_includes_default
16610 find_stack_direction ()
16612 static char *addr = 0;
16613 auto char dummy;
16614 if (addr == 0)
16616 addr = &dummy;
16617 return find_stack_direction ();
16619 else
16620 return (&dummy > addr) ? 1 : -1;
16624 main ()
16626 return find_stack_direction () < 0;
16628 _ACEOF
16629 rm -f conftest$ac_exeext
16630 if { (ac_try="$ac_link"
16631 case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16634 esac
16635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16636 $as_echo "$ac_try_echo") >&5
16637 (eval "$ac_link") 2>&5
16638 ac_status=$?
16639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16641 { (case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644 esac
16645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16646 $as_echo "$ac_try_echo") >&5
16647 (eval "$ac_try") 2>&5
16648 ac_status=$?
16649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_c_stack_direction=1
16652 else
16653 $as_echo "$as_me: program exited with status $ac_status" >&5
16654 $as_echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16657 ( exit $ac_status )
16658 ac_cv_c_stack_direction=-1
16660 rm -rf conftest.dSYM
16661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16666 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16667 $as_echo "$ac_cv_c_stack_direction" >&6; }
16669 cat >>confdefs.h <<_ACEOF
16670 #define STACK_DIRECTION $ac_cv_c_stack_direction
16671 _ACEOF
16677 if test x"$ac_cv_func_alloca_works" != xyes; then
16678 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16679 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16680 { (exit 1); exit 1; }; }
16683 # fmod, logb, and frexp are found in -lm on most systems.
16684 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16686 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16687 $as_echo_n "checking for sqrt in -lm... " >&6; }
16688 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16689 $as_echo_n "(cached) " >&6
16690 else
16691 ac_check_lib_save_LIBS=$LIBS
16692 LIBS="-lm $LIBS"
16693 cat >conftest.$ac_ext <<_ACEOF
16694 /* confdefs.h. */
16695 _ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16700 /* Override any GCC internal prototype to avoid an error.
16701 Use char because int might match the return type of a GCC
16702 builtin and then its argument prototype would still apply. */
16703 #ifdef __cplusplus
16704 extern "C"
16705 #endif
16706 char sqrt ();
16708 main ()
16710 return sqrt ();
16712 return 0;
16714 _ACEOF
16715 rm -f conftest.$ac_objext conftest$ac_exeext
16716 if { (ac_try="$ac_link"
16717 case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720 esac
16721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16722 $as_echo "$ac_try_echo") >&5
16723 (eval "$ac_link") 2>conftest.er1
16724 ac_status=$?
16725 grep -v '^ *+' conftest.er1 >conftest.err
16726 rm -f conftest.er1
16727 cat conftest.err >&5
16728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } && {
16730 test -z "$ac_c_werror_flag" ||
16731 test ! -s conftest.err
16732 } && test -s conftest$ac_exeext && {
16733 test "$cross_compiling" = yes ||
16734 $as_test_x conftest$ac_exeext
16735 }; then
16736 ac_cv_lib_m_sqrt=yes
16737 else
16738 $as_echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 ac_cv_lib_m_sqrt=no
16744 rm -rf conftest.dSYM
16745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16746 conftest$ac_exeext conftest.$ac_ext
16747 LIBS=$ac_check_lib_save_LIBS
16749 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16750 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16751 if test $ac_cv_lib_m_sqrt = yes; then
16752 cat >>confdefs.h <<_ACEOF
16753 #define HAVE_LIBM 1
16754 _ACEOF
16756 LIBS="-lm $LIBS"
16761 # Check for mail-locking functions in a "mail" library. Probably this should
16762 # have the same check as for liblockfile below.
16763 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16764 $as_echo_n "checking for maillock in -lmail... " >&6; }
16765 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16766 $as_echo_n "(cached) " >&6
16767 else
16768 ac_check_lib_save_LIBS=$LIBS
16769 LIBS="-lmail $LIBS"
16770 cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h. */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16777 /* Override any GCC internal prototype to avoid an error.
16778 Use char because int might match the return type of a GCC
16779 builtin and then its argument prototype would still apply. */
16780 #ifdef __cplusplus
16781 extern "C"
16782 #endif
16783 char maillock ();
16785 main ()
16787 return maillock ();
16789 return 0;
16791 _ACEOF
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (ac_try="$ac_link"
16794 case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16797 esac
16798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16799 $as_echo "$ac_try_echo") >&5
16800 (eval "$ac_link") 2>conftest.er1
16801 ac_status=$?
16802 grep -v '^ *+' conftest.er1 >conftest.err
16803 rm -f conftest.er1
16804 cat conftest.err >&5
16805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } && {
16807 test -z "$ac_c_werror_flag" ||
16808 test ! -s conftest.err
16809 } && test -s conftest$ac_exeext && {
16810 test "$cross_compiling" = yes ||
16811 $as_test_x conftest$ac_exeext
16812 }; then
16813 ac_cv_lib_mail_maillock=yes
16814 else
16815 $as_echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16818 ac_cv_lib_mail_maillock=no
16821 rm -rf conftest.dSYM
16822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16823 conftest$ac_exeext conftest.$ac_ext
16824 LIBS=$ac_check_lib_save_LIBS
16826 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16827 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16828 if test $ac_cv_lib_mail_maillock = yes; then
16829 have_mail=yes
16830 else
16831 have_mail=no
16834 if test $have_mail = yes; then
16835 LIBS_MAIL=-lmail
16836 LIBS="$LIBS_MAIL $LIBS"
16838 cat >>confdefs.h <<\_ACEOF
16839 #define HAVE_LIBMAIL 1
16840 _ACEOF
16842 else
16843 LIBS_MAIL=
16845 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16846 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16847 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16848 $as_echo_n "(cached) " >&6
16849 else
16850 ac_check_lib_save_LIBS=$LIBS
16851 LIBS="-llockfile $LIBS"
16852 cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h. */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16859 /* Override any GCC internal prototype to avoid an error.
16860 Use char because int might match the return type of a GCC
16861 builtin and then its argument prototype would still apply. */
16862 #ifdef __cplusplus
16863 extern "C"
16864 #endif
16865 char maillock ();
16867 main ()
16869 return maillock ();
16871 return 0;
16873 _ACEOF
16874 rm -f conftest.$ac_objext conftest$ac_exeext
16875 if { (ac_try="$ac_link"
16876 case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879 esac
16880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16881 $as_echo "$ac_try_echo") >&5
16882 (eval "$ac_link") 2>conftest.er1
16883 ac_status=$?
16884 grep -v '^ *+' conftest.er1 >conftest.err
16885 rm -f conftest.er1
16886 cat conftest.err >&5
16887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } && {
16889 test -z "$ac_c_werror_flag" ||
16890 test ! -s conftest.err
16891 } && test -s conftest$ac_exeext && {
16892 test "$cross_compiling" = yes ||
16893 $as_test_x conftest$ac_exeext
16894 }; then
16895 ac_cv_lib_lockfile_maillock=yes
16896 else
16897 $as_echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ac_cv_lib_lockfile_maillock=no
16903 rm -rf conftest.dSYM
16904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16905 conftest$ac_exeext conftest.$ac_ext
16906 LIBS=$ac_check_lib_save_LIBS
16908 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16909 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16910 if test $ac_cv_lib_lockfile_maillock = yes; then
16911 have_lockfile=yes
16912 else
16913 have_lockfile=no
16916 if test $have_lockfile = yes; then
16917 LIBS_MAIL=-llockfile
16918 LIBS="$LIBS_MAIL $LIBS"
16920 cat >>confdefs.h <<\_ACEOF
16921 #define HAVE_LIBLOCKFILE 1
16922 _ACEOF
16924 else
16925 # If we have the shared liblockfile, assume we must use it for mail
16926 # locking (e.g. Debian). If we couldn't link against liblockfile
16927 # (no liblockfile.a installed), ensure that we don't need to.
16928 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16929 set dummy liblockfile.so; ac_word=$2
16930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16931 $as_echo_n "checking for $ac_word... " >&6; }
16932 if test "${ac_cv_prog_liblockfile+set}" = set; then
16933 $as_echo_n "(cached) " >&6
16934 else
16935 if test -n "$liblockfile"; then
16936 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16937 else
16938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16939 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16940 for as_dir in $as_dummy
16942 IFS=$as_save_IFS
16943 test -z "$as_dir" && as_dir=.
16944 for ac_exec_ext in '' $ac_executable_extensions; do
16945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16946 ac_cv_prog_liblockfile="yes"
16947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16948 break 2
16950 done
16951 done
16952 IFS=$as_save_IFS
16954 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16957 liblockfile=$ac_cv_prog_liblockfile
16958 if test -n "$liblockfile"; then
16959 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16960 $as_echo "$liblockfile" >&6; }
16961 else
16962 { $as_echo "$as_me:$LINENO: result: no" >&5
16963 $as_echo "no" >&6; }
16967 if test $ac_cv_prog_liblockfile = yes; then
16968 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16969 This probably means that movemail could lose mail.
16970 There may be a \`development' package to install containing liblockfile." >&5
16971 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16972 This probably means that movemail could lose mail.
16973 There may be a \`development' package to install containing liblockfile." >&2;}
16974 { (exit 1); exit 1; }; }
16978 for ac_func in touchlock
16980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16981 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16982 $as_echo_n "checking for $ac_func... " >&6; }
16983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16984 $as_echo_n "(cached) " >&6
16985 else
16986 cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h. */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16994 #define $ac_func innocuous_$ac_func
16996 /* System header to define __stub macros and hopefully few prototypes,
16997 which can conflict with char $ac_func (); below.
16998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16999 <limits.h> exists even on freestanding compilers. */
17001 #ifdef __STDC__
17002 # include <limits.h>
17003 #else
17004 # include <assert.h>
17005 #endif
17007 #undef $ac_func
17009 /* Override any GCC internal prototype to avoid an error.
17010 Use char because int might match the return type of a GCC
17011 builtin and then its argument prototype would still apply. */
17012 #ifdef __cplusplus
17013 extern "C"
17014 #endif
17015 char $ac_func ();
17016 /* The GNU C library defines this for functions which it implements
17017 to always fail with ENOSYS. Some functions are actually named
17018 something starting with __ and the normal name is an alias. */
17019 #if defined __stub_$ac_func || defined __stub___$ac_func
17020 choke me
17021 #endif
17024 main ()
17026 return $ac_func ();
17028 return 0;
17030 _ACEOF
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (ac_try="$ac_link"
17033 case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17036 esac
17037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17038 $as_echo "$ac_try_echo") >&5
17039 (eval "$ac_link") 2>conftest.er1
17040 ac_status=$?
17041 grep -v '^ *+' conftest.er1 >conftest.err
17042 rm -f conftest.er1
17043 cat conftest.err >&5
17044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } && {
17046 test -z "$ac_c_werror_flag" ||
17047 test ! -s conftest.err
17048 } && test -s conftest$ac_exeext && {
17049 test "$cross_compiling" = yes ||
17050 $as_test_x conftest$ac_exeext
17051 }; then
17052 eval "$as_ac_var=yes"
17053 else
17054 $as_echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17057 eval "$as_ac_var=no"
17060 rm -rf conftest.dSYM
17061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17062 conftest$ac_exeext conftest.$ac_ext
17064 ac_res=`eval 'as_val=${'$as_ac_var'}
17065 $as_echo "$as_val"'`
17066 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17067 $as_echo "$ac_res" >&6; }
17068 if test `eval 'as_val=${'$as_ac_var'}
17069 $as_echo "$as_val"'` = yes; then
17070 cat >>confdefs.h <<_ACEOF
17071 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17072 _ACEOF
17075 done
17078 for ac_header in maillock.h
17080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17083 $as_echo_n "checking for $ac_header... " >&6; }
17084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17085 $as_echo_n "(cached) " >&6
17087 ac_res=`eval 'as_val=${'$as_ac_Header'}
17088 $as_echo "$as_val"'`
17089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17090 $as_echo "$ac_res" >&6; }
17091 else
17092 # Is the header compilable?
17093 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17094 $as_echo_n "checking $ac_header usability... " >&6; }
17095 cat >conftest.$ac_ext <<_ACEOF
17096 /* confdefs.h. */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17101 $ac_includes_default
17102 #include <$ac_header>
17103 _ACEOF
17104 rm -f conftest.$ac_objext
17105 if { (ac_try="$ac_compile"
17106 case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17109 esac
17110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17111 $as_echo "$ac_try_echo") >&5
17112 (eval "$ac_compile") 2>conftest.er1
17113 ac_status=$?
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
17117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } && {
17119 test -z "$ac_c_werror_flag" ||
17120 test ! -s conftest.err
17121 } && test -s conftest.$ac_objext; then
17122 ac_header_compiler=yes
17123 else
17124 $as_echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17127 ac_header_compiler=no
17130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17131 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17132 $as_echo "$ac_header_compiler" >&6; }
17134 # Is the header present?
17135 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17136 $as_echo_n "checking $ac_header presence... " >&6; }
17137 cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h. */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17143 #include <$ac_header>
17144 _ACEOF
17145 if { (ac_try="$ac_cpp conftest.$ac_ext"
17146 case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17149 esac
17150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17151 $as_echo "$ac_try_echo") >&5
17152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17153 ac_status=$?
17154 grep -v '^ *+' conftest.er1 >conftest.err
17155 rm -f conftest.er1
17156 cat conftest.err >&5
17157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } >/dev/null && {
17159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17160 test ! -s conftest.err
17161 }; then
17162 ac_header_preproc=yes
17163 else
17164 $as_echo "$as_me: failed program was:" >&5
17165 sed 's/^/| /' conftest.$ac_ext >&5
17167 ac_header_preproc=no
17170 rm -f conftest.err conftest.$ac_ext
17171 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17172 $as_echo "$ac_header_preproc" >&6; }
17174 # So? What about this header?
17175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17176 yes:no: )
17177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17178 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17181 ac_header_preproc=yes
17183 no:yes:* )
17184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17185 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17187 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17189 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17191 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17195 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17198 esac
17199 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17200 $as_echo_n "checking for $ac_header... " >&6; }
17201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17202 $as_echo_n "(cached) " >&6
17203 else
17204 eval "$as_ac_Header=\$ac_header_preproc"
17206 ac_res=`eval 'as_val=${'$as_ac_Header'}
17207 $as_echo "$as_val"'`
17208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17209 $as_echo "$ac_res" >&6; }
17212 if test `eval 'as_val=${'$as_ac_Header'}
17213 $as_echo "$as_val"'` = yes; then
17214 cat >>confdefs.h <<_ACEOF
17215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17216 _ACEOF
17220 done
17295 for ac_func in gethostname getdomainname dup2 \
17296 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17297 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17298 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17299 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17300 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17301 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17302 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17303 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17304 cfmakeraw cfsetspeed
17306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17307 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17308 $as_echo_n "checking for $ac_func... " >&6; }
17309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17310 $as_echo_n "(cached) " >&6
17311 else
17312 cat >conftest.$ac_ext <<_ACEOF
17313 /* confdefs.h. */
17314 _ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17320 #define $ac_func innocuous_$ac_func
17322 /* System header to define __stub macros and hopefully few prototypes,
17323 which can conflict with char $ac_func (); below.
17324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17325 <limits.h> exists even on freestanding compilers. */
17327 #ifdef __STDC__
17328 # include <limits.h>
17329 #else
17330 # include <assert.h>
17331 #endif
17333 #undef $ac_func
17335 /* Override any GCC internal prototype to avoid an error.
17336 Use char because int might match the return type of a GCC
17337 builtin and then its argument prototype would still apply. */
17338 #ifdef __cplusplus
17339 extern "C"
17340 #endif
17341 char $ac_func ();
17342 /* The GNU C library defines this for functions which it implements
17343 to always fail with ENOSYS. Some functions are actually named
17344 something starting with __ and the normal name is an alias. */
17345 #if defined __stub_$ac_func || defined __stub___$ac_func
17346 choke me
17347 #endif
17350 main ()
17352 return $ac_func ();
17354 return 0;
17356 _ACEOF
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (ac_try="$ac_link"
17359 case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17362 esac
17363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17364 $as_echo "$ac_try_echo") >&5
17365 (eval "$ac_link") 2>conftest.er1
17366 ac_status=$?
17367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
17370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && {
17372 test -z "$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17374 } && test -s conftest$ac_exeext && {
17375 test "$cross_compiling" = yes ||
17376 $as_test_x conftest$ac_exeext
17377 }; then
17378 eval "$as_ac_var=yes"
17379 else
17380 $as_echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 eval "$as_ac_var=no"
17386 rm -rf conftest.dSYM
17387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17388 conftest$ac_exeext conftest.$ac_ext
17390 ac_res=`eval 'as_val=${'$as_ac_var'}
17391 $as_echo "$as_val"'`
17392 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17393 $as_echo "$ac_res" >&6; }
17394 if test `eval 'as_val=${'$as_ac_var'}
17395 $as_echo "$as_val"'` = yes; then
17396 cat >>confdefs.h <<_ACEOF
17397 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17398 _ACEOF
17401 done
17405 for ac_header in sys/un.h
17407 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17409 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17410 $as_echo_n "checking for $ac_header... " >&6; }
17411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17412 $as_echo_n "(cached) " >&6
17414 ac_res=`eval 'as_val=${'$as_ac_Header'}
17415 $as_echo "$as_val"'`
17416 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17417 $as_echo "$ac_res" >&6; }
17418 else
17419 # Is the header compilable?
17420 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17421 $as_echo_n "checking $ac_header usability... " >&6; }
17422 cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h. */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 $ac_includes_default
17429 #include <$ac_header>
17430 _ACEOF
17431 rm -f conftest.$ac_objext
17432 if { (ac_try="$ac_compile"
17433 case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436 esac
17437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17438 $as_echo "$ac_try_echo") >&5
17439 (eval "$ac_compile") 2>conftest.er1
17440 ac_status=$?
17441 grep -v '^ *+' conftest.er1 >conftest.err
17442 rm -f conftest.er1
17443 cat conftest.err >&5
17444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } && {
17446 test -z "$ac_c_werror_flag" ||
17447 test ! -s conftest.err
17448 } && test -s conftest.$ac_objext; then
17449 ac_header_compiler=yes
17450 else
17451 $as_echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17454 ac_header_compiler=no
17457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17458 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17459 $as_echo "$ac_header_compiler" >&6; }
17461 # Is the header present?
17462 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17463 $as_echo_n "checking $ac_header presence... " >&6; }
17464 cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h. */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 #include <$ac_header>
17471 _ACEOF
17472 if { (ac_try="$ac_cpp conftest.$ac_ext"
17473 case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17476 esac
17477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17478 $as_echo "$ac_try_echo") >&5
17479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17480 ac_status=$?
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
17484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } >/dev/null && {
17486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17487 test ! -s conftest.err
17488 }; then
17489 ac_header_preproc=yes
17490 else
17491 $as_echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17494 ac_header_preproc=no
17497 rm -f conftest.err conftest.$ac_ext
17498 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17499 $as_echo "$ac_header_preproc" >&6; }
17501 # So? What about this header?
17502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17503 yes:no: )
17504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17505 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17507 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17508 ac_header_preproc=yes
17510 no:yes:* )
17511 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17512 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17514 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17516 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17518 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17520 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17522 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17525 esac
17526 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17527 $as_echo_n "checking for $ac_header... " >&6; }
17528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17529 $as_echo_n "(cached) " >&6
17530 else
17531 eval "$as_ac_Header=\$ac_header_preproc"
17533 ac_res=`eval 'as_val=${'$as_ac_Header'}
17534 $as_echo "$as_val"'`
17535 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17536 $as_echo "$ac_res" >&6; }
17539 if test `eval 'as_val=${'$as_ac_Header'}
17540 $as_echo "$as_val"'` = yes; then
17541 cat >>confdefs.h <<_ACEOF
17542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17543 _ACEOF
17547 done
17554 for ac_header in $ac_header_list
17556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17559 $as_echo_n "checking for $ac_header... " >&6; }
17560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17561 $as_echo_n "(cached) " >&6
17563 ac_res=`eval 'as_val=${'$as_ac_Header'}
17564 $as_echo "$as_val"'`
17565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17566 $as_echo "$ac_res" >&6; }
17567 else
17568 # Is the header compilable?
17569 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17570 $as_echo_n "checking $ac_header usability... " >&6; }
17571 cat >conftest.$ac_ext <<_ACEOF
17572 /* confdefs.h. */
17573 _ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17577 $ac_includes_default
17578 #include <$ac_header>
17579 _ACEOF
17580 rm -f conftest.$ac_objext
17581 if { (ac_try="$ac_compile"
17582 case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17585 esac
17586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17587 $as_echo "$ac_try_echo") >&5
17588 (eval "$ac_compile") 2>conftest.er1
17589 ac_status=$?
17590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
17593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } && {
17595 test -z "$ac_c_werror_flag" ||
17596 test ! -s conftest.err
17597 } && test -s conftest.$ac_objext; then
17598 ac_header_compiler=yes
17599 else
17600 $as_echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17603 ac_header_compiler=no
17606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17607 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17608 $as_echo "$ac_header_compiler" >&6; }
17610 # Is the header present?
17611 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17612 $as_echo_n "checking $ac_header presence... " >&6; }
17613 cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h. */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 #include <$ac_header>
17620 _ACEOF
17621 if { (ac_try="$ac_cpp conftest.$ac_ext"
17622 case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17625 esac
17626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17627 $as_echo "$ac_try_echo") >&5
17628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17629 ac_status=$?
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
17633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } >/dev/null && {
17635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17636 test ! -s conftest.err
17637 }; then
17638 ac_header_preproc=yes
17639 else
17640 $as_echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 ac_header_preproc=no
17646 rm -f conftest.err conftest.$ac_ext
17647 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17648 $as_echo "$ac_header_preproc" >&6; }
17650 # So? What about this header?
17651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17652 yes:no: )
17653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17654 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17656 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17657 ac_header_preproc=yes
17659 no:yes:* )
17660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17661 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17663 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17665 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17667 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17669 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17671 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17674 esac
17675 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17676 $as_echo_n "checking for $ac_header... " >&6; }
17677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17678 $as_echo_n "(cached) " >&6
17679 else
17680 eval "$as_ac_Header=\$ac_header_preproc"
17682 ac_res=`eval 'as_val=${'$as_ac_Header'}
17683 $as_echo "$as_val"'`
17684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17685 $as_echo "$ac_res" >&6; }
17688 if test `eval 'as_val=${'$as_ac_Header'}
17689 $as_echo "$as_val"'` = yes; then
17690 cat >>confdefs.h <<_ACEOF
17691 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17692 _ACEOF
17696 done
17706 for ac_func in $ac_func_list
17708 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17709 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17710 $as_echo_n "checking for $ac_func... " >&6; }
17711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17712 $as_echo_n "(cached) " >&6
17713 else
17714 cat >conftest.$ac_ext <<_ACEOF
17715 /* confdefs.h. */
17716 _ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17722 #define $ac_func innocuous_$ac_func
17724 /* System header to define __stub macros and hopefully few prototypes,
17725 which can conflict with char $ac_func (); below.
17726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17727 <limits.h> exists even on freestanding compilers. */
17729 #ifdef __STDC__
17730 # include <limits.h>
17731 #else
17732 # include <assert.h>
17733 #endif
17735 #undef $ac_func
17737 /* Override any GCC internal prototype to avoid an error.
17738 Use char because int might match the return type of a GCC
17739 builtin and then its argument prototype would still apply. */
17740 #ifdef __cplusplus
17741 extern "C"
17742 #endif
17743 char $ac_func ();
17744 /* The GNU C library defines this for functions which it implements
17745 to always fail with ENOSYS. Some functions are actually named
17746 something starting with __ and the normal name is an alias. */
17747 #if defined __stub_$ac_func || defined __stub___$ac_func
17748 choke me
17749 #endif
17752 main ()
17754 return $ac_func ();
17756 return 0;
17758 _ACEOF
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (ac_try="$ac_link"
17761 case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17764 esac
17765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17766 $as_echo "$ac_try_echo") >&5
17767 (eval "$ac_link") 2>conftest.er1
17768 ac_status=$?
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
17772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } && {
17774 test -z "$ac_c_werror_flag" ||
17775 test ! -s conftest.err
17776 } && test -s conftest$ac_exeext && {
17777 test "$cross_compiling" = yes ||
17778 $as_test_x conftest$ac_exeext
17779 }; then
17780 eval "$as_ac_var=yes"
17781 else
17782 $as_echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 eval "$as_ac_var=no"
17788 rm -rf conftest.dSYM
17789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17790 conftest$ac_exeext conftest.$ac_ext
17792 ac_res=`eval 'as_val=${'$as_ac_var'}
17793 $as_echo "$as_val"'`
17794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17795 $as_echo "$ac_res" >&6; }
17796 if test `eval 'as_val=${'$as_ac_var'}
17797 $as_echo "$as_val"'` = yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17800 _ACEOF
17803 done
17821 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17822 $as_echo_n "checking for working mktime... " >&6; }
17823 if test "${ac_cv_func_working_mktime+set}" = set; then
17824 $as_echo_n "(cached) " >&6
17825 else
17826 if test "$cross_compiling" = yes; then
17827 ac_cv_func_working_mktime=no
17828 else
17829 cat >conftest.$ac_ext <<_ACEOF
17830 /* confdefs.h. */
17831 _ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h. */
17835 /* Test program from Paul Eggert and Tony Leneis. */
17836 #ifdef TIME_WITH_SYS_TIME
17837 # include <sys/time.h>
17838 # include <time.h>
17839 #else
17840 # ifdef HAVE_SYS_TIME_H
17841 # include <sys/time.h>
17842 # else
17843 # include <time.h>
17844 # endif
17845 #endif
17847 #include <limits.h>
17848 #include <stdlib.h>
17850 #ifdef HAVE_UNISTD_H
17851 # include <unistd.h>
17852 #endif
17854 #ifndef HAVE_ALARM
17855 # define alarm(X) /* empty */
17856 #endif
17858 /* Work around redefinition to rpl_putenv by other config tests. */
17859 #undef putenv
17861 static time_t time_t_max;
17862 static time_t time_t_min;
17864 /* Values we'll use to set the TZ environment variable. */
17865 static char *tz_strings[] = {
17866 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17867 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17869 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17871 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17872 Based on a problem report from Andreas Jaeger. */
17873 static int
17874 spring_forward_gap ()
17876 /* glibc (up to about 1998-10-07) failed this test. */
17877 struct tm tm;
17879 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17880 instead of "TZ=America/Vancouver" in order to detect the bug even
17881 on systems that don't support the Olson extension, or don't have the
17882 full zoneinfo tables installed. */
17883 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17885 tm.tm_year = 98;
17886 tm.tm_mon = 3;
17887 tm.tm_mday = 5;
17888 tm.tm_hour = 2;
17889 tm.tm_min = 0;
17890 tm.tm_sec = 0;
17891 tm.tm_isdst = -1;
17892 return mktime (&tm) != (time_t) -1;
17895 static int
17896 mktime_test1 (now)
17897 time_t now;
17899 struct tm *lt;
17900 return ! (lt = localtime (&now)) || mktime (lt) == now;
17903 static int
17904 mktime_test (now)
17905 time_t now;
17907 return (mktime_test1 (now)
17908 && mktime_test1 ((time_t) (time_t_max - now))
17909 && mktime_test1 ((time_t) (time_t_min + now)));
17912 static int
17913 irix_6_4_bug ()
17915 /* Based on code from Ariel Faigon. */
17916 struct tm tm;
17917 tm.tm_year = 96;
17918 tm.tm_mon = 3;
17919 tm.tm_mday = 0;
17920 tm.tm_hour = 0;
17921 tm.tm_min = 0;
17922 tm.tm_sec = 0;
17923 tm.tm_isdst = -1;
17924 mktime (&tm);
17925 return tm.tm_mon == 2 && tm.tm_mday == 31;
17928 static int
17929 bigtime_test (j)
17930 int j;
17932 struct tm tm;
17933 time_t now;
17934 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17935 now = mktime (&tm);
17936 if (now != (time_t) -1)
17938 struct tm *lt = localtime (&now);
17939 if (! (lt
17940 && lt->tm_year == tm.tm_year
17941 && lt->tm_mon == tm.tm_mon
17942 && lt->tm_mday == tm.tm_mday
17943 && lt->tm_hour == tm.tm_hour
17944 && lt->tm_min == tm.tm_min
17945 && lt->tm_sec == tm.tm_sec
17946 && lt->tm_yday == tm.tm_yday
17947 && lt->tm_wday == tm.tm_wday
17948 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17949 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17950 return 0;
17952 return 1;
17955 static int
17956 year_2050_test ()
17958 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17959 ignoring leap seconds. */
17960 unsigned long int answer = 2527315200UL;
17962 struct tm tm;
17963 time_t t;
17964 tm.tm_year = 2050 - 1900;
17965 tm.tm_mon = 2 - 1;
17966 tm.tm_mday = 1;
17967 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17968 tm.tm_isdst = -1;
17970 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17971 instead of "TZ=America/Vancouver" in order to detect the bug even
17972 on systems that don't support the Olson extension, or don't have the
17973 full zoneinfo tables installed. */
17974 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17976 t = mktime (&tm);
17978 /* Check that the result is either a failure, or close enough
17979 to the correct answer that we can assume the discrepancy is
17980 due to leap seconds. */
17981 return (t == (time_t) -1
17982 || (0 < t && answer - 120 <= t && t <= answer + 120));
17986 main ()
17988 time_t t, delta;
17989 int i, j;
17991 /* This test makes some buggy mktime implementations loop.
17992 Give up after 60 seconds; a mktime slower than that
17993 isn't worth using anyway. */
17994 alarm (60);
17996 for (;;)
17998 t = (time_t_max << 1) + 1;
17999 if (t <= time_t_max)
18000 break;
18001 time_t_max = t;
18003 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18005 delta = time_t_max / 997; /* a suitable prime number */
18006 for (i = 0; i < N_STRINGS; i++)
18008 if (tz_strings[i])
18009 putenv (tz_strings[i]);
18011 for (t = 0; t <= time_t_max - delta; t += delta)
18012 if (! mktime_test (t))
18013 return 1;
18014 if (! (mktime_test ((time_t) 1)
18015 && mktime_test ((time_t) (60 * 60))
18016 && mktime_test ((time_t) (60 * 60 * 24))))
18017 return 1;
18019 for (j = 1; ; j <<= 1)
18020 if (! bigtime_test (j))
18021 return 1;
18022 else if (INT_MAX / 2 < j)
18023 break;
18024 if (! bigtime_test (INT_MAX))
18025 return 1;
18027 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18029 _ACEOF
18030 rm -f conftest$ac_exeext
18031 if { (ac_try="$ac_link"
18032 case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18035 esac
18036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18037 $as_echo "$ac_try_echo") >&5
18038 (eval "$ac_link") 2>&5
18039 ac_status=$?
18040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18042 { (case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18045 esac
18046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18047 $as_echo "$ac_try_echo") >&5
18048 (eval "$ac_try") 2>&5
18049 ac_status=$?
18050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_cv_func_working_mktime=yes
18053 else
18054 $as_echo "$as_me: program exited with status $ac_status" >&5
18055 $as_echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 ( exit $ac_status )
18059 ac_cv_func_working_mktime=no
18061 rm -rf conftest.dSYM
18062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18067 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18068 $as_echo "$ac_cv_func_working_mktime" >&6; }
18069 if test $ac_cv_func_working_mktime = no; then
18070 case " $LIBOBJS " in
18071 *" mktime.$ac_objext "* ) ;;
18072 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18074 esac
18078 if test "$ac_cv_func_working_mktime" = no; then
18080 cat >>confdefs.h <<\_ACEOF
18081 #define BROKEN_MKTIME 1
18082 _ACEOF
18086 ac_have_func=no # yes means we've found a way to get the load average.
18088 # Make sure getloadavg.c is where it belongs, at configure-time.
18089 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18090 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18091 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18092 { (exit 1); exit 1; }; }
18094 ac_save_LIBS=$LIBS
18096 # Check for getloadavg, but be sure not to touch the cache variable.
18097 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18098 $as_echo_n "checking for getloadavg... " >&6; }
18099 if test "${ac_cv_func_getloadavg+set}" = set; then
18100 $as_echo_n "(cached) " >&6
18101 else
18102 cat >conftest.$ac_ext <<_ACEOF
18103 /* confdefs.h. */
18104 _ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h. */
18108 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18110 #define getloadavg innocuous_getloadavg
18112 /* System header to define __stub macros and hopefully few prototypes,
18113 which can conflict with char getloadavg (); below.
18114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18115 <limits.h> exists even on freestanding compilers. */
18117 #ifdef __STDC__
18118 # include <limits.h>
18119 #else
18120 # include <assert.h>
18121 #endif
18123 #undef getloadavg
18125 /* Override any GCC internal prototype to avoid an error.
18126 Use char because int might match the return type of a GCC
18127 builtin and then its argument prototype would still apply. */
18128 #ifdef __cplusplus
18129 extern "C"
18130 #endif
18131 char getloadavg ();
18132 /* The GNU C library defines this for functions which it implements
18133 to always fail with ENOSYS. Some functions are actually named
18134 something starting with __ and the normal name is an alias. */
18135 #if defined __stub_getloadavg || defined __stub___getloadavg
18136 choke me
18137 #endif
18140 main ()
18142 return getloadavg ();
18144 return 0;
18146 _ACEOF
18147 rm -f conftest.$ac_objext conftest$ac_exeext
18148 if { (ac_try="$ac_link"
18149 case "(($ac_try" in
18150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18151 *) ac_try_echo=$ac_try;;
18152 esac
18153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18154 $as_echo "$ac_try_echo") >&5
18155 (eval "$ac_link") 2>conftest.er1
18156 ac_status=$?
18157 grep -v '^ *+' conftest.er1 >conftest.err
18158 rm -f conftest.er1
18159 cat conftest.err >&5
18160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } && {
18162 test -z "$ac_c_werror_flag" ||
18163 test ! -s conftest.err
18164 } && test -s conftest$ac_exeext && {
18165 test "$cross_compiling" = yes ||
18166 $as_test_x conftest$ac_exeext
18167 }; then
18168 ac_cv_func_getloadavg=yes
18169 else
18170 $as_echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 ac_cv_func_getloadavg=no
18176 rm -rf conftest.dSYM
18177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18178 conftest$ac_exeext conftest.$ac_ext
18180 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18181 $as_echo "$ac_cv_func_getloadavg" >&6; }
18182 if test $ac_cv_func_getloadavg = yes; then
18183 exit 0
18184 else
18185 exit 1
18187 ) && ac_have_func=yes
18189 # On HPUX9, an unprivileged user can get load averages through this function.
18191 for ac_func in pstat_getdynamic
18193 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18194 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18195 $as_echo_n "checking for $ac_func... " >&6; }
18196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18197 $as_echo_n "(cached) " >&6
18198 else
18199 cat >conftest.$ac_ext <<_ACEOF
18200 /* confdefs.h. */
18201 _ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18207 #define $ac_func innocuous_$ac_func
18209 /* System header to define __stub macros and hopefully few prototypes,
18210 which can conflict with char $ac_func (); below.
18211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18212 <limits.h> exists even on freestanding compilers. */
18214 #ifdef __STDC__
18215 # include <limits.h>
18216 #else
18217 # include <assert.h>
18218 #endif
18220 #undef $ac_func
18222 /* Override any GCC internal prototype to avoid an error.
18223 Use char because int might match the return type of a GCC
18224 builtin and then its argument prototype would still apply. */
18225 #ifdef __cplusplus
18226 extern "C"
18227 #endif
18228 char $ac_func ();
18229 /* The GNU C library defines this for functions which it implements
18230 to always fail with ENOSYS. Some functions are actually named
18231 something starting with __ and the normal name is an alias. */
18232 #if defined __stub_$ac_func || defined __stub___$ac_func
18233 choke me
18234 #endif
18237 main ()
18239 return $ac_func ();
18241 return 0;
18243 _ACEOF
18244 rm -f conftest.$ac_objext conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249 esac
18250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18251 $as_echo "$ac_try_echo") >&5
18252 (eval "$ac_link") 2>conftest.er1
18253 ac_status=$?
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
18257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && {
18259 test -z "$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18261 } && test -s conftest$ac_exeext && {
18262 test "$cross_compiling" = yes ||
18263 $as_test_x conftest$ac_exeext
18264 }; then
18265 eval "$as_ac_var=yes"
18266 else
18267 $as_echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18270 eval "$as_ac_var=no"
18273 rm -rf conftest.dSYM
18274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18275 conftest$ac_exeext conftest.$ac_ext
18277 ac_res=`eval 'as_val=${'$as_ac_var'}
18278 $as_echo "$as_val"'`
18279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18280 $as_echo "$ac_res" >&6; }
18281 if test `eval 'as_val=${'$as_ac_var'}
18282 $as_echo "$as_val"'` = yes; then
18283 cat >>confdefs.h <<_ACEOF
18284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18285 _ACEOF
18288 done
18291 # Solaris has libkstat which does not require root.
18293 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18294 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18295 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18296 $as_echo_n "(cached) " >&6
18297 else
18298 ac_check_lib_save_LIBS=$LIBS
18299 LIBS="-lkstat $LIBS"
18300 cat >conftest.$ac_ext <<_ACEOF
18301 /* confdefs.h. */
18302 _ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h. */
18307 /* Override any GCC internal prototype to avoid an error.
18308 Use char because int might match the return type of a GCC
18309 builtin and then its argument prototype would still apply. */
18310 #ifdef __cplusplus
18311 extern "C"
18312 #endif
18313 char kstat_open ();
18315 main ()
18317 return kstat_open ();
18319 return 0;
18321 _ACEOF
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (ac_try="$ac_link"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327 esac
18328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18329 $as_echo "$ac_try_echo") >&5
18330 (eval "$ac_link") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } && {
18337 test -z "$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 } && test -s conftest$ac_exeext && {
18340 test "$cross_compiling" = yes ||
18341 $as_test_x conftest$ac_exeext
18342 }; then
18343 ac_cv_lib_kstat_kstat_open=yes
18344 else
18345 $as_echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18348 ac_cv_lib_kstat_kstat_open=no
18351 rm -rf conftest.dSYM
18352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18353 conftest$ac_exeext conftest.$ac_ext
18354 LIBS=$ac_check_lib_save_LIBS
18356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18357 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18358 if test $ac_cv_lib_kstat_kstat_open = yes; then
18359 cat >>confdefs.h <<_ACEOF
18360 #define HAVE_LIBKSTAT 1
18361 _ACEOF
18363 LIBS="-lkstat $LIBS"
18367 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18369 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18370 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18371 # to get the right answer into the cache.
18372 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18373 if test $ac_have_func = no; then
18374 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18375 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18376 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18377 $as_echo_n "(cached) " >&6
18378 else
18379 ac_check_lib_save_LIBS=$LIBS
18380 LIBS="-lelf $LIBS"
18381 cat >conftest.$ac_ext <<_ACEOF
18382 /* confdefs.h. */
18383 _ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18388 /* Override any GCC internal prototype to avoid an error.
18389 Use char because int might match the return type of a GCC
18390 builtin and then its argument prototype would still apply. */
18391 #ifdef __cplusplus
18392 extern "C"
18393 #endif
18394 char elf_begin ();
18396 main ()
18398 return elf_begin ();
18400 return 0;
18402 _ACEOF
18403 rm -f conftest.$ac_objext conftest$ac_exeext
18404 if { (ac_try="$ac_link"
18405 case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18408 esac
18409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18410 $as_echo "$ac_try_echo") >&5
18411 (eval "$ac_link") 2>conftest.er1
18412 ac_status=$?
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
18416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } && {
18418 test -z "$ac_c_werror_flag" ||
18419 test ! -s conftest.err
18420 } && test -s conftest$ac_exeext && {
18421 test "$cross_compiling" = yes ||
18422 $as_test_x conftest$ac_exeext
18423 }; then
18424 ac_cv_lib_elf_elf_begin=yes
18425 else
18426 $as_echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ac_cv_lib_elf_elf_begin=no
18432 rm -rf conftest.dSYM
18433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18434 conftest$ac_exeext conftest.$ac_ext
18435 LIBS=$ac_check_lib_save_LIBS
18437 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18438 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18439 if test $ac_cv_lib_elf_elf_begin = yes; then
18440 LIBS="-lelf $LIBS"
18444 if test $ac_have_func = no; then
18445 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18446 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18447 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18448 $as_echo_n "(cached) " >&6
18449 else
18450 ac_check_lib_save_LIBS=$LIBS
18451 LIBS="-lkvm $LIBS"
18452 cat >conftest.$ac_ext <<_ACEOF
18453 /* confdefs.h. */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18459 /* Override any GCC internal prototype to avoid an error.
18460 Use char because int might match the return type of a GCC
18461 builtin and then its argument prototype would still apply. */
18462 #ifdef __cplusplus
18463 extern "C"
18464 #endif
18465 char kvm_open ();
18467 main ()
18469 return kvm_open ();
18471 return 0;
18473 _ACEOF
18474 rm -f conftest.$ac_objext conftest$ac_exeext
18475 if { (ac_try="$ac_link"
18476 case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18479 esac
18480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18481 $as_echo "$ac_try_echo") >&5
18482 (eval "$ac_link") 2>conftest.er1
18483 ac_status=$?
18484 grep -v '^ *+' conftest.er1 >conftest.err
18485 rm -f conftest.er1
18486 cat conftest.err >&5
18487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } && {
18489 test -z "$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18491 } && test -s conftest$ac_exeext && {
18492 test "$cross_compiling" = yes ||
18493 $as_test_x conftest$ac_exeext
18494 }; then
18495 ac_cv_lib_kvm_kvm_open=yes
18496 else
18497 $as_echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18500 ac_cv_lib_kvm_kvm_open=no
18503 rm -rf conftest.dSYM
18504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18505 conftest$ac_exeext conftest.$ac_ext
18506 LIBS=$ac_check_lib_save_LIBS
18508 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18509 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18510 if test $ac_cv_lib_kvm_kvm_open = yes; then
18511 LIBS="-lkvm $LIBS"
18514 # Check for the 4.4BSD definition of getloadavg.
18515 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18516 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18517 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18518 $as_echo_n "(cached) " >&6
18519 else
18520 ac_check_lib_save_LIBS=$LIBS
18521 LIBS="-lutil $LIBS"
18522 cat >conftest.$ac_ext <<_ACEOF
18523 /* confdefs.h. */
18524 _ACEOF
18525 cat confdefs.h >>conftest.$ac_ext
18526 cat >>conftest.$ac_ext <<_ACEOF
18527 /* end confdefs.h. */
18529 /* Override any GCC internal prototype to avoid an error.
18530 Use char because int might match the return type of a GCC
18531 builtin and then its argument prototype would still apply. */
18532 #ifdef __cplusplus
18533 extern "C"
18534 #endif
18535 char getloadavg ();
18537 main ()
18539 return getloadavg ();
18541 return 0;
18543 _ACEOF
18544 rm -f conftest.$ac_objext conftest$ac_exeext
18545 if { (ac_try="$ac_link"
18546 case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549 esac
18550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18551 $as_echo "$ac_try_echo") >&5
18552 (eval "$ac_link") 2>conftest.er1
18553 ac_status=$?
18554 grep -v '^ *+' conftest.er1 >conftest.err
18555 rm -f conftest.er1
18556 cat conftest.err >&5
18557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } && {
18559 test -z "$ac_c_werror_flag" ||
18560 test ! -s conftest.err
18561 } && test -s conftest$ac_exeext && {
18562 test "$cross_compiling" = yes ||
18563 $as_test_x conftest$ac_exeext
18564 }; then
18565 ac_cv_lib_util_getloadavg=yes
18566 else
18567 $as_echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_lib_util_getloadavg=no
18573 rm -rf conftest.dSYM
18574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18575 conftest$ac_exeext conftest.$ac_ext
18576 LIBS=$ac_check_lib_save_LIBS
18578 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18579 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18580 if test $ac_cv_lib_util_getloadavg = yes; then
18581 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18586 if test $ac_have_func = no; then
18587 # There is a commonly available library for RS/6000 AIX.
18588 # Since it is not a standard part of AIX, it might be installed locally.
18589 ac_getloadavg_LIBS=$LIBS
18590 LIBS="-L/usr/local/lib $LIBS"
18591 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18592 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18593 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18594 $as_echo_n "(cached) " >&6
18595 else
18596 ac_check_lib_save_LIBS=$LIBS
18597 LIBS="-lgetloadavg $LIBS"
18598 cat >conftest.$ac_ext <<_ACEOF
18599 /* confdefs.h. */
18600 _ACEOF
18601 cat confdefs.h >>conftest.$ac_ext
18602 cat >>conftest.$ac_ext <<_ACEOF
18603 /* end confdefs.h. */
18605 /* Override any GCC internal prototype to avoid an error.
18606 Use char because int might match the return type of a GCC
18607 builtin and then its argument prototype would still apply. */
18608 #ifdef __cplusplus
18609 extern "C"
18610 #endif
18611 char getloadavg ();
18613 main ()
18615 return getloadavg ();
18617 return 0;
18619 _ACEOF
18620 rm -f conftest.$ac_objext conftest$ac_exeext
18621 if { (ac_try="$ac_link"
18622 case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625 esac
18626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18627 $as_echo "$ac_try_echo") >&5
18628 (eval "$ac_link") 2>conftest.er1
18629 ac_status=$?
18630 grep -v '^ *+' conftest.er1 >conftest.err
18631 rm -f conftest.er1
18632 cat conftest.err >&5
18633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } && {
18635 test -z "$ac_c_werror_flag" ||
18636 test ! -s conftest.err
18637 } && test -s conftest$ac_exeext && {
18638 test "$cross_compiling" = yes ||
18639 $as_test_x conftest$ac_exeext
18640 }; then
18641 ac_cv_lib_getloadavg_getloadavg=yes
18642 else
18643 $as_echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 ac_cv_lib_getloadavg_getloadavg=no
18649 rm -rf conftest.dSYM
18650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18651 conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18654 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18655 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18656 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18657 LIBS="-lgetloadavg $LIBS"
18658 else
18659 LIBS=$ac_getloadavg_LIBS
18664 # Make sure it is really in the library, if we think we found it,
18665 # otherwise set up the replacement function.
18667 for ac_func in getloadavg
18669 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18670 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18671 $as_echo_n "checking for $ac_func... " >&6; }
18672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18673 $as_echo_n "(cached) " >&6
18674 else
18675 cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h. */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18683 #define $ac_func innocuous_$ac_func
18685 /* System header to define __stub macros and hopefully few prototypes,
18686 which can conflict with char $ac_func (); below.
18687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18688 <limits.h> exists even on freestanding compilers. */
18690 #ifdef __STDC__
18691 # include <limits.h>
18692 #else
18693 # include <assert.h>
18694 #endif
18696 #undef $ac_func
18698 /* Override any GCC internal prototype to avoid an error.
18699 Use char because int might match the return type of a GCC
18700 builtin and then its argument prototype would still apply. */
18701 #ifdef __cplusplus
18702 extern "C"
18703 #endif
18704 char $ac_func ();
18705 /* The GNU C library defines this for functions which it implements
18706 to always fail with ENOSYS. Some functions are actually named
18707 something starting with __ and the normal name is an alias. */
18708 #if defined __stub_$ac_func || defined __stub___$ac_func
18709 choke me
18710 #endif
18713 main ()
18715 return $ac_func ();
18717 return 0;
18719 _ACEOF
18720 rm -f conftest.$ac_objext conftest$ac_exeext
18721 if { (ac_try="$ac_link"
18722 case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18725 esac
18726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18727 $as_echo "$ac_try_echo") >&5
18728 (eval "$ac_link") 2>conftest.er1
18729 ac_status=$?
18730 grep -v '^ *+' conftest.er1 >conftest.err
18731 rm -f conftest.er1
18732 cat conftest.err >&5
18733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } && {
18735 test -z "$ac_c_werror_flag" ||
18736 test ! -s conftest.err
18737 } && test -s conftest$ac_exeext && {
18738 test "$cross_compiling" = yes ||
18739 $as_test_x conftest$ac_exeext
18740 }; then
18741 eval "$as_ac_var=yes"
18742 else
18743 $as_echo "$as_me: failed program was:" >&5
18744 sed 's/^/| /' conftest.$ac_ext >&5
18746 eval "$as_ac_var=no"
18749 rm -rf conftest.dSYM
18750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18751 conftest$ac_exeext conftest.$ac_ext
18753 ac_res=`eval 'as_val=${'$as_ac_var'}
18754 $as_echo "$as_val"'`
18755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18756 $as_echo "$ac_res" >&6; }
18757 if test `eval 'as_val=${'$as_ac_var'}
18758 $as_echo "$as_val"'` = yes; then
18759 cat >>confdefs.h <<_ACEOF
18760 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18761 _ACEOF
18763 else
18764 case " $LIBOBJS " in
18765 *" getloadavg.$ac_objext "* ) ;;
18766 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18768 esac
18771 cat >>confdefs.h <<\_ACEOF
18772 #define C_GETLOADAVG 1
18773 _ACEOF
18775 # Figure out what our getloadavg.c needs.
18776 ac_have_func=no
18777 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18778 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18779 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18780 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18781 $as_echo_n "(cached) " >&6
18783 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18784 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18785 else
18786 # Is the header compilable?
18787 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18788 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18789 cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h. */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 $ac_includes_default
18796 #include <sys/dg_sys_info.h>
18797 _ACEOF
18798 rm -f conftest.$ac_objext
18799 if { (ac_try="$ac_compile"
18800 case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18803 esac
18804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18805 $as_echo "$ac_try_echo") >&5
18806 (eval "$ac_compile") 2>conftest.er1
18807 ac_status=$?
18808 grep -v '^ *+' conftest.er1 >conftest.err
18809 rm -f conftest.er1
18810 cat conftest.err >&5
18811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } && {
18813 test -z "$ac_c_werror_flag" ||
18814 test ! -s conftest.err
18815 } && test -s conftest.$ac_objext; then
18816 ac_header_compiler=yes
18817 else
18818 $as_echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18821 ac_header_compiler=no
18824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18825 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18826 $as_echo "$ac_header_compiler" >&6; }
18828 # Is the header present?
18829 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18830 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h. */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 #include <sys/dg_sys_info.h>
18838 _ACEOF
18839 if { (ac_try="$ac_cpp conftest.$ac_ext"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843 esac
18844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18847 ac_status=$?
18848 grep -v '^ *+' conftest.er1 >conftest.err
18849 rm -f conftest.er1
18850 cat conftest.err >&5
18851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } >/dev/null && {
18853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 }; then
18856 ac_header_preproc=yes
18857 else
18858 $as_echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_header_preproc=no
18864 rm -f conftest.err conftest.$ac_ext
18865 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18866 $as_echo "$ac_header_preproc" >&6; }
18868 # So? What about this header?
18869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18870 yes:no: )
18871 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18872 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18873 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18874 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18875 ac_header_preproc=yes
18877 no:yes:* )
18878 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18879 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18880 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18881 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18882 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18883 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18884 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18885 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18886 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18887 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18888 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18889 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18892 esac
18893 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18894 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18895 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18896 $as_echo_n "(cached) " >&6
18897 else
18898 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18900 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18901 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18904 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18905 ac_have_func=yes
18907 cat >>confdefs.h <<\_ACEOF
18908 #define DGUX 1
18909 _ACEOF
18912 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18913 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18914 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18915 $as_echo_n "(cached) " >&6
18916 else
18917 ac_check_lib_save_LIBS=$LIBS
18918 LIBS="-ldgc $LIBS"
18919 cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h. */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18926 /* Override any GCC internal prototype to avoid an error.
18927 Use char because int might match the return type of a GCC
18928 builtin and then its argument prototype would still apply. */
18929 #ifdef __cplusplus
18930 extern "C"
18931 #endif
18932 char dg_sys_info ();
18934 main ()
18936 return dg_sys_info ();
18938 return 0;
18940 _ACEOF
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (ac_try="$ac_link"
18943 case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18946 esac
18947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18948 $as_echo "$ac_try_echo") >&5
18949 (eval "$ac_link") 2>conftest.er1
18950 ac_status=$?
18951 grep -v '^ *+' conftest.er1 >conftest.err
18952 rm -f conftest.er1
18953 cat conftest.err >&5
18954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } && {
18956 test -z "$ac_c_werror_flag" ||
18957 test ! -s conftest.err
18958 } && test -s conftest$ac_exeext && {
18959 test "$cross_compiling" = yes ||
18960 $as_test_x conftest$ac_exeext
18961 }; then
18962 ac_cv_lib_dgc_dg_sys_info=yes
18963 else
18964 $as_echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18967 ac_cv_lib_dgc_dg_sys_info=no
18970 rm -rf conftest.dSYM
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972 conftest$ac_exeext conftest.$ac_ext
18973 LIBS=$ac_check_lib_save_LIBS
18975 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18976 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18977 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18978 cat >>confdefs.h <<_ACEOF
18979 #define HAVE_LIBDGC 1
18980 _ACEOF
18982 LIBS="-ldgc $LIBS"
18990 if test "${ac_cv_header_locale_h+set}" = set; then
18991 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18992 $as_echo_n "checking for locale.h... " >&6; }
18993 if test "${ac_cv_header_locale_h+set}" = set; then
18994 $as_echo_n "(cached) " >&6
18996 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18997 $as_echo "$ac_cv_header_locale_h" >&6; }
18998 else
18999 # Is the header compilable?
19000 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19001 $as_echo_n "checking locale.h usability... " >&6; }
19002 cat >conftest.$ac_ext <<_ACEOF
19003 /* confdefs.h. */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 $ac_includes_default
19009 #include <locale.h>
19010 _ACEOF
19011 rm -f conftest.$ac_objext
19012 if { (ac_try="$ac_compile"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19016 esac
19017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19018 $as_echo "$ac_try_echo") >&5
19019 (eval "$ac_compile") 2>conftest.er1
19020 ac_status=$?
19021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
19024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest.$ac_objext; then
19029 ac_header_compiler=yes
19030 else
19031 $as_echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19034 ac_header_compiler=no
19037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19038 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19039 $as_echo "$ac_header_compiler" >&6; }
19041 # Is the header present?
19042 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19043 $as_echo_n "checking locale.h presence... " >&6; }
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h. */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 #include <locale.h>
19051 _ACEOF
19052 if { (ac_try="$ac_cpp conftest.$ac_ext"
19053 case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19056 esac
19057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19058 $as_echo "$ac_try_echo") >&5
19059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } >/dev/null && {
19066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19067 test ! -s conftest.err
19068 }; then
19069 ac_header_preproc=yes
19070 else
19071 $as_echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ac_header_preproc=no
19077 rm -f conftest.err conftest.$ac_ext
19078 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19079 $as_echo "$ac_header_preproc" >&6; }
19081 # So? What about this header?
19082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19083 yes:no: )
19084 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19085 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19086 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19087 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19088 ac_header_preproc=yes
19090 no:yes:* )
19091 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19092 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19093 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19094 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19095 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19096 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19097 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19098 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19099 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19100 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19101 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19102 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19105 esac
19106 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19107 $as_echo_n "checking for locale.h... " >&6; }
19108 if test "${ac_cv_header_locale_h+set}" = set; then
19109 $as_echo_n "(cached) " >&6
19110 else
19111 ac_cv_header_locale_h=$ac_header_preproc
19113 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19114 $as_echo "$ac_cv_header_locale_h" >&6; }
19120 for ac_func in setlocale
19122 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19123 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19124 $as_echo_n "checking for $ac_func... " >&6; }
19125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19126 $as_echo_n "(cached) " >&6
19127 else
19128 cat >conftest.$ac_ext <<_ACEOF
19129 /* confdefs.h. */
19130 _ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h. */
19134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19136 #define $ac_func innocuous_$ac_func
19138 /* System header to define __stub macros and hopefully few prototypes,
19139 which can conflict with char $ac_func (); below.
19140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19141 <limits.h> exists even on freestanding compilers. */
19143 #ifdef __STDC__
19144 # include <limits.h>
19145 #else
19146 # include <assert.h>
19147 #endif
19149 #undef $ac_func
19151 /* Override any GCC internal prototype to avoid an error.
19152 Use char because int might match the return type of a GCC
19153 builtin and then its argument prototype would still apply. */
19154 #ifdef __cplusplus
19155 extern "C"
19156 #endif
19157 char $ac_func ();
19158 /* The GNU C library defines this for functions which it implements
19159 to always fail with ENOSYS. Some functions are actually named
19160 something starting with __ and the normal name is an alias. */
19161 #if defined __stub_$ac_func || defined __stub___$ac_func
19162 choke me
19163 #endif
19166 main ()
19168 return $ac_func ();
19170 return 0;
19172 _ACEOF
19173 rm -f conftest.$ac_objext conftest$ac_exeext
19174 if { (ac_try="$ac_link"
19175 case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19178 esac
19179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19180 $as_echo "$ac_try_echo") >&5
19181 (eval "$ac_link") 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } && {
19188 test -z "$ac_c_werror_flag" ||
19189 test ! -s conftest.err
19190 } && test -s conftest$ac_exeext && {
19191 test "$cross_compiling" = yes ||
19192 $as_test_x conftest$ac_exeext
19193 }; then
19194 eval "$as_ac_var=yes"
19195 else
19196 $as_echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19199 eval "$as_ac_var=no"
19202 rm -rf conftest.dSYM
19203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19204 conftest$ac_exeext conftest.$ac_ext
19206 ac_res=`eval 'as_val=${'$as_ac_var'}
19207 $as_echo "$as_val"'`
19208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19209 $as_echo "$ac_res" >&6; }
19210 if test `eval 'as_val=${'$as_ac_var'}
19211 $as_echo "$as_val"'` = yes; then
19212 cat >>confdefs.h <<_ACEOF
19213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19214 _ACEOF
19217 done
19220 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19221 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19222 # Irix 4.0.5F has the header but not the library.
19223 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19224 ac_have_func=yes
19226 cat >>confdefs.h <<\_ACEOF
19227 #define SVR4 1
19228 _ACEOF
19232 if test $ac_have_func = no; then
19233 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19234 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19235 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19236 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19237 $as_echo_n "(cached) " >&6
19239 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19240 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19241 else
19242 # Is the header compilable?
19243 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19244 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 $ac_includes_default
19252 #include <inq_stats/cpustats.h>
19253 _ACEOF
19254 rm -f conftest.$ac_objext
19255 if { (ac_try="$ac_compile"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259 esac
19260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19261 $as_echo "$ac_try_echo") >&5
19262 (eval "$ac_compile") 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } && {
19269 test -z "$ac_c_werror_flag" ||
19270 test ! -s conftest.err
19271 } && test -s conftest.$ac_objext; then
19272 ac_header_compiler=yes
19273 else
19274 $as_echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19277 ac_header_compiler=no
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19282 $as_echo "$ac_header_compiler" >&6; }
19284 # Is the header present?
19285 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19286 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19287 cat >conftest.$ac_ext <<_ACEOF
19288 /* confdefs.h. */
19289 _ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 #include <inq_stats/cpustats.h>
19294 _ACEOF
19295 if { (ac_try="$ac_cpp conftest.$ac_ext"
19296 case "(($ac_try" in
19297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298 *) ac_try_echo=$ac_try;;
19299 esac
19300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19301 $as_echo "$ac_try_echo") >&5
19302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19303 ac_status=$?
19304 grep -v '^ *+' conftest.er1 >conftest.err
19305 rm -f conftest.er1
19306 cat conftest.err >&5
19307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } >/dev/null && {
19309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19310 test ! -s conftest.err
19311 }; then
19312 ac_header_preproc=yes
19313 else
19314 $as_echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19317 ac_header_preproc=no
19320 rm -f conftest.err conftest.$ac_ext
19321 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19322 $as_echo "$ac_header_preproc" >&6; }
19324 # So? What about this header?
19325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19326 yes:no: )
19327 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19328 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19329 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19330 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19331 ac_header_preproc=yes
19333 no:yes:* )
19334 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19335 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19336 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19337 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19338 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19339 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19340 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19341 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19342 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19343 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19344 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19345 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19348 esac
19349 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19350 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19351 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19352 $as_echo_n "(cached) " >&6
19353 else
19354 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19356 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19357 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19360 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19361 ac_have_func=yes
19363 cat >>confdefs.h <<\_ACEOF
19364 #define UMAX 1
19365 _ACEOF
19368 cat >>confdefs.h <<\_ACEOF
19369 #define UMAX4_3 1
19370 _ACEOF
19377 if test $ac_have_func = no; then
19378 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19379 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19380 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19381 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19382 $as_echo_n "(cached) " >&6
19384 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19385 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19386 else
19387 # Is the header compilable?
19388 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19389 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19390 cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h. */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 $ac_includes_default
19397 #include <sys/cpustats.h>
19398 _ACEOF
19399 rm -f conftest.$ac_objext
19400 if { (ac_try="$ac_compile"
19401 case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19404 esac
19405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19406 $as_echo "$ac_try_echo") >&5
19407 (eval "$ac_compile") 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest.$ac_objext; then
19417 ac_header_compiler=yes
19418 else
19419 $as_echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19422 ac_header_compiler=no
19425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19426 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19427 $as_echo "$ac_header_compiler" >&6; }
19429 # Is the header present?
19430 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19431 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19432 cat >conftest.$ac_ext <<_ACEOF
19433 /* confdefs.h. */
19434 _ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h. */
19438 #include <sys/cpustats.h>
19439 _ACEOF
19440 if { (ac_try="$ac_cpp conftest.$ac_ext"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19444 esac
19445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19446 $as_echo "$ac_try_echo") >&5
19447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } >/dev/null && {
19454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19456 }; then
19457 ac_header_preproc=yes
19458 else
19459 $as_echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 ac_header_preproc=no
19465 rm -f conftest.err conftest.$ac_ext
19466 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19467 $as_echo "$ac_header_preproc" >&6; }
19469 # So? What about this header?
19470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19471 yes:no: )
19472 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19473 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19474 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19475 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19476 ac_header_preproc=yes
19478 no:yes:* )
19479 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19480 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19481 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19482 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19483 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19484 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19485 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19486 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19487 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19488 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19489 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19490 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19493 esac
19494 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19495 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19496 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19497 $as_echo_n "(cached) " >&6
19498 else
19499 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19501 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19502 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19505 if test $ac_cv_header_sys_cpustats_h = yes; then
19506 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19507 #define UMAX 1
19508 _ACEOF
19515 if test $ac_have_func = no; then
19517 for ac_header in mach/mach.h
19519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19522 $as_echo_n "checking for $ac_header... " >&6; }
19523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19524 $as_echo_n "(cached) " >&6
19526 ac_res=`eval 'as_val=${'$as_ac_Header'}
19527 $as_echo "$as_val"'`
19528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19529 $as_echo "$ac_res" >&6; }
19530 else
19531 # Is the header compilable?
19532 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19533 $as_echo_n "checking $ac_header usability... " >&6; }
19534 cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h. */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19540 $ac_includes_default
19541 #include <$ac_header>
19542 _ACEOF
19543 rm -f conftest.$ac_objext
19544 if { (ac_try="$ac_compile"
19545 case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19548 esac
19549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19550 $as_echo "$ac_try_echo") >&5
19551 (eval "$ac_compile") 2>conftest.er1
19552 ac_status=$?
19553 grep -v '^ *+' conftest.er1 >conftest.err
19554 rm -f conftest.er1
19555 cat conftest.err >&5
19556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } && {
19558 test -z "$ac_c_werror_flag" ||
19559 test ! -s conftest.err
19560 } && test -s conftest.$ac_objext; then
19561 ac_header_compiler=yes
19562 else
19563 $as_echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19566 ac_header_compiler=no
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19571 $as_echo "$ac_header_compiler" >&6; }
19573 # Is the header present?
19574 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19575 $as_echo_n "checking $ac_header presence... " >&6; }
19576 cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h. */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582 #include <$ac_header>
19583 _ACEOF
19584 if { (ac_try="$ac_cpp conftest.$ac_ext"
19585 case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19588 esac
19589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19590 $as_echo "$ac_try_echo") >&5
19591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19592 ac_status=$?
19593 grep -v '^ *+' conftest.er1 >conftest.err
19594 rm -f conftest.er1
19595 cat conftest.err >&5
19596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } >/dev/null && {
19598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19599 test ! -s conftest.err
19600 }; then
19601 ac_header_preproc=yes
19602 else
19603 $as_echo "$as_me: failed program was:" >&5
19604 sed 's/^/| /' conftest.$ac_ext >&5
19606 ac_header_preproc=no
19609 rm -f conftest.err conftest.$ac_ext
19610 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19611 $as_echo "$ac_header_preproc" >&6; }
19613 # So? What about this header?
19614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19615 yes:no: )
19616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19617 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19620 ac_header_preproc=yes
19622 no:yes:* )
19623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19624 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19626 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19628 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19630 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19632 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19634 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19637 esac
19638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19639 $as_echo_n "checking for $ac_header... " >&6; }
19640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19641 $as_echo_n "(cached) " >&6
19642 else
19643 eval "$as_ac_Header=\$ac_header_preproc"
19645 ac_res=`eval 'as_val=${'$as_ac_Header'}
19646 $as_echo "$as_val"'`
19647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19648 $as_echo "$ac_res" >&6; }
19651 if test `eval 'as_val=${'$as_ac_Header'}
19652 $as_echo "$as_val"'` = yes; then
19653 cat >>confdefs.h <<_ACEOF
19654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19655 _ACEOF
19659 done
19664 for ac_header in nlist.h
19666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19669 $as_echo_n "checking for $ac_header... " >&6; }
19670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19671 $as_echo_n "(cached) " >&6
19673 ac_res=`eval 'as_val=${'$as_ac_Header'}
19674 $as_echo "$as_val"'`
19675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19676 $as_echo "$ac_res" >&6; }
19677 else
19678 # Is the header compilable?
19679 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19680 $as_echo_n "checking $ac_header usability... " >&6; }
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h. */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 $ac_includes_default
19688 #include <$ac_header>
19689 _ACEOF
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694 *) ac_try_echo=$ac_try;;
19695 esac
19696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19697 $as_echo "$ac_try_echo") >&5
19698 (eval "$ac_compile") 2>conftest.er1
19699 ac_status=$?
19700 grep -v '^ *+' conftest.er1 >conftest.err
19701 rm -f conftest.er1
19702 cat conftest.err >&5
19703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } && {
19705 test -z "$ac_c_werror_flag" ||
19706 test ! -s conftest.err
19707 } && test -s conftest.$ac_objext; then
19708 ac_header_compiler=yes
19709 else
19710 $as_echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19713 ac_header_compiler=no
19716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19718 $as_echo "$ac_header_compiler" >&6; }
19720 # Is the header present?
19721 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19722 $as_echo_n "checking $ac_header presence... " >&6; }
19723 cat >conftest.$ac_ext <<_ACEOF
19724 /* confdefs.h. */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h. */
19729 #include <$ac_header>
19730 _ACEOF
19731 if { (ac_try="$ac_cpp conftest.$ac_ext"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735 esac
19736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19737 $as_echo "$ac_try_echo") >&5
19738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } >/dev/null && {
19745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 }; then
19748 ac_header_preproc=yes
19749 else
19750 $as_echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19753 ac_header_preproc=no
19756 rm -f conftest.err conftest.$ac_ext
19757 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19758 $as_echo "$ac_header_preproc" >&6; }
19760 # So? What about this header?
19761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19762 yes:no: )
19763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19764 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19767 ac_header_preproc=yes
19769 no:yes:* )
19770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19771 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19773 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19775 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19777 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19781 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19784 esac
19785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19786 $as_echo_n "checking for $ac_header... " >&6; }
19787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19788 $as_echo_n "(cached) " >&6
19789 else
19790 eval "$as_ac_Header=\$ac_header_preproc"
19792 ac_res=`eval 'as_val=${'$as_ac_Header'}
19793 $as_echo "$as_val"'`
19794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19795 $as_echo "$ac_res" >&6; }
19798 if test `eval 'as_val=${'$as_ac_Header'}
19799 $as_echo "$as_val"'` = yes; then
19800 cat >>confdefs.h <<_ACEOF
19801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19802 _ACEOF
19803 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19804 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19805 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19806 $as_echo_n "(cached) " >&6
19807 else
19808 cat >conftest.$ac_ext <<_ACEOF
19809 /* confdefs.h. */
19810 _ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h. */
19814 #include <nlist.h>
19817 main ()
19819 static struct nlist ac_aggr;
19820 if (ac_aggr.n_un.n_name)
19821 return 0;
19823 return 0;
19825 _ACEOF
19826 rm -f conftest.$ac_objext
19827 if { (ac_try="$ac_compile"
19828 case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19831 esac
19832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19833 $as_echo "$ac_try_echo") >&5
19834 (eval "$ac_compile") 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest.$ac_objext; then
19844 ac_cv_member_struct_nlist_n_un_n_name=yes
19845 else
19846 $as_echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h. */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 #include <nlist.h>
19858 main ()
19860 static struct nlist ac_aggr;
19861 if (sizeof ac_aggr.n_un.n_name)
19862 return 0;
19864 return 0;
19866 _ACEOF
19867 rm -f conftest.$ac_objext
19868 if { (ac_try="$ac_compile"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19872 esac
19873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19874 $as_echo "$ac_try_echo") >&5
19875 (eval "$ac_compile") 2>conftest.er1
19876 ac_status=$?
19877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
19880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } && {
19882 test -z "$ac_c_werror_flag" ||
19883 test ! -s conftest.err
19884 } && test -s conftest.$ac_objext; then
19885 ac_cv_member_struct_nlist_n_un_n_name=yes
19886 else
19887 $as_echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 ac_cv_member_struct_nlist_n_un_n_name=no
19893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19899 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19900 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19902 cat >>confdefs.h <<_ACEOF
19903 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19904 _ACEOF
19907 cat >>confdefs.h <<\_ACEOF
19908 #define NLIST_NAME_UNION 1
19909 _ACEOF
19916 done
19919 done
19922 # Some definitions of getloadavg require that the program be installed setgid.
19923 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19924 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19925 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19926 $as_echo_n "(cached) " >&6
19927 else
19928 cat >conftest.$ac_ext <<_ACEOF
19929 /* confdefs.h. */
19930 _ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19934 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19935 #ifdef LDAV_PRIVILEGED
19936 Yowza Am I SETGID yet
19937 #endif
19938 _ACEOF
19939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19940 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19941 ac_cv_func_getloadavg_setgid=yes
19942 else
19943 ac_cv_func_getloadavg_setgid=no
19945 rm -f conftest*
19948 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19949 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19950 if test $ac_cv_func_getloadavg_setgid = yes; then
19951 NEED_SETGID=true
19953 cat >>confdefs.h <<\_ACEOF
19954 #define GETLOADAVG_PRIVILEGED 1
19955 _ACEOF
19957 else
19958 NEED_SETGID=false
19961 if test $ac_cv_func_getloadavg_setgid = yes; then
19962 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19963 $as_echo_n "checking group of /dev/kmem... " >&6; }
19964 if test "${ac_cv_group_kmem+set}" = set; then
19965 $as_echo_n "(cached) " >&6
19966 else
19967 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19968 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19969 # If we got an error (system does not support symlinks), try without -L.
19970 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19971 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19972 | sed -ne 's/[ ][ ]*/ /g;
19973 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19974 / /s/.* //;p;'`
19977 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19978 $as_echo "$ac_cv_group_kmem" >&6; }
19979 KMEM_GROUP=$ac_cv_group_kmem
19981 if test "x$ac_save_LIBS" = x; then
19982 GETLOADAVG_LIBS=$LIBS
19983 else
19984 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19986 LIBS=$ac_save_LIBS
19990 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19991 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19992 if test "${ac_cv_sys_largefile_source+set}" = set; then
19993 $as_echo_n "(cached) " >&6
19994 else
19995 while :; do
19996 cat >conftest.$ac_ext <<_ACEOF
19997 /* confdefs.h. */
19998 _ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20002 #include <sys/types.h> /* for off_t */
20003 #include <stdio.h>
20005 main ()
20007 int (*fp) (FILE *, off_t, int) = fseeko;
20008 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20010 return 0;
20012 _ACEOF
20013 rm -f conftest.$ac_objext conftest$ac_exeext
20014 if { (ac_try="$ac_link"
20015 case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20018 esac
20019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20020 $as_echo "$ac_try_echo") >&5
20021 (eval "$ac_link") 2>conftest.er1
20022 ac_status=$?
20023 grep -v '^ *+' conftest.er1 >conftest.err
20024 rm -f conftest.er1
20025 cat conftest.err >&5
20026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } && {
20028 test -z "$ac_c_werror_flag" ||
20029 test ! -s conftest.err
20030 } && test -s conftest$ac_exeext && {
20031 test "$cross_compiling" = yes ||
20032 $as_test_x conftest$ac_exeext
20033 }; then
20034 ac_cv_sys_largefile_source=no; break
20035 else
20036 $as_echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20042 rm -rf conftest.dSYM
20043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20044 conftest$ac_exeext conftest.$ac_ext
20045 cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h. */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 #define _LARGEFILE_SOURCE 1
20052 #include <sys/types.h> /* for off_t */
20053 #include <stdio.h>
20055 main ()
20057 int (*fp) (FILE *, off_t, int) = fseeko;
20058 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20060 return 0;
20062 _ACEOF
20063 rm -f conftest.$ac_objext conftest$ac_exeext
20064 if { (ac_try="$ac_link"
20065 case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068 esac
20069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20070 $as_echo "$ac_try_echo") >&5
20071 (eval "$ac_link") 2>conftest.er1
20072 ac_status=$?
20073 grep -v '^ *+' conftest.er1 >conftest.err
20074 rm -f conftest.er1
20075 cat conftest.err >&5
20076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } && {
20078 test -z "$ac_c_werror_flag" ||
20079 test ! -s conftest.err
20080 } && test -s conftest$ac_exeext && {
20081 test "$cross_compiling" = yes ||
20082 $as_test_x conftest$ac_exeext
20083 }; then
20084 ac_cv_sys_largefile_source=1; break
20085 else
20086 $as_echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20092 rm -rf conftest.dSYM
20093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20094 conftest$ac_exeext conftest.$ac_ext
20095 ac_cv_sys_largefile_source=unknown
20096 break
20097 done
20099 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20100 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20101 case $ac_cv_sys_largefile_source in #(
20102 no | unknown) ;;
20104 cat >>confdefs.h <<_ACEOF
20105 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20106 _ACEOF
20108 esac
20109 rm -rf conftest*
20111 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20112 # in glibc 2.1.3, but that breaks too many other things.
20113 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20114 if test $ac_cv_sys_largefile_source != unknown; then
20116 cat >>confdefs.h <<\_ACEOF
20117 #define HAVE_FSEEKO 1
20118 _ACEOF
20123 # Configure getopt.
20124 # getopt.m4 serial 10
20126 # The getopt module assume you want GNU getopt, with getopt_long etc,
20127 # rather than vanilla POSIX getopt. This means your your code should
20128 # always include <getopt.h> for the getopt prototypes.
20140 # Prerequisites of lib/getopt*.
20145 GETOPT_H=
20147 for ac_header in getopt.h
20149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20152 $as_echo_n "checking for $ac_header... " >&6; }
20153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20154 $as_echo_n "(cached) " >&6
20156 ac_res=`eval 'as_val=${'$as_ac_Header'}
20157 $as_echo "$as_val"'`
20158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20159 $as_echo "$ac_res" >&6; }
20160 else
20161 # Is the header compilable?
20162 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20163 $as_echo_n "checking $ac_header usability... " >&6; }
20164 cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h. */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20170 $ac_includes_default
20171 #include <$ac_header>
20172 _ACEOF
20173 rm -f conftest.$ac_objext
20174 if { (ac_try="$ac_compile"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20178 esac
20179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20180 $as_echo "$ac_try_echo") >&5
20181 (eval "$ac_compile") 2>conftest.er1
20182 ac_status=$?
20183 grep -v '^ *+' conftest.er1 >conftest.err
20184 rm -f conftest.er1
20185 cat conftest.err >&5
20186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } && {
20188 test -z "$ac_c_werror_flag" ||
20189 test ! -s conftest.err
20190 } && test -s conftest.$ac_objext; then
20191 ac_header_compiler=yes
20192 else
20193 $as_echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20196 ac_header_compiler=no
20199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20200 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20201 $as_echo "$ac_header_compiler" >&6; }
20203 # Is the header present?
20204 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20205 $as_echo_n "checking $ac_header presence... " >&6; }
20206 cat >conftest.$ac_ext <<_ACEOF
20207 /* confdefs.h. */
20208 _ACEOF
20209 cat confdefs.h >>conftest.$ac_ext
20210 cat >>conftest.$ac_ext <<_ACEOF
20211 /* end confdefs.h. */
20212 #include <$ac_header>
20213 _ACEOF
20214 if { (ac_try="$ac_cpp conftest.$ac_ext"
20215 case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20218 esac
20219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20220 $as_echo "$ac_try_echo") >&5
20221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20222 ac_status=$?
20223 grep -v '^ *+' conftest.er1 >conftest.err
20224 rm -f conftest.er1
20225 cat conftest.err >&5
20226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } >/dev/null && {
20228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20229 test ! -s conftest.err
20230 }; then
20231 ac_header_preproc=yes
20232 else
20233 $as_echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 ac_header_preproc=no
20239 rm -f conftest.err conftest.$ac_ext
20240 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20241 $as_echo "$ac_header_preproc" >&6; }
20243 # So? What about this header?
20244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20245 yes:no: )
20246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20247 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20250 ac_header_preproc=yes
20252 no:yes:* )
20253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20254 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20256 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20258 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20260 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20264 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20267 esac
20268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20269 $as_echo_n "checking for $ac_header... " >&6; }
20270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20271 $as_echo_n "(cached) " >&6
20272 else
20273 eval "$as_ac_Header=\$ac_header_preproc"
20275 ac_res=`eval 'as_val=${'$as_ac_Header'}
20276 $as_echo "$as_val"'`
20277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20278 $as_echo "$ac_res" >&6; }
20281 if test `eval 'as_val=${'$as_ac_Header'}
20282 $as_echo "$as_val"'` = yes; then
20283 cat >>confdefs.h <<_ACEOF
20284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20285 _ACEOF
20287 else
20288 GETOPT_H=getopt.h
20291 done
20293 if test -z "$GETOPT_H"; then
20295 for ac_func in getopt_long_only
20297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20298 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20299 $as_echo_n "checking for $ac_func... " >&6; }
20300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20301 $as_echo_n "(cached) " >&6
20302 else
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h. */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20311 #define $ac_func innocuous_$ac_func
20313 /* System header to define __stub macros and hopefully few prototypes,
20314 which can conflict with char $ac_func (); below.
20315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20316 <limits.h> exists even on freestanding compilers. */
20318 #ifdef __STDC__
20319 # include <limits.h>
20320 #else
20321 # include <assert.h>
20322 #endif
20324 #undef $ac_func
20326 /* Override any GCC internal prototype to avoid an error.
20327 Use char because int might match the return type of a GCC
20328 builtin and then its argument prototype would still apply. */
20329 #ifdef __cplusplus
20330 extern "C"
20331 #endif
20332 char $ac_func ();
20333 /* The GNU C library defines this for functions which it implements
20334 to always fail with ENOSYS. Some functions are actually named
20335 something starting with __ and the normal name is an alias. */
20336 #if defined __stub_$ac_func || defined __stub___$ac_func
20337 choke me
20338 #endif
20341 main ()
20343 return $ac_func ();
20345 return 0;
20347 _ACEOF
20348 rm -f conftest.$ac_objext conftest$ac_exeext
20349 if { (ac_try="$ac_link"
20350 case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20353 esac
20354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20355 $as_echo "$ac_try_echo") >&5
20356 (eval "$ac_link") 2>conftest.er1
20357 ac_status=$?
20358 grep -v '^ *+' conftest.er1 >conftest.err
20359 rm -f conftest.er1
20360 cat conftest.err >&5
20361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } && {
20363 test -z "$ac_c_werror_flag" ||
20364 test ! -s conftest.err
20365 } && test -s conftest$ac_exeext && {
20366 test "$cross_compiling" = yes ||
20367 $as_test_x conftest$ac_exeext
20368 }; then
20369 eval "$as_ac_var=yes"
20370 else
20371 $as_echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20374 eval "$as_ac_var=no"
20377 rm -rf conftest.dSYM
20378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20379 conftest$ac_exeext conftest.$ac_ext
20381 ac_res=`eval 'as_val=${'$as_ac_var'}
20382 $as_echo "$as_val"'`
20383 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20384 $as_echo "$ac_res" >&6; }
20385 if test `eval 'as_val=${'$as_ac_var'}
20386 $as_echo "$as_val"'` = yes; then
20387 cat >>confdefs.h <<_ACEOF
20388 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20389 _ACEOF
20391 else
20392 GETOPT_H=getopt.h
20394 done
20398 if test -z "$GETOPT_H"; then
20399 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20400 $as_echo_n "checking whether optreset is declared... " >&6; }
20401 if test "${ac_cv_have_decl_optreset+set}" = set; then
20402 $as_echo_n "(cached) " >&6
20403 else
20404 cat >conftest.$ac_ext <<_ACEOF
20405 /* confdefs.h. */
20406 _ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20410 #include <getopt.h>
20413 main ()
20415 #ifndef optreset
20416 (void) optreset;
20417 #endif
20420 return 0;
20422 _ACEOF
20423 rm -f conftest.$ac_objext
20424 if { (ac_try="$ac_compile"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20428 esac
20429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20430 $as_echo "$ac_try_echo") >&5
20431 (eval "$ac_compile") 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } && {
20438 test -z "$ac_c_werror_flag" ||
20439 test ! -s conftest.err
20440 } && test -s conftest.$ac_objext; then
20441 ac_cv_have_decl_optreset=yes
20442 else
20443 $as_echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ac_cv_have_decl_optreset=no
20449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20451 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20452 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20453 if test $ac_cv_have_decl_optreset = yes; then
20454 GETOPT_H=getopt.h
20459 if test -z "$GETOPT_H"; then
20460 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20461 $as_echo_n "checking for working GNU getopt function... " >&6; }
20462 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20463 $as_echo_n "(cached) " >&6
20464 else
20465 if test "$cross_compiling" = yes; then
20466 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20467 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20468 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20469 $as_echo_n "(cached) " >&6
20470 else
20471 cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h. */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 #include <getopt.h>
20480 main ()
20482 #ifndef getopt_clip
20483 (void) getopt_clip;
20484 #endif
20487 return 0;
20489 _ACEOF
20490 rm -f conftest.$ac_objext
20491 if { (ac_try="$ac_compile"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495 esac
20496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20497 $as_echo "$ac_try_echo") >&5
20498 (eval "$ac_compile") 2>conftest.er1
20499 ac_status=$?
20500 grep -v '^ *+' conftest.er1 >conftest.err
20501 rm -f conftest.er1
20502 cat conftest.err >&5
20503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest.$ac_objext; then
20508 ac_cv_have_decl_getopt_clip=yes
20509 else
20510 $as_echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 ac_cv_have_decl_getopt_clip=no
20516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20519 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20520 if test $ac_cv_have_decl_getopt_clip = yes; then
20521 gl_cv_func_gnu_getopt=no
20522 else
20523 gl_cv_func_gnu_getopt=yes
20526 else
20527 cat >conftest.$ac_ext <<_ACEOF
20528 /* confdefs.h. */
20529 _ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 #include <getopt.h>
20535 main ()
20538 char *myargv[3];
20539 myargv[0] = "conftest";
20540 myargv[1] = "-+";
20541 myargv[2] = 0;
20542 return getopt (2, myargv, "+a") != '?';
20545 return 0;
20547 _ACEOF
20548 rm -f conftest$ac_exeext
20549 if { (ac_try="$ac_link"
20550 case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20553 esac
20554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20555 $as_echo "$ac_try_echo") >&5
20556 (eval "$ac_link") 2>&5
20557 ac_status=$?
20558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20560 { (case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20563 esac
20564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20565 $as_echo "$ac_try_echo") >&5
20566 (eval "$ac_try") 2>&5
20567 ac_status=$?
20568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; }; then
20570 gl_cv_func_gnu_getopt=yes
20571 else
20572 $as_echo "$as_me: program exited with status $ac_status" >&5
20573 $as_echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20576 ( exit $ac_status )
20577 gl_cv_func_gnu_getopt=no
20579 rm -rf conftest.dSYM
20580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20585 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20586 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20587 if test "$gl_cv_func_gnu_getopt" = "no"; then
20588 GETOPT_H=getopt.h
20594 if test -n "$GETOPT_H"; then
20597 GETOPT_H=getopt.h
20599 cat >>confdefs.h <<\_ACEOF
20600 #define __GETOPT_PREFIX rpl_
20601 _ACEOF
20606 GETOPTOBJS='getopt.o getopt1.o'
20613 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20614 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20615 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20616 $as_echo_n "(cached) " >&6
20617 else
20618 # Use it with a single arg.
20619 cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h. */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 $ac_includes_default
20627 main ()
20629 getpgrp (0);
20631 return 0;
20633 _ACEOF
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639 esac
20640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20641 $as_echo "$ac_try_echo") >&5
20642 (eval "$ac_compile") 2>conftest.er1
20643 ac_status=$?
20644 grep -v '^ *+' conftest.er1 >conftest.err
20645 rm -f conftest.er1
20646 cat conftest.err >&5
20647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } && {
20649 test -z "$ac_c_werror_flag" ||
20650 test ! -s conftest.err
20651 } && test -s conftest.$ac_objext; then
20652 ac_cv_func_getpgrp_void=no
20653 else
20654 $as_echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20657 ac_cv_func_getpgrp_void=yes
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20664 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20665 if test $ac_cv_func_getpgrp_void = yes; then
20667 cat >>confdefs.h <<\_ACEOF
20668 #define GETPGRP_VOID 1
20669 _ACEOF
20675 for ac_func in strftime
20677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20678 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20679 $as_echo_n "checking for $ac_func... " >&6; }
20680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20681 $as_echo_n "(cached) " >&6
20682 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20691 #define $ac_func innocuous_$ac_func
20693 /* System header to define __stub macros and hopefully few prototypes,
20694 which can conflict with char $ac_func (); below.
20695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20696 <limits.h> exists even on freestanding compilers. */
20698 #ifdef __STDC__
20699 # include <limits.h>
20700 #else
20701 # include <assert.h>
20702 #endif
20704 #undef $ac_func
20706 /* Override any GCC internal prototype to avoid an error.
20707 Use char because int might match the return type of a GCC
20708 builtin and then its argument prototype would still apply. */
20709 #ifdef __cplusplus
20710 extern "C"
20711 #endif
20712 char $ac_func ();
20713 /* The GNU C library defines this for functions which it implements
20714 to always fail with ENOSYS. Some functions are actually named
20715 something starting with __ and the normal name is an alias. */
20716 #if defined __stub_$ac_func || defined __stub___$ac_func
20717 choke me
20718 #endif
20721 main ()
20723 return $ac_func ();
20725 return 0;
20727 _ACEOF
20728 rm -f conftest.$ac_objext conftest$ac_exeext
20729 if { (ac_try="$ac_link"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20733 esac
20734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20735 $as_echo "$ac_try_echo") >&5
20736 (eval "$ac_link") 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest$ac_exeext && {
20746 test "$cross_compiling" = yes ||
20747 $as_test_x conftest$ac_exeext
20748 }; then
20749 eval "$as_ac_var=yes"
20750 else
20751 $as_echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20754 eval "$as_ac_var=no"
20757 rm -rf conftest.dSYM
20758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20759 conftest$ac_exeext conftest.$ac_ext
20761 ac_res=`eval 'as_val=${'$as_ac_var'}
20762 $as_echo "$as_val"'`
20763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20764 $as_echo "$ac_res" >&6; }
20765 if test `eval 'as_val=${'$as_ac_var'}
20766 $as_echo "$as_val"'` = yes; then
20767 cat >>confdefs.h <<_ACEOF
20768 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20769 _ACEOF
20771 else
20772 # strftime is in -lintl on SCO UNIX.
20773 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20774 $as_echo_n "checking for strftime in -lintl... " >&6; }
20775 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20776 $as_echo_n "(cached) " >&6
20777 else
20778 ac_check_lib_save_LIBS=$LIBS
20779 LIBS="-lintl $LIBS"
20780 cat >conftest.$ac_ext <<_ACEOF
20781 /* confdefs.h. */
20782 _ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20787 /* Override any GCC internal prototype to avoid an error.
20788 Use char because int might match the return type of a GCC
20789 builtin and then its argument prototype would still apply. */
20790 #ifdef __cplusplus
20791 extern "C"
20792 #endif
20793 char strftime ();
20795 main ()
20797 return strftime ();
20799 return 0;
20801 _ACEOF
20802 rm -f conftest.$ac_objext conftest$ac_exeext
20803 if { (ac_try="$ac_link"
20804 case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20807 esac
20808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20809 $as_echo "$ac_try_echo") >&5
20810 (eval "$ac_link") 2>conftest.er1
20811 ac_status=$?
20812 grep -v '^ *+' conftest.er1 >conftest.err
20813 rm -f conftest.er1
20814 cat conftest.err >&5
20815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } && {
20817 test -z "$ac_c_werror_flag" ||
20818 test ! -s conftest.err
20819 } && test -s conftest$ac_exeext && {
20820 test "$cross_compiling" = yes ||
20821 $as_test_x conftest$ac_exeext
20822 }; then
20823 ac_cv_lib_intl_strftime=yes
20824 else
20825 $as_echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20828 ac_cv_lib_intl_strftime=no
20831 rm -rf conftest.dSYM
20832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20833 conftest$ac_exeext conftest.$ac_ext
20834 LIBS=$ac_check_lib_save_LIBS
20836 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20837 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20838 if test $ac_cv_lib_intl_strftime = yes; then
20839 cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_STRFTIME 1
20841 _ACEOF
20843 LIBS="-lintl $LIBS"
20847 done
20850 # UNIX98 PTYs.
20852 for ac_func in grantpt
20854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20855 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20856 $as_echo_n "checking for $ac_func... " >&6; }
20857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20858 $as_echo_n "(cached) " >&6
20859 else
20860 cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h. */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20868 #define $ac_func innocuous_$ac_func
20870 /* System header to define __stub macros and hopefully few prototypes,
20871 which can conflict with char $ac_func (); below.
20872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20873 <limits.h> exists even on freestanding compilers. */
20875 #ifdef __STDC__
20876 # include <limits.h>
20877 #else
20878 # include <assert.h>
20879 #endif
20881 #undef $ac_func
20883 /* Override any GCC internal prototype to avoid an error.
20884 Use char because int might match the return type of a GCC
20885 builtin and then its argument prototype would still apply. */
20886 #ifdef __cplusplus
20887 extern "C"
20888 #endif
20889 char $ac_func ();
20890 /* The GNU C library defines this for functions which it implements
20891 to always fail with ENOSYS. Some functions are actually named
20892 something starting with __ and the normal name is an alias. */
20893 #if defined __stub_$ac_func || defined __stub___$ac_func
20894 choke me
20895 #endif
20898 main ()
20900 return $ac_func ();
20902 return 0;
20904 _ACEOF
20905 rm -f conftest.$ac_objext conftest$ac_exeext
20906 if { (ac_try="$ac_link"
20907 case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20910 esac
20911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20912 $as_echo "$ac_try_echo") >&5
20913 (eval "$ac_link") 2>conftest.er1
20914 ac_status=$?
20915 grep -v '^ *+' conftest.er1 >conftest.err
20916 rm -f conftest.er1
20917 cat conftest.err >&5
20918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } && {
20920 test -z "$ac_c_werror_flag" ||
20921 test ! -s conftest.err
20922 } && test -s conftest$ac_exeext && {
20923 test "$cross_compiling" = yes ||
20924 $as_test_x conftest$ac_exeext
20925 }; then
20926 eval "$as_ac_var=yes"
20927 else
20928 $as_echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20931 eval "$as_ac_var=no"
20934 rm -rf conftest.dSYM
20935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20936 conftest$ac_exeext conftest.$ac_ext
20938 ac_res=`eval 'as_val=${'$as_ac_var'}
20939 $as_echo "$as_val"'`
20940 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20941 $as_echo "$ac_res" >&6; }
20942 if test `eval 'as_val=${'$as_ac_var'}
20943 $as_echo "$as_val"'` = yes; then
20944 cat >>confdefs.h <<_ACEOF
20945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20946 _ACEOF
20949 done
20952 # PTY-related GNU extensions.
20954 for ac_func in getpt
20956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20957 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20958 $as_echo_n "checking for $ac_func... " >&6; }
20959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20960 $as_echo_n "(cached) " >&6
20961 else
20962 cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h. */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20970 #define $ac_func innocuous_$ac_func
20972 /* System header to define __stub macros and hopefully few prototypes,
20973 which can conflict with char $ac_func (); below.
20974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20975 <limits.h> exists even on freestanding compilers. */
20977 #ifdef __STDC__
20978 # include <limits.h>
20979 #else
20980 # include <assert.h>
20981 #endif
20983 #undef $ac_func
20985 /* Override any GCC internal prototype to avoid an error.
20986 Use char because int might match the return type of a GCC
20987 builtin and then its argument prototype would still apply. */
20988 #ifdef __cplusplus
20989 extern "C"
20990 #endif
20991 char $ac_func ();
20992 /* The GNU C library defines this for functions which it implements
20993 to always fail with ENOSYS. Some functions are actually named
20994 something starting with __ and the normal name is an alias. */
20995 #if defined __stub_$ac_func || defined __stub___$ac_func
20996 choke me
20997 #endif
21000 main ()
21002 return $ac_func ();
21004 return 0;
21006 _ACEOF
21007 rm -f conftest.$ac_objext conftest$ac_exeext
21008 if { (ac_try="$ac_link"
21009 case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21012 esac
21013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21014 $as_echo "$ac_try_echo") >&5
21015 (eval "$ac_link") 2>conftest.er1
21016 ac_status=$?
21017 grep -v '^ *+' conftest.er1 >conftest.err
21018 rm -f conftest.er1
21019 cat conftest.err >&5
21020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } && {
21022 test -z "$ac_c_werror_flag" ||
21023 test ! -s conftest.err
21024 } && test -s conftest$ac_exeext && {
21025 test "$cross_compiling" = yes ||
21026 $as_test_x conftest$ac_exeext
21027 }; then
21028 eval "$as_ac_var=yes"
21029 else
21030 $as_echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21033 eval "$as_ac_var=no"
21036 rm -rf conftest.dSYM
21037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21038 conftest$ac_exeext conftest.$ac_ext
21040 ac_res=`eval 'as_val=${'$as_ac_var'}
21041 $as_echo "$as_val"'`
21042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21043 $as_echo "$ac_res" >&6; }
21044 if test `eval 'as_val=${'$as_ac_var'}
21045 $as_echo "$as_val"'` = yes; then
21046 cat >>confdefs.h <<_ACEOF
21047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21048 _ACEOF
21051 done
21054 # Check this now, so that we will NOT find the above functions in ncurses.
21055 # That is because we have not set up to link ncurses in lib-src.
21056 # It's better to believe a function is not available
21057 # than to expect to find it in ncurses.
21058 # Also we need tputs and frieds to be able to build at all.
21059 have_tputs_et_al=true
21060 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21061 $as_echo_n "checking for library containing tputs... " >&6; }
21062 if test "${ac_cv_search_tputs+set}" = set; then
21063 $as_echo_n "(cached) " >&6
21064 else
21065 ac_func_search_save_LIBS=$LIBS
21066 cat >conftest.$ac_ext <<_ACEOF
21067 /* confdefs.h. */
21068 _ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21073 /* Override any GCC internal prototype to avoid an error.
21074 Use char because int might match the return type of a GCC
21075 builtin and then its argument prototype would still apply. */
21076 #ifdef __cplusplus
21077 extern "C"
21078 #endif
21079 char tputs ();
21081 main ()
21083 return tputs ();
21085 return 0;
21087 _ACEOF
21088 for ac_lib in '' ncurses terminfo termcap; do
21089 if test -z "$ac_lib"; then
21090 ac_res="none required"
21091 else
21092 ac_res=-l$ac_lib
21093 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21095 rm -f conftest.$ac_objext conftest$ac_exeext
21096 if { (ac_try="$ac_link"
21097 case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21100 esac
21101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21102 $as_echo "$ac_try_echo") >&5
21103 (eval "$ac_link") 2>conftest.er1
21104 ac_status=$?
21105 grep -v '^ *+' conftest.er1 >conftest.err
21106 rm -f conftest.er1
21107 cat conftest.err >&5
21108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } && {
21110 test -z "$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21112 } && test -s conftest$ac_exeext && {
21113 test "$cross_compiling" = yes ||
21114 $as_test_x conftest$ac_exeext
21115 }; then
21116 ac_cv_search_tputs=$ac_res
21117 else
21118 $as_echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21124 rm -rf conftest.dSYM
21125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21126 conftest$ac_exeext
21127 if test "${ac_cv_search_tputs+set}" = set; then
21128 break
21130 done
21131 if test "${ac_cv_search_tputs+set}" = set; then
21133 else
21134 ac_cv_search_tputs=no
21136 rm conftest.$ac_ext
21137 LIBS=$ac_func_search_save_LIBS
21139 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21140 $as_echo "$ac_cv_search_tputs" >&6; }
21141 ac_res=$ac_cv_search_tputs
21142 if test "$ac_res" != no; then
21143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21145 else
21146 have_tputs_et_al=false
21149 if test "$have_tputs_et_al" != true; then
21150 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21151 Maybe some development libraries/packages are missing? Try installing
21152 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21153 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21154 Maybe some development libraries/packages are missing? Try installing
21155 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21156 { (exit 1); exit 1; }; }
21158 # Must define this when any termcap library is found.
21159 cat >>confdefs.h <<\_ACEOF
21160 #define HAVE_LIBNCURSES 1
21161 _ACEOF
21164 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21166 resolv=no
21167 cat >conftest.$ac_ext <<_ACEOF
21168 /* confdefs.h. */
21169 _ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21173 #include <netinet/in.h>
21174 #include <arpa/nameser.h>
21175 #include <resolv.h>
21177 main ()
21179 return res_init();
21181 return 0;
21183 _ACEOF
21184 rm -f conftest.$ac_objext conftest$ac_exeext
21185 if { (ac_try="$ac_link"
21186 case "(($ac_try" in
21187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21188 *) ac_try_echo=$ac_try;;
21189 esac
21190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21191 $as_echo "$ac_try_echo") >&5
21192 (eval "$ac_link") 2>conftest.er1
21193 ac_status=$?
21194 grep -v '^ *+' conftest.er1 >conftest.err
21195 rm -f conftest.er1
21196 cat conftest.err >&5
21197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } && {
21199 test -z "$ac_c_werror_flag" ||
21200 test ! -s conftest.err
21201 } && test -s conftest$ac_exeext && {
21202 test "$cross_compiling" = yes ||
21203 $as_test_x conftest$ac_exeext
21204 }; then
21205 have_res_init=yes
21206 else
21207 $as_echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21210 have_res_init=no
21213 rm -rf conftest.dSYM
21214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21215 conftest$ac_exeext conftest.$ac_ext
21216 if test "$have_res_init" = no; then
21217 OLIBS="$LIBS"
21218 LIBS="$LIBS -lresolv"
21219 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21220 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21221 cat >conftest.$ac_ext <<_ACEOF
21222 /* confdefs.h. */
21223 _ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h. */
21227 #include <netinet/in.h>
21228 #include <arpa/nameser.h>
21229 #include <resolv.h>
21231 main ()
21233 return res_init();
21235 return 0;
21237 _ACEOF
21238 rm -f conftest.$ac_objext conftest$ac_exeext
21239 if { (ac_try="$ac_link"
21240 case "(($ac_try" in
21241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242 *) ac_try_echo=$ac_try;;
21243 esac
21244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21245 $as_echo "$ac_try_echo") >&5
21246 (eval "$ac_link") 2>conftest.er1
21247 ac_status=$?
21248 grep -v '^ *+' conftest.er1 >conftest.err
21249 rm -f conftest.er1
21250 cat conftest.err >&5
21251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } && {
21253 test -z "$ac_c_werror_flag" ||
21254 test ! -s conftest.err
21255 } && test -s conftest$ac_exeext && {
21256 test "$cross_compiling" = yes ||
21257 $as_test_x conftest$ac_exeext
21258 }; then
21259 have_res_init=yes
21260 else
21261 $as_echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 have_res_init=no
21267 rm -rf conftest.dSYM
21268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21269 conftest$ac_exeext conftest.$ac_ext
21270 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21271 $as_echo "$have_res_init" >&6; }
21272 if test "$have_res_init" = yes ; then
21273 resolv=yes
21275 LIBS="$OLIBS"
21278 if test "$have_res_init" = yes; then
21280 cat >>confdefs.h <<\_ACEOF
21281 #define HAVE_RES_INIT 1
21282 _ACEOF
21286 # Do we need the Hesiod library to provide the support routines?
21287 LIBHESIOD=
21288 if test "$with_hesiod" != no ; then
21289 # Don't set $LIBS here -- see comments above. FIXME which comments?
21290 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21291 $as_echo_n "checking for res_send... " >&6; }
21292 if test "${ac_cv_func_res_send+set}" = set; then
21293 $as_echo_n "(cached) " >&6
21294 else
21295 cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h. */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21303 #define res_send innocuous_res_send
21305 /* System header to define __stub macros and hopefully few prototypes,
21306 which can conflict with char res_send (); below.
21307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21308 <limits.h> exists even on freestanding compilers. */
21310 #ifdef __STDC__
21311 # include <limits.h>
21312 #else
21313 # include <assert.h>
21314 #endif
21316 #undef res_send
21318 /* Override any GCC internal prototype to avoid an error.
21319 Use char because int might match the return type of a GCC
21320 builtin and then its argument prototype would still apply. */
21321 #ifdef __cplusplus
21322 extern "C"
21323 #endif
21324 char res_send ();
21325 /* The GNU C library defines this for functions which it implements
21326 to always fail with ENOSYS. Some functions are actually named
21327 something starting with __ and the normal name is an alias. */
21328 #if defined __stub_res_send || defined __stub___res_send
21329 choke me
21330 #endif
21333 main ()
21335 return res_send ();
21337 return 0;
21339 _ACEOF
21340 rm -f conftest.$ac_objext conftest$ac_exeext
21341 if { (ac_try="$ac_link"
21342 case "(($ac_try" in
21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344 *) ac_try_echo=$ac_try;;
21345 esac
21346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21347 $as_echo "$ac_try_echo") >&5
21348 (eval "$ac_link") 2>conftest.er1
21349 ac_status=$?
21350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
21353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } && {
21355 test -z "$ac_c_werror_flag" ||
21356 test ! -s conftest.err
21357 } && test -s conftest$ac_exeext && {
21358 test "$cross_compiling" = yes ||
21359 $as_test_x conftest$ac_exeext
21360 }; then
21361 ac_cv_func_res_send=yes
21362 else
21363 $as_echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21366 ac_cv_func_res_send=no
21369 rm -rf conftest.dSYM
21370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21371 conftest$ac_exeext conftest.$ac_ext
21373 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21374 $as_echo "$ac_cv_func_res_send" >&6; }
21375 if test $ac_cv_func_res_send = yes; then
21377 else
21378 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21379 $as_echo_n "checking for __res_send... " >&6; }
21380 if test "${ac_cv_func___res_send+set}" = set; then
21381 $as_echo_n "(cached) " >&6
21382 else
21383 cat >conftest.$ac_ext <<_ACEOF
21384 /* confdefs.h. */
21385 _ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h. */
21389 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21391 #define __res_send innocuous___res_send
21393 /* System header to define __stub macros and hopefully few prototypes,
21394 which can conflict with char __res_send (); below.
21395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21396 <limits.h> exists even on freestanding compilers. */
21398 #ifdef __STDC__
21399 # include <limits.h>
21400 #else
21401 # include <assert.h>
21402 #endif
21404 #undef __res_send
21406 /* Override any GCC internal prototype to avoid an error.
21407 Use char because int might match the return type of a GCC
21408 builtin and then its argument prototype would still apply. */
21409 #ifdef __cplusplus
21410 extern "C"
21411 #endif
21412 char __res_send ();
21413 /* The GNU C library defines this for functions which it implements
21414 to always fail with ENOSYS. Some functions are actually named
21415 something starting with __ and the normal name is an alias. */
21416 #if defined __stub___res_send || defined __stub_____res_send
21417 choke me
21418 #endif
21421 main ()
21423 return __res_send ();
21425 return 0;
21427 _ACEOF
21428 rm -f conftest.$ac_objext conftest$ac_exeext
21429 if { (ac_try="$ac_link"
21430 case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21433 esac
21434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21435 $as_echo "$ac_try_echo") >&5
21436 (eval "$ac_link") 2>conftest.er1
21437 ac_status=$?
21438 grep -v '^ *+' conftest.er1 >conftest.err
21439 rm -f conftest.er1
21440 cat conftest.err >&5
21441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } && {
21443 test -z "$ac_c_werror_flag" ||
21444 test ! -s conftest.err
21445 } && test -s conftest$ac_exeext && {
21446 test "$cross_compiling" = yes ||
21447 $as_test_x conftest$ac_exeext
21448 }; then
21449 ac_cv_func___res_send=yes
21450 else
21451 $as_echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21454 ac_cv_func___res_send=no
21457 rm -rf conftest.dSYM
21458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21459 conftest$ac_exeext conftest.$ac_ext
21461 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21462 $as_echo "$ac_cv_func___res_send" >&6; }
21463 if test $ac_cv_func___res_send = yes; then
21465 else
21466 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21467 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21468 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21469 $as_echo_n "(cached) " >&6
21470 else
21471 ac_check_lib_save_LIBS=$LIBS
21472 LIBS="-lresolv $LIBS"
21473 cat >conftest.$ac_ext <<_ACEOF
21474 /* confdefs.h. */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h. */
21480 /* Override any GCC internal prototype to avoid an error.
21481 Use char because int might match the return type of a GCC
21482 builtin and then its argument prototype would still apply. */
21483 #ifdef __cplusplus
21484 extern "C"
21485 #endif
21486 char res_send ();
21488 main ()
21490 return res_send ();
21492 return 0;
21494 _ACEOF
21495 rm -f conftest.$ac_objext conftest$ac_exeext
21496 if { (ac_try="$ac_link"
21497 case "(($ac_try" in
21498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21499 *) ac_try_echo=$ac_try;;
21500 esac
21501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21502 $as_echo "$ac_try_echo") >&5
21503 (eval "$ac_link") 2>conftest.er1
21504 ac_status=$?
21505 grep -v '^ *+' conftest.er1 >conftest.err
21506 rm -f conftest.er1
21507 cat conftest.err >&5
21508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } && {
21510 test -z "$ac_c_werror_flag" ||
21511 test ! -s conftest.err
21512 } && test -s conftest$ac_exeext && {
21513 test "$cross_compiling" = yes ||
21514 $as_test_x conftest$ac_exeext
21515 }; then
21516 ac_cv_lib_resolv_res_send=yes
21517 else
21518 $as_echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21521 ac_cv_lib_resolv_res_send=no
21524 rm -rf conftest.dSYM
21525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21526 conftest$ac_exeext conftest.$ac_ext
21527 LIBS=$ac_check_lib_save_LIBS
21529 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21530 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21531 if test $ac_cv_lib_resolv_res_send = yes; then
21532 resolv=yes
21533 else
21534 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21535 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21536 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21537 $as_echo_n "(cached) " >&6
21538 else
21539 ac_check_lib_save_LIBS=$LIBS
21540 LIBS="-lresolv $LIBS"
21541 cat >conftest.$ac_ext <<_ACEOF
21542 /* confdefs.h. */
21543 _ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h. */
21548 /* Override any GCC internal prototype to avoid an error.
21549 Use char because int might match the return type of a GCC
21550 builtin and then its argument prototype would still apply. */
21551 #ifdef __cplusplus
21552 extern "C"
21553 #endif
21554 char __res_send ();
21556 main ()
21558 return __res_send ();
21560 return 0;
21562 _ACEOF
21563 rm -f conftest.$ac_objext conftest$ac_exeext
21564 if { (ac_try="$ac_link"
21565 case "(($ac_try" in
21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567 *) ac_try_echo=$ac_try;;
21568 esac
21569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21570 $as_echo "$ac_try_echo") >&5
21571 (eval "$ac_link") 2>conftest.er1
21572 ac_status=$?
21573 grep -v '^ *+' conftest.er1 >conftest.err
21574 rm -f conftest.er1
21575 cat conftest.err >&5
21576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && {
21578 test -z "$ac_c_werror_flag" ||
21579 test ! -s conftest.err
21580 } && test -s conftest$ac_exeext && {
21581 test "$cross_compiling" = yes ||
21582 $as_test_x conftest$ac_exeext
21583 }; then
21584 ac_cv_lib_resolv___res_send=yes
21585 else
21586 $as_echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21589 ac_cv_lib_resolv___res_send=no
21592 rm -rf conftest.dSYM
21593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21594 conftest$ac_exeext conftest.$ac_ext
21595 LIBS=$ac_check_lib_save_LIBS
21597 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21598 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21599 if test $ac_cv_lib_resolv___res_send = yes; then
21600 resolv=yes
21609 if test "$resolv" = yes ; then
21610 RESOLVLIB=-lresolv
21611 else
21612 RESOLVLIB=
21614 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21615 $as_echo_n "checking for hes_getmailhost... " >&6; }
21616 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21617 $as_echo_n "(cached) " >&6
21618 else
21619 cat >conftest.$ac_ext <<_ACEOF
21620 /* confdefs.h. */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21625 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21627 #define hes_getmailhost innocuous_hes_getmailhost
21629 /* System header to define __stub macros and hopefully few prototypes,
21630 which can conflict with char hes_getmailhost (); below.
21631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21632 <limits.h> exists even on freestanding compilers. */
21634 #ifdef __STDC__
21635 # include <limits.h>
21636 #else
21637 # include <assert.h>
21638 #endif
21640 #undef hes_getmailhost
21642 /* Override any GCC internal prototype to avoid an error.
21643 Use char because int might match the return type of a GCC
21644 builtin and then its argument prototype would still apply. */
21645 #ifdef __cplusplus
21646 extern "C"
21647 #endif
21648 char hes_getmailhost ();
21649 /* The GNU C library defines this for functions which it implements
21650 to always fail with ENOSYS. Some functions are actually named
21651 something starting with __ and the normal name is an alias. */
21652 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21653 choke me
21654 #endif
21657 main ()
21659 return hes_getmailhost ();
21661 return 0;
21663 _ACEOF
21664 rm -f conftest.$ac_objext conftest$ac_exeext
21665 if { (ac_try="$ac_link"
21666 case "(($ac_try" in
21667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21668 *) ac_try_echo=$ac_try;;
21669 esac
21670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21671 $as_echo "$ac_try_echo") >&5
21672 (eval "$ac_link") 2>conftest.er1
21673 ac_status=$?
21674 grep -v '^ *+' conftest.er1 >conftest.err
21675 rm -f conftest.er1
21676 cat conftest.err >&5
21677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); } && {
21679 test -z "$ac_c_werror_flag" ||
21680 test ! -s conftest.err
21681 } && test -s conftest$ac_exeext && {
21682 test "$cross_compiling" = yes ||
21683 $as_test_x conftest$ac_exeext
21684 }; then
21685 ac_cv_func_hes_getmailhost=yes
21686 else
21687 $as_echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21690 ac_cv_func_hes_getmailhost=no
21693 rm -rf conftest.dSYM
21694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21695 conftest$ac_exeext conftest.$ac_ext
21697 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21698 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21699 if test $ac_cv_func_hes_getmailhost = yes; then
21701 else
21702 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21703 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21704 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21705 $as_echo_n "(cached) " >&6
21706 else
21707 ac_check_lib_save_LIBS=$LIBS
21708 LIBS="-lhesiod $RESOLVLIB $LIBS"
21709 cat >conftest.$ac_ext <<_ACEOF
21710 /* confdefs.h. */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21716 /* Override any GCC internal prototype to avoid an error.
21717 Use char because int might match the return type of a GCC
21718 builtin and then its argument prototype would still apply. */
21719 #ifdef __cplusplus
21720 extern "C"
21721 #endif
21722 char hes_getmailhost ();
21724 main ()
21726 return hes_getmailhost ();
21728 return 0;
21730 _ACEOF
21731 rm -f conftest.$ac_objext conftest$ac_exeext
21732 if { (ac_try="$ac_link"
21733 case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21736 esac
21737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21738 $as_echo "$ac_try_echo") >&5
21739 (eval "$ac_link") 2>conftest.er1
21740 ac_status=$?
21741 grep -v '^ *+' conftest.er1 >conftest.err
21742 rm -f conftest.er1
21743 cat conftest.err >&5
21744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } && {
21746 test -z "$ac_c_werror_flag" ||
21747 test ! -s conftest.err
21748 } && test -s conftest$ac_exeext && {
21749 test "$cross_compiling" = yes ||
21750 $as_test_x conftest$ac_exeext
21751 }; then
21752 ac_cv_lib_hesiod_hes_getmailhost=yes
21753 else
21754 $as_echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21757 ac_cv_lib_hesiod_hes_getmailhost=no
21760 rm -rf conftest.dSYM
21761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21762 conftest$ac_exeext conftest.$ac_ext
21763 LIBS=$ac_check_lib_save_LIBS
21765 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21766 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21767 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21768 hesiod=yes
21769 else
21776 if test x"$hesiod" = xyes; then
21778 cat >>confdefs.h <<\_ACEOF
21779 #define HAVE_LIBHESIOD 1
21780 _ACEOF
21782 LIBHESIOD=-lhesiod
21787 # Do we need libresolv (due to res_init or Hesiod)?
21788 if test "$resolv" = yes ; then
21790 cat >>confdefs.h <<\_ACEOF
21791 #define HAVE_LIBRESOLV 1
21792 _ACEOF
21794 LIBRESOLV=-lresolv
21795 else
21796 LIBRESOLV=
21800 # These tell us which Kerberos-related libraries to use.
21801 COM_ERRLIB=
21802 CRYPTOLIB=
21803 KRB5LIB=
21804 DESLIB=
21805 KRB4LIB=
21807 if test "${with_kerberos}" != no; then
21808 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21809 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21810 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21811 $as_echo_n "(cached) " >&6
21812 else
21813 ac_check_lib_save_LIBS=$LIBS
21814 LIBS="-lcom_err $LIBS"
21815 cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h. */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21822 /* Override any GCC internal prototype to avoid an error.
21823 Use char because int might match the return type of a GCC
21824 builtin and then its argument prototype would still apply. */
21825 #ifdef __cplusplus
21826 extern "C"
21827 #endif
21828 char com_err ();
21830 main ()
21832 return com_err ();
21834 return 0;
21836 _ACEOF
21837 rm -f conftest.$ac_objext conftest$ac_exeext
21838 if { (ac_try="$ac_link"
21839 case "(($ac_try" in
21840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21841 *) ac_try_echo=$ac_try;;
21842 esac
21843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21844 $as_echo "$ac_try_echo") >&5
21845 (eval "$ac_link") 2>conftest.er1
21846 ac_status=$?
21847 grep -v '^ *+' conftest.er1 >conftest.err
21848 rm -f conftest.er1
21849 cat conftest.err >&5
21850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } && {
21852 test -z "$ac_c_werror_flag" ||
21853 test ! -s conftest.err
21854 } && test -s conftest$ac_exeext && {
21855 test "$cross_compiling" = yes ||
21856 $as_test_x conftest$ac_exeext
21857 }; then
21858 ac_cv_lib_com_err_com_err=yes
21859 else
21860 $as_echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21863 ac_cv_lib_com_err_com_err=no
21866 rm -rf conftest.dSYM
21867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21868 conftest$ac_exeext conftest.$ac_ext
21869 LIBS=$ac_check_lib_save_LIBS
21871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21872 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21873 if test $ac_cv_lib_com_err_com_err = yes; then
21874 have_com_err=yes
21875 else
21876 have_com_err=no
21879 if test $have_com_err = yes; then
21880 COM_ERRLIB=-lcom_err
21881 LIBS="$COM_ERRLIB $LIBS"
21883 cat >>confdefs.h <<\_ACEOF
21884 #define HAVE_LIBCOM_ERR 1
21885 _ACEOF
21888 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21889 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21890 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21891 $as_echo_n "(cached) " >&6
21892 else
21893 ac_check_lib_save_LIBS=$LIBS
21894 LIBS="-lcrypto $LIBS"
21895 cat >conftest.$ac_ext <<_ACEOF
21896 /* confdefs.h. */
21897 _ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h. */
21902 /* Override any GCC internal prototype to avoid an error.
21903 Use char because int might match the return type of a GCC
21904 builtin and then its argument prototype would still apply. */
21905 #ifdef __cplusplus
21906 extern "C"
21907 #endif
21908 char mit_des_cbc_encrypt ();
21910 main ()
21912 return mit_des_cbc_encrypt ();
21914 return 0;
21916 _ACEOF
21917 rm -f conftest.$ac_objext conftest$ac_exeext
21918 if { (ac_try="$ac_link"
21919 case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21922 esac
21923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21924 $as_echo "$ac_try_echo") >&5
21925 (eval "$ac_link") 2>conftest.er1
21926 ac_status=$?
21927 grep -v '^ *+' conftest.er1 >conftest.err
21928 rm -f conftest.er1
21929 cat conftest.err >&5
21930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } && {
21932 test -z "$ac_c_werror_flag" ||
21933 test ! -s conftest.err
21934 } && test -s conftest$ac_exeext && {
21935 test "$cross_compiling" = yes ||
21936 $as_test_x conftest$ac_exeext
21937 }; then
21938 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21939 else
21940 $as_echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21943 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21946 rm -rf conftest.dSYM
21947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21948 conftest$ac_exeext conftest.$ac_ext
21949 LIBS=$ac_check_lib_save_LIBS
21951 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21952 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21953 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21954 have_crypto=yes
21955 else
21956 have_crypto=no
21959 if test $have_crypto = yes; then
21960 CRYPTOLIB=-lcrypto
21961 LIBS="$CRYPTOLIB $LIBS"
21963 cat >>confdefs.h <<\_ACEOF
21964 #define HAVE_LIBCRYPTO 1
21965 _ACEOF
21968 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21969 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21970 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21971 $as_echo_n "(cached) " >&6
21972 else
21973 ac_check_lib_save_LIBS=$LIBS
21974 LIBS="-lk5crypto $LIBS"
21975 cat >conftest.$ac_ext <<_ACEOF
21976 /* confdefs.h. */
21977 _ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h. */
21982 /* Override any GCC internal prototype to avoid an error.
21983 Use char because int might match the return type of a GCC
21984 builtin and then its argument prototype would still apply. */
21985 #ifdef __cplusplus
21986 extern "C"
21987 #endif
21988 char mit_des_cbc_encrypt ();
21990 main ()
21992 return mit_des_cbc_encrypt ();
21994 return 0;
21996 _ACEOF
21997 rm -f conftest.$ac_objext conftest$ac_exeext
21998 if { (ac_try="$ac_link"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22002 esac
22003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22004 $as_echo "$ac_try_echo") >&5
22005 (eval "$ac_link") 2>conftest.er1
22006 ac_status=$?
22007 grep -v '^ *+' conftest.er1 >conftest.err
22008 rm -f conftest.er1
22009 cat conftest.err >&5
22010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } && {
22012 test -z "$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 } && test -s conftest$ac_exeext && {
22015 test "$cross_compiling" = yes ||
22016 $as_test_x conftest$ac_exeext
22017 }; then
22018 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22019 else
22020 $as_echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22023 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22026 rm -rf conftest.dSYM
22027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22028 conftest$ac_exeext conftest.$ac_ext
22029 LIBS=$ac_check_lib_save_LIBS
22031 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22032 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22033 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22034 have_k5crypto=yes
22035 else
22036 have_k5crypto=no
22039 if test $have_k5crypto = yes; then
22040 CRYPTOLIB=-lk5crypto
22041 LIBS="$CRYPTOLIB $LIBS"
22043 cat >>confdefs.h <<\_ACEOF
22044 #define HAVE_LIBK5CRYPTO 1
22045 _ACEOF
22048 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22049 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22050 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22051 $as_echo_n "(cached) " >&6
22052 else
22053 ac_check_lib_save_LIBS=$LIBS
22054 LIBS="-lkrb5 $LIBS"
22055 cat >conftest.$ac_ext <<_ACEOF
22056 /* confdefs.h. */
22057 _ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22062 /* Override any GCC internal prototype to avoid an error.
22063 Use char because int might match the return type of a GCC
22064 builtin and then its argument prototype would still apply. */
22065 #ifdef __cplusplus
22066 extern "C"
22067 #endif
22068 char krb5_init_context ();
22070 main ()
22072 return krb5_init_context ();
22074 return 0;
22076 _ACEOF
22077 rm -f conftest.$ac_objext conftest$ac_exeext
22078 if { (ac_try="$ac_link"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22082 esac
22083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22084 $as_echo "$ac_try_echo") >&5
22085 (eval "$ac_link") 2>conftest.er1
22086 ac_status=$?
22087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
22090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest$ac_exeext && {
22095 test "$cross_compiling" = yes ||
22096 $as_test_x conftest$ac_exeext
22097 }; then
22098 ac_cv_lib_krb5_krb5_init_context=yes
22099 else
22100 $as_echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22103 ac_cv_lib_krb5_krb5_init_context=no
22106 rm -rf conftest.dSYM
22107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22108 conftest$ac_exeext conftest.$ac_ext
22109 LIBS=$ac_check_lib_save_LIBS
22111 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22112 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22113 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22114 have_krb5=yes
22115 else
22116 have_krb5=no
22119 if test $have_krb5=yes; then
22120 KRB5LIB=-lkrb5
22121 LIBS="$KRB5LIB $LIBS"
22123 cat >>confdefs.h <<\_ACEOF
22124 #define HAVE_LIBKRB5 1
22125 _ACEOF
22128 if test "${with_kerberos5}" = no; then
22129 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22130 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22131 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22132 $as_echo_n "(cached) " >&6
22133 else
22134 ac_check_lib_save_LIBS=$LIBS
22135 LIBS="-ldes425 $LIBS"
22136 cat >conftest.$ac_ext <<_ACEOF
22137 /* confdefs.h. */
22138 _ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22143 /* Override any GCC internal prototype to avoid an error.
22144 Use char because int might match the return type of a GCC
22145 builtin and then its argument prototype would still apply. */
22146 #ifdef __cplusplus
22147 extern "C"
22148 #endif
22149 char des_cbc_encrypt ();
22151 main ()
22153 return des_cbc_encrypt ();
22155 return 0;
22157 _ACEOF
22158 rm -f conftest.$ac_objext conftest$ac_exeext
22159 if { (ac_try="$ac_link"
22160 case "(($ac_try" in
22161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22163 esac
22164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22165 $as_echo "$ac_try_echo") >&5
22166 (eval "$ac_link") 2>conftest.er1
22167 ac_status=$?
22168 grep -v '^ *+' conftest.er1 >conftest.err
22169 rm -f conftest.er1
22170 cat conftest.err >&5
22171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && {
22173 test -z "$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 } && test -s conftest$ac_exeext && {
22176 test "$cross_compiling" = yes ||
22177 $as_test_x conftest$ac_exeext
22178 }; then
22179 ac_cv_lib_des425_des_cbc_encrypt=yes
22180 else
22181 $as_echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22184 ac_cv_lib_des425_des_cbc_encrypt=no
22187 rm -rf conftest.dSYM
22188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22189 conftest$ac_exeext conftest.$ac_ext
22190 LIBS=$ac_check_lib_save_LIBS
22192 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22193 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22194 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22195 have_des425=yes
22196 else
22197 have_des425=no
22200 if test $have_des425 = yes; then
22201 DESLIB=-ldes425
22202 LIBS="$DESLIB $LIBS"
22204 cat >>confdefs.h <<\_ACEOF
22205 #define HAVE_LIBDES425 1
22206 _ACEOF
22208 else
22209 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22210 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22211 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22212 $as_echo_n "(cached) " >&6
22213 else
22214 ac_check_lib_save_LIBS=$LIBS
22215 LIBS="-ldes $LIBS"
22216 cat >conftest.$ac_ext <<_ACEOF
22217 /* confdefs.h. */
22218 _ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h. */
22223 /* Override any GCC internal prototype to avoid an error.
22224 Use char because int might match the return type of a GCC
22225 builtin and then its argument prototype would still apply. */
22226 #ifdef __cplusplus
22227 extern "C"
22228 #endif
22229 char des_cbc_encrypt ();
22231 main ()
22233 return des_cbc_encrypt ();
22235 return 0;
22237 _ACEOF
22238 rm -f conftest.$ac_objext conftest$ac_exeext
22239 if { (ac_try="$ac_link"
22240 case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22243 esac
22244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22245 $as_echo "$ac_try_echo") >&5
22246 (eval "$ac_link") 2>conftest.er1
22247 ac_status=$?
22248 grep -v '^ *+' conftest.er1 >conftest.err
22249 rm -f conftest.er1
22250 cat conftest.err >&5
22251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } && {
22253 test -z "$ac_c_werror_flag" ||
22254 test ! -s conftest.err
22255 } && test -s conftest$ac_exeext && {
22256 test "$cross_compiling" = yes ||
22257 $as_test_x conftest$ac_exeext
22258 }; then
22259 ac_cv_lib_des_des_cbc_encrypt=yes
22260 else
22261 $as_echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22264 ac_cv_lib_des_des_cbc_encrypt=no
22267 rm -rf conftest.dSYM
22268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22269 conftest$ac_exeext conftest.$ac_ext
22270 LIBS=$ac_check_lib_save_LIBS
22272 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22273 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22274 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22275 have_des=yes
22276 else
22277 have_des=no
22280 if test $have_des = yes; then
22281 DESLIB=-ldes
22282 LIBS="$DESLIB $LIBS"
22284 cat >>confdefs.h <<\_ACEOF
22285 #define HAVE_LIBDES 1
22286 _ACEOF
22290 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22291 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22292 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22293 $as_echo_n "(cached) " >&6
22294 else
22295 ac_check_lib_save_LIBS=$LIBS
22296 LIBS="-lkrb4 $LIBS"
22297 cat >conftest.$ac_ext <<_ACEOF
22298 /* confdefs.h. */
22299 _ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h. */
22304 /* Override any GCC internal prototype to avoid an error.
22305 Use char because int might match the return type of a GCC
22306 builtin and then its argument prototype would still apply. */
22307 #ifdef __cplusplus
22308 extern "C"
22309 #endif
22310 char krb_get_cred ();
22312 main ()
22314 return krb_get_cred ();
22316 return 0;
22318 _ACEOF
22319 rm -f conftest.$ac_objext conftest$ac_exeext
22320 if { (ac_try="$ac_link"
22321 case "(($ac_try" in
22322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323 *) ac_try_echo=$ac_try;;
22324 esac
22325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22326 $as_echo "$ac_try_echo") >&5
22327 (eval "$ac_link") 2>conftest.er1
22328 ac_status=$?
22329 grep -v '^ *+' conftest.er1 >conftest.err
22330 rm -f conftest.er1
22331 cat conftest.err >&5
22332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); } && {
22334 test -z "$ac_c_werror_flag" ||
22335 test ! -s conftest.err
22336 } && test -s conftest$ac_exeext && {
22337 test "$cross_compiling" = yes ||
22338 $as_test_x conftest$ac_exeext
22339 }; then
22340 ac_cv_lib_krb4_krb_get_cred=yes
22341 else
22342 $as_echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22345 ac_cv_lib_krb4_krb_get_cred=no
22348 rm -rf conftest.dSYM
22349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22350 conftest$ac_exeext conftest.$ac_ext
22351 LIBS=$ac_check_lib_save_LIBS
22353 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22354 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22355 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22356 have_krb4=yes
22357 else
22358 have_krb4=no
22361 if test $have_krb4 = yes; then
22362 KRB4LIB=-lkrb4
22363 LIBS="$KRB4LIB $LIBS"
22365 cat >>confdefs.h <<\_ACEOF
22366 #define HAVE_LIBKRB4 1
22367 _ACEOF
22369 else
22370 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22371 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22372 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22373 $as_echo_n "(cached) " >&6
22374 else
22375 ac_check_lib_save_LIBS=$LIBS
22376 LIBS="-lkrb $LIBS"
22377 cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h. */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22384 /* Override any GCC internal prototype to avoid an error.
22385 Use char because int might match the return type of a GCC
22386 builtin and then its argument prototype would still apply. */
22387 #ifdef __cplusplus
22388 extern "C"
22389 #endif
22390 char krb_get_cred ();
22392 main ()
22394 return krb_get_cred ();
22396 return 0;
22398 _ACEOF
22399 rm -f conftest.$ac_objext conftest$ac_exeext
22400 if { (ac_try="$ac_link"
22401 case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404 esac
22405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22406 $as_echo "$ac_try_echo") >&5
22407 (eval "$ac_link") 2>conftest.er1
22408 ac_status=$?
22409 grep -v '^ *+' conftest.er1 >conftest.err
22410 rm -f conftest.er1
22411 cat conftest.err >&5
22412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } && {
22414 test -z "$ac_c_werror_flag" ||
22415 test ! -s conftest.err
22416 } && test -s conftest$ac_exeext && {
22417 test "$cross_compiling" = yes ||
22418 $as_test_x conftest$ac_exeext
22419 }; then
22420 ac_cv_lib_krb_krb_get_cred=yes
22421 else
22422 $as_echo "$as_me: failed program was:" >&5
22423 sed 's/^/| /' conftest.$ac_ext >&5
22425 ac_cv_lib_krb_krb_get_cred=no
22428 rm -rf conftest.dSYM
22429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22430 conftest$ac_exeext conftest.$ac_ext
22431 LIBS=$ac_check_lib_save_LIBS
22433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22434 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22435 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22436 have_krb=yes
22437 else
22438 have_krb=no
22441 if test $have_krb = yes; then
22442 KRB4LIB=-lkrb
22443 LIBS="$KRB4LIB $LIBS"
22445 cat >>confdefs.h <<\_ACEOF
22446 #define HAVE_LIBKRB 1
22447 _ACEOF
22453 if test "${with_kerberos5}" != no; then
22455 for ac_header in krb5.h
22457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22459 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22460 $as_echo_n "checking for $ac_header... " >&6; }
22461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22462 $as_echo_n "(cached) " >&6
22464 ac_res=`eval 'as_val=${'$as_ac_Header'}
22465 $as_echo "$as_val"'`
22466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22467 $as_echo "$ac_res" >&6; }
22468 else
22469 # Is the header compilable?
22470 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22471 $as_echo_n "checking $ac_header usability... " >&6; }
22472 cat >conftest.$ac_ext <<_ACEOF
22473 /* confdefs.h. */
22474 _ACEOF
22475 cat confdefs.h >>conftest.$ac_ext
22476 cat >>conftest.$ac_ext <<_ACEOF
22477 /* end confdefs.h. */
22478 $ac_includes_default
22479 #include <$ac_header>
22480 _ACEOF
22481 rm -f conftest.$ac_objext
22482 if { (ac_try="$ac_compile"
22483 case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22486 esac
22487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22488 $as_echo "$ac_try_echo") >&5
22489 (eval "$ac_compile") 2>conftest.er1
22490 ac_status=$?
22491 grep -v '^ *+' conftest.er1 >conftest.err
22492 rm -f conftest.er1
22493 cat conftest.err >&5
22494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); } && {
22496 test -z "$ac_c_werror_flag" ||
22497 test ! -s conftest.err
22498 } && test -s conftest.$ac_objext; then
22499 ac_header_compiler=yes
22500 else
22501 $as_echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 ac_header_compiler=no
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22509 $as_echo "$ac_header_compiler" >&6; }
22511 # Is the header present?
22512 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22513 $as_echo_n "checking $ac_header presence... " >&6; }
22514 cat >conftest.$ac_ext <<_ACEOF
22515 /* confdefs.h. */
22516 _ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22520 #include <$ac_header>
22521 _ACEOF
22522 if { (ac_try="$ac_cpp conftest.$ac_ext"
22523 case "(($ac_try" in
22524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22525 *) ac_try_echo=$ac_try;;
22526 esac
22527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22528 $as_echo "$ac_try_echo") >&5
22529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22530 ac_status=$?
22531 grep -v '^ *+' conftest.er1 >conftest.err
22532 rm -f conftest.er1
22533 cat conftest.err >&5
22534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } >/dev/null && {
22536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22537 test ! -s conftest.err
22538 }; then
22539 ac_header_preproc=yes
22540 else
22541 $as_echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22544 ac_header_preproc=no
22547 rm -f conftest.err conftest.$ac_ext
22548 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22549 $as_echo "$ac_header_preproc" >&6; }
22551 # So? What about this header?
22552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22553 yes:no: )
22554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22555 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22557 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22558 ac_header_preproc=yes
22560 no:yes:* )
22561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22562 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22564 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22566 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22568 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22570 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22572 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22575 esac
22576 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22577 $as_echo_n "checking for $ac_header... " >&6; }
22578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22579 $as_echo_n "(cached) " >&6
22580 else
22581 eval "$as_ac_Header=\$ac_header_preproc"
22583 ac_res=`eval 'as_val=${'$as_ac_Header'}
22584 $as_echo "$as_val"'`
22585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22586 $as_echo "$ac_res" >&6; }
22589 if test `eval 'as_val=${'$as_ac_Header'}
22590 $as_echo "$as_val"'` = yes; then
22591 cat >>confdefs.h <<_ACEOF
22592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22593 _ACEOF
22594 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22595 $as_echo_n "checking for krb5_error.text... " >&6; }
22596 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22597 $as_echo_n "(cached) " >&6
22598 else
22599 cat >conftest.$ac_ext <<_ACEOF
22600 /* confdefs.h. */
22601 _ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h. */
22605 #include <krb5.h>
22608 main ()
22610 static krb5_error ac_aggr;
22611 if (ac_aggr.text)
22612 return 0;
22614 return 0;
22616 _ACEOF
22617 rm -f conftest.$ac_objext
22618 if { (ac_try="$ac_compile"
22619 case "(($ac_try" in
22620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621 *) ac_try_echo=$ac_try;;
22622 esac
22623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22624 $as_echo "$ac_try_echo") >&5
22625 (eval "$ac_compile") 2>conftest.er1
22626 ac_status=$?
22627 grep -v '^ *+' conftest.er1 >conftest.err
22628 rm -f conftest.er1
22629 cat conftest.err >&5
22630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } && {
22632 test -z "$ac_c_werror_flag" ||
22633 test ! -s conftest.err
22634 } && test -s conftest.$ac_objext; then
22635 ac_cv_member_krb5_error_text=yes
22636 else
22637 $as_echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22640 cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h. */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22646 #include <krb5.h>
22649 main ()
22651 static krb5_error ac_aggr;
22652 if (sizeof ac_aggr.text)
22653 return 0;
22655 return 0;
22657 _ACEOF
22658 rm -f conftest.$ac_objext
22659 if { (ac_try="$ac_compile"
22660 case "(($ac_try" in
22661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22662 *) ac_try_echo=$ac_try;;
22663 esac
22664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22665 $as_echo "$ac_try_echo") >&5
22666 (eval "$ac_compile") 2>conftest.er1
22667 ac_status=$?
22668 grep -v '^ *+' conftest.er1 >conftest.err
22669 rm -f conftest.er1
22670 cat conftest.err >&5
22671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } && {
22673 test -z "$ac_c_werror_flag" ||
22674 test ! -s conftest.err
22675 } && test -s conftest.$ac_objext; then
22676 ac_cv_member_krb5_error_text=yes
22677 else
22678 $as_echo "$as_me: failed program was:" >&5
22679 sed 's/^/| /' conftest.$ac_ext >&5
22681 ac_cv_member_krb5_error_text=no
22684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22690 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22691 if test $ac_cv_member_krb5_error_text = yes; then
22693 cat >>confdefs.h <<_ACEOF
22694 #define HAVE_KRB5_ERROR_TEXT 1
22695 _ACEOF
22699 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22700 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22701 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22702 $as_echo_n "(cached) " >&6
22703 else
22704 cat >conftest.$ac_ext <<_ACEOF
22705 /* confdefs.h. */
22706 _ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22710 #include <krb5.h>
22713 main ()
22715 static krb5_error ac_aggr;
22716 if (ac_aggr.e_text)
22717 return 0;
22719 return 0;
22721 _ACEOF
22722 rm -f conftest.$ac_objext
22723 if { (ac_try="$ac_compile"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22727 esac
22728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22729 $as_echo "$ac_try_echo") >&5
22730 (eval "$ac_compile") 2>conftest.er1
22731 ac_status=$?
22732 grep -v '^ *+' conftest.er1 >conftest.err
22733 rm -f conftest.er1
22734 cat conftest.err >&5
22735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } && {
22737 test -z "$ac_c_werror_flag" ||
22738 test ! -s conftest.err
22739 } && test -s conftest.$ac_objext; then
22740 ac_cv_member_krb5_error_e_text=yes
22741 else
22742 $as_echo "$as_me: failed program was:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22745 cat >conftest.$ac_ext <<_ACEOF
22746 /* confdefs.h. */
22747 _ACEOF
22748 cat confdefs.h >>conftest.$ac_ext
22749 cat >>conftest.$ac_ext <<_ACEOF
22750 /* end confdefs.h. */
22751 #include <krb5.h>
22754 main ()
22756 static krb5_error ac_aggr;
22757 if (sizeof ac_aggr.e_text)
22758 return 0;
22760 return 0;
22762 _ACEOF
22763 rm -f conftest.$ac_objext
22764 if { (ac_try="$ac_compile"
22765 case "(($ac_try" in
22766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767 *) ac_try_echo=$ac_try;;
22768 esac
22769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22770 $as_echo "$ac_try_echo") >&5
22771 (eval "$ac_compile") 2>conftest.er1
22772 ac_status=$?
22773 grep -v '^ *+' conftest.er1 >conftest.err
22774 rm -f conftest.er1
22775 cat conftest.err >&5
22776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); } && {
22778 test -z "$ac_c_werror_flag" ||
22779 test ! -s conftest.err
22780 } && test -s conftest.$ac_objext; then
22781 ac_cv_member_krb5_error_e_text=yes
22782 else
22783 $as_echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22786 ac_cv_member_krb5_error_e_text=no
22789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22795 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22796 if test $ac_cv_member_krb5_error_e_text = yes; then
22798 cat >>confdefs.h <<_ACEOF
22799 #define HAVE_KRB5_ERROR_E_TEXT 1
22800 _ACEOF
22807 done
22809 else
22811 for ac_header in des.h
22813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22816 $as_echo_n "checking for $ac_header... " >&6; }
22817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22818 $as_echo_n "(cached) " >&6
22820 ac_res=`eval 'as_val=${'$as_ac_Header'}
22821 $as_echo "$as_val"'`
22822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22823 $as_echo "$ac_res" >&6; }
22824 else
22825 # Is the header compilable?
22826 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22827 $as_echo_n "checking $ac_header usability... " >&6; }
22828 cat >conftest.$ac_ext <<_ACEOF
22829 /* confdefs.h. */
22830 _ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 $ac_includes_default
22835 #include <$ac_header>
22836 _ACEOF
22837 rm -f conftest.$ac_objext
22838 if { (ac_try="$ac_compile"
22839 case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22842 esac
22843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22844 $as_echo "$ac_try_echo") >&5
22845 (eval "$ac_compile") 2>conftest.er1
22846 ac_status=$?
22847 grep -v '^ *+' conftest.er1 >conftest.err
22848 rm -f conftest.er1
22849 cat conftest.err >&5
22850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } && {
22852 test -z "$ac_c_werror_flag" ||
22853 test ! -s conftest.err
22854 } && test -s conftest.$ac_objext; then
22855 ac_header_compiler=yes
22856 else
22857 $as_echo "$as_me: failed program was:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22860 ac_header_compiler=no
22863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22864 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22865 $as_echo "$ac_header_compiler" >&6; }
22867 # Is the header present?
22868 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22869 $as_echo_n "checking $ac_header presence... " >&6; }
22870 cat >conftest.$ac_ext <<_ACEOF
22871 /* confdefs.h. */
22872 _ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h. */
22876 #include <$ac_header>
22877 _ACEOF
22878 if { (ac_try="$ac_cpp conftest.$ac_ext"
22879 case "(($ac_try" in
22880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881 *) ac_try_echo=$ac_try;;
22882 esac
22883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22884 $as_echo "$ac_try_echo") >&5
22885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22886 ac_status=$?
22887 grep -v '^ *+' conftest.er1 >conftest.err
22888 rm -f conftest.er1
22889 cat conftest.err >&5
22890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } >/dev/null && {
22892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22893 test ! -s conftest.err
22894 }; then
22895 ac_header_preproc=yes
22896 else
22897 $as_echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22900 ac_header_preproc=no
22903 rm -f conftest.err conftest.$ac_ext
22904 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22905 $as_echo "$ac_header_preproc" >&6; }
22907 # So? What about this header?
22908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22909 yes:no: )
22910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22911 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22913 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22914 ac_header_preproc=yes
22916 no:yes:* )
22917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22918 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22920 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22922 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22924 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22928 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22931 esac
22932 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22933 $as_echo_n "checking for $ac_header... " >&6; }
22934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22935 $as_echo_n "(cached) " >&6
22936 else
22937 eval "$as_ac_Header=\$ac_header_preproc"
22939 ac_res=`eval 'as_val=${'$as_ac_Header'}
22940 $as_echo "$as_val"'`
22941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22942 $as_echo "$ac_res" >&6; }
22945 if test `eval 'as_val=${'$as_ac_Header'}
22946 $as_echo "$as_val"'` = yes; then
22947 cat >>confdefs.h <<_ACEOF
22948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22949 _ACEOF
22951 else
22953 for ac_header in kerberosIV/des.h
22955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22958 $as_echo_n "checking for $ac_header... " >&6; }
22959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22960 $as_echo_n "(cached) " >&6
22962 ac_res=`eval 'as_val=${'$as_ac_Header'}
22963 $as_echo "$as_val"'`
22964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22965 $as_echo "$ac_res" >&6; }
22966 else
22967 # Is the header compilable?
22968 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22969 $as_echo_n "checking $ac_header usability... " >&6; }
22970 cat >conftest.$ac_ext <<_ACEOF
22971 /* confdefs.h. */
22972 _ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h. */
22976 $ac_includes_default
22977 #include <$ac_header>
22978 _ACEOF
22979 rm -f conftest.$ac_objext
22980 if { (ac_try="$ac_compile"
22981 case "(($ac_try" in
22982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22983 *) ac_try_echo=$ac_try;;
22984 esac
22985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22986 $as_echo "$ac_try_echo") >&5
22987 (eval "$ac_compile") 2>conftest.er1
22988 ac_status=$?
22989 grep -v '^ *+' conftest.er1 >conftest.err
22990 rm -f conftest.er1
22991 cat conftest.err >&5
22992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && {
22994 test -z "$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22996 } && test -s conftest.$ac_objext; then
22997 ac_header_compiler=yes
22998 else
22999 $as_echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23002 ac_header_compiler=no
23005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23006 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23007 $as_echo "$ac_header_compiler" >&6; }
23009 # Is the header present?
23010 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23011 $as_echo_n "checking $ac_header presence... " >&6; }
23012 cat >conftest.$ac_ext <<_ACEOF
23013 /* confdefs.h. */
23014 _ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h. */
23018 #include <$ac_header>
23019 _ACEOF
23020 if { (ac_try="$ac_cpp conftest.$ac_ext"
23021 case "(($ac_try" in
23022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23023 *) ac_try_echo=$ac_try;;
23024 esac
23025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23026 $as_echo "$ac_try_echo") >&5
23027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23028 ac_status=$?
23029 grep -v '^ *+' conftest.er1 >conftest.err
23030 rm -f conftest.er1
23031 cat conftest.err >&5
23032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); } >/dev/null && {
23034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23035 test ! -s conftest.err
23036 }; then
23037 ac_header_preproc=yes
23038 else
23039 $as_echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23042 ac_header_preproc=no
23045 rm -f conftest.err conftest.$ac_ext
23046 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23047 $as_echo "$ac_header_preproc" >&6; }
23049 # So? What about this header?
23050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23051 yes:no: )
23052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23053 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23056 ac_header_preproc=yes
23058 no:yes:* )
23059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23060 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23062 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23064 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23066 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23070 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23073 esac
23074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23075 $as_echo_n "checking for $ac_header... " >&6; }
23076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23077 $as_echo_n "(cached) " >&6
23078 else
23079 eval "$as_ac_Header=\$ac_header_preproc"
23081 ac_res=`eval 'as_val=${'$as_ac_Header'}
23082 $as_echo "$as_val"'`
23083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23084 $as_echo "$ac_res" >&6; }
23087 if test `eval 'as_val=${'$as_ac_Header'}
23088 $as_echo "$as_val"'` = yes; then
23089 cat >>confdefs.h <<_ACEOF
23090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23091 _ACEOF
23093 else
23095 for ac_header in kerberos/des.h
23097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23099 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23100 $as_echo_n "checking for $ac_header... " >&6; }
23101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23102 $as_echo_n "(cached) " >&6
23104 ac_res=`eval 'as_val=${'$as_ac_Header'}
23105 $as_echo "$as_val"'`
23106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23107 $as_echo "$ac_res" >&6; }
23108 else
23109 # Is the header compilable?
23110 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23111 $as_echo_n "checking $ac_header usability... " >&6; }
23112 cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h. */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23118 $ac_includes_default
23119 #include <$ac_header>
23120 _ACEOF
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23126 esac
23127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23128 $as_echo "$ac_try_echo") >&5
23129 (eval "$ac_compile") 2>conftest.er1
23130 ac_status=$?
23131 grep -v '^ *+' conftest.er1 >conftest.err
23132 rm -f conftest.er1
23133 cat conftest.err >&5
23134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } && {
23136 test -z "$ac_c_werror_flag" ||
23137 test ! -s conftest.err
23138 } && test -s conftest.$ac_objext; then
23139 ac_header_compiler=yes
23140 else
23141 $as_echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23144 ac_header_compiler=no
23147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23148 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23149 $as_echo "$ac_header_compiler" >&6; }
23151 # Is the header present?
23152 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23153 $as_echo_n "checking $ac_header presence... " >&6; }
23154 cat >conftest.$ac_ext <<_ACEOF
23155 /* confdefs.h. */
23156 _ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23160 #include <$ac_header>
23161 _ACEOF
23162 if { (ac_try="$ac_cpp conftest.$ac_ext"
23163 case "(($ac_try" in
23164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165 *) ac_try_echo=$ac_try;;
23166 esac
23167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23168 $as_echo "$ac_try_echo") >&5
23169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23170 ac_status=$?
23171 grep -v '^ *+' conftest.er1 >conftest.err
23172 rm -f conftest.er1
23173 cat conftest.err >&5
23174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); } >/dev/null && {
23176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23177 test ! -s conftest.err
23178 }; then
23179 ac_header_preproc=yes
23180 else
23181 $as_echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23184 ac_header_preproc=no
23187 rm -f conftest.err conftest.$ac_ext
23188 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23189 $as_echo "$ac_header_preproc" >&6; }
23191 # So? What about this header?
23192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23193 yes:no: )
23194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23195 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23198 ac_header_preproc=yes
23200 no:yes:* )
23201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23202 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23204 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23206 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23208 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23212 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23215 esac
23216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23217 $as_echo_n "checking for $ac_header... " >&6; }
23218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23219 $as_echo_n "(cached) " >&6
23220 else
23221 eval "$as_ac_Header=\$ac_header_preproc"
23223 ac_res=`eval 'as_val=${'$as_ac_Header'}
23224 $as_echo "$as_val"'`
23225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23226 $as_echo "$ac_res" >&6; }
23229 if test `eval 'as_val=${'$as_ac_Header'}
23230 $as_echo "$as_val"'` = yes; then
23231 cat >>confdefs.h <<_ACEOF
23232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23233 _ACEOF
23237 done
23241 done
23245 done
23248 for ac_header in krb.h
23250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23252 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23253 $as_echo_n "checking for $ac_header... " >&6; }
23254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23255 $as_echo_n "(cached) " >&6
23257 ac_res=`eval 'as_val=${'$as_ac_Header'}
23258 $as_echo "$as_val"'`
23259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23260 $as_echo "$ac_res" >&6; }
23261 else
23262 # Is the header compilable?
23263 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23264 $as_echo_n "checking $ac_header usability... " >&6; }
23265 cat >conftest.$ac_ext <<_ACEOF
23266 /* confdefs.h. */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h. */
23271 $ac_includes_default
23272 #include <$ac_header>
23273 _ACEOF
23274 rm -f conftest.$ac_objext
23275 if { (ac_try="$ac_compile"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23279 esac
23280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23281 $as_echo "$ac_try_echo") >&5
23282 (eval "$ac_compile") 2>conftest.er1
23283 ac_status=$?
23284 grep -v '^ *+' conftest.er1 >conftest.err
23285 rm -f conftest.er1
23286 cat conftest.err >&5
23287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } && {
23289 test -z "$ac_c_werror_flag" ||
23290 test ! -s conftest.err
23291 } && test -s conftest.$ac_objext; then
23292 ac_header_compiler=yes
23293 else
23294 $as_echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23297 ac_header_compiler=no
23300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23301 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23302 $as_echo "$ac_header_compiler" >&6; }
23304 # Is the header present?
23305 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23306 $as_echo_n "checking $ac_header presence... " >&6; }
23307 cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h. */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23313 #include <$ac_header>
23314 _ACEOF
23315 if { (ac_try="$ac_cpp conftest.$ac_ext"
23316 case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23319 esac
23320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23321 $as_echo "$ac_try_echo") >&5
23322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23323 ac_status=$?
23324 grep -v '^ *+' conftest.er1 >conftest.err
23325 rm -f conftest.er1
23326 cat conftest.err >&5
23327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } >/dev/null && {
23329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23330 test ! -s conftest.err
23331 }; then
23332 ac_header_preproc=yes
23333 else
23334 $as_echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23337 ac_header_preproc=no
23340 rm -f conftest.err conftest.$ac_ext
23341 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23342 $as_echo "$ac_header_preproc" >&6; }
23344 # So? What about this header?
23345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23346 yes:no: )
23347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23348 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23351 ac_header_preproc=yes
23353 no:yes:* )
23354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23355 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23357 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23359 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23361 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23365 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23368 esac
23369 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23370 $as_echo_n "checking for $ac_header... " >&6; }
23371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23372 $as_echo_n "(cached) " >&6
23373 else
23374 eval "$as_ac_Header=\$ac_header_preproc"
23376 ac_res=`eval 'as_val=${'$as_ac_Header'}
23377 $as_echo "$as_val"'`
23378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23379 $as_echo "$ac_res" >&6; }
23382 if test `eval 'as_val=${'$as_ac_Header'}
23383 $as_echo "$as_val"'` = yes; then
23384 cat >>confdefs.h <<_ACEOF
23385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23386 _ACEOF
23388 else
23390 for ac_header in kerberosIV/krb.h
23392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23394 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23395 $as_echo_n "checking for $ac_header... " >&6; }
23396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23397 $as_echo_n "(cached) " >&6
23399 ac_res=`eval 'as_val=${'$as_ac_Header'}
23400 $as_echo "$as_val"'`
23401 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23402 $as_echo "$ac_res" >&6; }
23403 else
23404 # Is the header compilable?
23405 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23406 $as_echo_n "checking $ac_header usability... " >&6; }
23407 cat >conftest.$ac_ext <<_ACEOF
23408 /* confdefs.h. */
23409 _ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h. */
23413 $ac_includes_default
23414 #include <$ac_header>
23415 _ACEOF
23416 rm -f conftest.$ac_objext
23417 if { (ac_try="$ac_compile"
23418 case "(($ac_try" in
23419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23420 *) ac_try_echo=$ac_try;;
23421 esac
23422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23423 $as_echo "$ac_try_echo") >&5
23424 (eval "$ac_compile") 2>conftest.er1
23425 ac_status=$?
23426 grep -v '^ *+' conftest.er1 >conftest.err
23427 rm -f conftest.er1
23428 cat conftest.err >&5
23429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); } && {
23431 test -z "$ac_c_werror_flag" ||
23432 test ! -s conftest.err
23433 } && test -s conftest.$ac_objext; then
23434 ac_header_compiler=yes
23435 else
23436 $as_echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23439 ac_header_compiler=no
23442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23444 $as_echo "$ac_header_compiler" >&6; }
23446 # Is the header present?
23447 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23448 $as_echo_n "checking $ac_header presence... " >&6; }
23449 cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h. */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 #include <$ac_header>
23456 _ACEOF
23457 if { (ac_try="$ac_cpp conftest.$ac_ext"
23458 case "(($ac_try" in
23459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460 *) ac_try_echo=$ac_try;;
23461 esac
23462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23463 $as_echo "$ac_try_echo") >&5
23464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23465 ac_status=$?
23466 grep -v '^ *+' conftest.er1 >conftest.err
23467 rm -f conftest.er1
23468 cat conftest.err >&5
23469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); } >/dev/null && {
23471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23472 test ! -s conftest.err
23473 }; then
23474 ac_header_preproc=yes
23475 else
23476 $as_echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23479 ac_header_preproc=no
23482 rm -f conftest.err conftest.$ac_ext
23483 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23484 $as_echo "$ac_header_preproc" >&6; }
23486 # So? What about this header?
23487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23488 yes:no: )
23489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23490 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23492 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23493 ac_header_preproc=yes
23495 no:yes:* )
23496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23497 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23499 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23501 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23503 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23505 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23507 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23510 esac
23511 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23512 $as_echo_n "checking for $ac_header... " >&6; }
23513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23514 $as_echo_n "(cached) " >&6
23515 else
23516 eval "$as_ac_Header=\$ac_header_preproc"
23518 ac_res=`eval 'as_val=${'$as_ac_Header'}
23519 $as_echo "$as_val"'`
23520 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23521 $as_echo "$ac_res" >&6; }
23524 if test `eval 'as_val=${'$as_ac_Header'}
23525 $as_echo "$as_val"'` = yes; then
23526 cat >>confdefs.h <<_ACEOF
23527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23528 _ACEOF
23530 else
23532 for ac_header in kerberos/krb.h
23534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23536 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23537 $as_echo_n "checking for $ac_header... " >&6; }
23538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23539 $as_echo_n "(cached) " >&6
23541 ac_res=`eval 'as_val=${'$as_ac_Header'}
23542 $as_echo "$as_val"'`
23543 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23544 $as_echo "$ac_res" >&6; }
23545 else
23546 # Is the header compilable?
23547 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23548 $as_echo_n "checking $ac_header usability... " >&6; }
23549 cat >conftest.$ac_ext <<_ACEOF
23550 /* confdefs.h. */
23551 _ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h. */
23555 $ac_includes_default
23556 #include <$ac_header>
23557 _ACEOF
23558 rm -f conftest.$ac_objext
23559 if { (ac_try="$ac_compile"
23560 case "(($ac_try" in
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23563 esac
23564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23565 $as_echo "$ac_try_echo") >&5
23566 (eval "$ac_compile") 2>conftest.er1
23567 ac_status=$?
23568 grep -v '^ *+' conftest.er1 >conftest.err
23569 rm -f conftest.er1
23570 cat conftest.err >&5
23571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } && {
23573 test -z "$ac_c_werror_flag" ||
23574 test ! -s conftest.err
23575 } && test -s conftest.$ac_objext; then
23576 ac_header_compiler=yes
23577 else
23578 $as_echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23581 ac_header_compiler=no
23584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23585 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23586 $as_echo "$ac_header_compiler" >&6; }
23588 # Is the header present?
23589 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23590 $as_echo_n "checking $ac_header presence... " >&6; }
23591 cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h. */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597 #include <$ac_header>
23598 _ACEOF
23599 if { (ac_try="$ac_cpp conftest.$ac_ext"
23600 case "(($ac_try" in
23601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23602 *) ac_try_echo=$ac_try;;
23603 esac
23604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23605 $as_echo "$ac_try_echo") >&5
23606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23607 ac_status=$?
23608 grep -v '^ *+' conftest.er1 >conftest.err
23609 rm -f conftest.er1
23610 cat conftest.err >&5
23611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); } >/dev/null && {
23613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23614 test ! -s conftest.err
23615 }; then
23616 ac_header_preproc=yes
23617 else
23618 $as_echo "$as_me: failed program was:" >&5
23619 sed 's/^/| /' conftest.$ac_ext >&5
23621 ac_header_preproc=no
23624 rm -f conftest.err conftest.$ac_ext
23625 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23626 $as_echo "$ac_header_preproc" >&6; }
23628 # So? What about this header?
23629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23630 yes:no: )
23631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23632 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23634 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23635 ac_header_preproc=yes
23637 no:yes:* )
23638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23639 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23641 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23643 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23645 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23647 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23649 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23652 esac
23653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23654 $as_echo_n "checking for $ac_header... " >&6; }
23655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23656 $as_echo_n "(cached) " >&6
23657 else
23658 eval "$as_ac_Header=\$ac_header_preproc"
23660 ac_res=`eval 'as_val=${'$as_ac_Header'}
23661 $as_echo "$as_val"'`
23662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23663 $as_echo "$ac_res" >&6; }
23666 if test `eval 'as_val=${'$as_ac_Header'}
23667 $as_echo "$as_val"'` = yes; then
23668 cat >>confdefs.h <<_ACEOF
23669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23670 _ACEOF
23674 done
23678 done
23682 done
23686 for ac_header in com_err.h
23688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23691 $as_echo_n "checking for $ac_header... " >&6; }
23692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23693 $as_echo_n "(cached) " >&6
23695 ac_res=`eval 'as_val=${'$as_ac_Header'}
23696 $as_echo "$as_val"'`
23697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23698 $as_echo "$ac_res" >&6; }
23699 else
23700 # Is the header compilable?
23701 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23702 $as_echo_n "checking $ac_header usability... " >&6; }
23703 cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h. */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 $ac_includes_default
23710 #include <$ac_header>
23711 _ACEOF
23712 rm -f conftest.$ac_objext
23713 if { (ac_try="$ac_compile"
23714 case "(($ac_try" in
23715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23716 *) ac_try_echo=$ac_try;;
23717 esac
23718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23719 $as_echo "$ac_try_echo") >&5
23720 (eval "$ac_compile") 2>conftest.er1
23721 ac_status=$?
23722 grep -v '^ *+' conftest.er1 >conftest.err
23723 rm -f conftest.er1
23724 cat conftest.err >&5
23725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } && {
23727 test -z "$ac_c_werror_flag" ||
23728 test ! -s conftest.err
23729 } && test -s conftest.$ac_objext; then
23730 ac_header_compiler=yes
23731 else
23732 $as_echo "$as_me: failed program was:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23735 ac_header_compiler=no
23738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23739 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23740 $as_echo "$ac_header_compiler" >&6; }
23742 # Is the header present?
23743 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23744 $as_echo_n "checking $ac_header presence... " >&6; }
23745 cat >conftest.$ac_ext <<_ACEOF
23746 /* confdefs.h. */
23747 _ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h. */
23751 #include <$ac_header>
23752 _ACEOF
23753 if { (ac_try="$ac_cpp conftest.$ac_ext"
23754 case "(($ac_try" in
23755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23756 *) ac_try_echo=$ac_try;;
23757 esac
23758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23759 $as_echo "$ac_try_echo") >&5
23760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23761 ac_status=$?
23762 grep -v '^ *+' conftest.er1 >conftest.err
23763 rm -f conftest.er1
23764 cat conftest.err >&5
23765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } >/dev/null && {
23767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23768 test ! -s conftest.err
23769 }; then
23770 ac_header_preproc=yes
23771 else
23772 $as_echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23775 ac_header_preproc=no
23778 rm -f conftest.err conftest.$ac_ext
23779 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23780 $as_echo "$ac_header_preproc" >&6; }
23782 # So? What about this header?
23783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23784 yes:no: )
23785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23786 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23789 ac_header_preproc=yes
23791 no:yes:* )
23792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23793 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23795 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23797 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23799 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23801 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23803 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23806 esac
23807 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23808 $as_echo_n "checking for $ac_header... " >&6; }
23809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23810 $as_echo_n "(cached) " >&6
23811 else
23812 eval "$as_ac_Header=\$ac_header_preproc"
23814 ac_res=`eval 'as_val=${'$as_ac_Header'}
23815 $as_echo "$as_val"'`
23816 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23817 $as_echo "$ac_res" >&6; }
23820 if test `eval 'as_val=${'$as_ac_Header'}
23821 $as_echo "$as_val"'` = yes; then
23822 cat >>confdefs.h <<_ACEOF
23823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23824 _ACEOF
23828 done
23838 # Solaris requires -lintl if you want strerror (which calls dgettext)
23839 # to return localized messages.
23841 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23842 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23843 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23844 $as_echo_n "(cached) " >&6
23845 else
23846 ac_check_lib_save_LIBS=$LIBS
23847 LIBS="-lintl $LIBS"
23848 cat >conftest.$ac_ext <<_ACEOF
23849 /* confdefs.h. */
23850 _ACEOF
23851 cat confdefs.h >>conftest.$ac_ext
23852 cat >>conftest.$ac_ext <<_ACEOF
23853 /* end confdefs.h. */
23855 /* Override any GCC internal prototype to avoid an error.
23856 Use char because int might match the return type of a GCC
23857 builtin and then its argument prototype would still apply. */
23858 #ifdef __cplusplus
23859 extern "C"
23860 #endif
23861 char dgettext ();
23863 main ()
23865 return dgettext ();
23867 return 0;
23869 _ACEOF
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (ac_try="$ac_link"
23872 case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23875 esac
23876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23877 $as_echo "$ac_try_echo") >&5
23878 (eval "$ac_link") 2>conftest.er1
23879 ac_status=$?
23880 grep -v '^ *+' conftest.er1 >conftest.err
23881 rm -f conftest.er1
23882 cat conftest.err >&5
23883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest$ac_exeext && {
23888 test "$cross_compiling" = yes ||
23889 $as_test_x conftest$ac_exeext
23890 }; then
23891 ac_cv_lib_intl_dgettext=yes
23892 else
23893 $as_echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23896 ac_cv_lib_intl_dgettext=no
23899 rm -rf conftest.dSYM
23900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23901 conftest$ac_exeext conftest.$ac_ext
23902 LIBS=$ac_check_lib_save_LIBS
23904 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23905 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23906 if test $ac_cv_lib_intl_dgettext = yes; then
23907 cat >>confdefs.h <<_ACEOF
23908 #define HAVE_LIBINTL 1
23909 _ACEOF
23911 LIBS="-lintl $LIBS"
23916 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23917 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23918 if test "${emacs_cv_localtime_cache+set}" = set; then
23919 $as_echo_n "(cached) " >&6
23920 else
23921 if test x$ac_cv_func_tzset = xyes; then
23922 if test "$cross_compiling" = yes; then
23923 # If we have tzset, assume the worst when cross-compiling.
23924 emacs_cv_localtime_cache=yes
23925 else
23926 cat >conftest.$ac_ext <<_ACEOF
23927 /* confdefs.h. */
23928 _ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23932 #include <time.h>
23933 extern char **environ;
23934 unset_TZ ()
23936 char **from, **to;
23937 for (to = from = environ; (*to = *from); from++)
23938 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23939 to++;
23941 char TZ_GMT0[] = "TZ=GMT0";
23942 char TZ_PST8[] = "TZ=PST8";
23943 main()
23945 time_t now = time ((time_t *) 0);
23946 int hour_GMT0, hour_unset;
23947 if (putenv (TZ_GMT0) != 0)
23948 exit (1);
23949 hour_GMT0 = localtime (&now)->tm_hour;
23950 unset_TZ ();
23951 hour_unset = localtime (&now)->tm_hour;
23952 if (putenv (TZ_PST8) != 0)
23953 exit (1);
23954 if (localtime (&now)->tm_hour == hour_GMT0)
23955 exit (1);
23956 unset_TZ ();
23957 if (localtime (&now)->tm_hour != hour_unset)
23958 exit (1);
23959 exit (0);
23961 _ACEOF
23962 rm -f conftest$ac_exeext
23963 if { (ac_try="$ac_link"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23967 esac
23968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23969 $as_echo "$ac_try_echo") >&5
23970 (eval "$ac_link") 2>&5
23971 ac_status=$?
23972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23974 { (case "(($ac_try" in
23975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976 *) ac_try_echo=$ac_try;;
23977 esac
23978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23979 $as_echo "$ac_try_echo") >&5
23980 (eval "$ac_try") 2>&5
23981 ac_status=$?
23982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); }; }; then
23984 emacs_cv_localtime_cache=no
23985 else
23986 $as_echo "$as_me: program exited with status $ac_status" >&5
23987 $as_echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23990 ( exit $ac_status )
23991 emacs_cv_localtime_cache=yes
23993 rm -rf conftest.dSYM
23994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23998 else
23999 # If we lack tzset, report that localtime does not cache TZ,
24000 # since we can't invalidate the cache if we don't have tzset.
24001 emacs_cv_localtime_cache=no
24004 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24005 $as_echo "$emacs_cv_localtime_cache" >&6; }
24006 if test $emacs_cv_localtime_cache = yes; then
24008 cat >>confdefs.h <<\_ACEOF
24009 #define LOCALTIME_CACHE 1
24010 _ACEOF
24014 if test "x$HAVE_TIMEVAL" = xyes; then
24016 for ac_func in gettimeofday
24018 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24019 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24020 $as_echo_n "checking for $ac_func... " >&6; }
24021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24022 $as_echo_n "(cached) " >&6
24023 else
24024 cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h. */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24032 #define $ac_func innocuous_$ac_func
24034 /* System header to define __stub macros and hopefully few prototypes,
24035 which can conflict with char $ac_func (); below.
24036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24037 <limits.h> exists even on freestanding compilers. */
24039 #ifdef __STDC__
24040 # include <limits.h>
24041 #else
24042 # include <assert.h>
24043 #endif
24045 #undef $ac_func
24047 /* Override any GCC internal prototype to avoid an error.
24048 Use char because int might match the return type of a GCC
24049 builtin and then its argument prototype would still apply. */
24050 #ifdef __cplusplus
24051 extern "C"
24052 #endif
24053 char $ac_func ();
24054 /* The GNU C library defines this for functions which it implements
24055 to always fail with ENOSYS. Some functions are actually named
24056 something starting with __ and the normal name is an alias. */
24057 #if defined __stub_$ac_func || defined __stub___$ac_func
24058 choke me
24059 #endif
24062 main ()
24064 return $ac_func ();
24066 return 0;
24068 _ACEOF
24069 rm -f conftest.$ac_objext conftest$ac_exeext
24070 if { (ac_try="$ac_link"
24071 case "(($ac_try" in
24072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073 *) ac_try_echo=$ac_try;;
24074 esac
24075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24076 $as_echo "$ac_try_echo") >&5
24077 (eval "$ac_link") 2>conftest.er1
24078 ac_status=$?
24079 grep -v '^ *+' conftest.er1 >conftest.err
24080 rm -f conftest.er1
24081 cat conftest.err >&5
24082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); } && {
24084 test -z "$ac_c_werror_flag" ||
24085 test ! -s conftest.err
24086 } && test -s conftest$ac_exeext && {
24087 test "$cross_compiling" = yes ||
24088 $as_test_x conftest$ac_exeext
24089 }; then
24090 eval "$as_ac_var=yes"
24091 else
24092 $as_echo "$as_me: failed program was:" >&5
24093 sed 's/^/| /' conftest.$ac_ext >&5
24095 eval "$as_ac_var=no"
24098 rm -rf conftest.dSYM
24099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24100 conftest$ac_exeext conftest.$ac_ext
24102 ac_res=`eval 'as_val=${'$as_ac_var'}
24103 $as_echo "$as_val"'`
24104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24105 $as_echo "$ac_res" >&6; }
24106 if test `eval 'as_val=${'$as_ac_var'}
24107 $as_echo "$as_val"'` = yes; then
24108 cat >>confdefs.h <<_ACEOF
24109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24110 _ACEOF
24113 done
24115 if test $ac_cv_func_gettimeofday = yes; then
24116 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24117 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24118 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24119 $as_echo_n "(cached) " >&6
24120 else
24121 cat >conftest.$ac_ext <<_ACEOF
24122 /* confdefs.h. */
24123 _ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h. */
24128 #ifdef TIME_WITH_SYS_TIME
24129 #include <sys/time.h>
24130 #include <time.h>
24131 #else
24132 #ifdef HAVE_SYS_TIME_H
24133 #include <sys/time.h>
24134 #else
24135 #include <time.h>
24136 #endif
24137 #endif
24139 main ()
24141 struct timeval time;
24142 gettimeofday (&time, 0);
24144 return 0;
24146 _ACEOF
24147 rm -f conftest.$ac_objext
24148 if { (ac_try="$ac_compile"
24149 case "(($ac_try" in
24150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151 *) ac_try_echo=$ac_try;;
24152 esac
24153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24154 $as_echo "$ac_try_echo") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24156 ac_status=$?
24157 grep -v '^ *+' conftest.er1 >conftest.err
24158 rm -f conftest.er1
24159 cat conftest.err >&5
24160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.$ac_objext; then
24165 emacs_cv_gettimeofday_two_arguments=yes
24166 else
24167 $as_echo "$as_me: failed program was:" >&5
24168 sed 's/^/| /' conftest.$ac_ext >&5
24170 emacs_cv_gettimeofday_two_arguments=no
24173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24176 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24177 if test $emacs_cv_gettimeofday_two_arguments = no; then
24179 cat >>confdefs.h <<\_ACEOF
24180 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24181 _ACEOF
24187 ok_so_far=yes
24188 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24189 $as_echo_n "checking for socket... " >&6; }
24190 if test "${ac_cv_func_socket+set}" = set; then
24191 $as_echo_n "(cached) " >&6
24192 else
24193 cat >conftest.$ac_ext <<_ACEOF
24194 /* confdefs.h. */
24195 _ACEOF
24196 cat confdefs.h >>conftest.$ac_ext
24197 cat >>conftest.$ac_ext <<_ACEOF
24198 /* end confdefs.h. */
24199 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24201 #define socket innocuous_socket
24203 /* System header to define __stub macros and hopefully few prototypes,
24204 which can conflict with char socket (); below.
24205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24206 <limits.h> exists even on freestanding compilers. */
24208 #ifdef __STDC__
24209 # include <limits.h>
24210 #else
24211 # include <assert.h>
24212 #endif
24214 #undef socket
24216 /* Override any GCC internal prototype to avoid an error.
24217 Use char because int might match the return type of a GCC
24218 builtin and then its argument prototype would still apply. */
24219 #ifdef __cplusplus
24220 extern "C"
24221 #endif
24222 char socket ();
24223 /* The GNU C library defines this for functions which it implements
24224 to always fail with ENOSYS. Some functions are actually named
24225 something starting with __ and the normal name is an alias. */
24226 #if defined __stub_socket || defined __stub___socket
24227 choke me
24228 #endif
24231 main ()
24233 return socket ();
24235 return 0;
24237 _ACEOF
24238 rm -f conftest.$ac_objext conftest$ac_exeext
24239 if { (ac_try="$ac_link"
24240 case "(($ac_try" in
24241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242 *) ac_try_echo=$ac_try;;
24243 esac
24244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24245 $as_echo "$ac_try_echo") >&5
24246 (eval "$ac_link") 2>conftest.er1
24247 ac_status=$?
24248 grep -v '^ *+' conftest.er1 >conftest.err
24249 rm -f conftest.er1
24250 cat conftest.err >&5
24251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); } && {
24253 test -z "$ac_c_werror_flag" ||
24254 test ! -s conftest.err
24255 } && test -s conftest$ac_exeext && {
24256 test "$cross_compiling" = yes ||
24257 $as_test_x conftest$ac_exeext
24258 }; then
24259 ac_cv_func_socket=yes
24260 else
24261 $as_echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24264 ac_cv_func_socket=no
24267 rm -rf conftest.dSYM
24268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24269 conftest$ac_exeext conftest.$ac_ext
24271 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24272 $as_echo "$ac_cv_func_socket" >&6; }
24273 if test $ac_cv_func_socket = yes; then
24275 else
24276 ok_so_far=no
24279 if test $ok_so_far = yes; then
24280 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24281 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24282 $as_echo_n "checking for netinet/in.h... " >&6; }
24283 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24284 $as_echo_n "(cached) " >&6
24286 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24287 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24288 else
24289 # Is the header compilable?
24290 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24291 $as_echo_n "checking netinet/in.h usability... " >&6; }
24292 cat >conftest.$ac_ext <<_ACEOF
24293 /* confdefs.h. */
24294 _ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h. */
24298 $ac_includes_default
24299 #include <netinet/in.h>
24300 _ACEOF
24301 rm -f conftest.$ac_objext
24302 if { (ac_try="$ac_compile"
24303 case "(($ac_try" in
24304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305 *) ac_try_echo=$ac_try;;
24306 esac
24307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24308 $as_echo "$ac_try_echo") >&5
24309 (eval "$ac_compile") 2>conftest.er1
24310 ac_status=$?
24311 grep -v '^ *+' conftest.er1 >conftest.err
24312 rm -f conftest.er1
24313 cat conftest.err >&5
24314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); } && {
24316 test -z "$ac_c_werror_flag" ||
24317 test ! -s conftest.err
24318 } && test -s conftest.$ac_objext; then
24319 ac_header_compiler=yes
24320 else
24321 $as_echo "$as_me: failed program was:" >&5
24322 sed 's/^/| /' conftest.$ac_ext >&5
24324 ac_header_compiler=no
24327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24328 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24329 $as_echo "$ac_header_compiler" >&6; }
24331 # Is the header present?
24332 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24333 $as_echo_n "checking netinet/in.h presence... " >&6; }
24334 cat >conftest.$ac_ext <<_ACEOF
24335 /* confdefs.h. */
24336 _ACEOF
24337 cat confdefs.h >>conftest.$ac_ext
24338 cat >>conftest.$ac_ext <<_ACEOF
24339 /* end confdefs.h. */
24340 #include <netinet/in.h>
24341 _ACEOF
24342 if { (ac_try="$ac_cpp conftest.$ac_ext"
24343 case "(($ac_try" in
24344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345 *) ac_try_echo=$ac_try;;
24346 esac
24347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24348 $as_echo "$ac_try_echo") >&5
24349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24350 ac_status=$?
24351 grep -v '^ *+' conftest.er1 >conftest.err
24352 rm -f conftest.er1
24353 cat conftest.err >&5
24354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355 (exit $ac_status); } >/dev/null && {
24356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24357 test ! -s conftest.err
24358 }; then
24359 ac_header_preproc=yes
24360 else
24361 $as_echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24364 ac_header_preproc=no
24367 rm -f conftest.err conftest.$ac_ext
24368 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24369 $as_echo "$ac_header_preproc" >&6; }
24371 # So? What about this header?
24372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24373 yes:no: )
24374 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24375 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24376 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24377 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24378 ac_header_preproc=yes
24380 no:yes:* )
24381 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24382 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24383 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24384 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24385 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24386 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24387 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24388 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24389 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24390 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24391 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24392 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24395 esac
24396 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24397 $as_echo_n "checking for netinet/in.h... " >&6; }
24398 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24399 $as_echo_n "(cached) " >&6
24400 else
24401 ac_cv_header_netinet_in_h=$ac_header_preproc
24403 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24404 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24407 if test $ac_cv_header_netinet_in_h = yes; then
24409 else
24410 ok_so_far=no
24415 if test $ok_so_far = yes; then
24416 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24417 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24418 $as_echo_n "checking for arpa/inet.h... " >&6; }
24419 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24420 $as_echo_n "(cached) " >&6
24422 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24423 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24424 else
24425 # Is the header compilable?
24426 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24427 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24428 cat >conftest.$ac_ext <<_ACEOF
24429 /* confdefs.h. */
24430 _ACEOF
24431 cat confdefs.h >>conftest.$ac_ext
24432 cat >>conftest.$ac_ext <<_ACEOF
24433 /* end confdefs.h. */
24434 $ac_includes_default
24435 #include <arpa/inet.h>
24436 _ACEOF
24437 rm -f conftest.$ac_objext
24438 if { (ac_try="$ac_compile"
24439 case "(($ac_try" in
24440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441 *) ac_try_echo=$ac_try;;
24442 esac
24443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24444 $as_echo "$ac_try_echo") >&5
24445 (eval "$ac_compile") 2>conftest.er1
24446 ac_status=$?
24447 grep -v '^ *+' conftest.er1 >conftest.err
24448 rm -f conftest.er1
24449 cat conftest.err >&5
24450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); } && {
24452 test -z "$ac_c_werror_flag" ||
24453 test ! -s conftest.err
24454 } && test -s conftest.$ac_objext; then
24455 ac_header_compiler=yes
24456 else
24457 $as_echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24460 ac_header_compiler=no
24463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24464 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24465 $as_echo "$ac_header_compiler" >&6; }
24467 # Is the header present?
24468 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24469 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24470 cat >conftest.$ac_ext <<_ACEOF
24471 /* confdefs.h. */
24472 _ACEOF
24473 cat confdefs.h >>conftest.$ac_ext
24474 cat >>conftest.$ac_ext <<_ACEOF
24475 /* end confdefs.h. */
24476 #include <arpa/inet.h>
24477 _ACEOF
24478 if { (ac_try="$ac_cpp conftest.$ac_ext"
24479 case "(($ac_try" in
24480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24481 *) ac_try_echo=$ac_try;;
24482 esac
24483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24484 $as_echo "$ac_try_echo") >&5
24485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24486 ac_status=$?
24487 grep -v '^ *+' conftest.er1 >conftest.err
24488 rm -f conftest.er1
24489 cat conftest.err >&5
24490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); } >/dev/null && {
24492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24493 test ! -s conftest.err
24494 }; then
24495 ac_header_preproc=yes
24496 else
24497 $as_echo "$as_me: failed program was:" >&5
24498 sed 's/^/| /' conftest.$ac_ext >&5
24500 ac_header_preproc=no
24503 rm -f conftest.err conftest.$ac_ext
24504 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24505 $as_echo "$ac_header_preproc" >&6; }
24507 # So? What about this header?
24508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24509 yes:no: )
24510 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24511 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24512 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24513 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24514 ac_header_preproc=yes
24516 no:yes:* )
24517 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24518 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24519 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24520 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24521 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24522 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24523 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24524 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24525 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24526 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24527 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24528 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24531 esac
24532 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24533 $as_echo_n "checking for arpa/inet.h... " >&6; }
24534 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24535 $as_echo_n "(cached) " >&6
24536 else
24537 ac_cv_header_arpa_inet_h=$ac_header_preproc
24539 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24540 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24543 if test $ac_cv_header_arpa_inet_h = yes; then
24545 else
24546 ok_so_far=no
24551 if test $ok_so_far = yes; then
24553 cat >>confdefs.h <<\_ACEOF
24554 #define HAVE_INET_SOCKETS 1
24555 _ACEOF
24560 for ac_header in sys/ioctl.h
24562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24564 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24565 $as_echo_n "checking for $ac_header... " >&6; }
24566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24567 $as_echo_n "(cached) " >&6
24569 ac_res=`eval 'as_val=${'$as_ac_Header'}
24570 $as_echo "$as_val"'`
24571 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24572 $as_echo "$ac_res" >&6; }
24573 else
24574 # Is the header compilable?
24575 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24576 $as_echo_n "checking $ac_header usability... " >&6; }
24577 cat >conftest.$ac_ext <<_ACEOF
24578 /* confdefs.h. */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24583 $ac_includes_default
24584 #include <$ac_header>
24585 _ACEOF
24586 rm -f conftest.$ac_objext
24587 if { (ac_try="$ac_compile"
24588 case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24591 esac
24592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24593 $as_echo "$ac_try_echo") >&5
24594 (eval "$ac_compile") 2>conftest.er1
24595 ac_status=$?
24596 grep -v '^ *+' conftest.er1 >conftest.err
24597 rm -f conftest.er1
24598 cat conftest.err >&5
24599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); } && {
24601 test -z "$ac_c_werror_flag" ||
24602 test ! -s conftest.err
24603 } && test -s conftest.$ac_objext; then
24604 ac_header_compiler=yes
24605 else
24606 $as_echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24609 ac_header_compiler=no
24612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24613 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24614 $as_echo "$ac_header_compiler" >&6; }
24616 # Is the header present?
24617 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24618 $as_echo_n "checking $ac_header presence... " >&6; }
24619 cat >conftest.$ac_ext <<_ACEOF
24620 /* confdefs.h. */
24621 _ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h. */
24625 #include <$ac_header>
24626 _ACEOF
24627 if { (ac_try="$ac_cpp conftest.$ac_ext"
24628 case "(($ac_try" in
24629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630 *) ac_try_echo=$ac_try;;
24631 esac
24632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24633 $as_echo "$ac_try_echo") >&5
24634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24635 ac_status=$?
24636 grep -v '^ *+' conftest.er1 >conftest.err
24637 rm -f conftest.er1
24638 cat conftest.err >&5
24639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); } >/dev/null && {
24641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24642 test ! -s conftest.err
24643 }; then
24644 ac_header_preproc=yes
24645 else
24646 $as_echo "$as_me: failed program was:" >&5
24647 sed 's/^/| /' conftest.$ac_ext >&5
24649 ac_header_preproc=no
24652 rm -f conftest.err conftest.$ac_ext
24653 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24654 $as_echo "$ac_header_preproc" >&6; }
24656 # So? What about this header?
24657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24658 yes:no: )
24659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24660 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24662 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24663 ac_header_preproc=yes
24665 no:yes:* )
24666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24667 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24669 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24671 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24673 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24675 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24677 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24680 esac
24681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24682 $as_echo_n "checking for $ac_header... " >&6; }
24683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24684 $as_echo_n "(cached) " >&6
24685 else
24686 eval "$as_ac_Header=\$ac_header_preproc"
24688 ac_res=`eval 'as_val=${'$as_ac_Header'}
24689 $as_echo "$as_val"'`
24690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24691 $as_echo "$ac_res" >&6; }
24694 if test `eval 'as_val=${'$as_ac_Header'}
24695 $as_echo "$as_val"'` = yes; then
24696 cat >>confdefs.h <<_ACEOF
24697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24698 _ACEOF
24702 done
24705 if test -f /usr/lpp/X11/bin/smt.exp; then
24707 cat >>confdefs.h <<\_ACEOF
24708 #define HAVE_AIX_SMT_EXP 1
24709 _ACEOF
24713 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24714 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24715 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24716 { $as_echo "$as_me:$LINENO: result: yes" >&5
24717 $as_echo "yes" >&6; }
24719 cat >>confdefs.h <<\_ACEOF
24720 #define HAVE_DEV_PTMX 1
24721 _ACEOF
24723 else
24724 { $as_echo "$as_me:$LINENO: result: no" >&5
24725 $as_echo "no" >&6; }
24728 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24729 $as_echo_n "checking for pid_t... " >&6; }
24730 if test "${ac_cv_type_pid_t+set}" = set; then
24731 $as_echo_n "(cached) " >&6
24732 else
24733 ac_cv_type_pid_t=no
24734 cat >conftest.$ac_ext <<_ACEOF
24735 /* confdefs.h. */
24736 _ACEOF
24737 cat confdefs.h >>conftest.$ac_ext
24738 cat >>conftest.$ac_ext <<_ACEOF
24739 /* end confdefs.h. */
24740 $ac_includes_default
24742 main ()
24744 if (sizeof (pid_t))
24745 return 0;
24747 return 0;
24749 _ACEOF
24750 rm -f conftest.$ac_objext
24751 if { (ac_try="$ac_compile"
24752 case "(($ac_try" in
24753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754 *) ac_try_echo=$ac_try;;
24755 esac
24756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24757 $as_echo "$ac_try_echo") >&5
24758 (eval "$ac_compile") 2>conftest.er1
24759 ac_status=$?
24760 grep -v '^ *+' conftest.er1 >conftest.err
24761 rm -f conftest.er1
24762 cat conftest.err >&5
24763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); } && {
24765 test -z "$ac_c_werror_flag" ||
24766 test ! -s conftest.err
24767 } && test -s conftest.$ac_objext; then
24768 cat >conftest.$ac_ext <<_ACEOF
24769 /* confdefs.h. */
24770 _ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24774 $ac_includes_default
24776 main ()
24778 if (sizeof ((pid_t)))
24779 return 0;
24781 return 0;
24783 _ACEOF
24784 rm -f conftest.$ac_objext
24785 if { (ac_try="$ac_compile"
24786 case "(($ac_try" in
24787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24788 *) ac_try_echo=$ac_try;;
24789 esac
24790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24791 $as_echo "$ac_try_echo") >&5
24792 (eval "$ac_compile") 2>conftest.er1
24793 ac_status=$?
24794 grep -v '^ *+' conftest.er1 >conftest.err
24795 rm -f conftest.er1
24796 cat conftest.err >&5
24797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); } && {
24799 test -z "$ac_c_werror_flag" ||
24800 test ! -s conftest.err
24801 } && test -s conftest.$ac_objext; then
24803 else
24804 $as_echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24807 ac_cv_type_pid_t=yes
24810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24811 else
24812 $as_echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24820 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24821 $as_echo "$ac_cv_type_pid_t" >&6; }
24822 if test $ac_cv_type_pid_t = yes; then
24824 else
24826 cat >>confdefs.h <<_ACEOF
24827 #define pid_t int
24828 _ACEOF
24833 for ac_header in vfork.h
24835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24838 $as_echo_n "checking for $ac_header... " >&6; }
24839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24840 $as_echo_n "(cached) " >&6
24842 ac_res=`eval 'as_val=${'$as_ac_Header'}
24843 $as_echo "$as_val"'`
24844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24845 $as_echo "$ac_res" >&6; }
24846 else
24847 # Is the header compilable?
24848 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24849 $as_echo_n "checking $ac_header usability... " >&6; }
24850 cat >conftest.$ac_ext <<_ACEOF
24851 /* confdefs.h. */
24852 _ACEOF
24853 cat confdefs.h >>conftest.$ac_ext
24854 cat >>conftest.$ac_ext <<_ACEOF
24855 /* end confdefs.h. */
24856 $ac_includes_default
24857 #include <$ac_header>
24858 _ACEOF
24859 rm -f conftest.$ac_objext
24860 if { (ac_try="$ac_compile"
24861 case "(($ac_try" in
24862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24863 *) ac_try_echo=$ac_try;;
24864 esac
24865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24866 $as_echo "$ac_try_echo") >&5
24867 (eval "$ac_compile") 2>conftest.er1
24868 ac_status=$?
24869 grep -v '^ *+' conftest.er1 >conftest.err
24870 rm -f conftest.er1
24871 cat conftest.err >&5
24872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); } && {
24874 test -z "$ac_c_werror_flag" ||
24875 test ! -s conftest.err
24876 } && test -s conftest.$ac_objext; then
24877 ac_header_compiler=yes
24878 else
24879 $as_echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24882 ac_header_compiler=no
24885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24886 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24887 $as_echo "$ac_header_compiler" >&6; }
24889 # Is the header present?
24890 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24891 $as_echo_n "checking $ac_header presence... " >&6; }
24892 cat >conftest.$ac_ext <<_ACEOF
24893 /* confdefs.h. */
24894 _ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h. */
24898 #include <$ac_header>
24899 _ACEOF
24900 if { (ac_try="$ac_cpp conftest.$ac_ext"
24901 case "(($ac_try" in
24902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903 *) ac_try_echo=$ac_try;;
24904 esac
24905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24906 $as_echo "$ac_try_echo") >&5
24907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24908 ac_status=$?
24909 grep -v '^ *+' conftest.er1 >conftest.err
24910 rm -f conftest.er1
24911 cat conftest.err >&5
24912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); } >/dev/null && {
24914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24915 test ! -s conftest.err
24916 }; then
24917 ac_header_preproc=yes
24918 else
24919 $as_echo "$as_me: failed program was:" >&5
24920 sed 's/^/| /' conftest.$ac_ext >&5
24922 ac_header_preproc=no
24925 rm -f conftest.err conftest.$ac_ext
24926 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24927 $as_echo "$ac_header_preproc" >&6; }
24929 # So? What about this header?
24930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24931 yes:no: )
24932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24933 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24936 ac_header_preproc=yes
24938 no:yes:* )
24939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24940 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24942 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24944 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24946 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24948 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24950 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24953 esac
24954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24955 $as_echo_n "checking for $ac_header... " >&6; }
24956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24957 $as_echo_n "(cached) " >&6
24958 else
24959 eval "$as_ac_Header=\$ac_header_preproc"
24961 ac_res=`eval 'as_val=${'$as_ac_Header'}
24962 $as_echo "$as_val"'`
24963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24964 $as_echo "$ac_res" >&6; }
24967 if test `eval 'as_val=${'$as_ac_Header'}
24968 $as_echo "$as_val"'` = yes; then
24969 cat >>confdefs.h <<_ACEOF
24970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24971 _ACEOF
24975 done
24979 for ac_func in fork vfork
24981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24982 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24983 $as_echo_n "checking for $ac_func... " >&6; }
24984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24985 $as_echo_n "(cached) " >&6
24986 else
24987 cat >conftest.$ac_ext <<_ACEOF
24988 /* confdefs.h. */
24989 _ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h. */
24993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24995 #define $ac_func innocuous_$ac_func
24997 /* System header to define __stub macros and hopefully few prototypes,
24998 which can conflict with char $ac_func (); below.
24999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25000 <limits.h> exists even on freestanding compilers. */
25002 #ifdef __STDC__
25003 # include <limits.h>
25004 #else
25005 # include <assert.h>
25006 #endif
25008 #undef $ac_func
25010 /* Override any GCC internal prototype to avoid an error.
25011 Use char because int might match the return type of a GCC
25012 builtin and then its argument prototype would still apply. */
25013 #ifdef __cplusplus
25014 extern "C"
25015 #endif
25016 char $ac_func ();
25017 /* The GNU C library defines this for functions which it implements
25018 to always fail with ENOSYS. Some functions are actually named
25019 something starting with __ and the normal name is an alias. */
25020 #if defined __stub_$ac_func || defined __stub___$ac_func
25021 choke me
25022 #endif
25025 main ()
25027 return $ac_func ();
25029 return 0;
25031 _ACEOF
25032 rm -f conftest.$ac_objext conftest$ac_exeext
25033 if { (ac_try="$ac_link"
25034 case "(($ac_try" in
25035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036 *) ac_try_echo=$ac_try;;
25037 esac
25038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25039 $as_echo "$ac_try_echo") >&5
25040 (eval "$ac_link") 2>conftest.er1
25041 ac_status=$?
25042 grep -v '^ *+' conftest.er1 >conftest.err
25043 rm -f conftest.er1
25044 cat conftest.err >&5
25045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); } && {
25047 test -z "$ac_c_werror_flag" ||
25048 test ! -s conftest.err
25049 } && test -s conftest$ac_exeext && {
25050 test "$cross_compiling" = yes ||
25051 $as_test_x conftest$ac_exeext
25052 }; then
25053 eval "$as_ac_var=yes"
25054 else
25055 $as_echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25058 eval "$as_ac_var=no"
25061 rm -rf conftest.dSYM
25062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25063 conftest$ac_exeext conftest.$ac_ext
25065 ac_res=`eval 'as_val=${'$as_ac_var'}
25066 $as_echo "$as_val"'`
25067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25068 $as_echo "$ac_res" >&6; }
25069 if test `eval 'as_val=${'$as_ac_var'}
25070 $as_echo "$as_val"'` = yes; then
25071 cat >>confdefs.h <<_ACEOF
25072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25073 _ACEOF
25076 done
25078 if test "x$ac_cv_func_fork" = xyes; then
25079 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25080 $as_echo_n "checking for working fork... " >&6; }
25081 if test "${ac_cv_func_fork_works+set}" = set; then
25082 $as_echo_n "(cached) " >&6
25083 else
25084 if test "$cross_compiling" = yes; then
25085 ac_cv_func_fork_works=cross
25086 else
25087 cat >conftest.$ac_ext <<_ACEOF
25088 /* confdefs.h. */
25089 _ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h. */
25093 $ac_includes_default
25095 main ()
25098 /* By Ruediger Kuhlmann. */
25099 return fork () < 0;
25102 return 0;
25104 _ACEOF
25105 rm -f conftest$ac_exeext
25106 if { (ac_try="$ac_link"
25107 case "(($ac_try" in
25108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109 *) ac_try_echo=$ac_try;;
25110 esac
25111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25112 $as_echo "$ac_try_echo") >&5
25113 (eval "$ac_link") 2>&5
25114 ac_status=$?
25115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25117 { (case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25120 esac
25121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25122 $as_echo "$ac_try_echo") >&5
25123 (eval "$ac_try") 2>&5
25124 ac_status=$?
25125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); }; }; then
25127 ac_cv_func_fork_works=yes
25128 else
25129 $as_echo "$as_me: program exited with status $ac_status" >&5
25130 $as_echo "$as_me: failed program was:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25133 ( exit $ac_status )
25134 ac_cv_func_fork_works=no
25136 rm -rf conftest.dSYM
25137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25142 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25143 $as_echo "$ac_cv_func_fork_works" >&6; }
25145 else
25146 ac_cv_func_fork_works=$ac_cv_func_fork
25148 if test "x$ac_cv_func_fork_works" = xcross; then
25149 case $host in
25150 *-*-amigaos* | *-*-msdosdjgpp*)
25151 # Override, as these systems have only a dummy fork() stub
25152 ac_cv_func_fork_works=no
25155 ac_cv_func_fork_works=yes
25157 esac
25158 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25159 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25161 ac_cv_func_vfork_works=$ac_cv_func_vfork
25162 if test "x$ac_cv_func_vfork" = xyes; then
25163 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25164 $as_echo_n "checking for working vfork... " >&6; }
25165 if test "${ac_cv_func_vfork_works+set}" = set; then
25166 $as_echo_n "(cached) " >&6
25167 else
25168 if test "$cross_compiling" = yes; then
25169 ac_cv_func_vfork_works=cross
25170 else
25171 cat >conftest.$ac_ext <<_ACEOF
25172 /* confdefs.h. */
25173 _ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h. */
25177 /* Thanks to Paul Eggert for this test. */
25178 $ac_includes_default
25179 #include <sys/wait.h>
25180 #ifdef HAVE_VFORK_H
25181 # include <vfork.h>
25182 #endif
25183 /* On some sparc systems, changes by the child to local and incoming
25184 argument registers are propagated back to the parent. The compiler
25185 is told about this with #include <vfork.h>, but some compilers
25186 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25187 static variable whose address is put into a register that is
25188 clobbered by the vfork. */
25189 static void
25190 #ifdef __cplusplus
25191 sparc_address_test (int arg)
25192 # else
25193 sparc_address_test (arg) int arg;
25194 #endif
25196 static pid_t child;
25197 if (!child) {
25198 child = vfork ();
25199 if (child < 0) {
25200 perror ("vfork");
25201 _exit(2);
25203 if (!child) {
25204 arg = getpid();
25205 write(-1, "", 0);
25206 _exit (arg);
25212 main ()
25214 pid_t parent = getpid ();
25215 pid_t child;
25217 sparc_address_test (0);
25219 child = vfork ();
25221 if (child == 0) {
25222 /* Here is another test for sparc vfork register problems. This
25223 test uses lots of local variables, at least as many local
25224 variables as main has allocated so far including compiler
25225 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25226 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25227 reuse the register of parent for one of the local variables,
25228 since it will think that parent can't possibly be used any more
25229 in this routine. Assigning to the local variable will thus
25230 munge parent in the parent process. */
25231 pid_t
25232 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25233 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25234 /* Convince the compiler that p..p7 are live; otherwise, it might
25235 use the same hardware register for all 8 local variables. */
25236 if (p != p1 || p != p2 || p != p3 || p != p4
25237 || p != p5 || p != p6 || p != p7)
25238 _exit(1);
25240 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25241 from child file descriptors. If the child closes a descriptor
25242 before it execs or exits, this munges the parent's descriptor
25243 as well. Test for this by closing stdout in the child. */
25244 _exit(close(fileno(stdout)) != 0);
25245 } else {
25246 int status;
25247 struct stat st;
25249 while (wait(&status) != child)
25251 return (
25252 /* Was there some problem with vforking? */
25253 child < 0
25255 /* Did the child fail? (This shouldn't happen.) */
25256 || status
25258 /* Did the vfork/compiler bug occur? */
25259 || parent != getpid()
25261 /* Did the file descriptor bug occur? */
25262 || fstat(fileno(stdout), &st) != 0
25266 _ACEOF
25267 rm -f conftest$ac_exeext
25268 if { (ac_try="$ac_link"
25269 case "(($ac_try" in
25270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25271 *) ac_try_echo=$ac_try;;
25272 esac
25273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25274 $as_echo "$ac_try_echo") >&5
25275 (eval "$ac_link") 2>&5
25276 ac_status=$?
25277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25279 { (case "(($ac_try" in
25280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25281 *) ac_try_echo=$ac_try;;
25282 esac
25283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25284 $as_echo "$ac_try_echo") >&5
25285 (eval "$ac_try") 2>&5
25286 ac_status=$?
25287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); }; }; then
25289 ac_cv_func_vfork_works=yes
25290 else
25291 $as_echo "$as_me: program exited with status $ac_status" >&5
25292 $as_echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25295 ( exit $ac_status )
25296 ac_cv_func_vfork_works=no
25298 rm -rf conftest.dSYM
25299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25304 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25305 $as_echo "$ac_cv_func_vfork_works" >&6; }
25308 if test "x$ac_cv_func_fork_works" = xcross; then
25309 ac_cv_func_vfork_works=$ac_cv_func_vfork
25310 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25311 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25314 if test "x$ac_cv_func_vfork_works" = xyes; then
25316 cat >>confdefs.h <<\_ACEOF
25317 #define HAVE_WORKING_VFORK 1
25318 _ACEOF
25320 else
25322 cat >>confdefs.h <<\_ACEOF
25323 #define vfork fork
25324 _ACEOF
25327 if test "x$ac_cv_func_fork_works" = xyes; then
25329 cat >>confdefs.h <<\_ACEOF
25330 #define HAVE_WORKING_FORK 1
25331 _ACEOF
25336 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25337 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25338 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25339 $as_echo_n "(cached) " >&6
25340 else
25341 cat >conftest.$ac_ext <<_ACEOF
25342 /* confdefs.h. */
25343 _ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h. */
25347 #include <langinfo.h>
25349 main ()
25351 char* cs = nl_langinfo(CODESET);
25353 return 0;
25355 _ACEOF
25356 rm -f conftest.$ac_objext conftest$ac_exeext
25357 if { (ac_try="$ac_link"
25358 case "(($ac_try" in
25359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25360 *) ac_try_echo=$ac_try;;
25361 esac
25362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25363 $as_echo "$ac_try_echo") >&5
25364 (eval "$ac_link") 2>conftest.er1
25365 ac_status=$?
25366 grep -v '^ *+' conftest.er1 >conftest.err
25367 rm -f conftest.er1
25368 cat conftest.err >&5
25369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); } && {
25371 test -z "$ac_c_werror_flag" ||
25372 test ! -s conftest.err
25373 } && test -s conftest$ac_exeext && {
25374 test "$cross_compiling" = yes ||
25375 $as_test_x conftest$ac_exeext
25376 }; then
25377 emacs_cv_langinfo_codeset=yes
25378 else
25379 $as_echo "$as_me: failed program was:" >&5
25380 sed 's/^/| /' conftest.$ac_ext >&5
25382 emacs_cv_langinfo_codeset=no
25385 rm -rf conftest.dSYM
25386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25387 conftest$ac_exeext conftest.$ac_ext
25390 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25391 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25392 if test $emacs_cv_langinfo_codeset = yes; then
25394 cat >>confdefs.h <<\_ACEOF
25395 #define HAVE_LANGINFO_CODESET 1
25396 _ACEOF
25400 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25401 $as_echo_n "checking for size_t... " >&6; }
25402 if test "${ac_cv_type_size_t+set}" = set; then
25403 $as_echo_n "(cached) " >&6
25404 else
25405 ac_cv_type_size_t=no
25406 cat >conftest.$ac_ext <<_ACEOF
25407 /* confdefs.h. */
25408 _ACEOF
25409 cat confdefs.h >>conftest.$ac_ext
25410 cat >>conftest.$ac_ext <<_ACEOF
25411 /* end confdefs.h. */
25412 $ac_includes_default
25414 main ()
25416 if (sizeof (size_t))
25417 return 0;
25419 return 0;
25421 _ACEOF
25422 rm -f conftest.$ac_objext
25423 if { (ac_try="$ac_compile"
25424 case "(($ac_try" in
25425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25426 *) ac_try_echo=$ac_try;;
25427 esac
25428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25429 $as_echo "$ac_try_echo") >&5
25430 (eval "$ac_compile") 2>conftest.er1
25431 ac_status=$?
25432 grep -v '^ *+' conftest.er1 >conftest.err
25433 rm -f conftest.er1
25434 cat conftest.err >&5
25435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest.$ac_objext; then
25440 cat >conftest.$ac_ext <<_ACEOF
25441 /* confdefs.h. */
25442 _ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h. */
25446 $ac_includes_default
25448 main ()
25450 if (sizeof ((size_t)))
25451 return 0;
25453 return 0;
25455 _ACEOF
25456 rm -f conftest.$ac_objext
25457 if { (ac_try="$ac_compile"
25458 case "(($ac_try" in
25459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460 *) ac_try_echo=$ac_try;;
25461 esac
25462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25463 $as_echo "$ac_try_echo") >&5
25464 (eval "$ac_compile") 2>conftest.er1
25465 ac_status=$?
25466 grep -v '^ *+' conftest.er1 >conftest.err
25467 rm -f conftest.er1
25468 cat conftest.err >&5
25469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); } && {
25471 test -z "$ac_c_werror_flag" ||
25472 test ! -s conftest.err
25473 } && test -s conftest.$ac_objext; then
25475 else
25476 $as_echo "$as_me: failed program was:" >&5
25477 sed 's/^/| /' conftest.$ac_ext >&5
25479 ac_cv_type_size_t=yes
25482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483 else
25484 $as_echo "$as_me: failed program was:" >&5
25485 sed 's/^/| /' conftest.$ac_ext >&5
25490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25492 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25493 $as_echo "$ac_cv_type_size_t" >&6; }
25494 if test $ac_cv_type_size_t = yes; then
25496 cat >>confdefs.h <<_ACEOF
25497 #define HAVE_SIZE_T 1
25498 _ACEOF
25504 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25505 $as_echo_n "checking for mbstate_t... " >&6; }
25506 if test "${ac_cv_type_mbstate_t+set}" = set; then
25507 $as_echo_n "(cached) " >&6
25508 else
25509 cat >conftest.$ac_ext <<_ACEOF
25510 /* confdefs.h. */
25511 _ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h. */
25515 $ac_includes_default
25516 # include <wchar.h>
25518 main ()
25520 mbstate_t x; return sizeof x;
25522 return 0;
25524 _ACEOF
25525 rm -f conftest.$ac_objext
25526 if { (ac_try="$ac_compile"
25527 case "(($ac_try" in
25528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25529 *) ac_try_echo=$ac_try;;
25530 esac
25531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25532 $as_echo "$ac_try_echo") >&5
25533 (eval "$ac_compile") 2>conftest.er1
25534 ac_status=$?
25535 grep -v '^ *+' conftest.er1 >conftest.err
25536 rm -f conftest.er1
25537 cat conftest.err >&5
25538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); } && {
25540 test -z "$ac_c_werror_flag" ||
25541 test ! -s conftest.err
25542 } && test -s conftest.$ac_objext; then
25543 ac_cv_type_mbstate_t=yes
25544 else
25545 $as_echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25548 ac_cv_type_mbstate_t=no
25551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25553 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25554 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25555 if test $ac_cv_type_mbstate_t = yes; then
25557 cat >>confdefs.h <<\_ACEOF
25558 #define HAVE_MBSTATE_T 1
25559 _ACEOF
25561 else
25563 cat >>confdefs.h <<\_ACEOF
25564 #define mbstate_t int
25565 _ACEOF
25569 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25570 $as_echo_n "checking for C restrict keyword... " >&6; }
25571 if test "${emacs_cv_c_restrict+set}" = set; then
25572 $as_echo_n "(cached) " >&6
25573 else
25574 cat >conftest.$ac_ext <<_ACEOF
25575 /* confdefs.h. */
25576 _ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h. */
25580 void fred (int *restrict x);
25582 main ()
25586 return 0;
25588 _ACEOF
25589 rm -f conftest.$ac_objext
25590 if { (ac_try="$ac_compile"
25591 case "(($ac_try" in
25592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25593 *) ac_try_echo=$ac_try;;
25594 esac
25595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25596 $as_echo "$ac_try_echo") >&5
25597 (eval "$ac_compile") 2>conftest.er1
25598 ac_status=$?
25599 grep -v '^ *+' conftest.er1 >conftest.err
25600 rm -f conftest.er1
25601 cat conftest.err >&5
25602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); } && {
25604 test -z "$ac_c_werror_flag" ||
25605 test ! -s conftest.err
25606 } && test -s conftest.$ac_objext; then
25607 emacs_cv_c_restrict=yes
25608 else
25609 $as_echo "$as_me: failed program was:" >&5
25610 sed 's/^/| /' conftest.$ac_ext >&5
25612 cat >conftest.$ac_ext <<_ACEOF
25613 /* confdefs.h. */
25614 _ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h. */
25618 void fred (int *__restrict x);
25620 main ()
25624 return 0;
25626 _ACEOF
25627 rm -f conftest.$ac_objext
25628 if { (ac_try="$ac_compile"
25629 case "(($ac_try" in
25630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631 *) ac_try_echo=$ac_try;;
25632 esac
25633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25634 $as_echo "$ac_try_echo") >&5
25635 (eval "$ac_compile") 2>conftest.er1
25636 ac_status=$?
25637 grep -v '^ *+' conftest.er1 >conftest.err
25638 rm -f conftest.er1
25639 cat conftest.err >&5
25640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); } && {
25642 test -z "$ac_c_werror_flag" ||
25643 test ! -s conftest.err
25644 } && test -s conftest.$ac_objext; then
25645 emacs_cv_c_restrict=__restrict
25646 else
25647 $as_echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25650 emacs_cv_c_restrict=no
25653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25658 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25659 $as_echo "$emacs_cv_c_restrict" >&6; }
25660 case "$emacs_cv_c_restrict" in
25661 yes) emacs_restrict=restrict;;
25662 no) emacs_restrict="";;
25663 *) emacs_restrict="$emacs_cv_c_restrict";;
25664 esac
25665 if test "$emacs_restrict" != __restrict; then
25667 cat >>confdefs.h <<_ACEOF
25668 #define __restrict $emacs_restrict
25669 _ACEOF
25673 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25674 $as_echo_n "checking for C restricted array declarations... " >&6; }
25675 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25676 $as_echo_n "(cached) " >&6
25677 else
25678 cat >conftest.$ac_ext <<_ACEOF
25679 /* confdefs.h. */
25680 _ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h. */
25684 void fred (int x[__restrict]);
25686 main ()
25690 return 0;
25692 _ACEOF
25693 rm -f conftest.$ac_objext
25694 if { (ac_try="$ac_compile"
25695 case "(($ac_try" in
25696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697 *) ac_try_echo=$ac_try;;
25698 esac
25699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25700 $as_echo "$ac_try_echo") >&5
25701 (eval "$ac_compile") 2>conftest.er1
25702 ac_status=$?
25703 grep -v '^ *+' conftest.er1 >conftest.err
25704 rm -f conftest.er1
25705 cat conftest.err >&5
25706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } && {
25708 test -z "$ac_c_werror_flag" ||
25709 test ! -s conftest.err
25710 } && test -s conftest.$ac_objext; then
25711 emacs_cv_c_restrict_arr=yes
25712 else
25713 $as_echo "$as_me: failed program was:" >&5
25714 sed 's/^/| /' conftest.$ac_ext >&5
25716 emacs_cv_c_restrict_arr=no
25719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25721 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25722 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25723 if test "$emacs_cv_c_restrict_arr" = yes; then
25725 cat >>confdefs.h <<\_ACEOF
25726 #define __restrict_arr __restrict
25727 _ACEOF
25733 # Set up the CFLAGS for real compilation, so we can substitute it.
25734 CFLAGS="$REAL_CFLAGS"
25735 CPPFLAGS="$REAL_CPPFLAGS"
25737 #### Find out which version of Emacs this is.
25738 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25739 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25740 if test x"${version}" = x; then
25741 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25742 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25743 { (exit 1); exit 1; }; }
25745 if test x"${version}" != x"$PACKAGE_VERSION"; then
25746 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25747 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25750 ### Specify what sort of things we'll be editing into Makefile and config.h.
25751 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25796 cat >>confdefs.h <<_ACEOF
25797 #define EMACS_CONFIGURATION "${canonical}"
25798 _ACEOF
25801 cat >>confdefs.h <<_ACEOF
25802 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25803 _ACEOF
25806 cat >>confdefs.h <<_ACEOF
25807 #define config_machfile "${machfile}"
25808 _ACEOF
25811 cat >>confdefs.h <<_ACEOF
25812 #define config_opsysfile "${opsysfile}"
25813 _ACEOF
25816 cat >>confdefs.h <<_ACEOF
25817 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25818 _ACEOF
25821 cat >>confdefs.h <<_ACEOF
25822 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25823 _ACEOF
25826 cat >>confdefs.h <<_ACEOF
25827 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25828 _ACEOF
25831 cat >>confdefs.h <<_ACEOF
25832 #define UNEXEC_SRC ${UNEXEC_SRC}
25833 _ACEOF
25836 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25838 cat >>confdefs.h <<\_ACEOF
25839 #define HAVE_X_WINDOWS 1
25840 _ACEOF
25843 if test "${USE_X_TOOLKIT}" != "none" ; then
25845 cat >>confdefs.h <<\_ACEOF
25846 #define USE_X_TOOLKIT 1
25847 _ACEOF
25849 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25851 cat >>confdefs.h <<\_ACEOF
25852 #define USE_LUCID 1
25853 _ACEOF
25855 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25857 cat >>confdefs.h <<\_ACEOF
25858 #define USE_MOTIF 1
25859 _ACEOF
25863 if test "${HAVE_X11}" = "yes" ; then
25865 cat >>confdefs.h <<\_ACEOF
25866 #define HAVE_X11 1
25867 _ACEOF
25870 if test "${HAVE_MENUS}" = "yes" ; then
25872 cat >>confdefs.h <<\_ACEOF
25873 #define HAVE_MENUS 1
25874 _ACEOF
25877 if test "${GNU_MALLOC}" = "yes" ; then
25879 cat >>confdefs.h <<\_ACEOF
25880 #define GNU_MALLOC 1
25881 _ACEOF
25884 if test "${REL_ALLOC}" = "yes" ; then
25886 cat >>confdefs.h <<\_ACEOF
25887 #define REL_ALLOC 1
25888 _ACEOF
25897 #### Report on what we decided to do.
25898 #### Report GTK as a toolkit, even if it doesn't use Xt.
25899 #### It makes printing result more understandable as using GTK sets
25900 #### toolkit_scroll_bars to yes by default.
25901 if test "${HAVE_GTK}" = "yes"; then
25902 USE_X_TOOLKIT=GTK
25905 echo "
25906 Configured for \`${canonical}'.
25908 Where should the build process find the source code? ${srcdir}
25909 What operating system and machine description files should Emacs use?
25910 \`${opsysfile}' and \`${machfile}'
25911 What compiler should emacs be built with? ${CC} ${CFLAGS}
25912 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25913 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25914 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25915 What window system should Emacs use? ${window_system}
25916 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25918 if test -n "${x_includes}"; then
25919 echo " Where do we find X Windows header files? ${x_includes}"
25920 else
25921 echo " Where do we find X Windows header files? Standard dirs"
25923 if test -n "${x_libraries}"; then
25924 echo " Where do we find X Windows libraries? ${x_libraries}"
25925 else
25926 echo " Where do we find X Windows libraries? Standard dirs"
25929 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25930 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25931 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25932 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25933 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25934 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25935 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25936 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25937 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25938 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25940 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25941 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25942 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25943 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25945 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25946 echo
25948 if test $USE_XASSERTS = yes; then
25949 echo " Compiling with asserts turned on."
25950 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25953 echo
25955 if test "$HAVE_NS" = "yes"; then
25956 echo
25957 echo "You must run \"make install\" in order to test the built application.
25958 The installed application will go to nextstep/Emacs.app and can be
25959 run or moved from there."
25960 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25961 echo "The application will be fully self-contained."
25962 else
25963 echo "The lisp resources for the application will be installed under ${prefix}.
25964 You may need to run \"make install\" with sudo. The application will fail
25965 to run if these resources are not installed."
25967 echo
25970 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25971 echo "D-Bus integration has been tested for GNU/Linux only."
25972 echo
25976 # Remove any trailing slashes in these variables.
25977 test "${prefix}" != NONE &&
25978 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25979 test "${exec_prefix}" != NONE &&
25980 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25982 # Now get this: Some word that is part of the ${srcdir} directory name
25983 # or the ${configuration} value might, just might, happen to be an
25984 # identifier like `sun4' or `i386' or something, and be predefined by
25985 # the C preprocessor to some helpful value like 1, or maybe the empty
25986 # string. Needless to say consequent macro substitutions are less
25987 # than conducive to the makefile finding the correct directory.
25988 cpp_undefs="`echo $srcdir $configuration $canonical |
25989 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25990 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25992 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25993 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25994 ## from Makefile.c can correctly provide the arg `-traditional' to the
25995 ## C preprocessor.
25997 cat >conftest.$ac_ext <<_ACEOF
25998 /* confdefs.h. */
25999 _ACEOF
26000 cat confdefs.h >>conftest.$ac_ext
26001 cat >>conftest.$ac_ext <<_ACEOF
26002 /* end confdefs.h. */
26003 yes..yes
26004 _ACEOF
26005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26006 $EGREP "yes..yes" >/dev/null 2>&1; then
26007 CPP_NEED_TRADITIONAL=no
26008 else
26009 CPP_NEED_TRADITIONAL=yes
26011 rm -f conftest*
26014 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"
26016 ac_config_commands="$ac_config_commands default"
26018 cat >confcache <<\_ACEOF
26019 # This file is a shell script that caches the results of configure
26020 # tests run on this system so they can be shared between configure
26021 # scripts and configure runs, see configure's option --config-cache.
26022 # It is not useful on other systems. If it contains results you don't
26023 # want to keep, you may remove or edit it.
26025 # config.status only pays attention to the cache file if you give it
26026 # the --recheck option to rerun configure.
26028 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26029 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26030 # following values.
26032 _ACEOF
26034 # The following way of writing the cache mishandles newlines in values,
26035 # but we know of no workaround that is simple, portable, and efficient.
26036 # So, we kill variables containing newlines.
26037 # Ultrix sh set writes to stderr and can't be redirected directly,
26038 # and sets the high bit in the cache file unless we assign to the vars.
26040 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26041 eval ac_val=\$$ac_var
26042 case $ac_val in #(
26043 *${as_nl}*)
26044 case $ac_var in #(
26045 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26046 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26047 esac
26048 case $ac_var in #(
26049 _ | IFS | as_nl) ;; #(
26050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26051 *) $as_unset $ac_var ;;
26052 esac ;;
26053 esac
26054 done
26056 (set) 2>&1 |
26057 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26058 *${as_nl}ac_space=\ *)
26059 # `set' does not quote correctly, so add quotes (double-quote
26060 # substitution turns \\\\ into \\, and sed turns \\ into \).
26061 sed -n \
26062 "s/'/'\\\\''/g;
26063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26064 ;; #(
26066 # `set' quotes correctly as required by POSIX, so do not add quotes.
26067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26069 esac |
26070 sort
26072 sed '
26073 /^ac_cv_env_/b end
26074 t clear
26075 :clear
26076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26077 t end
26078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26079 :end' >>confcache
26080 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26081 if test -w "$cache_file"; then
26082 test "x$cache_file" != "x/dev/null" &&
26083 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26084 $as_echo "$as_me: updating cache $cache_file" >&6;}
26085 cat confcache >$cache_file
26086 else
26087 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26088 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26091 rm -f confcache
26093 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26094 # Let make expand exec_prefix.
26095 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26097 DEFS=-DHAVE_CONFIG_H
26099 ac_libobjs=
26100 ac_ltlibobjs=
26101 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26102 # 1. Remove the extension, and $U if already installed.
26103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26106 # will be set to the directory where LIBOBJS objects are built.
26107 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26108 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26109 done
26110 LIBOBJS=$ac_libobjs
26112 LTLIBOBJS=$ac_ltlibobjs
26116 : ${CONFIG_STATUS=./config.status}
26117 ac_write_fail=0
26118 ac_clean_files_save=$ac_clean_files
26119 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26120 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26121 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26122 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26123 #! $SHELL
26124 # Generated by $as_me.
26125 # Run this file to recreate the current configuration.
26126 # Compiler output produced by configure, useful for debugging
26127 # configure, is in config.log if it exists.
26129 debug=false
26130 ac_cs_recheck=false
26131 ac_cs_silent=false
26132 SHELL=\${CONFIG_SHELL-$SHELL}
26133 _ACEOF
26135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26136 ## --------------------- ##
26137 ## M4sh Initialization. ##
26138 ## --------------------- ##
26140 # Be more Bourne compatible
26141 DUALCASE=1; export DUALCASE # for MKS sh
26142 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26143 emulate sh
26144 NULLCMD=:
26145 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26146 # is contrary to our usage. Disable this feature.
26147 alias -g '${1+"$@"}'='"$@"'
26148 setopt NO_GLOB_SUBST
26149 else
26150 case `(set -o) 2>/dev/null` in
26151 *posix*) set -o posix ;;
26152 esac
26159 # PATH needs CR
26160 # Avoid depending upon Character Ranges.
26161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26164 as_cr_digits='0123456789'
26165 as_cr_alnum=$as_cr_Letters$as_cr_digits
26167 as_nl='
26169 export as_nl
26170 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26171 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26172 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26173 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26174 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26175 as_echo='printf %s\n'
26176 as_echo_n='printf %s'
26177 else
26178 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26179 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26180 as_echo_n='/usr/ucb/echo -n'
26181 else
26182 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26183 as_echo_n_body='eval
26184 arg=$1;
26185 case $arg in
26186 *"$as_nl"*)
26187 expr "X$arg" : "X\\(.*\\)$as_nl";
26188 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26189 esac;
26190 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26192 export as_echo_n_body
26193 as_echo_n='sh -c $as_echo_n_body as_echo'
26195 export as_echo_body
26196 as_echo='sh -c $as_echo_body as_echo'
26199 # The user is always right.
26200 if test "${PATH_SEPARATOR+set}" != set; then
26201 PATH_SEPARATOR=:
26202 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26203 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26204 PATH_SEPARATOR=';'
26208 # Support unset when possible.
26209 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26210 as_unset=unset
26211 else
26212 as_unset=false
26216 # IFS
26217 # We need space, tab and new line, in precisely that order. Quoting is
26218 # there to prevent editors from complaining about space-tab.
26219 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26220 # splitting by setting IFS to empty value.)
26221 IFS=" "" $as_nl"
26223 # Find who we are. Look in the path if we contain no directory separator.
26224 case $0 in
26225 *[\\/]* ) as_myself=$0 ;;
26226 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26227 for as_dir in $PATH
26229 IFS=$as_save_IFS
26230 test -z "$as_dir" && as_dir=.
26231 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26232 done
26233 IFS=$as_save_IFS
26236 esac
26237 # We did not find ourselves, most probably we were run as `sh COMMAND'
26238 # in which case we are not to be found in the path.
26239 if test "x$as_myself" = x; then
26240 as_myself=$0
26242 if test ! -f "$as_myself"; then
26243 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26244 { (exit 1); exit 1; }
26247 # Work around bugs in pre-3.0 UWIN ksh.
26248 for as_var in ENV MAIL MAILPATH
26249 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26250 done
26251 PS1='$ '
26252 PS2='> '
26253 PS4='+ '
26255 # NLS nuisances.
26256 LC_ALL=C
26257 export LC_ALL
26258 LANGUAGE=C
26259 export LANGUAGE
26261 # Required to use basename.
26262 if expr a : '\(a\)' >/dev/null 2>&1 &&
26263 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26264 as_expr=expr
26265 else
26266 as_expr=false
26269 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26270 as_basename=basename
26271 else
26272 as_basename=false
26276 # Name of the executable.
26277 as_me=`$as_basename -- "$0" ||
26278 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26279 X"$0" : 'X\(//\)$' \| \
26280 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26281 $as_echo X/"$0" |
26282 sed '/^.*\/\([^/][^/]*\)\/*$/{
26283 s//\1/
26286 /^X\/\(\/\/\)$/{
26287 s//\1/
26290 /^X\/\(\/\).*/{
26291 s//\1/
26294 s/.*/./; q'`
26296 # CDPATH.
26297 $as_unset CDPATH
26301 as_lineno_1=$LINENO
26302 as_lineno_2=$LINENO
26303 test "x$as_lineno_1" != "x$as_lineno_2" &&
26304 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26306 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26307 # uniformly replaced by the line number. The first 'sed' inserts a
26308 # line-number line after each line using $LINENO; the second 'sed'
26309 # does the real work. The second script uses 'N' to pair each
26310 # line-number line with the line containing $LINENO, and appends
26311 # trailing '-' during substitution so that $LINENO is not a special
26312 # case at line end.
26313 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26314 # scripts with optimization help from Paolo Bonzini. Blame Lee
26315 # E. McMahon (1931-1989) for sed's syntax. :-)
26316 sed -n '
26318 /[$]LINENO/=
26319 ' <$as_myself |
26320 sed '
26321 s/[$]LINENO.*/&-/
26322 t lineno
26324 :lineno
26326 :loop
26327 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26328 t loop
26329 s/-\n.*//
26330 ' >$as_me.lineno &&
26331 chmod +x "$as_me.lineno" ||
26332 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26333 { (exit 1); exit 1; }; }
26335 # Don't try to exec as it changes $[0], causing all sort of problems
26336 # (the dirname of $[0] is not the place where we might find the
26337 # original and so on. Autoconf is especially sensitive to this).
26338 . "./$as_me.lineno"
26339 # Exit status is that of the last command.
26340 exit
26344 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26345 as_dirname=dirname
26346 else
26347 as_dirname=false
26350 ECHO_C= ECHO_N= ECHO_T=
26351 case `echo -n x` in
26352 -n*)
26353 case `echo 'x\c'` in
26354 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26355 *) ECHO_C='\c';;
26356 esac;;
26358 ECHO_N='-n';;
26359 esac
26360 if expr a : '\(a\)' >/dev/null 2>&1 &&
26361 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26362 as_expr=expr
26363 else
26364 as_expr=false
26367 rm -f conf$$ conf$$.exe conf$$.file
26368 if test -d conf$$.dir; then
26369 rm -f conf$$.dir/conf$$.file
26370 else
26371 rm -f conf$$.dir
26372 mkdir conf$$.dir 2>/dev/null
26374 if (echo >conf$$.file) 2>/dev/null; then
26375 if ln -s conf$$.file conf$$ 2>/dev/null; then
26376 as_ln_s='ln -s'
26377 # ... but there are two gotchas:
26378 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26379 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26380 # In both cases, we have to default to `cp -p'.
26381 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26382 as_ln_s='cp -p'
26383 elif ln conf$$.file conf$$ 2>/dev/null; then
26384 as_ln_s=ln
26385 else
26386 as_ln_s='cp -p'
26388 else
26389 as_ln_s='cp -p'
26391 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26392 rmdir conf$$.dir 2>/dev/null
26394 if mkdir -p . 2>/dev/null; then
26395 as_mkdir_p=:
26396 else
26397 test -d ./-p && rmdir ./-p
26398 as_mkdir_p=false
26401 if test -x / >/dev/null 2>&1; then
26402 as_test_x='test -x'
26403 else
26404 if ls -dL / >/dev/null 2>&1; then
26405 as_ls_L_option=L
26406 else
26407 as_ls_L_option=
26409 as_test_x='
26410 eval sh -c '\''
26411 if test -d "$1"; then
26412 test -d "$1/.";
26413 else
26414 case $1 in
26415 -*)set "./$1";;
26416 esac;
26417 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26418 ???[sx]*):;;*)false;;esac;fi
26419 '\'' sh
26422 as_executable_p=$as_test_x
26424 # Sed expression to map a string onto a valid CPP name.
26425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26427 # Sed expression to map a string onto a valid variable name.
26428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26431 exec 6>&1
26433 # Save the log message, to keep $[0] and so on meaningful, and to
26434 # report actual input values of CONFIG_FILES etc. instead of their
26435 # values after options handling.
26436 ac_log="
26437 This file was extended by emacs $as_me 24.0.50, which was
26438 generated by GNU Autoconf 2.62. Invocation command line was
26440 CONFIG_FILES = $CONFIG_FILES
26441 CONFIG_HEADERS = $CONFIG_HEADERS
26442 CONFIG_LINKS = $CONFIG_LINKS
26443 CONFIG_COMMANDS = $CONFIG_COMMANDS
26444 $ $0 $@
26446 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26449 _ACEOF
26451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26452 # Files that config.status was made for.
26453 config_files="$ac_config_files"
26454 config_headers="$ac_config_headers"
26455 config_commands="$ac_config_commands"
26457 _ACEOF
26459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26460 ac_cs_usage="\
26461 \`$as_me' instantiates files from templates according to the
26462 current configuration.
26464 Usage: $0 [OPTIONS] [FILE]...
26466 -h, --help print this help, then exit
26467 -V, --version print version number and configuration settings, then exit
26468 -q, --quiet do not print progress messages
26469 -d, --debug don't remove temporary files
26470 --recheck update $as_me by reconfiguring in the same conditions
26471 --file=FILE[:TEMPLATE]
26472 instantiate the configuration file FILE
26473 --header=FILE[:TEMPLATE]
26474 instantiate the configuration header FILE
26476 Configuration files:
26477 $config_files
26479 Configuration headers:
26480 $config_headers
26482 Configuration commands:
26483 $config_commands
26485 Report bugs to <bug-autoconf@gnu.org>."
26487 _ACEOF
26488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26489 ac_cs_version="\\
26490 emacs config.status 24.0.50
26491 configured by $0, generated by GNU Autoconf 2.62,
26492 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26494 Copyright (C) 2008 Free Software Foundation, Inc.
26495 This config.status script is free software; the Free Software Foundation
26496 gives unlimited permission to copy, distribute and modify it."
26498 ac_pwd='$ac_pwd'
26499 srcdir='$srcdir'
26500 INSTALL='$INSTALL'
26501 test -n "\$AWK" || AWK=awk
26502 _ACEOF
26504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26505 # The default lists apply if the user does not specify any file.
26506 ac_need_defaults=:
26507 while test $# != 0
26509 case $1 in
26510 --*=*)
26511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26512 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26513 ac_shift=:
26516 ac_option=$1
26517 ac_optarg=$2
26518 ac_shift=shift
26520 esac
26522 case $ac_option in
26523 # Handling of the options.
26524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26525 ac_cs_recheck=: ;;
26526 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26527 $as_echo "$ac_cs_version"; exit ;;
26528 --debug | --debu | --deb | --de | --d | -d )
26529 debug=: ;;
26530 --file | --fil | --fi | --f )
26531 $ac_shift
26532 case $ac_optarg in
26533 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26534 esac
26535 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26536 ac_need_defaults=false;;
26537 --header | --heade | --head | --hea )
26538 $ac_shift
26539 case $ac_optarg in
26540 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26541 esac
26542 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26543 ac_need_defaults=false;;
26544 --he | --h)
26545 # Conflict between --help and --header
26546 { $as_echo "$as_me: error: ambiguous option: $1
26547 Try \`$0 --help' for more information." >&2
26548 { (exit 1); exit 1; }; };;
26549 --help | --hel | -h )
26550 $as_echo "$ac_cs_usage"; exit ;;
26551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26552 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26553 ac_cs_silent=: ;;
26555 # This is an error.
26556 -*) { $as_echo "$as_me: error: unrecognized option: $1
26557 Try \`$0 --help' for more information." >&2
26558 { (exit 1); exit 1; }; } ;;
26560 *) ac_config_targets="$ac_config_targets $1"
26561 ac_need_defaults=false ;;
26563 esac
26564 shift
26565 done
26567 ac_configure_extra_args=
26569 if $ac_cs_silent; then
26570 exec 6>/dev/null
26571 ac_configure_extra_args="$ac_configure_extra_args --silent"
26574 _ACEOF
26575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26576 if \$ac_cs_recheck; then
26577 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26578 shift
26579 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26580 CONFIG_SHELL='$SHELL'
26581 export CONFIG_SHELL
26582 exec "\$@"
26585 _ACEOF
26586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26587 exec 5>>config.log
26589 echo
26590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26591 ## Running $as_me. ##
26592 _ASBOX
26593 $as_echo "$ac_log"
26594 } >&5
26596 _ACEOF
26597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26599 # INIT-COMMANDS
26601 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26603 _ACEOF
26605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26607 # Handling of arguments.
26608 for ac_config_target in $ac_config_targets
26610 case $ac_config_target in
26611 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26612 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26613 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26614 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26615 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26616 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26617 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26618 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26619 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26620 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26621 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26622 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26623 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26625 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26626 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26627 { (exit 1); exit 1; }; };;
26628 esac
26629 done
26632 # If the user did not use the arguments to specify the items to instantiate,
26633 # then the envvar interface is used. Set only those that are not.
26634 # We use the long form for the default assignment because of an extremely
26635 # bizarre bug on SunOS 4.1.3.
26636 if $ac_need_defaults; then
26637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26642 # Have a temporary directory for convenience. Make it in the build tree
26643 # simply because there is no reason against having it here, and in addition,
26644 # creating and moving files from /tmp can sometimes cause problems.
26645 # Hook for its removal unless debugging.
26646 # Note that there is a small window in which the directory will not be cleaned:
26647 # after its creation but before its name has been assigned to `$tmp'.
26648 $debug ||
26650 tmp=
26651 trap 'exit_status=$?
26652 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26654 trap '{ (exit 1); exit 1; }' 1 2 13 15
26656 # Create a (secure) tmp directory for tmp files.
26659 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26660 test -n "$tmp" && test -d "$tmp"
26661 } ||
26663 tmp=./conf$$-$RANDOM
26664 (umask 077 && mkdir "$tmp")
26665 } ||
26667 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26668 { (exit 1); exit 1; }
26671 # Set up the scripts for CONFIG_FILES section.
26672 # No need to generate them if there are no CONFIG_FILES.
26673 # This happens for instance with `./config.status config.h'.
26674 if test -n "$CONFIG_FILES"; then
26677 ac_cr=' '
26678 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26679 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26680 ac_cs_awk_cr='\\r'
26681 else
26682 ac_cs_awk_cr=$ac_cr
26685 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26686 _ACEOF
26690 echo "cat >conf$$subs.awk <<_ACEOF" &&
26691 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26692 echo "_ACEOF"
26693 } >conf$$subs.sh ||
26694 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26695 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26696 { (exit 1); exit 1; }; }
26697 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26698 ac_delim='%!_!# '
26699 for ac_last_try in false false false false false :; do
26700 . ./conf$$subs.sh ||
26701 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26702 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26703 { (exit 1); exit 1; }; }
26705 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26706 break
26707 elif $ac_last_try; then
26708 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26709 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26710 { (exit 1); exit 1; }; }
26711 else
26712 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26714 done
26715 rm -f conf$$subs.sh
26717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26718 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26719 _ACEOF
26720 sed -n '
26722 s/^/S["/; s/!.*/"]=/
26725 s/^[^!]*!//
26726 :repl
26727 t repl
26728 s/'"$ac_delim"'$//
26729 t delim
26732 s/\(.\{148\}\).*/\1/
26733 t more1
26734 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26737 b repl
26738 :more1
26739 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26742 s/.\{148\}//
26743 t nl
26744 :delim
26746 s/\(.\{148\}\).*/\1/
26747 t more2
26748 s/["\\]/\\&/g; s/^/"/; s/$/"/
26751 :more2
26752 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26755 s/.\{148\}//
26756 t delim
26757 ' <conf$$subs.awk | sed '
26758 /^[^""]/{
26760 s/\n//
26762 ' >>$CONFIG_STATUS || ac_write_fail=1
26763 rm -f conf$$subs.awk
26764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26765 _ACAWK
26766 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26767 for (key in S) S_is_set[key] = 1
26768 FS = "\a"
26772 line = $ 0
26773 nfields = split(line, field, "@")
26774 substed = 0
26775 len = length(field[1])
26776 for (i = 2; i < nfields; i++) {
26777 key = field[i]
26778 keylen = length(key)
26779 if (S_is_set[key]) {
26780 value = S[key]
26781 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26782 len += length(value) + length(field[++i])
26783 substed = 1
26784 } else
26785 len += 1 + keylen
26788 print line
26791 _ACAWK
26792 _ACEOF
26793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26794 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26795 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26796 else
26798 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26799 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26800 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26801 { (exit 1); exit 1; }; }
26802 _ACEOF
26804 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26805 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26806 # trailing colons and then remove the whole line if VPATH becomes empty
26807 # (actually we leave an empty line to preserve line numbers).
26808 if test "x$srcdir" = x.; then
26809 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26810 s/:*\$(srcdir):*/:/
26811 s/:*\${srcdir}:*/:/
26812 s/:*@srcdir@:*/:/
26813 s/^\([^=]*=[ ]*\):*/\1/
26814 s/:*$//
26815 s/^[^=]*=[ ]*$//
26819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26820 fi # test -n "$CONFIG_FILES"
26822 # Set up the scripts for CONFIG_HEADERS section.
26823 # No need to generate them if there are no CONFIG_HEADERS.
26824 # This happens for instance with `./config.status Makefile'.
26825 if test -n "$CONFIG_HEADERS"; then
26826 cat >"$tmp/defines.awk" <<\_ACAWK ||
26827 BEGIN {
26828 _ACEOF
26830 # Transform confdefs.h into an awk script `defines.awk', embedded as
26831 # here-document in config.status, that substitutes the proper values into
26832 # config.h.in to produce config.h.
26834 # Create a delimiter string that does not exist in confdefs.h, to ease
26835 # handling of long lines.
26836 ac_delim='%!_!# '
26837 for ac_last_try in false false :; do
26838 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26839 if test -z "$ac_t"; then
26840 break
26841 elif $ac_last_try; then
26842 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26843 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26844 { (exit 1); exit 1; }; }
26845 else
26846 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26848 done
26850 # For the awk script, D is an array of macro values keyed by name,
26851 # likewise P contains macro parameters if any. Preserve backslash
26852 # newline sequences.
26854 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26855 sed -n '
26856 s/.\{148\}/&'"$ac_delim"'/g
26857 t rset
26858 :rset
26859 s/^[ ]*#[ ]*define[ ][ ]*/ /
26860 t def
26862 :def
26863 s/\\$//
26864 t bsnl
26865 s/["\\]/\\&/g
26866 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26867 D["\1"]=" \3"/p
26868 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26870 :bsnl
26871 s/["\\]/\\&/g
26872 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26873 D["\1"]=" \3\\\\\\n"\\/p
26874 t cont
26875 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26876 t cont
26878 :cont
26880 s/.\{148\}/&'"$ac_delim"'/g
26881 t clear
26882 :clear
26883 s/\\$//
26884 t bsnlc
26885 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26887 :bsnlc
26888 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26889 b cont
26890 ' <confdefs.h | sed '
26891 s/'"$ac_delim"'/"\\\
26892 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26895 for (key in D) D_is_set[key] = 1
26896 FS = "\a"
26898 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26899 line = \$ 0
26900 split(line, arg, " ")
26901 if (arg[1] == "#") {
26902 defundef = arg[2]
26903 mac1 = arg[3]
26904 } else {
26905 defundef = substr(arg[1], 2)
26906 mac1 = arg[2]
26908 split(mac1, mac2, "(") #)
26909 macro = mac2[1]
26910 if (D_is_set[macro]) {
26911 # Preserve the white space surrounding the "#".
26912 prefix = substr(line, 1, index(line, defundef) - 1)
26913 print prefix "define", macro P[macro] D[macro]
26914 next
26915 } else {
26916 # Replace #undef with comments. This is necessary, for example,
26917 # in the case of _POSIX_SOURCE, which is predefined and required
26918 # on some systems where configure will not decide to define it.
26919 if (defundef == "undef") {
26920 print "/*", line, "*/"
26921 next
26925 { print }
26926 _ACAWK
26927 _ACEOF
26928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26929 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26930 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26931 { (exit 1); exit 1; }; }
26932 fi # test -n "$CONFIG_HEADERS"
26935 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26936 shift
26937 for ac_tag
26939 case $ac_tag in
26940 :[FHLC]) ac_mode=$ac_tag; continue;;
26941 esac
26942 case $ac_mode$ac_tag in
26943 :[FHL]*:*);;
26944 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26945 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26946 { (exit 1); exit 1; }; };;
26947 :[FH]-) ac_tag=-:-;;
26948 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26949 esac
26950 ac_save_IFS=$IFS
26951 IFS=:
26952 set x $ac_tag
26953 IFS=$ac_save_IFS
26954 shift
26955 ac_file=$1
26956 shift
26958 case $ac_mode in
26959 :L) ac_source=$1;;
26960 :[FH])
26961 ac_file_inputs=
26962 for ac_f
26964 case $ac_f in
26965 -) ac_f="$tmp/stdin";;
26966 *) # Look for the file first in the build tree, then in the source tree
26967 # (if the path is not absolute). The absolute path cannot be DOS-style,
26968 # because $ac_f cannot contain `:'.
26969 test -f "$ac_f" ||
26970 case $ac_f in
26971 [\\/$]*) false;;
26972 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26973 esac ||
26974 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26975 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26976 { (exit 1); exit 1; }; };;
26977 esac
26978 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26979 ac_file_inputs="$ac_file_inputs '$ac_f'"
26980 done
26982 # Let's still pretend it is `configure' which instantiates (i.e., don't
26983 # use $as_me), people would be surprised to read:
26984 # /* config.h. Generated by config.status. */
26985 configure_input='Generated from '`
26986 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26987 `' by configure.'
26988 if test x"$ac_file" != x-; then
26989 configure_input="$ac_file. $configure_input"
26990 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26991 $as_echo "$as_me: creating $ac_file" >&6;}
26993 # Neutralize special characters interpreted by sed in replacement strings.
26994 case $configure_input in #(
26995 *\&* | *\|* | *\\* )
26996 ac_sed_conf_input=`$as_echo "$configure_input" |
26997 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26998 *) ac_sed_conf_input=$configure_input;;
26999 esac
27001 case $ac_tag in
27002 *:-:* | *:-) cat >"$tmp/stdin" \
27003 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27004 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27005 { (exit 1); exit 1; }; } ;;
27006 esac
27008 esac
27010 ac_dir=`$as_dirname -- "$ac_file" ||
27011 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27012 X"$ac_file" : 'X\(//\)[^/]' \| \
27013 X"$ac_file" : 'X\(//\)$' \| \
27014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27015 $as_echo X"$ac_file" |
27016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27017 s//\1/
27020 /^X\(\/\/\)[^/].*/{
27021 s//\1/
27024 /^X\(\/\/\)$/{
27025 s//\1/
27028 /^X\(\/\).*/{
27029 s//\1/
27032 s/.*/./; q'`
27033 { as_dir="$ac_dir"
27034 case $as_dir in #(
27035 -*) as_dir=./$as_dir;;
27036 esac
27037 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27038 as_dirs=
27039 while :; do
27040 case $as_dir in #(
27041 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27042 *) as_qdir=$as_dir;;
27043 esac
27044 as_dirs="'$as_qdir' $as_dirs"
27045 as_dir=`$as_dirname -- "$as_dir" ||
27046 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27047 X"$as_dir" : 'X\(//\)[^/]' \| \
27048 X"$as_dir" : 'X\(//\)$' \| \
27049 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27050 $as_echo X"$as_dir" |
27051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27052 s//\1/
27055 /^X\(\/\/\)[^/].*/{
27056 s//\1/
27059 /^X\(\/\/\)$/{
27060 s//\1/
27063 /^X\(\/\).*/{
27064 s//\1/
27067 s/.*/./; q'`
27068 test -d "$as_dir" && break
27069 done
27070 test -z "$as_dirs" || eval "mkdir $as_dirs"
27071 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27072 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27073 { (exit 1); exit 1; }; }; }
27074 ac_builddir=.
27076 case "$ac_dir" in
27077 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27079 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27080 # A ".." for each directory in $ac_dir_suffix.
27081 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27082 case $ac_top_builddir_sub in
27083 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27084 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27085 esac ;;
27086 esac
27087 ac_abs_top_builddir=$ac_pwd
27088 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27089 # for backward compatibility:
27090 ac_top_builddir=$ac_top_build_prefix
27092 case $srcdir in
27093 .) # We are building in place.
27094 ac_srcdir=.
27095 ac_top_srcdir=$ac_top_builddir_sub
27096 ac_abs_top_srcdir=$ac_pwd ;;
27097 [\\/]* | ?:[\\/]* ) # Absolute name.
27098 ac_srcdir=$srcdir$ac_dir_suffix;
27099 ac_top_srcdir=$srcdir
27100 ac_abs_top_srcdir=$srcdir ;;
27101 *) # Relative name.
27102 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27103 ac_top_srcdir=$ac_top_build_prefix$srcdir
27104 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27105 esac
27106 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27109 case $ac_mode in
27112 # CONFIG_FILE
27115 case $INSTALL in
27116 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27117 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27118 esac
27119 _ACEOF
27121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27122 # If the template does not know about datarootdir, expand it.
27123 # FIXME: This hack should be removed a few years after 2.60.
27124 ac_datarootdir_hack=; ac_datarootdir_seen=
27126 ac_sed_dataroot='
27127 /datarootdir/ {
27131 /@datadir@/p
27132 /@docdir@/p
27133 /@infodir@/p
27134 /@localedir@/p
27135 /@mandir@/p
27137 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27138 *datarootdir*) ac_datarootdir_seen=yes;;
27139 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27140 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27141 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27142 _ACEOF
27143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27144 ac_datarootdir_hack='
27145 s&@datadir@&$datadir&g
27146 s&@docdir@&$docdir&g
27147 s&@infodir@&$infodir&g
27148 s&@localedir@&$localedir&g
27149 s&@mandir@&$mandir&g
27150 s&\\\${datarootdir}&$datarootdir&g' ;;
27151 esac
27152 _ACEOF
27154 # Neutralize VPATH when `$srcdir' = `.'.
27155 # Shell code in configure.ac might set extrasub.
27156 # FIXME: do we really want to maintain this feature?
27157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27158 ac_sed_extra="$ac_vpsub
27159 $extrasub
27160 _ACEOF
27161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27164 s|@configure_input@|$ac_sed_conf_input|;t t
27165 s&@top_builddir@&$ac_top_builddir_sub&;t t
27166 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27167 s&@srcdir@&$ac_srcdir&;t t
27168 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27169 s&@top_srcdir@&$ac_top_srcdir&;t t
27170 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27171 s&@builddir@&$ac_builddir&;t t
27172 s&@abs_builddir@&$ac_abs_builddir&;t t
27173 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27174 s&@INSTALL@&$ac_INSTALL&;t t
27175 $ac_datarootdir_hack
27177 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27178 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27179 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27180 { (exit 1); exit 1; }; }
27182 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27183 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27184 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27185 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27186 which seems to be undefined. Please make sure it is defined." >&5
27187 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27188 which seems to be undefined. Please make sure it is defined." >&2;}
27190 rm -f "$tmp/stdin"
27191 case $ac_file in
27192 -) cat "$tmp/out" && rm -f "$tmp/out";;
27193 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27194 esac \
27195 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27196 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27197 { (exit 1); exit 1; }; }
27201 # CONFIG_HEADER
27203 if test x"$ac_file" != x-; then
27205 $as_echo "/* $configure_input */" \
27206 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27207 } >"$tmp/config.h" \
27208 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27209 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27210 { (exit 1); exit 1; }; }
27211 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27212 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27213 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27214 else
27215 rm -f "$ac_file"
27216 mv "$tmp/config.h" "$ac_file" \
27217 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27218 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27219 { (exit 1); exit 1; }; }
27221 else
27222 $as_echo "/* $configure_input */" \
27223 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27224 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27225 $as_echo "$as_me: error: could not create -" >&2;}
27226 { (exit 1); exit 1; }; }
27230 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27231 $as_echo "$as_me: executing $ac_file commands" >&6;}
27233 esac
27236 case $ac_file$ac_mode in
27237 "default":C)
27239 ### Make the necessary directories, if they don't exist.
27240 for dir in etc lisp ; do
27241 test -d ${dir} || mkdir ${dir}
27242 done
27244 # Build src/Makefile from ${srcdir}/src/Makefile.c
27245 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27246 # This must be done after src/config.h is built, since we rely on that file.
27248 echo creating src/epaths.h
27249 ${MAKE-make} epaths-force
27251 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27252 # `..' to `. .' unless invoked with -traditional
27254 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27255 CPPFLAGS="$CPPFLAGS -traditional"
27258 echo creating lib-src/Makefile
27259 ( cd lib-src
27260 rm -f junk.c junk1.c junk2.c
27261 sed -e '/start of cpp stuff/q' \
27262 < Makefile.c > junk1.c
27263 sed -e '1,/start of cpp stuff/d'\
27264 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27265 < Makefile.c > junk.c
27266 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27267 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27268 cat junk1.c junk2.c > Makefile.new
27269 rm -f junk.c junk1.c junk2.c
27270 chmod 444 Makefile.new
27271 mv -f Makefile.new Makefile
27274 echo creating src/Makefile
27275 ( cd src
27276 rm -f junk.c junk1.c junk2.c
27277 sed -e '/start of cpp stuff/q' \
27278 < Makefile.c > junk1.c
27279 sed -e '1,/start of cpp stuff/d'\
27280 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27281 < Makefile.c > junk.c
27282 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27283 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27284 cat junk1.c junk2.c > Makefile.new
27285 rm -f junk.c junk1.c junk2.c
27286 chmod 444 Makefile.new
27287 mv -f Makefile.new Makefile
27290 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27291 echo creating src/.gdbinit
27292 echo source $srcdir/src/.gdbinit > src/.gdbinit
27297 esac
27298 done # for ac_tag
27301 { (exit 0); exit 0; }
27302 _ACEOF
27303 chmod +x $CONFIG_STATUS
27304 ac_clean_files=$ac_clean_files_save
27306 test $ac_write_fail = 0 ||
27307 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27308 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27309 { (exit 1); exit 1; }; }
27312 # configure is writing to config.log, and then calls config.status.
27313 # config.status does its own redirection, appending to config.log.
27314 # Unfortunately, on DOS this fails, as config.log is still kept open
27315 # by configure, so config.status won't be able to write to it; its
27316 # output is simply discarded. So we exec the FD to /dev/null,
27317 # effectively closing config.log, so it can be properly (re)opened and
27318 # appended to by config.status. When coming back to configure, we
27319 # need to make the FD available again.
27320 if test "$no_create" != yes; then
27321 ac_cs_success=:
27322 ac_config_status_args=
27323 test "$silent" = yes &&
27324 ac_config_status_args="$ac_config_status_args --quiet"
27325 exec 5>/dev/null
27326 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27327 exec 5>>config.log
27328 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27329 # would make configure fail if this is the last instruction.
27330 $ac_cs_success || { (exit 1); exit 1; }
27332 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27333 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27334 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}