Implement Occur multi-line matches.
[emacs.git] / configure
blob7d0662ce34663498176d768e1d18001ab9e3ea99
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 #ifndef LIBX11_SYSTEM
5800 #define LIBX11_SYSTEM
5801 #endif
5802 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5804 #ifdef UNEXEC
5805 configure___ unexec=UNEXEC
5806 #else
5807 configure___ unexec=unexec.o
5808 #endif
5810 #ifdef SYSTEM_MALLOC
5811 configure___ system_malloc=yes
5812 #else
5813 configure___ system_malloc=no
5814 #endif
5816 #ifdef USE_MMAP_FOR_BUFFERS
5817 configure___ use_mmap_for_buffers=yes
5818 #else
5819 configure___ use_mmap_for_buffers=no
5820 #endif
5822 #ifndef C_DEBUG_SWITCH
5823 #define C_DEBUG_SWITCH -g
5824 #endif
5826 #ifndef C_OPTIMIZE_SWITCH
5827 #ifdef __GNUC__
5828 #define C_OPTIMIZE_SWITCH -O2
5829 #else
5830 #define C_OPTIMIZE_SWITCH -O
5831 #endif
5832 #endif
5834 #ifndef C_WARNINGS_SWITCH
5835 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5836 #endif
5838 #ifndef LD_SWITCH_MACHINE
5839 #define LD_SWITCH_MACHINE
5840 #endif
5842 #ifndef LD_SWITCH_SYSTEM
5843 #define LD_SWITCH_SYSTEM
5844 #endif
5846 #ifndef LD_SWITCH_X_SITE_AUX
5847 #define LD_SWITCH_X_SITE_AUX
5848 #endif
5850 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5851 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5853 #ifdef THIS_IS_CONFIGURE
5855 /* Get the CFLAGS for tests in configure. */
5856 #ifdef __GNUC__
5857 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5858 #else
5859 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5860 #endif
5862 #else /* not THIS_IS_CONFIGURE */
5864 /* Get the CFLAGS for real compilation. */
5865 #ifdef __GNUC__
5866 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5867 #else
5868 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5869 #endif
5871 #endif /* not THIS_IS_CONFIGURE */
5872 ' > ${tempcname}
5874 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5876 # The value of CPP is a quoted variable reference, so we need to do this
5877 # to get its actual value...
5878 CPP=`eval "echo $CPP"`
5879 eval `${CPP} -Isrc ${tempcname} \
5880 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5881 if test "x$SPECIFIED_CFLAGS" = x; then
5882 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5883 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5884 else
5885 REAL_CFLAGS="$CFLAGS"
5887 rm ${tempcname}
5889 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5891 ### Make sure subsequent tests use flags consistent with the build flags.
5893 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5894 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5895 else
5896 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5901 # Check whether --enable-largefile was given.
5902 if test "${enable_largefile+set}" = set; then
5903 enableval=$enable_largefile;
5906 if test "$enable_largefile" != no; then
5908 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5909 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5910 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5911 $as_echo_n "(cached) " >&6
5912 else
5913 ac_cv_sys_largefile_CC=no
5914 if test "$GCC" != yes; then
5915 ac_save_CC=$CC
5916 while :; do
5917 # IRIX 6.2 and later do not support large files by default,
5918 # so use the C compiler's -n32 option if that helps.
5919 cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 #include <sys/types.h>
5926 /* Check that off_t can represent 2**63 - 1 correctly.
5927 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5928 since some C++ compilers masquerading as C compilers
5929 incorrectly reject 9223372036854775807. */
5930 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5931 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5932 && LARGE_OFF_T % 2147483647 == 1)
5933 ? 1 : -1];
5935 main ()
5939 return 0;
5941 _ACEOF
5942 rm -f conftest.$ac_objext
5943 if { (ac_try="$ac_compile"
5944 case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947 esac
5948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5949 $as_echo "$ac_try_echo") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest.$ac_objext; then
5960 break
5961 else
5962 $as_echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5968 rm -f core conftest.err conftest.$ac_objext
5969 CC="$CC -n32"
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5972 case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975 esac
5976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5977 $as_echo "$ac_try_echo") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5988 ac_cv_sys_largefile_CC=' -n32'; break
5989 else
5990 $as_echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5996 rm -f core conftest.err conftest.$ac_objext
5997 break
5998 done
5999 CC=$ac_save_CC
6000 rm -f conftest.$ac_ext
6003 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6004 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6005 if test "$ac_cv_sys_largefile_CC" != no; then
6006 CC=$CC$ac_cv_sys_largefile_CC
6009 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6010 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6011 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6012 $as_echo_n "(cached) " >&6
6013 else
6014 while :; do
6015 cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h. */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6021 #include <sys/types.h>
6022 /* Check that off_t can represent 2**63 - 1 correctly.
6023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6024 since some C++ compilers masquerading as C compilers
6025 incorrectly reject 9223372036854775807. */
6026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6028 && LARGE_OFF_T % 2147483647 == 1)
6029 ? 1 : -1];
6031 main ()
6035 return 0;
6037 _ACEOF
6038 rm -f conftest.$ac_objext
6039 if { (ac_try="$ac_compile"
6040 case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043 esac
6044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6045 $as_echo "$ac_try_echo") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
6056 ac_cv_sys_file_offset_bits=no; break
6057 else
6058 $as_echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 #define _FILE_OFFSET_BITS 64
6072 #include <sys/types.h>
6073 /* Check that off_t can represent 2**63 - 1 correctly.
6074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6075 since some C++ compilers masquerading as C compilers
6076 incorrectly reject 9223372036854775807. */
6077 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6079 && LARGE_OFF_T % 2147483647 == 1)
6080 ? 1 : -1];
6082 main ()
6086 return 0;
6088 _ACEOF
6089 rm -f conftest.$ac_objext
6090 if { (ac_try="$ac_compile"
6091 case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094 esac
6095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6096 $as_echo "$ac_try_echo") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } && {
6104 test -z "$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 } && test -s conftest.$ac_objext; then
6107 ac_cv_sys_file_offset_bits=64; break
6108 else
6109 $as_echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 ac_cv_sys_file_offset_bits=unknown
6117 break
6118 done
6120 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6121 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6122 case $ac_cv_sys_file_offset_bits in #(
6123 no | unknown) ;;
6125 cat >>confdefs.h <<_ACEOF
6126 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6127 _ACEOF
6129 esac
6130 rm -rf conftest*
6131 if test $ac_cv_sys_file_offset_bits = unknown; then
6132 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6133 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6134 if test "${ac_cv_sys_large_files+set}" = set; then
6135 $as_echo_n "(cached) " >&6
6136 else
6137 while :; do
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #include <sys/types.h>
6145 /* Check that off_t can represent 2**63 - 1 correctly.
6146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6147 since some C++ compilers masquerading as C compilers
6148 incorrectly reject 9223372036854775807. */
6149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6151 && LARGE_OFF_T % 2147483647 == 1)
6152 ? 1 : -1];
6154 main ()
6158 return 0;
6160 _ACEOF
6161 rm -f conftest.$ac_objext
6162 if { (ac_try="$ac_compile"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6168 $as_echo "$ac_try_echo") >&5
6169 (eval "$ac_compile") 2>conftest.er1
6170 ac_status=$?
6171 grep -v '^ *+' conftest.er1 >conftest.err
6172 rm -f conftest.er1
6173 cat conftest.err >&5
6174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } && {
6176 test -z "$ac_c_werror_flag" ||
6177 test ! -s conftest.err
6178 } && test -s conftest.$ac_objext; then
6179 ac_cv_sys_large_files=no; break
6180 else
6181 $as_echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #define _LARGE_FILES 1
6195 #include <sys/types.h>
6196 /* Check that off_t can represent 2**63 - 1 correctly.
6197 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6198 since some C++ compilers masquerading as C compilers
6199 incorrectly reject 9223372036854775807. */
6200 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6201 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6202 && LARGE_OFF_T % 2147483647 == 1)
6203 ? 1 : -1];
6205 main ()
6209 return 0;
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6214 case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217 esac
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest.$ac_objext; then
6230 ac_cv_sys_large_files=1; break
6231 else
6232 $as_echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 ac_cv_sys_large_files=unknown
6240 break
6241 done
6243 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6244 $as_echo "$ac_cv_sys_large_files" >&6; }
6245 case $ac_cv_sys_large_files in #(
6246 no | unknown) ;;
6248 cat >>confdefs.h <<_ACEOF
6249 #define _LARGE_FILES $ac_cv_sys_large_files
6250 _ACEOF
6252 esac
6253 rm -rf conftest*
6259 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6260 ### be located in either /usr/lib64 or /usr/lib.
6261 ### In some rare cases, /usr/lib64 exists but does not contain the
6262 ### relevant files (bug#1287). Hence test for crtn.o.
6263 case "${canonical}" in
6264 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6265 if test -e /usr/lib64/crtn.o; then
6267 cat >>confdefs.h <<\_ACEOF
6268 #define HAVE_LIB64_DIR 1
6269 _ACEOF
6272 esac
6277 if test "${with_sound}" != "no"; then
6278 # Sound support for GNU/Linux and the free BSDs.
6282 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6287 $as_echo_n "checking for $ac_header... " >&6; }
6288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6289 $as_echo_n "(cached) " >&6
6291 ac_res=`eval 'as_val=${'$as_ac_Header'}
6292 $as_echo "$as_val"'`
6293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6294 $as_echo "$ac_res" >&6; }
6295 else
6296 # Is the header compilable?
6297 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6298 $as_echo_n "checking $ac_header usability... " >&6; }
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 $ac_includes_default
6306 #include <$ac_header>
6307 _ACEOF
6308 rm -f conftest.$ac_objext
6309 if { (ac_try="$ac_compile"
6310 case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313 esac
6314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6315 $as_echo "$ac_try_echo") >&5
6316 (eval "$ac_compile") 2>conftest.er1
6317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } && {
6323 test -z "$ac_c_werror_flag" ||
6324 test ! -s conftest.err
6325 } && test -s conftest.$ac_objext; then
6326 ac_header_compiler=yes
6327 else
6328 $as_echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 ac_header_compiler=no
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6336 $as_echo "$ac_header_compiler" >&6; }
6338 # Is the header present?
6339 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6340 $as_echo_n "checking $ac_header presence... " >&6; }
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 #include <$ac_header>
6348 _ACEOF
6349 if { (ac_try="$ac_cpp conftest.$ac_ext"
6350 case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6353 esac
6354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6355 $as_echo "$ac_try_echo") >&5
6356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } >/dev/null && {
6363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6364 test ! -s conftest.err
6365 }; then
6366 ac_header_preproc=yes
6367 else
6368 $as_echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 ac_header_preproc=no
6374 rm -f conftest.err conftest.$ac_ext
6375 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376 $as_echo "$ac_header_preproc" >&6; }
6378 # So? What about this header?
6379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6380 yes:no: )
6381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6382 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6385 ac_header_preproc=yes
6387 no:yes:* )
6388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6389 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6391 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6393 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6395 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6399 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6402 esac
6403 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6404 $as_echo_n "checking for $ac_header... " >&6; }
6405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6406 $as_echo_n "(cached) " >&6
6407 else
6408 eval "$as_ac_Header=\$ac_header_preproc"
6410 ac_res=`eval 'as_val=${'$as_ac_Header'}
6411 $as_echo "$as_val"'`
6412 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6413 $as_echo "$ac_res" >&6; }
6416 if test `eval 'as_val=${'$as_ac_Header'}
6417 $as_echo "$as_val"'` = yes; then
6418 cat >>confdefs.h <<_ACEOF
6419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6420 _ACEOF
6424 done
6426 # Emulation library used on NetBSD.
6427 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6428 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6429 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6430 $as_echo_n "(cached) " >&6
6431 else
6432 ac_check_lib_save_LIBS=$LIBS
6433 LIBS="-lossaudio $LIBS"
6434 cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h. */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6441 /* Override any GCC internal prototype to avoid an error.
6442 Use char because int might match the return type of a GCC
6443 builtin and then its argument prototype would still apply. */
6444 #ifdef __cplusplus
6445 extern "C"
6446 #endif
6447 char _oss_ioctl ();
6449 main ()
6451 return _oss_ioctl ();
6453 return 0;
6455 _ACEOF
6456 rm -f conftest.$ac_objext conftest$ac_exeext
6457 if { (ac_try="$ac_link"
6458 case "(($ac_try" in
6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6461 esac
6462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6463 $as_echo "$ac_try_echo") >&5
6464 (eval "$ac_link") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest$ac_exeext && {
6474 test "$cross_compiling" = yes ||
6475 $as_test_x conftest$ac_exeext
6476 }; then
6477 ac_cv_lib_ossaudio__oss_ioctl=yes
6478 else
6479 $as_echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_cv_lib_ossaudio__oss_ioctl=no
6485 rm -rf conftest.dSYM
6486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6487 conftest$ac_exeext conftest.$ac_ext
6488 LIBS=$ac_check_lib_save_LIBS
6490 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6491 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6492 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6493 LIBSOUND=-lossaudio
6494 else
6495 LIBSOUND=
6500 ALSA_REQUIRED=1.0.0
6501 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6503 succeeded=no
6505 # Extract the first word of "pkg-config", so it can be a program name with args.
6506 set dummy pkg-config; ac_word=$2
6507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6510 $as_echo_n "(cached) " >&6
6511 else
6512 case $PKG_CONFIG in
6513 [\\/]* | ?:[\\/]*)
6514 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6528 done
6529 done
6530 IFS=$as_save_IFS
6532 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6534 esac
6536 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6537 if test -n "$PKG_CONFIG"; then
6538 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6539 $as_echo "$PKG_CONFIG" >&6; }
6540 else
6541 { $as_echo "$as_me:$LINENO: result: no" >&5
6542 $as_echo "no" >&6; }
6547 if test "$PKG_CONFIG" = "no" ; then
6548 HAVE_ALSA=no
6549 else
6550 PKG_CONFIG_MIN_VERSION=0.9.0
6551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6552 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6553 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6555 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6556 { $as_echo "$as_me:$LINENO: result: yes" >&5
6557 $as_echo "yes" >&6; }
6558 succeeded=yes
6560 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6561 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6562 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6563 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6564 $as_echo "$ALSA_CFLAGS" >&6; }
6566 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6567 $as_echo_n "checking ALSA_LIBS... " >&6; }
6568 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6569 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6570 $as_echo "$ALSA_LIBS" >&6; }
6571 else
6572 { $as_echo "$as_me:$LINENO: result: no" >&5
6573 $as_echo "no" >&6; }
6574 ALSA_CFLAGS=""
6575 ALSA_LIBS=""
6576 ## If we have a custom action on failure, don't print errors, but
6577 ## do set a variable so people can do so.
6578 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6584 else
6585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6590 if test $succeeded = yes; then
6591 HAVE_ALSA=yes
6592 else
6593 HAVE_ALSA=no
6596 if test $HAVE_ALSA = yes; then
6597 SAVE_CFLAGS="$CFLAGS"
6598 SAVE_LDFLAGS="$LDFLAGS"
6599 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6600 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <asoundlib.h>
6609 main ()
6611 snd_lib_error_set_handler (0);
6613 return 0;
6615 _ACEOF
6616 rm -f conftest.$ac_objext
6617 if { (ac_try="$ac_compile"
6618 case "(($ac_try" in
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6621 esac
6622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6623 $as_echo "$ac_try_echo") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && {
6631 test -z "$ac_c_werror_flag" ||
6632 test ! -s conftest.err
6633 } && test -s conftest.$ac_objext; then
6634 emacs_alsa_normal=yes
6635 else
6636 $as_echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 emacs_alsa_normal=no
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 if test "$emacs_alsa_normal" != yes; then
6644 cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h. */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 #include <alsa/asoundlib.h>
6652 main ()
6654 snd_lib_error_set_handler (0);
6656 return 0;
6658 _ACEOF
6659 rm -f conftest.$ac_objext
6660 if { (ac_try="$ac_compile"
6661 case "(($ac_try" in
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6664 esac
6665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6666 $as_echo "$ac_try_echo") >&5
6667 (eval "$ac_compile") 2>conftest.er1
6668 ac_status=$?
6669 grep -v '^ *+' conftest.er1 >conftest.err
6670 rm -f conftest.er1
6671 cat conftest.err >&5
6672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && {
6674 test -z "$ac_c_werror_flag" ||
6675 test ! -s conftest.err
6676 } && test -s conftest.$ac_objext; then
6677 emacs_alsa_subdir=yes
6678 else
6679 $as_echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6682 emacs_alsa_subdir=no
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 if test "$emacs_alsa_subdir" != yes; then
6687 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6688 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6689 { (exit 1); exit 1; }; }
6691 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6694 CFLAGS="$SAVE_CFLAGS"
6695 LDFLAGS="$SAVE_LDFLAGS"
6696 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6697 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6699 cat >>confdefs.h <<\_ACEOF
6700 #define HAVE_ALSA 1
6701 _ACEOF
6732 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6733 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6734 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6735 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6736 sys/utsname.h pwd.h utmp.h
6738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6740 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6741 $as_echo_n "checking for $ac_header... " >&6; }
6742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6743 $as_echo_n "(cached) " >&6
6745 ac_res=`eval 'as_val=${'$as_ac_Header'}
6746 $as_echo "$as_val"'`
6747 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6748 $as_echo "$ac_res" >&6; }
6749 else
6750 # Is the header compilable?
6751 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6752 $as_echo_n "checking $ac_header usability... " >&6; }
6753 cat >conftest.$ac_ext <<_ACEOF
6754 /* confdefs.h. */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 $ac_includes_default
6760 #include <$ac_header>
6761 _ACEOF
6762 rm -f conftest.$ac_objext
6763 if { (ac_try="$ac_compile"
6764 case "(($ac_try" in
6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6767 esac
6768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6769 $as_echo "$ac_try_echo") >&5
6770 (eval "$ac_compile") 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest.$ac_objext; then
6780 ac_header_compiler=yes
6781 else
6782 $as_echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6785 ac_header_compiler=no
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6790 $as_echo "$ac_header_compiler" >&6; }
6792 # Is the header present?
6793 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6794 $as_echo_n "checking $ac_header presence... " >&6; }
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <$ac_header>
6802 _ACEOF
6803 if { (ac_try="$ac_cpp conftest.$ac_ext"
6804 case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6807 esac
6808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6809 $as_echo "$ac_try_echo") >&5
6810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } >/dev/null && {
6817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6818 test ! -s conftest.err
6819 }; then
6820 ac_header_preproc=yes
6821 else
6822 $as_echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6825 ac_header_preproc=no
6828 rm -f conftest.err conftest.$ac_ext
6829 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6830 $as_echo "$ac_header_preproc" >&6; }
6832 # So? What about this header?
6833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6834 yes:no: )
6835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6836 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6838 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6839 ac_header_preproc=yes
6841 no:yes:* )
6842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6843 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6845 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6847 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6849 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6851 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6853 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6856 esac
6857 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6858 $as_echo_n "checking for $ac_header... " >&6; }
6859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6860 $as_echo_n "(cached) " >&6
6861 else
6862 eval "$as_ac_Header=\$ac_header_preproc"
6864 ac_res=`eval 'as_val=${'$as_ac_Header'}
6865 $as_echo "$as_val"'`
6866 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6867 $as_echo "$ac_res" >&6; }
6870 if test `eval 'as_val=${'$as_ac_Header'}
6871 $as_echo "$as_val"'` = yes; then
6872 cat >>confdefs.h <<_ACEOF
6873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6874 _ACEOF
6878 done
6881 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6882 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 #include <sys/personality.h>
6891 main ()
6893 personality (PER_LINUX32)
6895 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext
6899 if { (ac_try="$ac_compile"
6900 case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903 esac
6904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6905 $as_echo "$ac_try_echo") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest.$ac_objext; then
6916 emacs_cv_personality_linux32=yes
6917 else
6918 $as_echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 emacs_cv_personality_linux32=no
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6926 $as_echo "$emacs_cv_personality_linux32" >&6; }
6928 if test $emacs_cv_personality_linux32 = yes; then
6930 cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_PERSONALITY_LINUX32 1
6932 _ACEOF
6937 for ac_header in term.h
6939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6940 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6941 $as_echo_n "checking for $ac_header... " >&6; }
6942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6943 $as_echo_n "(cached) " >&6
6944 else
6945 cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h. */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 #include <$ac_header>
6952 _ACEOF
6953 if { (ac_try="$ac_cpp conftest.$ac_ext"
6954 case "(($ac_try" in
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6957 esac
6958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6959 $as_echo "$ac_try_echo") >&5
6960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6961 ac_status=$?
6962 grep -v '^ *+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
6965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } >/dev/null && {
6967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6969 }; then
6970 eval "$as_ac_Header=yes"
6971 else
6972 $as_echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 eval "$as_ac_Header=no"
6978 rm -f conftest.err conftest.$ac_ext
6980 ac_res=`eval 'as_val=${'$as_ac_Header'}
6981 $as_echo "$as_val"'`
6982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6983 $as_echo "$ac_res" >&6; }
6984 if test `eval 'as_val=${'$as_ac_Header'}
6985 $as_echo "$as_val"'` = yes; then
6986 cat >>confdefs.h <<_ACEOF
6987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6988 _ACEOF
6992 done
6994 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6995 $as_echo_n "checking for ANSI C header files... " >&6; }
6996 if test "${ac_cv_header_stdc+set}" = set; then
6997 $as_echo_n "(cached) " >&6
6998 else
6999 cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h. */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 #include <stdlib.h>
7006 #include <stdarg.h>
7007 #include <string.h>
7008 #include <float.h>
7011 main ()
7015 return 0;
7017 _ACEOF
7018 rm -f conftest.$ac_objext
7019 if { (ac_try="$ac_compile"
7020 case "(($ac_try" in
7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7023 esac
7024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7025 $as_echo "$ac_try_echo") >&5
7026 (eval "$ac_compile") 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest.$ac_objext; then
7036 ac_cv_header_stdc=yes
7037 else
7038 $as_echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7041 ac_cv_header_stdc=no
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 if test $ac_cv_header_stdc = yes; then
7047 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7048 cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h. */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 #include <string.h>
7056 _ACEOF
7057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7058 $EGREP "memchr" >/dev/null 2>&1; then
7060 else
7061 ac_cv_header_stdc=no
7063 rm -f conftest*
7067 if test $ac_cv_header_stdc = yes; then
7068 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h. */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 #include <stdlib.h>
7077 _ACEOF
7078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7079 $EGREP "free" >/dev/null 2>&1; then
7081 else
7082 ac_cv_header_stdc=no
7084 rm -f conftest*
7088 if test $ac_cv_header_stdc = yes; then
7089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7090 if test "$cross_compiling" = yes; then
7092 else
7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 #include <ctype.h>
7100 #include <stdlib.h>
7101 #if ((' ' & 0x0FF) == 0x020)
7102 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7103 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7104 #else
7105 # define ISLOWER(c) \
7106 (('a' <= (c) && (c) <= 'i') \
7107 || ('j' <= (c) && (c) <= 'r') \
7108 || ('s' <= (c) && (c) <= 'z'))
7109 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7110 #endif
7112 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7114 main ()
7116 int i;
7117 for (i = 0; i < 256; i++)
7118 if (XOR (islower (i), ISLOWER (i))
7119 || toupper (i) != TOUPPER (i))
7120 return 2;
7121 return 0;
7123 _ACEOF
7124 rm -f conftest$ac_exeext
7125 if { (ac_try="$ac_link"
7126 case "(($ac_try" in
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7129 esac
7130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7131 $as_echo "$ac_try_echo") >&5
7132 (eval "$ac_link") 2>&5
7133 ac_status=$?
7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7136 { (case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7139 esac
7140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7141 $as_echo "$ac_try_echo") >&5
7142 (eval "$ac_try") 2>&5
7143 ac_status=$?
7144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7147 else
7148 $as_echo "$as_me: program exited with status $ac_status" >&5
7149 $as_echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 ( exit $ac_status )
7153 ac_cv_header_stdc=no
7155 rm -rf conftest.dSYM
7156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7162 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7163 $as_echo "$ac_cv_header_stdc" >&6; }
7164 if test $ac_cv_header_stdc = yes; then
7166 cat >>confdefs.h <<\_ACEOF
7167 #define STDC_HEADERS 1
7168 _ACEOF
7172 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7173 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7174 if test "${ac_cv_header_time+set}" = set; then
7175 $as_echo_n "(cached) " >&6
7176 else
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h. */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 #include <sys/types.h>
7184 #include <sys/time.h>
7185 #include <time.h>
7188 main ()
7190 if ((struct tm *) 0)
7191 return 0;
7193 return 0;
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (ac_try="$ac_compile"
7198 case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201 esac
7202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7203 $as_echo "$ac_try_echo") >&5
7204 (eval "$ac_compile") 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.$ac_objext; then
7214 ac_cv_header_time=yes
7215 else
7216 $as_echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7219 ac_cv_header_time=no
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7225 $as_echo "$ac_cv_header_time" >&6; }
7226 if test $ac_cv_header_time = yes; then
7228 cat >>confdefs.h <<\_ACEOF
7229 #define TIME_WITH_SYS_TIME 1
7230 _ACEOF
7234 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7235 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7236 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7237 $as_echo_n "(cached) " >&6
7238 else
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7247 main ()
7249 #ifndef sys_siglist
7250 (void) sys_siglist;
7251 #endif
7254 return 0;
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7259 case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262 esac
7263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7264 $as_echo "$ac_try_echo") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 ac_cv_have_decl_sys_siglist=yes
7276 else
7277 $as_echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 ac_cv_have_decl_sys_siglist=no
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7286 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7287 if test $ac_cv_have_decl_sys_siglist = yes; then
7289 cat >>confdefs.h <<_ACEOF
7290 #define HAVE_DECL_SYS_SIGLIST 1
7291 _ACEOF
7294 else
7295 cat >>confdefs.h <<_ACEOF
7296 #define HAVE_DECL_SYS_SIGLIST 0
7297 _ACEOF
7303 if test $ac_cv_have_decl_sys_siglist != yes; then
7304 # For Tru64, at least:
7305 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7306 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7307 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7308 $as_echo_n "(cached) " >&6
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 $ac_includes_default
7318 main ()
7320 #ifndef __sys_siglist
7321 (void) __sys_siglist;
7322 #endif
7325 return 0;
7327 _ACEOF
7328 rm -f conftest.$ac_objext
7329 if { (ac_try="$ac_compile"
7330 case "(($ac_try" in
7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7333 esac
7334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7335 $as_echo "$ac_try_echo") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 ac_cv_have_decl___sys_siglist=yes
7347 else
7348 $as_echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 ac_cv_have_decl___sys_siglist=no
7354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7357 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7358 if test $ac_cv_have_decl___sys_siglist = yes; then
7360 cat >>confdefs.h <<_ACEOF
7361 #define HAVE_DECL___SYS_SIGLIST 1
7362 _ACEOF
7365 else
7366 cat >>confdefs.h <<_ACEOF
7367 #define HAVE_DECL___SYS_SIGLIST 0
7368 _ACEOF
7374 if test $ac_cv_have_decl___sys_siglist = yes; then
7376 cat >>confdefs.h <<\_ACEOF
7377 #define sys_siglist __sys_siglist
7378 _ACEOF
7382 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7383 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7384 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7385 $as_echo_n "(cached) " >&6
7386 else
7387 cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 #include <sys/types.h>
7394 #include <sys/wait.h>
7395 #ifndef WEXITSTATUS
7396 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7397 #endif
7398 #ifndef WIFEXITED
7399 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7400 #endif
7403 main ()
7405 int s;
7406 wait (&s);
7407 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7409 return 0;
7411 _ACEOF
7412 rm -f conftest.$ac_objext
7413 if { (ac_try="$ac_compile"
7414 case "(($ac_try" in
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7417 esac
7418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7419 $as_echo "$ac_try_echo") >&5
7420 (eval "$ac_compile") 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest.$ac_objext; then
7430 ac_cv_header_sys_wait_h=yes
7431 else
7432 $as_echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_cv_header_sys_wait_h=no
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7441 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7442 if test $ac_cv_header_sys_wait_h = yes; then
7444 cat >>confdefs.h <<\_ACEOF
7445 #define HAVE_SYS_WAIT_H 1
7446 _ACEOF
7451 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7452 $as_echo_n "checking for struct utimbuf... " >&6; }
7453 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7454 $as_echo_n "(cached) " >&6
7455 else
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h. */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 #ifdef TIME_WITH_SYS_TIME
7463 #include <sys/time.h>
7464 #include <time.h>
7465 #else
7466 #ifdef HAVE_SYS_TIME_H
7467 #include <sys/time.h>
7468 #else
7469 #include <time.h>
7470 #endif
7471 #endif
7472 #ifdef HAVE_UTIME_H
7473 #include <utime.h>
7474 #endif
7476 main ()
7478 static struct utimbuf x; x.actime = x.modtime;
7480 return 0;
7482 _ACEOF
7483 rm -f conftest.$ac_objext
7484 if { (ac_try="$ac_compile"
7485 case "(($ac_try" in
7486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487 *) ac_try_echo=$ac_try;;
7488 esac
7489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7490 $as_echo "$ac_try_echo") >&5
7491 (eval "$ac_compile") 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest.$ac_objext; then
7501 emacs_cv_struct_utimbuf=yes
7502 else
7503 $as_echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7506 emacs_cv_struct_utimbuf=no
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7512 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7513 if test $emacs_cv_struct_utimbuf = yes; then
7515 cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_STRUCT_UTIMBUF 1
7517 _ACEOF
7521 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7522 $as_echo_n "checking return type of signal handlers... " >&6; }
7523 if test "${ac_cv_type_signal+set}" = set; then
7524 $as_echo_n "(cached) " >&6
7525 else
7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h. */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 #include <sys/types.h>
7533 #include <signal.h>
7536 main ()
7538 return *(signal (0, 0)) (0) == 1;
7540 return 0;
7542 _ACEOF
7543 rm -f conftest.$ac_objext
7544 if { (ac_try="$ac_compile"
7545 case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7550 $as_echo "$ac_try_echo") >&5
7551 (eval "$ac_compile") 2>conftest.er1
7552 ac_status=$?
7553 grep -v '^ *+' conftest.er1 >conftest.err
7554 rm -f conftest.er1
7555 cat conftest.err >&5
7556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } && {
7558 test -z "$ac_c_werror_flag" ||
7559 test ! -s conftest.err
7560 } && test -s conftest.$ac_objext; then
7561 ac_cv_type_signal=int
7562 else
7563 $as_echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7566 ac_cv_type_signal=void
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7572 $as_echo "$ac_cv_type_signal" >&6; }
7574 cat >>confdefs.h <<_ACEOF
7575 #define RETSIGTYPE $ac_cv_type_signal
7576 _ACEOF
7580 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7581 $as_echo_n "checking for speed_t... " >&6; }
7582 if test "${emacs_cv_speed_t+set}" = set; then
7583 $as_echo_n "(cached) " >&6
7584 else
7585 cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h. */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 #include <termios.h>
7593 main ()
7595 speed_t x = 1;
7597 return 0;
7599 _ACEOF
7600 rm -f conftest.$ac_objext
7601 if { (ac_try="$ac_compile"
7602 case "(($ac_try" in
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7605 esac
7606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7607 $as_echo "$ac_try_echo") >&5
7608 (eval "$ac_compile") 2>conftest.er1
7609 ac_status=$?
7610 grep -v '^ *+' conftest.er1 >conftest.err
7611 rm -f conftest.er1
7612 cat conftest.err >&5
7613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } && {
7615 test -z "$ac_c_werror_flag" ||
7616 test ! -s conftest.err
7617 } && test -s conftest.$ac_objext; then
7618 emacs_cv_speed_t=yes
7619 else
7620 $as_echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7623 emacs_cv_speed_t=no
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7629 $as_echo "$emacs_cv_speed_t" >&6; }
7630 if test $emacs_cv_speed_t = yes; then
7632 cat >>confdefs.h <<\_ACEOF
7633 #define HAVE_SPEED_T 1
7634 _ACEOF
7638 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7639 $as_echo_n "checking for struct timeval... " >&6; }
7640 if test "${emacs_cv_struct_timeval+set}" = set; then
7641 $as_echo_n "(cached) " >&6
7642 else
7643 cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h. */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 #ifdef TIME_WITH_SYS_TIME
7650 #include <sys/time.h>
7651 #include <time.h>
7652 #else
7653 #ifdef HAVE_SYS_TIME_H
7654 #include <sys/time.h>
7655 #else
7656 #include <time.h>
7657 #endif
7658 #endif
7660 main ()
7662 static struct timeval x; x.tv_sec = x.tv_usec;
7664 return 0;
7666 _ACEOF
7667 rm -f conftest.$ac_objext
7668 if { (ac_try="$ac_compile"
7669 case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672 esac
7673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7674 $as_echo "$ac_try_echo") >&5
7675 (eval "$ac_compile") 2>conftest.er1
7676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
7685 emacs_cv_struct_timeval=yes
7686 else
7687 $as_echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7690 emacs_cv_struct_timeval=no
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7696 $as_echo "$emacs_cv_struct_timeval" >&6; }
7697 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7698 if test $emacs_cv_struct_timeval = yes; then
7700 cat >>confdefs.h <<\_ACEOF
7701 #define HAVE_TIMEVAL 1
7702 _ACEOF
7706 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7707 $as_echo_n "checking for struct exception... " >&6; }
7708 if test "${emacs_cv_struct_exception+set}" = set; then
7709 $as_echo_n "(cached) " >&6
7710 else
7711 cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h. */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7717 #include <math.h>
7719 main ()
7721 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7723 return 0;
7725 _ACEOF
7726 rm -f conftest.$ac_objext
7727 if { (ac_try="$ac_compile"
7728 case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731 esac
7732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7733 $as_echo "$ac_try_echo") >&5
7734 (eval "$ac_compile") 2>conftest.er1
7735 ac_status=$?
7736 grep -v '^ *+' conftest.er1 >conftest.err
7737 rm -f conftest.er1
7738 cat conftest.err >&5
7739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } && {
7741 test -z "$ac_c_werror_flag" ||
7742 test ! -s conftest.err
7743 } && test -s conftest.$ac_objext; then
7744 emacs_cv_struct_exception=yes
7745 else
7746 $as_echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7749 emacs_cv_struct_exception=no
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7755 $as_echo "$emacs_cv_struct_exception" >&6; }
7756 HAVE_EXCEPTION=$emacs_cv_struct_exception
7757 if test $emacs_cv_struct_exception != yes; then
7759 cat >>confdefs.h <<\_ACEOF
7760 #define NO_MATHERR 1
7761 _ACEOF
7766 for ac_header in sys/socket.h
7768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7771 $as_echo_n "checking for $ac_header... " >&6; }
7772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7773 $as_echo_n "(cached) " >&6
7775 ac_res=`eval 'as_val=${'$as_ac_Header'}
7776 $as_echo "$as_val"'`
7777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7778 $as_echo "$ac_res" >&6; }
7779 else
7780 # Is the header compilable?
7781 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7782 $as_echo_n "checking $ac_header usability... " >&6; }
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h. */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7790 #include <$ac_header>
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7794 case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797 esac
7798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7799 $as_echo "$ac_try_echo") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7801 ac_status=$?
7802 grep -v '^ *+' conftest.er1 >conftest.err
7803 rm -f conftest.er1
7804 cat conftest.err >&5
7805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 ac_header_compiler=yes
7811 else
7812 $as_echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 ac_header_compiler=no
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7820 $as_echo "$ac_header_compiler" >&6; }
7822 # Is the header present?
7823 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7824 $as_echo_n "checking $ac_header presence... " >&6; }
7825 cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h. */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7831 #include <$ac_header>
7832 _ACEOF
7833 if { (ac_try="$ac_cpp conftest.$ac_ext"
7834 case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837 esac
7838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7839 $as_echo "$ac_try_echo") >&5
7840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7841 ac_status=$?
7842 grep -v '^ *+' conftest.er1 >conftest.err
7843 rm -f conftest.er1
7844 cat conftest.err >&5
7845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } >/dev/null && {
7847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7848 test ! -s conftest.err
7849 }; then
7850 ac_header_preproc=yes
7851 else
7852 $as_echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7855 ac_header_preproc=no
7858 rm -f conftest.err conftest.$ac_ext
7859 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7860 $as_echo "$ac_header_preproc" >&6; }
7862 # So? What about this header?
7863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7864 yes:no: )
7865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7866 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7868 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7869 ac_header_preproc=yes
7871 no:yes:* )
7872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7873 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7875 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7877 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7879 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7883 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7886 esac
7887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7888 $as_echo_n "checking for $ac_header... " >&6; }
7889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7890 $as_echo_n "(cached) " >&6
7891 else
7892 eval "$as_ac_Header=\$ac_header_preproc"
7894 ac_res=`eval 'as_val=${'$as_ac_Header'}
7895 $as_echo "$as_val"'`
7896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7897 $as_echo "$ac_res" >&6; }
7900 if test `eval 'as_val=${'$as_ac_Header'}
7901 $as_echo "$as_val"'` = yes; then
7902 cat >>confdefs.h <<_ACEOF
7903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7904 _ACEOF
7908 done
7911 for ac_header in net/if.h
7913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7915 $as_echo_n "checking for $ac_header... " >&6; }
7916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7917 $as_echo_n "(cached) " >&6
7918 else
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h. */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 $ac_includes_default
7926 #if HAVE_SYS_SOCKET_H
7927 #include <sys/socket.h>
7928 #endif
7930 #include <$ac_header>
7931 _ACEOF
7932 rm -f conftest.$ac_objext
7933 if { (ac_try="$ac_compile"
7934 case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7937 esac
7938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7939 $as_echo "$ac_try_echo") >&5
7940 (eval "$ac_compile") 2>conftest.er1
7941 ac_status=$?
7942 grep -v '^ *+' conftest.er1 >conftest.err
7943 rm -f conftest.er1
7944 cat conftest.err >&5
7945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && {
7947 test -z "$ac_c_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest.$ac_objext; then
7950 eval "$as_ac_Header=yes"
7951 else
7952 $as_echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7955 eval "$as_ac_Header=no"
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960 ac_res=`eval 'as_val=${'$as_ac_Header'}
7961 $as_echo "$as_val"'`
7962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7963 $as_echo "$ac_res" >&6; }
7964 if test `eval 'as_val=${'$as_ac_Header'}
7965 $as_echo "$as_val"'` = yes; then
7966 cat >>confdefs.h <<_ACEOF
7967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7968 _ACEOF
7972 done
7975 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7976 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7977 if test "${ac_cv_struct_tm+set}" = set; then
7978 $as_echo_n "(cached) " >&6
7979 else
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 #include <sys/types.h>
7987 #include <time.h>
7990 main ()
7992 struct tm tm;
7993 int *p = &tm.tm_sec;
7994 return !p;
7996 return 0;
7998 _ACEOF
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8001 case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004 esac
8005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8006 $as_echo "$ac_try_echo") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
8017 ac_cv_struct_tm=time.h
8018 else
8019 $as_echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 ac_cv_struct_tm=sys/time.h
8025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8028 $as_echo "$ac_cv_struct_tm" >&6; }
8029 if test $ac_cv_struct_tm = sys/time.h; then
8031 cat >>confdefs.h <<\_ACEOF
8032 #define TM_IN_SYS_TIME 1
8033 _ACEOF
8037 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8038 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8039 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8040 $as_echo_n "(cached) " >&6
8041 else
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <sys/types.h>
8049 #include <$ac_cv_struct_tm>
8053 main ()
8055 static struct tm ac_aggr;
8056 if (ac_aggr.tm_zone)
8057 return 0;
8059 return 0;
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8064 case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067 esac
8068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069 $as_echo "$ac_try_echo") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8080 ac_cv_member_struct_tm_tm_zone=yes
8081 else
8082 $as_echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h. */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 #include <sys/types.h>
8092 #include <$ac_cv_struct_tm>
8096 main ()
8098 static struct tm ac_aggr;
8099 if (sizeof ac_aggr.tm_zone)
8100 return 0;
8102 return 0;
8104 _ACEOF
8105 rm -f conftest.$ac_objext
8106 if { (ac_try="$ac_compile"
8107 case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110 esac
8111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8112 $as_echo "$ac_try_echo") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.$ac_objext; then
8123 ac_cv_member_struct_tm_tm_zone=yes
8124 else
8125 $as_echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 ac_cv_member_struct_tm_tm_zone=no
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8137 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8138 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8140 cat >>confdefs.h <<_ACEOF
8141 #define HAVE_STRUCT_TM_TM_ZONE 1
8142 _ACEOF
8147 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8149 cat >>confdefs.h <<\_ACEOF
8150 #define HAVE_TM_ZONE 1
8151 _ACEOF
8153 else
8154 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8155 $as_echo_n "checking whether tzname is declared... " >&6; }
8156 if test "${ac_cv_have_decl_tzname+set}" = set; then
8157 $as_echo_n "(cached) " >&6
8158 else
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h. */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 #include <time.h>
8168 main ()
8170 #ifndef tzname
8171 (void) tzname;
8172 #endif
8175 return 0;
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (ac_try="$ac_compile"
8180 case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183 esac
8184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185 $as_echo "$ac_try_echo") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_have_decl_tzname=yes
8197 else
8198 $as_echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 ac_cv_have_decl_tzname=no
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8207 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8208 if test $ac_cv_have_decl_tzname = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211 #define HAVE_DECL_TZNAME 1
8212 _ACEOF
8215 else
8216 cat >>confdefs.h <<_ACEOF
8217 #define HAVE_DECL_TZNAME 0
8218 _ACEOF
8224 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8225 $as_echo_n "checking for tzname... " >&6; }
8226 if test "${ac_cv_var_tzname+set}" = set; then
8227 $as_echo_n "(cached) " >&6
8228 else
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 #include <time.h>
8236 #if !HAVE_DECL_TZNAME
8237 extern char *tzname[];
8238 #endif
8241 main ()
8243 return tzname[0][0];
8245 return 0;
8247 _ACEOF
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (ac_try="$ac_link"
8250 case "(($ac_try" in
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8253 esac
8254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8255 $as_echo "$ac_try_echo") >&5
8256 (eval "$ac_link") 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest$ac_exeext && {
8266 test "$cross_compiling" = yes ||
8267 $as_test_x conftest$ac_exeext
8268 }; then
8269 ac_cv_var_tzname=yes
8270 else
8271 $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 ac_cv_var_tzname=no
8277 rm -rf conftest.dSYM
8278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8279 conftest$ac_exeext conftest.$ac_ext
8281 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8282 $as_echo "$ac_cv_var_tzname" >&6; }
8283 if test $ac_cv_var_tzname = yes; then
8285 cat >>confdefs.h <<\_ACEOF
8286 #define HAVE_TZNAME 1
8287 _ACEOF
8292 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8293 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8294 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8295 $as_echo_n "(cached) " >&6
8296 else
8297 cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h. */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 #include <time.h>
8306 main ()
8308 static struct tm ac_aggr;
8309 if (ac_aggr.tm_gmtoff)
8310 return 0;
8312 return 0;
8314 _ACEOF
8315 rm -f conftest.$ac_objext
8316 if { (ac_try="$ac_compile"
8317 case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320 esac
8321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8322 $as_echo "$ac_try_echo") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest.$ac_objext; then
8333 ac_cv_member_struct_tm_tm_gmtoff=yes
8334 else
8335 $as_echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 #include <time.h>
8347 main ()
8349 static struct tm ac_aggr;
8350 if (sizeof ac_aggr.tm_gmtoff)
8351 return 0;
8353 return 0;
8355 _ACEOF
8356 rm -f conftest.$ac_objext
8357 if { (ac_try="$ac_compile"
8358 case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361 esac
8362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8363 $as_echo "$ac_try_echo") >&5
8364 (eval "$ac_compile") 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest.$ac_objext; then
8374 ac_cv_member_struct_tm_tm_gmtoff=yes
8375 else
8376 $as_echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8379 ac_cv_member_struct_tm_tm_gmtoff=no
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8388 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8389 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8391 cat >>confdefs.h <<\_ACEOF
8392 #define HAVE_TM_GMTOFF 1
8393 _ACEOF
8397 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8398 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8399 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8400 $as_echo_n "(cached) " >&6
8401 else
8402 cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h. */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 $ac_includes_default
8409 #if HAVE_SYS_SOCKET_H
8410 #include <sys/socket.h>
8411 #endif
8412 #if HAVE_NET_IF_H
8413 #include <net/if.h>
8414 #endif
8417 main ()
8419 static struct ifreq ac_aggr;
8420 if (ac_aggr.ifr_flags)
8421 return 0;
8423 return 0;
8425 _ACEOF
8426 rm -f conftest.$ac_objext
8427 if { (ac_try="$ac_compile"
8428 case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431 esac
8432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433 $as_echo "$ac_try_echo") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8444 ac_cv_member_struct_ifreq_ifr_flags=yes
8445 else
8446 $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h. */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 $ac_includes_default
8456 #if HAVE_SYS_SOCKET_H
8457 #include <sys/socket.h>
8458 #endif
8459 #if HAVE_NET_IF_H
8460 #include <net/if.h>
8461 #endif
8464 main ()
8466 static struct ifreq ac_aggr;
8467 if (sizeof ac_aggr.ifr_flags)
8468 return 0;
8470 return 0;
8472 _ACEOF
8473 rm -f conftest.$ac_objext
8474 if { (ac_try="$ac_compile"
8475 case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478 esac
8479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8480 $as_echo "$ac_try_echo") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
8491 ac_cv_member_struct_ifreq_ifr_flags=yes
8492 else
8493 $as_echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8496 ac_cv_member_struct_ifreq_ifr_flags=no
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8505 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8506 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8508 cat >>confdefs.h <<_ACEOF
8509 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8510 _ACEOF
8514 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8515 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8516 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8517 $as_echo_n "(cached) " >&6
8518 else
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h. */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525 $ac_includes_default
8526 #if HAVE_SYS_SOCKET_H
8527 #include <sys/socket.h>
8528 #endif
8529 #if HAVE_NET_IF_H
8530 #include <net/if.h>
8531 #endif
8534 main ()
8536 static struct ifreq ac_aggr;
8537 if (ac_aggr.ifr_hwaddr)
8538 return 0;
8540 return 0;
8542 _ACEOF
8543 rm -f conftest.$ac_objext
8544 if { (ac_try="$ac_compile"
8545 case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548 esac
8549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550 $as_echo "$ac_try_echo") >&5
8551 (eval "$ac_compile") 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } && {
8558 test -z "$ac_c_werror_flag" ||
8559 test ! -s conftest.err
8560 } && test -s conftest.$ac_objext; then
8561 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8562 else
8563 $as_echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h. */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 $ac_includes_default
8573 #if HAVE_SYS_SOCKET_H
8574 #include <sys/socket.h>
8575 #endif
8576 #if HAVE_NET_IF_H
8577 #include <net/if.h>
8578 #endif
8581 main ()
8583 static struct ifreq ac_aggr;
8584 if (sizeof ac_aggr.ifr_hwaddr)
8585 return 0;
8587 return 0;
8589 _ACEOF
8590 rm -f conftest.$ac_objext
8591 if { (ac_try="$ac_compile"
8592 case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8595 esac
8596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8597 $as_echo "$ac_try_echo") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } && {
8605 test -z "$ac_c_werror_flag" ||
8606 test ! -s conftest.err
8607 } && test -s conftest.$ac_objext; then
8608 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8609 else
8610 $as_echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8613 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8622 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8623 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8625 cat >>confdefs.h <<_ACEOF
8626 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8627 _ACEOF
8631 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8632 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8633 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8634 $as_echo_n "(cached) " >&6
8635 else
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 #if HAVE_SYS_SOCKET_H
8644 #include <sys/socket.h>
8645 #endif
8646 #if HAVE_NET_IF_H
8647 #include <net/if.h>
8648 #endif
8651 main ()
8653 static struct ifreq ac_aggr;
8654 if (ac_aggr.ifr_netmask)
8655 return 0;
8657 return 0;
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8662 case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665 esac
8666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667 $as_echo "$ac_try_echo") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8669 ac_status=$?
8670 grep -v '^ *+' conftest.er1 >conftest.err
8671 rm -f conftest.er1
8672 cat conftest.err >&5
8673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8678 ac_cv_member_struct_ifreq_ifr_netmask=yes
8679 else
8680 $as_echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h. */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8689 $ac_includes_default
8690 #if HAVE_SYS_SOCKET_H
8691 #include <sys/socket.h>
8692 #endif
8693 #if HAVE_NET_IF_H
8694 #include <net/if.h>
8695 #endif
8698 main ()
8700 static struct ifreq ac_aggr;
8701 if (sizeof ac_aggr.ifr_netmask)
8702 return 0;
8704 return 0;
8706 _ACEOF
8707 rm -f conftest.$ac_objext
8708 if { (ac_try="$ac_compile"
8709 case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8712 esac
8713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8714 $as_echo "$ac_try_echo") >&5
8715 (eval "$ac_compile") 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } && {
8722 test -z "$ac_c_werror_flag" ||
8723 test ! -s conftest.err
8724 } && test -s conftest.$ac_objext; then
8725 ac_cv_member_struct_ifreq_ifr_netmask=yes
8726 else
8727 $as_echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8730 ac_cv_member_struct_ifreq_ifr_netmask=no
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8739 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8740 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8742 cat >>confdefs.h <<_ACEOF
8743 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8744 _ACEOF
8748 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8749 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8750 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8751 $as_echo_n "(cached) " >&6
8752 else
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h. */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 $ac_includes_default
8760 #if HAVE_SYS_SOCKET_H
8761 #include <sys/socket.h>
8762 #endif
8763 #if HAVE_NET_IF_H
8764 #include <net/if.h>
8765 #endif
8768 main ()
8770 static struct ifreq ac_aggr;
8771 if (ac_aggr.ifr_broadaddr)
8772 return 0;
8774 return 0;
8776 _ACEOF
8777 rm -f conftest.$ac_objext
8778 if { (ac_try="$ac_compile"
8779 case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8782 esac
8783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8784 $as_echo "$ac_try_echo") >&5
8785 (eval "$ac_compile") 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && {
8792 test -z "$ac_c_werror_flag" ||
8793 test ! -s conftest.err
8794 } && test -s conftest.$ac_objext; then
8795 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8796 else
8797 $as_echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 $ac_includes_default
8807 #if HAVE_SYS_SOCKET_H
8808 #include <sys/socket.h>
8809 #endif
8810 #if HAVE_NET_IF_H
8811 #include <net/if.h>
8812 #endif
8815 main ()
8817 static struct ifreq ac_aggr;
8818 if (sizeof ac_aggr.ifr_broadaddr)
8819 return 0;
8821 return 0;
8823 _ACEOF
8824 rm -f conftest.$ac_objext
8825 if { (ac_try="$ac_compile"
8826 case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8829 esac
8830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8831 $as_echo "$ac_try_echo") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest.$ac_objext; then
8842 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8843 else
8844 $as_echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8847 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8856 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8857 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8859 cat >>confdefs.h <<_ACEOF
8860 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8861 _ACEOF
8865 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8866 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8867 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8868 $as_echo_n "(cached) " >&6
8869 else
8870 cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h. */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 $ac_includes_default
8877 #if HAVE_SYS_SOCKET_H
8878 #include <sys/socket.h>
8879 #endif
8880 #if HAVE_NET_IF_H
8881 #include <net/if.h>
8882 #endif
8885 main ()
8887 static struct ifreq ac_aggr;
8888 if (ac_aggr.ifr_addr)
8889 return 0;
8891 return 0;
8893 _ACEOF
8894 rm -f conftest.$ac_objext
8895 if { (ac_try="$ac_compile"
8896 case "(($ac_try" in
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8899 esac
8900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8901 $as_echo "$ac_try_echo") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } && {
8909 test -z "$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8911 } && test -s conftest.$ac_objext; then
8912 ac_cv_member_struct_ifreq_ifr_addr=yes
8913 else
8914 $as_echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h. */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 $ac_includes_default
8924 #if HAVE_SYS_SOCKET_H
8925 #include <sys/socket.h>
8926 #endif
8927 #if HAVE_NET_IF_H
8928 #include <net/if.h>
8929 #endif
8932 main ()
8934 static struct ifreq ac_aggr;
8935 if (sizeof ac_aggr.ifr_addr)
8936 return 0;
8938 return 0;
8940 _ACEOF
8941 rm -f conftest.$ac_objext
8942 if { (ac_try="$ac_compile"
8943 case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946 esac
8947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8948 $as_echo "$ac_try_echo") >&5
8949 (eval "$ac_compile") 2>conftest.er1
8950 ac_status=$?
8951 grep -v '^ *+' conftest.er1 >conftest.err
8952 rm -f conftest.er1
8953 cat conftest.err >&5
8954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && {
8956 test -z "$ac_c_werror_flag" ||
8957 test ! -s conftest.err
8958 } && test -s conftest.$ac_objext; then
8959 ac_cv_member_struct_ifreq_ifr_addr=yes
8960 else
8961 $as_echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8964 ac_cv_member_struct_ifreq_ifr_addr=no
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8973 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8974 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8976 cat >>confdefs.h <<_ACEOF
8977 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8978 _ACEOF
8985 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8986 $as_echo_n "checking for function prototypes... " >&6; }
8987 if test "$ac_cv_prog_cc_c89" != no; then
8988 { $as_echo "$as_me:$LINENO: result: yes" >&5
8989 $as_echo "yes" >&6; }
8991 cat >>confdefs.h <<\_ACEOF
8992 #define PROTOTYPES 1
8993 _ACEOF
8996 cat >>confdefs.h <<\_ACEOF
8997 #define __PROTOTYPES 1
8998 _ACEOF
9000 else
9001 { $as_echo "$as_me:$LINENO: result: no" >&5
9002 $as_echo "no" >&6; }
9005 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9006 $as_echo_n "checking for working volatile... " >&6; }
9007 if test "${ac_cv_c_volatile+set}" = set; then
9008 $as_echo_n "(cached) " >&6
9009 else
9010 cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h. */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9018 main ()
9021 volatile int x;
9022 int * volatile y = (int *) 0;
9023 return !x && !y;
9025 return 0;
9027 _ACEOF
9028 rm -f conftest.$ac_objext
9029 if { (ac_try="$ac_compile"
9030 case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9033 esac
9034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9035 $as_echo "$ac_try_echo") >&5
9036 (eval "$ac_compile") 2>conftest.er1
9037 ac_status=$?
9038 grep -v '^ *+' conftest.er1 >conftest.err
9039 rm -f conftest.er1
9040 cat conftest.err >&5
9041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && {
9043 test -z "$ac_c_werror_flag" ||
9044 test ! -s conftest.err
9045 } && test -s conftest.$ac_objext; then
9046 ac_cv_c_volatile=yes
9047 else
9048 $as_echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9051 ac_cv_c_volatile=no
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9057 $as_echo "$ac_cv_c_volatile" >&6; }
9058 if test $ac_cv_c_volatile = no; then
9060 cat >>confdefs.h <<\_ACEOF
9061 #define volatile /**/
9062 _ACEOF
9066 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9067 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9068 if test "${ac_cv_c_const+set}" = set; then
9069 $as_echo_n "(cached) " >&6
9070 else
9071 cat >conftest.$ac_ext <<_ACEOF
9072 /* confdefs.h. */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9079 main ()
9081 /* FIXME: Include the comments suggested by Paul. */
9082 #ifndef __cplusplus
9083 /* Ultrix mips cc rejects this. */
9084 typedef int charset[2];
9085 const charset cs;
9086 /* SunOS 4.1.1 cc rejects this. */
9087 char const *const *pcpcc;
9088 char **ppc;
9089 /* NEC SVR4.0.2 mips cc rejects this. */
9090 struct point {int x, y;};
9091 static struct point const zero = {0,0};
9092 /* AIX XL C 1.02.0.0 rejects this.
9093 It does not let you subtract one const X* pointer from another in
9094 an arm of an if-expression whose if-part is not a constant
9095 expression */
9096 const char *g = "string";
9097 pcpcc = &g + (g ? g-g : 0);
9098 /* HPUX 7.0 cc rejects these. */
9099 ++pcpcc;
9100 ppc = (char**) pcpcc;
9101 pcpcc = (char const *const *) ppc;
9102 { /* SCO 3.2v4 cc rejects this. */
9103 char *t;
9104 char const *s = 0 ? (char *) 0 : (char const *) 0;
9106 *t++ = 0;
9107 if (s) return 0;
9109 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9110 int x[] = {25, 17};
9111 const int *foo = &x[0];
9112 ++foo;
9114 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9115 typedef const int *iptr;
9116 iptr p = 0;
9117 ++p;
9119 { /* AIX XL C 1.02.0.0 rejects this saying
9120 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9121 struct s { int j; const int *ap[3]; };
9122 struct s *b; b->j = 5;
9124 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9125 const int foo = 10;
9126 if (!foo) return 0;
9128 return !cs[0] && !zero.x;
9129 #endif
9132 return 0;
9134 _ACEOF
9135 rm -f conftest.$ac_objext
9136 if { (ac_try="$ac_compile"
9137 case "(($ac_try" in
9138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9139 *) ac_try_echo=$ac_try;;
9140 esac
9141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9142 $as_echo "$ac_try_echo") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_c_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.$ac_objext; then
9153 ac_cv_c_const=yes
9154 else
9155 $as_echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 ac_cv_c_const=no
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9163 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9164 $as_echo "$ac_cv_c_const" >&6; }
9165 if test $ac_cv_c_const = no; then
9167 cat >>confdefs.h <<\_ACEOF
9168 #define const /**/
9169 _ACEOF
9173 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9174 $as_echo_n "checking for void * support... " >&6; }
9175 if test "${emacs_cv_void_star+set}" = set; then
9176 $as_echo_n "(cached) " >&6
9177 else
9178 cat >conftest.$ac_ext <<_ACEOF
9179 /* confdefs.h. */
9180 _ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9186 main ()
9188 void * foo;
9190 return 0;
9192 _ACEOF
9193 rm -f conftest.$ac_objext
9194 if { (ac_try="$ac_compile"
9195 case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198 esac
9199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9200 $as_echo "$ac_try_echo") >&5
9201 (eval "$ac_compile") 2>conftest.er1
9202 ac_status=$?
9203 grep -v '^ *+' conftest.er1 >conftest.err
9204 rm -f conftest.er1
9205 cat conftest.err >&5
9206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } && {
9208 test -z "$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 } && test -s conftest.$ac_objext; then
9211 emacs_cv_void_star=yes
9212 else
9213 $as_echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 emacs_cv_void_star=no
9219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9222 $as_echo "$emacs_cv_void_star" >&6; }
9223 if test $emacs_cv_void_star = yes; then
9224 cat >>confdefs.h <<\_ACEOF
9225 #define POINTER_TYPE void
9226 _ACEOF
9228 else
9229 cat >>confdefs.h <<\_ACEOF
9230 #define POINTER_TYPE char
9231 _ACEOF
9239 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9240 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9241 set x ${MAKE-make}
9242 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9243 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9244 $as_echo_n "(cached) " >&6
9245 else
9246 cat >conftest.make <<\_ACEOF
9247 SHELL = /bin/sh
9248 all:
9249 @echo '@@@%%%=$(MAKE)=@@@%%%'
9250 _ACEOF
9251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9253 *@@@%%%=?*=@@@%%%*)
9254 eval ac_cv_prog_make_${ac_make}_set=yes;;
9256 eval ac_cv_prog_make_${ac_make}_set=no;;
9257 esac
9258 rm -f conftest.make
9260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9261 { $as_echo "$as_me:$LINENO: result: yes" >&5
9262 $as_echo "yes" >&6; }
9263 SET_MAKE=
9264 else
9265 { $as_echo "$as_me:$LINENO: result: no" >&5
9266 $as_echo "no" >&6; }
9267 SET_MAKE="MAKE=${MAKE-make}"
9271 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9272 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9273 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9274 HAVE_GNU_MAKE=no
9275 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9276 if test "x$testval" != x; then
9277 HAVE_GNU_MAKE=yes
9278 else
9279 ac_enable_autodepend=no
9281 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9282 $as_echo "$HAVE_GNU_MAKE" >&6; }
9283 if test $HAVE_GNU_MAKE = yes; then
9284 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9285 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9286 SAVE_CFLAGS="$CFLAGS"
9287 CFLAGS="$CFLAGS -MMD -MF deps.d"
9288 cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h. */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9296 main ()
9300 return 0;
9302 _ACEOF
9303 rm -f conftest.$ac_objext
9304 if { (ac_try="$ac_compile"
9305 case "(($ac_try" in
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9308 esac
9309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9310 $as_echo "$ac_try_echo") >&5
9311 (eval "$ac_compile") 2>conftest.er1
9312 ac_status=$?
9313 grep -v '^ *+' conftest.er1 >conftest.err
9314 rm -f conftest.er1
9315 cat conftest.err >&5
9316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } && {
9318 test -z "$ac_c_werror_flag" ||
9319 test ! -s conftest.err
9320 } && test -s conftest.$ac_objext; then
9322 else
9323 $as_echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 ac_enable_autodepend=no
9329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9330 CFLAGS="$SAVE_CFLAGS"
9331 test -f deps.d || ac_enable_autodepend=no
9332 rm -rf deps.d
9333 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9334 $as_echo "$ac_enable_autodepend" >&6; }
9336 if test $ac_enable_autodepend = yes; then
9338 cat >>confdefs.h <<\_ACEOF
9339 #define AUTO_DEPEND 1
9340 _ACEOF
9345 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9346 $as_echo_n "checking for long file names... " >&6; }
9347 if test "${ac_cv_sys_long_file_names+set}" = set; then
9348 $as_echo_n "(cached) " >&6
9349 else
9350 ac_cv_sys_long_file_names=yes
9351 # Test for long file names in all the places we know might matter:
9352 # . the current directory, where building will happen
9353 # $prefix/lib where we will be installing things
9354 # $exec_prefix/lib likewise
9355 # $TMPDIR if set, where it might want to write temporary files
9356 # /tmp where it might want to write temporary files
9357 # /var/tmp likewise
9358 # /usr/tmp likewise
9359 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9360 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9361 # in the usual case where exec_prefix is '${prefix}'.
9362 case $ac_dir in #(
9363 . | /* | ?:[\\/]*) ;; #(
9364 *) continue;;
9365 esac
9366 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9367 ac_xdir=$ac_dir/cf$$
9368 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9369 ac_tf1=$ac_xdir/conftest9012345
9370 ac_tf2=$ac_xdir/conftest9012346
9371 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9372 ac_cv_sys_long_file_names=no
9373 rm -f -r "$ac_xdir" 2>/dev/null
9374 test $ac_cv_sys_long_file_names = no && break
9375 done
9377 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9378 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9379 if test $ac_cv_sys_long_file_names = yes; then
9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_LONG_FILE_NAMES 1
9383 _ACEOF
9388 #### Choose a window system.
9390 { $as_echo "$as_me:$LINENO: checking for X" >&5
9391 $as_echo_n "checking for X... " >&6; }
9394 # Check whether --with-x was given.
9395 if test "${with_x+set}" = set; then
9396 withval=$with_x;
9399 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9400 if test "x$with_x" = xno; then
9401 # The user explicitly disabled X.
9402 have_x=disabled
9403 else
9404 case $x_includes,$x_libraries in #(
9405 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9406 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9407 { (exit 1); exit 1; }; };; #(
9408 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9409 $as_echo_n "(cached) " >&6
9410 else
9411 # One or both of the vars are not set, and there is no cached value.
9412 ac_x_includes=no ac_x_libraries=no
9413 rm -f -r conftest.dir
9414 if mkdir conftest.dir; then
9415 cd conftest.dir
9416 cat >Imakefile <<'_ACEOF'
9417 incroot:
9418 @echo incroot='${INCROOT}'
9419 usrlibdir:
9420 @echo usrlibdir='${USRLIBDIR}'
9421 libdir:
9422 @echo libdir='${LIBDIR}'
9423 _ACEOF
9424 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9425 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9426 for ac_var in incroot usrlibdir libdir; do
9427 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9428 done
9429 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9430 for ac_extension in a so sl dylib la dll; do
9431 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9432 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9433 ac_im_usrlibdir=$ac_im_libdir; break
9435 done
9436 # Screen out bogus values from the imake configuration. They are
9437 # bogus both because they are the default anyway, and because
9438 # using them would break gcc on systems where it needs fixed includes.
9439 case $ac_im_incroot in
9440 /usr/include) ac_x_includes= ;;
9441 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9442 esac
9443 case $ac_im_usrlibdir in
9444 /usr/lib | /lib) ;;
9445 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9446 esac
9448 cd ..
9449 rm -f -r conftest.dir
9452 # Standard set of common directories for X headers.
9453 # Check X11 before X11Rn because it is often a symlink to the current release.
9454 ac_x_header_dirs='
9455 /usr/X11/include
9456 /usr/X11R6/include
9457 /usr/X11R5/include
9458 /usr/X11R4/include
9460 /usr/include/X11
9461 /usr/include/X11R6
9462 /usr/include/X11R5
9463 /usr/include/X11R4
9465 /usr/local/X11/include
9466 /usr/local/X11R6/include
9467 /usr/local/X11R5/include
9468 /usr/local/X11R4/include
9470 /usr/local/include/X11
9471 /usr/local/include/X11R6
9472 /usr/local/include/X11R5
9473 /usr/local/include/X11R4
9475 /usr/X386/include
9476 /usr/x386/include
9477 /usr/XFree86/include/X11
9479 /usr/include
9480 /usr/local/include
9481 /usr/unsupported/include
9482 /usr/athena/include
9483 /usr/local/x11r5/include
9484 /usr/lpp/Xamples/include
9486 /usr/openwin/include
9487 /usr/openwin/share/include'
9489 if test "$ac_x_includes" = no; then
9490 # Guess where to find include files, by looking for Xlib.h.
9491 # First, try using that file with no special directory specified.
9492 cat >conftest.$ac_ext <<_ACEOF
9493 /* confdefs.h. */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 #include <X11/Xlib.h>
9499 _ACEOF
9500 if { (ac_try="$ac_cpp conftest.$ac_ext"
9501 case "(($ac_try" in
9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9504 esac
9505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9506 $as_echo "$ac_try_echo") >&5
9507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9508 ac_status=$?
9509 grep -v '^ *+' conftest.er1 >conftest.err
9510 rm -f conftest.er1
9511 cat conftest.err >&5
9512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } >/dev/null && {
9514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9515 test ! -s conftest.err
9516 }; then
9517 # We can compile using X headers with no special include directory.
9518 ac_x_includes=
9519 else
9520 $as_echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 for ac_dir in $ac_x_header_dirs; do
9524 if test -r "$ac_dir/X11/Xlib.h"; then
9525 ac_x_includes=$ac_dir
9526 break
9528 done
9531 rm -f conftest.err conftest.$ac_ext
9532 fi # $ac_x_includes = no
9534 if test "$ac_x_libraries" = no; then
9535 # Check for the libraries.
9536 # See if we find them without any special options.
9537 # Don't add to $LIBS permanently.
9538 ac_save_LIBS=$LIBS
9539 LIBS="-lX11 $LIBS"
9540 cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h. */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 #include <X11/Xlib.h>
9548 main ()
9550 XrmInitialize ()
9552 return 0;
9554 _ACEOF
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (ac_try="$ac_link"
9557 case "(($ac_try" in
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9560 esac
9561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9562 $as_echo "$ac_try_echo") >&5
9563 (eval "$ac_link") 2>conftest.er1
9564 ac_status=$?
9565 grep -v '^ *+' conftest.er1 >conftest.err
9566 rm -f conftest.er1
9567 cat conftest.err >&5
9568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } && {
9570 test -z "$ac_c_werror_flag" ||
9571 test ! -s conftest.err
9572 } && test -s conftest$ac_exeext && {
9573 test "$cross_compiling" = yes ||
9574 $as_test_x conftest$ac_exeext
9575 }; then
9576 LIBS=$ac_save_LIBS
9577 # We can link X programs with no special library path.
9578 ac_x_libraries=
9579 else
9580 $as_echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9583 LIBS=$ac_save_LIBS
9584 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9586 # Don't even attempt the hair of trying to link an X program!
9587 for ac_extension in a so sl dylib la dll; do
9588 if test -r "$ac_dir/libX11.$ac_extension"; then
9589 ac_x_libraries=$ac_dir
9590 break 2
9592 done
9593 done
9596 rm -rf conftest.dSYM
9597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9598 conftest$ac_exeext conftest.$ac_ext
9599 fi # $ac_x_libraries = no
9601 case $ac_x_includes,$ac_x_libraries in #(
9602 no,* | *,no | *\'*)
9603 # Didn't find X, or a directory has "'" in its name.
9604 ac_cv_have_x="have_x=no";; #(
9606 # Record where we found X for the cache.
9607 ac_cv_have_x="have_x=yes\
9608 ac_x_includes='$ac_x_includes'\
9609 ac_x_libraries='$ac_x_libraries'"
9610 esac
9612 ;; #(
9613 *) have_x=yes;;
9614 esac
9615 eval "$ac_cv_have_x"
9616 fi # $with_x != no
9618 if test "$have_x" != yes; then
9619 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9620 $as_echo "$have_x" >&6; }
9621 no_x=yes
9622 else
9623 # If each of the values was on the command line, it overrides each guess.
9624 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9625 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9626 # Update the cache value to reflect the command line values.
9627 ac_cv_have_x="have_x=yes\
9628 ac_x_includes='$x_includes'\
9629 ac_x_libraries='$x_libraries'"
9630 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9631 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9634 if test "$no_x" = yes; then
9635 window_system=none
9636 else
9637 window_system=x11
9640 ## Workaround for bug in autoconf <= 2.62.
9641 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9642 ## No need to do anything special for these standard directories.
9643 ## This is an experiment, take it out if it causes problems.
9644 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9646 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9650 if test "${x_libraries}" != NONE; then
9651 if test -n "${x_libraries}"; then
9652 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9653 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9655 x_default_search_path=""
9656 x_search_path=${x_libraries}
9657 if test -z "${x_search_path}"; then
9658 x_search_path=/usr/lib
9660 for x_library in `echo ${x_search_path}: | \
9661 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9662 x_search_path="\
9663 ${x_library}/X11/%L/%T/%N%C%S:\
9664 ${x_library}/X11/%l/%T/%N%C%S:\
9665 ${x_library}/X11/%T/%N%C%S:\
9666 ${x_library}/X11/%L/%T/%N%S:\
9667 ${x_library}/X11/%l/%T/%N%S:\
9668 ${x_library}/X11/%T/%N%S"
9669 if test x"${x_default_search_path}" = x; then
9670 x_default_search_path=${x_search_path}
9671 else
9672 x_default_search_path="${x_search_path}:${x_default_search_path}"
9674 done
9676 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9677 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9680 if test x"${x_includes}" = x; then
9681 bitmapdir=/usr/include/X11/bitmaps
9682 else
9683 # accumulate include directories that have X11 bitmap subdirectories
9684 bmd_acc="dummyval"
9685 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9686 if test -d "${bmd}/X11/bitmaps"; then
9687 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9689 if test -d "${bmd}/bitmaps"; then
9690 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9692 done
9693 if test ${bmd_acc} != "dummyval"; then
9694 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9698 HAVE_NS=no
9699 NS_IMPL_COCOA=no
9700 NS_IMPL_GNUSTEP=no
9701 tmp_CPPFLAGS="$CPPFLAGS"
9702 tmp_CFLAGS="$CFLAGS"
9703 CPPFLAGS="$CPPFLAGS -x objective-c"
9704 CFLAGS="$CFLAGS -x objective-c"
9705 if test "${with_ns}" != no; then
9706 if test "${opsys}" = darwin; then
9707 NS_IMPL_COCOA=yes
9708 ns_appdir=`pwd`/nextstep/Emacs.app
9709 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9710 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9711 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9712 elif test -f $GNUSTEP_CONFIG_FILE; then
9713 NS_IMPL_GNUSTEP=yes
9714 ns_appdir=`pwd`/nextstep/Emacs.app
9715 ns_appbindir=`pwd`/nextstep/Emacs.app
9716 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9717 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9718 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9719 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9720 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9721 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9722 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9723 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9724 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9726 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9727 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9728 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9729 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9730 $as_echo_n "(cached) " >&6
9732 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9733 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9734 else
9735 # Is the header compilable?
9736 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9737 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9738 cat >conftest.$ac_ext <<_ACEOF
9739 /* confdefs.h. */
9740 _ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 $ac_includes_default
9745 #include <AppKit/AppKit.h>
9746 _ACEOF
9747 rm -f conftest.$ac_objext
9748 if { (ac_try="$ac_compile"
9749 case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752 esac
9753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754 $as_echo "$ac_try_echo") >&5
9755 (eval "$ac_compile") 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && {
9762 test -z "$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9764 } && test -s conftest.$ac_objext; then
9765 ac_header_compiler=yes
9766 else
9767 $as_echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_compiler=no
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775 $as_echo "$ac_header_compiler" >&6; }
9777 # Is the header present?
9778 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9779 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 #include <AppKit/AppKit.h>
9787 _ACEOF
9788 if { (ac_try="$ac_cpp conftest.$ac_ext"
9789 case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792 esac
9793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9794 $as_echo "$ac_try_echo") >&5
9795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } >/dev/null && {
9802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 }; then
9805 ac_header_preproc=yes
9806 else
9807 $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_header_preproc=no
9813 rm -f conftest.err conftest.$ac_ext
9814 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9815 $as_echo "$ac_header_preproc" >&6; }
9817 # So? What about this header?
9818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9819 yes:no: )
9820 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9821 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9822 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9823 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9824 ac_header_preproc=yes
9826 no:yes:* )
9827 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9828 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9829 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9830 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9831 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9832 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9833 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9834 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9835 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9836 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9837 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9838 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9841 esac
9842 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9843 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9844 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9845 $as_echo_n "(cached) " >&6
9846 else
9847 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9849 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9850 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9853 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9854 HAVE_NS=yes
9855 else
9856 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9857 files are missing or cannot be compiled." >&5
9858 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9859 files are missing or cannot be compiled." >&2;}
9860 { (exit 1); exit 1; }; }
9864 NS_HAVE_NSINTEGER=yes
9865 cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h. */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9871 #include <Foundation/NSObjCRuntime.h>
9873 main ()
9875 NSInteger i;
9877 return 0;
9879 _ACEOF
9880 rm -f conftest.$ac_objext
9881 if { (ac_try="$ac_compile"
9882 case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9885 esac
9886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9887 $as_echo "$ac_try_echo") >&5
9888 (eval "$ac_compile") 2>conftest.er1
9889 ac_status=$?
9890 grep -v '^ *+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } && {
9895 test -z "$ac_c_werror_flag" ||
9896 test ! -s conftest.err
9897 } && test -s conftest.$ac_objext; then
9898 ns_have_nsinteger=yes
9899 else
9900 $as_echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ns_have_nsinteger=no
9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907 if test $ns_have_nsinteger = no; then
9908 NS_HAVE_NSINTEGER=no
9911 if test "${HAVE_NS}" = yes; then
9912 window_system=nextstep
9913 with_xft=no
9914 # set up packaging dirs
9915 exec_prefix=${ns_appbindir}
9916 libexecdir=${ns_appbindir}/libexec
9917 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9918 prefix=${ns_appresdir}
9921 CFLAGS="$tmp_CFLAGS"
9922 CPPFLAGS="$tmp_CPPFLAGS"
9924 case "${window_system}" in
9925 x11 )
9926 HAVE_X_WINDOWS=yes
9927 HAVE_X11=yes
9928 case "${with_x_toolkit}" in
9929 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9930 motif ) USE_X_TOOLKIT=MOTIF ;;
9931 gtk ) with_gtk=yes
9932 USE_X_TOOLKIT=none ;;
9933 no ) USE_X_TOOLKIT=none ;;
9934 * ) USE_X_TOOLKIT=maybe ;;
9935 esac
9937 nextstep | none )
9938 HAVE_X_WINDOWS=no
9939 HAVE_X11=no
9940 USE_X_TOOLKIT=none
9942 esac
9944 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9945 # Extract the first word of "X", so it can be a program name with args.
9946 set dummy X; ac_word=$2
9947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9948 $as_echo_n "checking for $ac_word... " >&6; }
9949 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9950 $as_echo_n "(cached) " >&6
9951 else
9952 if test -n "$HAVE_XSERVER"; then
9953 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9954 else
9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 for as_dir in $PATH
9958 IFS=$as_save_IFS
9959 test -z "$as_dir" && as_dir=.
9960 for ac_exec_ext in '' $ac_executable_extensions; do
9961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9962 ac_cv_prog_HAVE_XSERVER="true"
9963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 break 2
9966 done
9967 done
9968 IFS=$as_save_IFS
9970 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9973 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9974 if test -n "$HAVE_XSERVER"; then
9975 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9976 $as_echo "$HAVE_XSERVER" >&6; }
9977 else
9978 { $as_echo "$as_me:$LINENO: result: no" >&5
9979 $as_echo "no" >&6; }
9983 if test "$HAVE_XSERVER" = true ||
9984 test -n "$DISPLAY" ||
9985 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9986 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9987 were found. You should install the relevant development files for X
9988 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9989 sure you have development files for image handling, i.e.
9990 tiff, gif, jpeg, png and xpm.
9991 If you are sure you want Emacs compiled without X window support, pass
9992 --without-x
9993 to configure." >&5
9994 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9995 were found. You should install the relevant development files for X
9996 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9997 sure you have development files for image handling, i.e.
9998 tiff, gif, jpeg, png and xpm.
9999 If you are sure you want Emacs compiled without X window support, pass
10000 --without-x
10001 to configure." >&2;}
10002 { (exit 1); exit 1; }; }
10006 ### If we're using X11, we should use the X menu package.
10007 HAVE_MENUS=no
10008 case ${HAVE_X11} in
10009 yes ) HAVE_MENUS=yes ;;
10010 esac
10012 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10013 # Assume not, until told otherwise.
10014 GNU_MALLOC=yes
10015 doug_lea_malloc=yes
10016 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10017 $as_echo_n "checking for malloc_get_state... " >&6; }
10018 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10019 $as_echo_n "(cached) " >&6
10020 else
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10029 #define malloc_get_state innocuous_malloc_get_state
10031 /* System header to define __stub macros and hopefully few prototypes,
10032 which can conflict with char malloc_get_state (); below.
10033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034 <limits.h> exists even on freestanding compilers. */
10036 #ifdef __STDC__
10037 # include <limits.h>
10038 #else
10039 # include <assert.h>
10040 #endif
10042 #undef malloc_get_state
10044 /* Override any GCC internal prototype to avoid an error.
10045 Use char because int might match the return type of a GCC
10046 builtin and then its argument prototype would still apply. */
10047 #ifdef __cplusplus
10048 extern "C"
10049 #endif
10050 char malloc_get_state ();
10051 /* The GNU C library defines this for functions which it implements
10052 to always fail with ENOSYS. Some functions are actually named
10053 something starting with __ and the normal name is an alias. */
10054 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10055 choke me
10056 #endif
10059 main ()
10061 return malloc_get_state ();
10063 return 0;
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071 esac
10072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10073 $as_echo "$ac_try_echo") >&5
10074 (eval "$ac_link") 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && {
10081 test -z "$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10083 } && test -s conftest$ac_exeext && {
10084 test "$cross_compiling" = yes ||
10085 $as_test_x conftest$ac_exeext
10086 }; then
10087 ac_cv_func_malloc_get_state=yes
10088 else
10089 $as_echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 ac_cv_func_malloc_get_state=no
10095 rm -rf conftest.dSYM
10096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10097 conftest$ac_exeext conftest.$ac_ext
10099 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10100 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10101 if test $ac_cv_func_malloc_get_state = yes; then
10103 else
10104 doug_lea_malloc=no
10107 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10108 $as_echo_n "checking for malloc_set_state... " >&6; }
10109 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10110 $as_echo_n "(cached) " >&6
10111 else
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h. */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10120 #define malloc_set_state innocuous_malloc_set_state
10122 /* System header to define __stub macros and hopefully few prototypes,
10123 which can conflict with char malloc_set_state (); below.
10124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10125 <limits.h> exists even on freestanding compilers. */
10127 #ifdef __STDC__
10128 # include <limits.h>
10129 #else
10130 # include <assert.h>
10131 #endif
10133 #undef malloc_set_state
10135 /* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10138 #ifdef __cplusplus
10139 extern "C"
10140 #endif
10141 char malloc_set_state ();
10142 /* The GNU C library defines this for functions which it implements
10143 to always fail with ENOSYS. Some functions are actually named
10144 something starting with __ and the normal name is an alias. */
10145 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10146 choke me
10147 #endif
10150 main ()
10152 return malloc_set_state ();
10154 return 0;
10156 _ACEOF
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (ac_try="$ac_link"
10159 case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162 esac
10163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10164 $as_echo "$ac_try_echo") >&5
10165 (eval "$ac_link") 2>conftest.er1
10166 ac_status=$?
10167 grep -v '^ *+' conftest.er1 >conftest.err
10168 rm -f conftest.er1
10169 cat conftest.err >&5
10170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && {
10172 test -z "$ac_c_werror_flag" ||
10173 test ! -s conftest.err
10174 } && test -s conftest$ac_exeext && {
10175 test "$cross_compiling" = yes ||
10176 $as_test_x conftest$ac_exeext
10177 }; then
10178 ac_cv_func_malloc_set_state=yes
10179 else
10180 $as_echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_func_malloc_set_state=no
10186 rm -rf conftest.dSYM
10187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10188 conftest$ac_exeext conftest.$ac_ext
10190 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10191 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10192 if test $ac_cv_func_malloc_set_state = yes; then
10194 else
10195 doug_lea_malloc=no
10198 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10199 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10200 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10201 $as_echo_n "(cached) " >&6
10202 else
10203 cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h. */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 extern void (* __after_morecore_hook)();
10211 main ()
10213 __after_morecore_hook = 0
10215 return 0;
10217 _ACEOF
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223 esac
10224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10225 $as_echo "$ac_try_echo") >&5
10226 (eval "$ac_link") 2>conftest.er1
10227 ac_status=$?
10228 grep -v '^ *+' conftest.er1 >conftest.err
10229 rm -f conftest.er1
10230 cat conftest.err >&5
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && {
10233 test -z "$ac_c_werror_flag" ||
10234 test ! -s conftest.err
10235 } && test -s conftest$ac_exeext && {
10236 test "$cross_compiling" = yes ||
10237 $as_test_x conftest$ac_exeext
10238 }; then
10239 emacs_cv_var___after_morecore_hook=yes
10240 else
10241 $as_echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10244 emacs_cv_var___after_morecore_hook=no
10247 rm -rf conftest.dSYM
10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
10251 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10252 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10253 if test $emacs_cv_var___after_morecore_hook = no; then
10254 doug_lea_malloc=no
10256 if test "${system_malloc}" = "yes"; then
10257 GNU_MALLOC=no
10258 GNU_MALLOC_reason="
10259 (The GNU allocators don't work with this system configuration.)"
10261 if test "$doug_lea_malloc" = "yes" ; then
10262 if test "$GNU_MALLOC" = yes ; then
10263 GNU_MALLOC_reason="
10264 (Using Doug Lea's new malloc from the GNU C Library.)"
10267 cat >>confdefs.h <<\_ACEOF
10268 #define DOUG_LEA_MALLOC 1
10269 _ACEOF
10273 if test x"${REL_ALLOC}" = x; then
10274 REL_ALLOC=${GNU_MALLOC}
10280 for ac_header in stdlib.h unistd.h
10282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10284 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10285 $as_echo_n "checking for $ac_header... " >&6; }
10286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10287 $as_echo_n "(cached) " >&6
10289 ac_res=`eval 'as_val=${'$as_ac_Header'}
10290 $as_echo "$as_val"'`
10291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10292 $as_echo "$ac_res" >&6; }
10293 else
10294 # Is the header compilable?
10295 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10296 $as_echo_n "checking $ac_header usability... " >&6; }
10297 cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h. */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303 $ac_includes_default
10304 #include <$ac_header>
10305 _ACEOF
10306 rm -f conftest.$ac_objext
10307 if { (ac_try="$ac_compile"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311 esac
10312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10313 $as_echo "$ac_try_echo") >&5
10314 (eval "$ac_compile") 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } && {
10321 test -z "$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 } && test -s conftest.$ac_objext; then
10324 ac_header_compiler=yes
10325 else
10326 $as_echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_header_compiler=no
10332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10334 $as_echo "$ac_header_compiler" >&6; }
10336 # Is the header present?
10337 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10338 $as_echo_n "checking $ac_header presence... " >&6; }
10339 cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h. */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 #include <$ac_header>
10346 _ACEOF
10347 if { (ac_try="$ac_cpp conftest.$ac_ext"
10348 case "(($ac_try" in
10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10351 esac
10352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10353 $as_echo "$ac_try_echo") >&5
10354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } >/dev/null && {
10361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10362 test ! -s conftest.err
10363 }; then
10364 ac_header_preproc=yes
10365 else
10366 $as_echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10369 ac_header_preproc=no
10372 rm -f conftest.err conftest.$ac_ext
10373 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10374 $as_echo "$ac_header_preproc" >&6; }
10376 # So? What about this header?
10377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10378 yes:no: )
10379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10380 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10383 ac_header_preproc=yes
10385 no:yes:* )
10386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10387 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10389 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10391 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10393 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10395 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10397 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10400 esac
10401 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10402 $as_echo_n "checking for $ac_header... " >&6; }
10403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10404 $as_echo_n "(cached) " >&6
10405 else
10406 eval "$as_ac_Header=\$ac_header_preproc"
10408 ac_res=`eval 'as_val=${'$as_ac_Header'}
10409 $as_echo "$as_val"'`
10410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10411 $as_echo "$ac_res" >&6; }
10414 if test `eval 'as_val=${'$as_ac_Header'}
10415 $as_echo "$as_val"'` = yes; then
10416 cat >>confdefs.h <<_ACEOF
10417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10418 _ACEOF
10422 done
10425 for ac_func in getpagesize
10427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10428 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10429 $as_echo_n "checking for $ac_func... " >&6; }
10430 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10431 $as_echo_n "(cached) " >&6
10432 else
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10441 #define $ac_func innocuous_$ac_func
10443 /* System header to define __stub macros and hopefully few prototypes,
10444 which can conflict with char $ac_func (); below.
10445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10446 <limits.h> exists even on freestanding compilers. */
10448 #ifdef __STDC__
10449 # include <limits.h>
10450 #else
10451 # include <assert.h>
10452 #endif
10454 #undef $ac_func
10456 /* Override any GCC internal prototype to avoid an error.
10457 Use char because int might match the return type of a GCC
10458 builtin and then its argument prototype would still apply. */
10459 #ifdef __cplusplus
10460 extern "C"
10461 #endif
10462 char $ac_func ();
10463 /* The GNU C library defines this for functions which it implements
10464 to always fail with ENOSYS. Some functions are actually named
10465 something starting with __ and the normal name is an alias. */
10466 #if defined __stub_$ac_func || defined __stub___$ac_func
10467 choke me
10468 #endif
10471 main ()
10473 return $ac_func ();
10475 return 0;
10477 _ACEOF
10478 rm -f conftest.$ac_objext conftest$ac_exeext
10479 if { (ac_try="$ac_link"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10485 $as_echo "$ac_try_echo") >&5
10486 (eval "$ac_link") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext && {
10496 test "$cross_compiling" = yes ||
10497 $as_test_x conftest$ac_exeext
10498 }; then
10499 eval "$as_ac_var=yes"
10500 else
10501 $as_echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 eval "$as_ac_var=no"
10507 rm -rf conftest.dSYM
10508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10509 conftest$ac_exeext conftest.$ac_ext
10511 ac_res=`eval 'as_val=${'$as_ac_var'}
10512 $as_echo "$as_val"'`
10513 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10514 $as_echo "$ac_res" >&6; }
10515 if test `eval 'as_val=${'$as_ac_var'}
10516 $as_echo "$as_val"'` = yes; then
10517 cat >>confdefs.h <<_ACEOF
10518 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10519 _ACEOF
10522 done
10524 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10525 $as_echo_n "checking for working mmap... " >&6; }
10526 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10527 $as_echo_n "(cached) " >&6
10528 else
10529 if test "$cross_compiling" = yes; then
10530 ac_cv_func_mmap_fixed_mapped=no
10531 else
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h. */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 $ac_includes_default
10539 /* malloc might have been renamed as rpl_malloc. */
10540 #undef malloc
10542 /* Thanks to Mike Haertel and Jim Avera for this test.
10543 Here is a matrix of mmap possibilities:
10544 mmap private not fixed
10545 mmap private fixed at somewhere currently unmapped
10546 mmap private fixed at somewhere already mapped
10547 mmap shared not fixed
10548 mmap shared fixed at somewhere currently unmapped
10549 mmap shared fixed at somewhere already mapped
10550 For private mappings, we should verify that changes cannot be read()
10551 back from the file, nor mmap's back from the file at a different
10552 address. (There have been systems where private was not correctly
10553 implemented like the infamous i386 svr4.0, and systems where the
10554 VM page cache was not coherent with the file system buffer cache
10555 like early versions of FreeBSD and possibly contemporary NetBSD.)
10556 For shared mappings, we should conversely verify that changes get
10557 propagated back to all the places they're supposed to be.
10559 Grep wants private fixed already mapped.
10560 The main things grep needs to know about mmap are:
10561 * does it exist and is it safe to write into the mmap'd area
10562 * how to use it (BSD variants) */
10564 #include <fcntl.h>
10565 #include <sys/mman.h>
10567 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10568 char *malloc ();
10569 #endif
10571 /* This mess was copied from the GNU getpagesize.h. */
10572 #ifndef HAVE_GETPAGESIZE
10573 /* Assume that all systems that can run configure have sys/param.h. */
10574 # ifndef HAVE_SYS_PARAM_H
10575 # define HAVE_SYS_PARAM_H 1
10576 # endif
10578 # ifdef _SC_PAGESIZE
10579 # define getpagesize() sysconf(_SC_PAGESIZE)
10580 # else /* no _SC_PAGESIZE */
10581 # ifdef HAVE_SYS_PARAM_H
10582 # include <sys/param.h>
10583 # ifdef EXEC_PAGESIZE
10584 # define getpagesize() EXEC_PAGESIZE
10585 # else /* no EXEC_PAGESIZE */
10586 # ifdef NBPG
10587 # define getpagesize() NBPG * CLSIZE
10588 # ifndef CLSIZE
10589 # define CLSIZE 1
10590 # endif /* no CLSIZE */
10591 # else /* no NBPG */
10592 # ifdef NBPC
10593 # define getpagesize() NBPC
10594 # else /* no NBPC */
10595 # ifdef PAGESIZE
10596 # define getpagesize() PAGESIZE
10597 # endif /* PAGESIZE */
10598 # endif /* no NBPC */
10599 # endif /* no NBPG */
10600 # endif /* no EXEC_PAGESIZE */
10601 # else /* no HAVE_SYS_PARAM_H */
10602 # define getpagesize() 8192 /* punt totally */
10603 # endif /* no HAVE_SYS_PARAM_H */
10604 # endif /* no _SC_PAGESIZE */
10606 #endif /* no HAVE_GETPAGESIZE */
10609 main ()
10611 char *data, *data2, *data3;
10612 int i, pagesize;
10613 int fd;
10615 pagesize = getpagesize ();
10617 /* First, make a file with some known garbage in it. */
10618 data = (char *) malloc (pagesize);
10619 if (!data)
10620 return 1;
10621 for (i = 0; i < pagesize; ++i)
10622 *(data + i) = rand ();
10623 umask (0);
10624 fd = creat ("conftest.mmap", 0600);
10625 if (fd < 0)
10626 return 1;
10627 if (write (fd, data, pagesize) != pagesize)
10628 return 1;
10629 close (fd);
10631 /* Next, try to mmap the file at a fixed address which already has
10632 something else allocated at it. If we can, also make sure that
10633 we see the same garbage. */
10634 fd = open ("conftest.mmap", O_RDWR);
10635 if (fd < 0)
10636 return 1;
10637 data2 = (char *) malloc (2 * pagesize);
10638 if (!data2)
10639 return 1;
10640 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10641 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10642 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10643 return 1;
10644 for (i = 0; i < pagesize; ++i)
10645 if (*(data + i) != *(data2 + i))
10646 return 1;
10648 /* Finally, make sure that changes to the mapped area do not
10649 percolate back to the file as seen by read(). (This is a bug on
10650 some variants of i386 svr4.0.) */
10651 for (i = 0; i < pagesize; ++i)
10652 *(data2 + i) = *(data2 + i) + 1;
10653 data3 = (char *) malloc (pagesize);
10654 if (!data3)
10655 return 1;
10656 if (read (fd, data3, pagesize) != pagesize)
10657 return 1;
10658 for (i = 0; i < pagesize; ++i)
10659 if (*(data + i) != *(data3 + i))
10660 return 1;
10661 close (fd);
10662 return 0;
10664 _ACEOF
10665 rm -f conftest$ac_exeext
10666 if { (ac_try="$ac_link"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670 esac
10671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10672 $as_echo "$ac_try_echo") >&5
10673 (eval "$ac_link") 2>&5
10674 ac_status=$?
10675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10677 { (case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680 esac
10681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10682 $as_echo "$ac_try_echo") >&5
10683 (eval "$ac_try") 2>&5
10684 ac_status=$?
10685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 ac_cv_func_mmap_fixed_mapped=yes
10688 else
10689 $as_echo "$as_me: program exited with status $ac_status" >&5
10690 $as_echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 ( exit $ac_status )
10694 ac_cv_func_mmap_fixed_mapped=no
10696 rm -rf conftest.dSYM
10697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10702 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10703 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10704 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10706 cat >>confdefs.h <<\_ACEOF
10707 #define HAVE_MMAP 1
10708 _ACEOF
10711 rm -f conftest.mmap
10713 if test $use_mmap_for_buffers = yes; then
10714 REL_ALLOC=no
10717 LIBS="$libsrc_libs $LIBS"
10720 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10721 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10722 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10723 $as_echo_n "(cached) " >&6
10724 else
10725 ac_check_lib_save_LIBS=$LIBS
10726 LIBS="-ldnet $LIBS"
10727 cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h. */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10734 /* Override any GCC internal prototype to avoid an error.
10735 Use char because int might match the return type of a GCC
10736 builtin and then its argument prototype would still apply. */
10737 #ifdef __cplusplus
10738 extern "C"
10739 #endif
10740 char dnet_ntoa ();
10742 main ()
10744 return dnet_ntoa ();
10746 return 0;
10748 _ACEOF
10749 rm -f conftest.$ac_objext conftest$ac_exeext
10750 if { (ac_try="$ac_link"
10751 case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754 esac
10755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10756 $as_echo "$ac_try_echo") >&5
10757 (eval "$ac_link") 2>conftest.er1
10758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && {
10764 test -z "$ac_c_werror_flag" ||
10765 test ! -s conftest.err
10766 } && test -s conftest$ac_exeext && {
10767 test "$cross_compiling" = yes ||
10768 $as_test_x conftest$ac_exeext
10769 }; then
10770 ac_cv_lib_dnet_dnet_ntoa=yes
10771 else
10772 $as_echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_cv_lib_dnet_dnet_ntoa=no
10778 rm -rf conftest.dSYM
10779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10780 conftest$ac_exeext conftest.$ac_ext
10781 LIBS=$ac_check_lib_save_LIBS
10783 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10784 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10785 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10786 cat >>confdefs.h <<_ACEOF
10787 #define HAVE_LIBDNET 1
10788 _ACEOF
10790 LIBS="-ldnet $LIBS"
10795 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10796 $as_echo_n "checking for main in -lXbsd... " >&6; }
10797 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10798 $as_echo_n "(cached) " >&6
10799 else
10800 ac_check_lib_save_LIBS=$LIBS
10801 LIBS="-lXbsd $LIBS"
10802 cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h. */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10811 main ()
10813 return main ();
10815 return 0;
10817 _ACEOF
10818 rm -f conftest.$ac_objext conftest$ac_exeext
10819 if { (ac_try="$ac_link"
10820 case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823 esac
10824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825 $as_echo "$ac_try_echo") >&5
10826 (eval "$ac_link") 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } && {
10833 test -z "$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10835 } && test -s conftest$ac_exeext && {
10836 test "$cross_compiling" = yes ||
10837 $as_test_x conftest$ac_exeext
10838 }; then
10839 ac_cv_lib_Xbsd_main=yes
10840 else
10841 $as_echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10844 ac_cv_lib_Xbsd_main=no
10847 rm -rf conftest.dSYM
10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10852 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10853 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10854 if test $ac_cv_lib_Xbsd_main = yes; then
10855 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10860 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10861 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10862 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10863 $as_echo_n "(cached) " >&6
10864 else
10865 ac_check_lib_save_LIBS=$LIBS
10866 LIBS="-lpthreads $LIBS"
10867 cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h. */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char cma_open ();
10882 main ()
10884 return cma_open ();
10886 return 0;
10888 _ACEOF
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10896 $as_echo "$ac_try_echo") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext && {
10907 test "$cross_compiling" = yes ||
10908 $as_test_x conftest$ac_exeext
10909 }; then
10910 ac_cv_lib_pthreads_cma_open=yes
10911 else
10912 $as_echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 ac_cv_lib_pthreads_cma_open=no
10918 rm -rf conftest.dSYM
10919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10920 conftest$ac_exeext conftest.$ac_ext
10921 LIBS=$ac_check_lib_save_LIBS
10923 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10924 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10925 if test $ac_cv_lib_pthreads_cma_open = yes; then
10926 cat >>confdefs.h <<_ACEOF
10927 #define HAVE_LIBPTHREADS 1
10928 _ACEOF
10930 LIBS="-lpthreads $LIBS"
10936 case ${host_os} in
10937 aix*)
10938 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10939 $as_echo_n "checking for -bbigtoc option... " >&6; }
10940 if test "${gdb_cv_bigtoc+set}" = set; then
10941 $as_echo_n "(cached) " >&6
10942 else
10944 case $GCC in
10945 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10946 *) gdb_cv_bigtoc=-bbigtoc ;;
10947 esac
10949 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10958 main ()
10960 int i;
10962 return 0;
10964 _ACEOF
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (ac_try="$ac_link"
10967 case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970 esac
10971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10972 $as_echo "$ac_try_echo") >&5
10973 (eval "$ac_link") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext && {
10983 test "$cross_compiling" = yes ||
10984 $as_test_x conftest$ac_exeext
10985 }; then
10987 else
10988 $as_echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10991 gdb_cv_bigtoc=
10994 rm -rf conftest.dSYM
10995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10996 conftest$ac_exeext conftest.$ac_ext
10999 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11000 $as_echo "$gdb_cv_bigtoc" >&6; }
11002 esac
11004 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11005 # used for the tests that follow. We set them back to REAL_CFLAGS and
11006 # REAL_CPPFLAGS later on.
11008 REAL_CPPFLAGS="$CPPFLAGS"
11010 if test "${HAVE_X11}" = "yes"; then
11011 DEFS="$C_SWITCH_X_SITE $DEFS"
11012 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11013 LIBS="$LIBX $LIBS"
11014 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11015 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11017 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11018 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11019 # but it's more convenient here to set LD_RUN_PATH
11020 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11021 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11022 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11023 export LD_RUN_PATH
11026 if test "${opsys}" = "gnu-linux"; then
11027 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11028 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11037 main ()
11039 XOpenDisplay ("foo");
11041 return 0;
11043 _ACEOF
11044 rm -f conftest.$ac_objext conftest$ac_exeext
11045 if { (ac_try="$ac_link"
11046 case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049 esac
11050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11051 $as_echo "$ac_try_echo") >&5
11052 (eval "$ac_link") 2>conftest.er1
11053 ac_status=$?
11054 grep -v '^ *+' conftest.er1 >conftest.err
11055 rm -f conftest.er1
11056 cat conftest.err >&5
11057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } && {
11059 test -z "$ac_c_werror_flag" ||
11060 test ! -s conftest.err
11061 } && test -s conftest$ac_exeext && {
11062 test "$cross_compiling" = yes ||
11063 $as_test_x conftest$ac_exeext
11064 }; then
11065 xlinux_first_failure=no
11066 else
11067 $as_echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11070 xlinux_first_failure=yes
11073 rm -rf conftest.dSYM
11074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11075 conftest$ac_exeext conftest.$ac_ext
11076 if test "${xlinux_first_failure}" = "yes"; then
11077 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11078 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11079 OLD_CPPFLAGS="$CPPFLAGS"
11080 OLD_LIBS="$LIBS"
11081 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11082 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11083 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11084 LIBS="$LIBS -b i486-linuxaout"
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11093 main ()
11095 XOpenDisplay ("foo");
11097 return 0;
11099 _ACEOF
11100 rm -f conftest.$ac_objext conftest$ac_exeext
11101 if { (ac_try="$ac_link"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105 esac
11106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11107 $as_echo "$ac_try_echo") >&5
11108 (eval "$ac_link") 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && {
11115 test -z "$ac_c_werror_flag" ||
11116 test ! -s conftest.err
11117 } && test -s conftest$ac_exeext && {
11118 test "$cross_compiling" = yes ||
11119 $as_test_x conftest$ac_exeext
11120 }; then
11121 xlinux_second_failure=no
11122 else
11123 $as_echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11126 xlinux_second_failure=yes
11129 rm -rf conftest.dSYM
11130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11131 conftest$ac_exeext conftest.$ac_ext
11132 if test "${xlinux_second_failure}" = "yes"; then
11133 # If we get the same failure with -b, there is no use adding -b.
11134 # So take it out. This plays safe.
11135 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11136 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11137 CPPFLAGS="$OLD_CPPFLAGS"
11138 LIBS="$OLD_LIBS"
11139 { $as_echo "$as_me:$LINENO: result: no" >&5
11140 $as_echo "no" >&6; }
11141 else
11142 { $as_echo "$as_me:$LINENO: result: yes" >&5
11143 $as_echo "yes" >&6; }
11145 else
11146 { $as_echo "$as_me:$LINENO: result: no" >&5
11147 $as_echo "no" >&6; }
11151 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11152 # header files included from there.
11153 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11154 $as_echo_n "checking for Xkb... " >&6; }
11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h. */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 #include <X11/Xlib.h>
11162 #include <X11/XKBlib.h>
11164 main ()
11166 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11168 return 0;
11170 _ACEOF
11171 rm -f conftest.$ac_objext conftest$ac_exeext
11172 if { (ac_try="$ac_link"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176 esac
11177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11178 $as_echo "$ac_try_echo") >&5
11179 (eval "$ac_link") 2>conftest.er1
11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest$ac_exeext && {
11189 test "$cross_compiling" = yes ||
11190 $as_test_x conftest$ac_exeext
11191 }; then
11192 emacs_xkb=yes
11193 else
11194 $as_echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 emacs_xkb=no
11200 rm -rf conftest.dSYM
11201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11202 conftest$ac_exeext conftest.$ac_ext
11203 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11204 $as_echo "$emacs_xkb" >&6; }
11205 if test $emacs_xkb = yes; then
11207 cat >>confdefs.h <<\_ACEOF
11208 #define HAVE_XKBGETKEYBOARD 1
11209 _ACEOF
11217 for ac_func in XrmSetDatabase XScreenResourceString \
11218 XScreenNumberOfScreen XSetWMProtocols
11220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11221 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11222 $as_echo_n "checking for $ac_func... " >&6; }
11223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11224 $as_echo_n "(cached) " >&6
11225 else
11226 cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h. */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11234 #define $ac_func innocuous_$ac_func
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func (); below.
11238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11239 <limits.h> exists even on freestanding compilers. */
11241 #ifdef __STDC__
11242 # include <limits.h>
11243 #else
11244 # include <assert.h>
11245 #endif
11247 #undef $ac_func
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char $ac_func ();
11256 /* The GNU C library defines this for functions which it implements
11257 to always fail with ENOSYS. Some functions are actually named
11258 something starting with __ and the normal name is an alias. */
11259 #if defined __stub_$ac_func || defined __stub___$ac_func
11260 choke me
11261 #endif
11264 main ()
11266 return $ac_func ();
11268 return 0;
11270 _ACEOF
11271 rm -f conftest.$ac_objext conftest$ac_exeext
11272 if { (ac_try="$ac_link"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276 esac
11277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11278 $as_echo "$ac_try_echo") >&5
11279 (eval "$ac_link") 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest$ac_exeext && {
11289 test "$cross_compiling" = yes ||
11290 $as_test_x conftest$ac_exeext
11291 }; then
11292 eval "$as_ac_var=yes"
11293 else
11294 $as_echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 eval "$as_ac_var=no"
11300 rm -rf conftest.dSYM
11301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11302 conftest$ac_exeext conftest.$ac_ext
11304 ac_res=`eval 'as_val=${'$as_ac_var'}
11305 $as_echo "$as_val"'`
11306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11307 $as_echo "$ac_res" >&6; }
11308 if test `eval 'as_val=${'$as_ac_var'}
11309 $as_echo "$as_val"'` = yes; then
11310 cat >>confdefs.h <<_ACEOF
11311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11312 _ACEOF
11315 done
11319 if test "${window_system}" = "x11"; then
11320 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11321 $as_echo_n "checking X11 version 6... " >&6; }
11322 if test "${emacs_cv_x11_version_6+set}" = set; then
11323 $as_echo_n "(cached) " >&6
11324 else
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h. */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 #include <X11/Xlib.h>
11333 main ()
11335 #if XlibSpecificationRelease < 6
11336 fail;
11337 #endif
11340 return 0;
11342 _ACEOF
11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 if { (ac_try="$ac_link"
11345 case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11348 esac
11349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11350 $as_echo "$ac_try_echo") >&5
11351 (eval "$ac_link") 2>conftest.er1
11352 ac_status=$?
11353 grep -v '^ *+' conftest.er1 >conftest.err
11354 rm -f conftest.er1
11355 cat conftest.err >&5
11356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } && {
11358 test -z "$ac_c_werror_flag" ||
11359 test ! -s conftest.err
11360 } && test -s conftest$ac_exeext && {
11361 test "$cross_compiling" = yes ||
11362 $as_test_x conftest$ac_exeext
11363 }; then
11364 emacs_cv_x11_version_6=yes
11365 else
11366 $as_echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 emacs_cv_x11_version_6=no
11372 rm -rf conftest.dSYM
11373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11374 conftest$ac_exeext conftest.$ac_ext
11377 if test $emacs_cv_x11_version_6 = yes; then
11378 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11379 $as_echo "6 or newer" >&6; }
11381 cat >>confdefs.h <<\_ACEOF
11382 #define HAVE_X11R6 1
11383 _ACEOF
11385 else
11386 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11387 $as_echo "before 6" >&6; }
11392 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11393 HAVE_RSVG=no
11394 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11395 if test "${with_rsvg}" != "no"; then
11396 RSVG_REQUIRED=2.11.0
11397 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11400 succeeded=no
11402 # Extract the first word of "pkg-config", so it can be a program name with args.
11403 set dummy pkg-config; ac_word=$2
11404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11405 $as_echo_n "checking for $ac_word... " >&6; }
11406 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11407 $as_echo_n "(cached) " >&6
11408 else
11409 case $PKG_CONFIG in
11410 [\\/]* | ?:[\\/]*)
11411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415 for as_dir in $PATH
11417 IFS=$as_save_IFS
11418 test -z "$as_dir" && as_dir=.
11419 for ac_exec_ext in '' $ac_executable_extensions; do
11420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11423 break 2
11425 done
11426 done
11427 IFS=$as_save_IFS
11429 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11431 esac
11433 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11434 if test -n "$PKG_CONFIG"; then
11435 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11436 $as_echo "$PKG_CONFIG" >&6; }
11437 else
11438 { $as_echo "$as_me:$LINENO: result: no" >&5
11439 $as_echo "no" >&6; }
11444 if test "$PKG_CONFIG" = "no" ; then
11446 else
11447 PKG_CONFIG_MIN_VERSION=0.9.0
11448 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11449 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11450 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11452 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11453 { $as_echo "$as_me:$LINENO: result: yes" >&5
11454 $as_echo "yes" >&6; }
11455 succeeded=yes
11457 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11458 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11459 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11460 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11461 $as_echo "$RSVG_CFLAGS" >&6; }
11463 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11464 $as_echo_n "checking RSVG_LIBS... " >&6; }
11465 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11466 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11467 $as_echo "$RSVG_LIBS" >&6; }
11468 else
11469 { $as_echo "$as_me:$LINENO: result: no" >&5
11470 $as_echo "no" >&6; }
11471 RSVG_CFLAGS=""
11472 RSVG_LIBS=""
11473 ## If we have a custom action on failure, don't print errors, but
11474 ## do set a variable so people can do so.
11475 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11481 else
11482 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11483 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11487 if test $succeeded = yes; then
11489 else
11496 if test ".${RSVG_CFLAGS}" != "."; then
11497 HAVE_RSVG=yes
11499 cat >>confdefs.h <<\_ACEOF
11500 #define HAVE_RSVG 1
11501 _ACEOF
11503 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11504 LIBS="$RSVG_LIBS $LIBS"
11510 HAVE_GTK=no
11511 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11512 GLIB_REQUIRED=2.6
11513 GTK_REQUIRED=2.6
11514 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11517 succeeded=no
11519 # Extract the first word of "pkg-config", so it can be a program name with args.
11520 set dummy pkg-config; ac_word=$2
11521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11522 $as_echo_n "checking for $ac_word... " >&6; }
11523 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11524 $as_echo_n "(cached) " >&6
11525 else
11526 case $PKG_CONFIG in
11527 [\\/]* | ?:[\\/]*)
11528 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532 for as_dir in $PATH
11534 IFS=$as_save_IFS
11535 test -z "$as_dir" && as_dir=.
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11538 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 break 2
11542 done
11543 done
11544 IFS=$as_save_IFS
11546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11548 esac
11550 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11551 if test -n "$PKG_CONFIG"; then
11552 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11553 $as_echo "$PKG_CONFIG" >&6; }
11554 else
11555 { $as_echo "$as_me:$LINENO: result: no" >&5
11556 $as_echo "no" >&6; }
11561 if test "$PKG_CONFIG" = "no" ; then
11562 pkg_check_gtk=no
11563 else
11564 PKG_CONFIG_MIN_VERSION=0.9.0
11565 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11566 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11567 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11569 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11570 { $as_echo "$as_me:$LINENO: result: yes" >&5
11571 $as_echo "yes" >&6; }
11572 succeeded=yes
11574 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11575 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11576 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11577 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11578 $as_echo "$GTK_CFLAGS" >&6; }
11580 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11581 $as_echo_n "checking GTK_LIBS... " >&6; }
11582 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11583 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11584 $as_echo "$GTK_LIBS" >&6; }
11585 else
11586 { $as_echo "$as_me:$LINENO: result: no" >&5
11587 $as_echo "no" >&6; }
11588 GTK_CFLAGS=""
11589 GTK_LIBS=""
11590 ## If we have a custom action on failure, don't print errors, but
11591 ## do set a variable so people can do so.
11592 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11598 else
11599 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11600 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11604 if test $succeeded = yes; then
11605 pkg_check_gtk=yes
11606 else
11607 pkg_check_gtk=no
11610 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11611 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11612 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11613 { (exit 1); exit 1; }; }
11618 if test x"$pkg_check_gtk" = xyes; then
11622 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11623 CFLAGS="$CFLAGS $GTK_CFLAGS"
11624 LIBS="$GTK_LIBS $LIBS"
11625 GTK_COMPILES=no
11627 for ac_func in gtk_main
11629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11630 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11631 $as_echo_n "checking for $ac_func... " >&6; }
11632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11633 $as_echo_n "(cached) " >&6
11634 else
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11643 #define $ac_func innocuous_$ac_func
11645 /* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func (); below.
11647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11648 <limits.h> exists even on freestanding compilers. */
11650 #ifdef __STDC__
11651 # include <limits.h>
11652 #else
11653 # include <assert.h>
11654 #endif
11656 #undef $ac_func
11658 /* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 char $ac_func ();
11665 /* The GNU C library defines this for functions which it implements
11666 to always fail with ENOSYS. Some functions are actually named
11667 something starting with __ and the normal name is an alias. */
11668 #if defined __stub_$ac_func || defined __stub___$ac_func
11669 choke me
11670 #endif
11673 main ()
11675 return $ac_func ();
11677 return 0;
11679 _ACEOF
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685 esac
11686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11687 $as_echo "$ac_try_echo") >&5
11688 (eval "$ac_link") 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && {
11695 test -z "$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11697 } && test -s conftest$ac_exeext && {
11698 test "$cross_compiling" = yes ||
11699 $as_test_x conftest$ac_exeext
11700 }; then
11701 eval "$as_ac_var=yes"
11702 else
11703 $as_echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 eval "$as_ac_var=no"
11709 rm -rf conftest.dSYM
11710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11711 conftest$ac_exeext conftest.$ac_ext
11713 ac_res=`eval 'as_val=${'$as_ac_var'}
11714 $as_echo "$as_val"'`
11715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11716 $as_echo "$ac_res" >&6; }
11717 if test `eval 'as_val=${'$as_ac_var'}
11718 $as_echo "$as_val"'` = yes; then
11719 cat >>confdefs.h <<_ACEOF
11720 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11721 _ACEOF
11722 GTK_COMPILES=yes
11724 done
11726 if test "${GTK_COMPILES}" != "yes"; then
11727 if test "$USE_X_TOOLKIT" != "maybe"; then
11728 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11729 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11730 { (exit 1); exit 1; }; };
11732 else
11733 HAVE_GTK=yes
11735 cat >>confdefs.h <<\_ACEOF
11736 #define USE_GTK 1
11737 _ACEOF
11739 USE_X_TOOLKIT=none
11740 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11742 else
11743 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11744 closing open displays. This is no problem if you just use
11745 one display, but if you use more than one and close one of them
11746 Emacs may crash." >&5
11747 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11748 closing open displays. This is no problem if you just use
11749 one display, but if you use more than one and close one of them
11750 Emacs may crash." >&2;}
11751 sleep 3
11758 if test "${HAVE_GTK}" = "yes"; then
11760 if test "$with_toolkit_scroll_bars" != no; then
11761 with_toolkit_scroll_bars=yes
11764 HAVE_GTK_MULTIDISPLAY=no
11766 for ac_func in gdk_display_open
11768 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11769 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11770 $as_echo_n "checking for $ac_func... " >&6; }
11771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11772 $as_echo_n "(cached) " >&6
11773 else
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h. */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11782 #define $ac_func innocuous_$ac_func
11784 /* System header to define __stub macros and hopefully few prototypes,
11785 which can conflict with char $ac_func (); below.
11786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11787 <limits.h> exists even on freestanding compilers. */
11789 #ifdef __STDC__
11790 # include <limits.h>
11791 #else
11792 # include <assert.h>
11793 #endif
11795 #undef $ac_func
11797 /* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 char $ac_func ();
11804 /* The GNU C library defines this for functions which it implements
11805 to always fail with ENOSYS. Some functions are actually named
11806 something starting with __ and the normal name is an alias. */
11807 #if defined __stub_$ac_func || defined __stub___$ac_func
11808 choke me
11809 #endif
11812 main ()
11814 return $ac_func ();
11816 return 0;
11818 _ACEOF
11819 rm -f conftest.$ac_objext conftest$ac_exeext
11820 if { (ac_try="$ac_link"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11824 esac
11825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11826 $as_echo "$ac_try_echo") >&5
11827 (eval "$ac_link") 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } && {
11834 test -z "$ac_c_werror_flag" ||
11835 test ! -s conftest.err
11836 } && test -s conftest$ac_exeext && {
11837 test "$cross_compiling" = yes ||
11838 $as_test_x conftest$ac_exeext
11839 }; then
11840 eval "$as_ac_var=yes"
11841 else
11842 $as_echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 eval "$as_ac_var=no"
11848 rm -rf conftest.dSYM
11849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11850 conftest$ac_exeext conftest.$ac_ext
11852 ac_res=`eval 'as_val=${'$as_ac_var'}
11853 $as_echo "$as_val"'`
11854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11855 $as_echo "$ac_res" >&6; }
11856 if test `eval 'as_val=${'$as_ac_var'}
11857 $as_echo "$as_val"'` = yes; then
11858 cat >>confdefs.h <<_ACEOF
11859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11860 _ACEOF
11861 HAVE_GTK_MULTIDISPLAY=yes
11863 done
11865 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11867 cat >>confdefs.h <<\_ACEOF
11868 #define HAVE_GTK_MULTIDISPLAY 1
11869 _ACEOF
11873 HAVE_GTK_FILE_SELECTION=no
11874 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11875 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11876 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11877 $as_echo_n "(cached) " >&6
11878 else
11879 cat >conftest.$ac_ext <<_ACEOF
11880 /* confdefs.h. */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885 $ac_includes_default
11886 #include <gtk/gtk.h>
11889 main ()
11891 #ifndef GTK_TYPE_FILE_SELECTION
11892 (void) GTK_TYPE_FILE_SELECTION;
11893 #endif
11896 return 0;
11898 _ACEOF
11899 rm -f conftest.$ac_objext
11900 if { (ac_try="$ac_compile"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904 esac
11905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906 $as_echo "$ac_try_echo") >&5
11907 (eval "$ac_compile") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest.$ac_objext; then
11917 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11918 else
11919 $as_echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11928 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11929 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11930 HAVE_GTK_FILE_SELECTION=yes
11931 else
11932 HAVE_GTK_FILE_SELECTION=no
11935 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11937 for ac_func in gtk_file_selection_new
11939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11941 $as_echo_n "checking for $ac_func... " >&6; }
11942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11943 $as_echo_n "(cached) " >&6
11944 else
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11953 #define $ac_func innocuous_$ac_func
11955 /* System header to define __stub macros and hopefully few prototypes,
11956 which can conflict with char $ac_func (); below.
11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958 <limits.h> exists even on freestanding compilers. */
11960 #ifdef __STDC__
11961 # include <limits.h>
11962 #else
11963 # include <assert.h>
11964 #endif
11966 #undef $ac_func
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11971 #ifdef __cplusplus
11972 extern "C"
11973 #endif
11974 char $ac_func ();
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined __stub_$ac_func || defined __stub___$ac_func
11979 choke me
11980 #endif
11983 main ()
11985 return $ac_func ();
11987 return 0;
11989 _ACEOF
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (ac_try="$ac_link"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995 esac
11996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11997 $as_echo "$ac_try_echo") >&5
11998 (eval "$ac_link") 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } && {
12005 test -z "$ac_c_werror_flag" ||
12006 test ! -s conftest.err
12007 } && test -s conftest$ac_exeext && {
12008 test "$cross_compiling" = yes ||
12009 $as_test_x conftest$ac_exeext
12010 }; then
12011 eval "$as_ac_var=yes"
12012 else
12013 $as_echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 eval "$as_ac_var=no"
12019 rm -rf conftest.dSYM
12020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12021 conftest$ac_exeext conftest.$ac_ext
12023 ac_res=`eval 'as_val=${'$as_ac_var'}
12024 $as_echo "$as_val"'`
12025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12026 $as_echo "$ac_res" >&6; }
12027 if test `eval 'as_val=${'$as_ac_var'}
12028 $as_echo "$as_val"'` = yes; then
12029 cat >>confdefs.h <<_ACEOF
12030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12031 _ACEOF
12032 HAVE_GTK_FILE_SELECTION=yes
12033 else
12034 HAVE_GTK_FILE_SELECTION=no
12036 done
12040 HAVE_GTK_FILE_CHOOSER=no
12041 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12042 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12043 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12044 $as_echo_n "(cached) " >&6
12045 else
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 $ac_includes_default
12053 #include <gtk/gtk.h>
12056 main ()
12058 #ifndef GTK_TYPE_FILE_CHOOSER
12059 (void) GTK_TYPE_FILE_CHOOSER;
12060 #endif
12063 return 0;
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (ac_try="$ac_compile"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071 esac
12072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12073 $as_echo "$ac_try_echo") >&5
12074 (eval "$ac_compile") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest.$ac_objext; then
12084 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12085 else
12086 $as_echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12089 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12095 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12096 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12097 HAVE_GTK_FILE_CHOOSER=yes
12098 else
12099 HAVE_GTK_FILE_CHOOSER=no
12102 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12104 for ac_func in gtk_file_chooser_dialog_new
12106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12108 $as_echo_n "checking for $ac_func... " >&6; }
12109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12110 $as_echo_n "(cached) " >&6
12111 else
12112 cat >conftest.$ac_ext <<_ACEOF
12113 /* confdefs.h. */
12114 _ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12120 #define $ac_func innocuous_$ac_func
12122 /* System header to define __stub macros and hopefully few prototypes,
12123 which can conflict with char $ac_func (); below.
12124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12125 <limits.h> exists even on freestanding compilers. */
12127 #ifdef __STDC__
12128 # include <limits.h>
12129 #else
12130 # include <assert.h>
12131 #endif
12133 #undef $ac_func
12135 /* Override any GCC internal prototype to avoid an error.
12136 Use char because int might match the return type of a GCC
12137 builtin and then its argument prototype would still apply. */
12138 #ifdef __cplusplus
12139 extern "C"
12140 #endif
12141 char $ac_func ();
12142 /* The GNU C library defines this for functions which it implements
12143 to always fail with ENOSYS. Some functions are actually named
12144 something starting with __ and the normal name is an alias. */
12145 #if defined __stub_$ac_func || defined __stub___$ac_func
12146 choke me
12147 #endif
12150 main ()
12152 return $ac_func ();
12154 return 0;
12156 _ACEOF
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (ac_try="$ac_link"
12159 case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12162 esac
12163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12164 $as_echo "$ac_try_echo") >&5
12165 (eval "$ac_link") 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest$ac_exeext && {
12175 test "$cross_compiling" = yes ||
12176 $as_test_x conftest$ac_exeext
12177 }; then
12178 eval "$as_ac_var=yes"
12179 else
12180 $as_echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 eval "$as_ac_var=no"
12186 rm -rf conftest.dSYM
12187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12188 conftest$ac_exeext conftest.$ac_ext
12190 ac_res=`eval 'as_val=${'$as_ac_var'}
12191 $as_echo "$as_val"'`
12192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12193 $as_echo "$ac_res" >&6; }
12194 if test `eval 'as_val=${'$as_ac_var'}
12195 $as_echo "$as_val"'` = yes; then
12196 cat >>confdefs.h <<_ACEOF
12197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12198 _ACEOF
12199 HAVE_GTK_FILE_CHOOSER=yes
12200 else
12201 HAVE_GTK_FILE_CHOOSER=no
12203 done
12207 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12208 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12210 cat >>confdefs.h <<\_ACEOF
12211 #define HAVE_GTK_FILE_BOTH 1
12212 _ACEOF
12216 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12217 HAVE_GTK_AND_PTHREAD=no
12219 for ac_header in pthread.h
12221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12224 $as_echo_n "checking for $ac_header... " >&6; }
12225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12226 $as_echo_n "(cached) " >&6
12228 ac_res=`eval 'as_val=${'$as_ac_Header'}
12229 $as_echo "$as_val"'`
12230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12231 $as_echo "$ac_res" >&6; }
12232 else
12233 # Is the header compilable?
12234 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12235 $as_echo_n "checking $ac_header usability... " >&6; }
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12243 #include <$ac_header>
12244 _ACEOF
12245 rm -f conftest.$ac_objext
12246 if { (ac_try="$ac_compile"
12247 case "(($ac_try" in
12248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249 *) ac_try_echo=$ac_try;;
12250 esac
12251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12252 $as_echo "$ac_try_echo") >&5
12253 (eval "$ac_compile") 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } && {
12260 test -z "$ac_c_werror_flag" ||
12261 test ! -s conftest.err
12262 } && test -s conftest.$ac_objext; then
12263 ac_header_compiler=yes
12264 else
12265 $as_echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ac_header_compiler=no
12271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12272 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12273 $as_echo "$ac_header_compiler" >&6; }
12275 # Is the header present?
12276 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12277 $as_echo_n "checking $ac_header presence... " >&6; }
12278 cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h. */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 #include <$ac_header>
12285 _ACEOF
12286 if { (ac_try="$ac_cpp conftest.$ac_ext"
12287 case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290 esac
12291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12292 $as_echo "$ac_try_echo") >&5
12293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } >/dev/null && {
12300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12301 test ! -s conftest.err
12302 }; then
12303 ac_header_preproc=yes
12304 else
12305 $as_echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 ac_header_preproc=no
12311 rm -f conftest.err conftest.$ac_ext
12312 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12313 $as_echo "$ac_header_preproc" >&6; }
12315 # So? What about this header?
12316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12317 yes:no: )
12318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12319 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12321 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12322 ac_header_preproc=yes
12324 no:yes:* )
12325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12326 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12328 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12330 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12332 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12336 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12339 esac
12340 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12341 $as_echo_n "checking for $ac_header... " >&6; }
12342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343 $as_echo_n "(cached) " >&6
12344 else
12345 eval "$as_ac_Header=\$ac_header_preproc"
12347 ac_res=`eval 'as_val=${'$as_ac_Header'}
12348 $as_echo "$as_val"'`
12349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12350 $as_echo "$ac_res" >&6; }
12353 if test `eval 'as_val=${'$as_ac_Header'}
12354 $as_echo "$as_val"'` = yes; then
12355 cat >>confdefs.h <<_ACEOF
12356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12357 _ACEOF
12361 done
12363 if test "$ac_cv_header_pthread_h"; then
12364 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12365 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12366 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12367 $as_echo_n "(cached) " >&6
12368 else
12369 ac_check_lib_save_LIBS=$LIBS
12370 LIBS="-lpthread $LIBS"
12371 cat >conftest.$ac_ext <<_ACEOF
12372 /* confdefs.h. */
12373 _ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h. */
12378 /* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12381 #ifdef __cplusplus
12382 extern "C"
12383 #endif
12384 char pthread_self ();
12386 main ()
12388 return pthread_self ();
12390 return 0;
12392 _ACEOF
12393 rm -f conftest.$ac_objext conftest$ac_exeext
12394 if { (ac_try="$ac_link"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398 esac
12399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12400 $as_echo "$ac_try_echo") >&5
12401 (eval "$ac_link") 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } && {
12408 test -z "$ac_c_werror_flag" ||
12409 test ! -s conftest.err
12410 } && test -s conftest$ac_exeext && {
12411 test "$cross_compiling" = yes ||
12412 $as_test_x conftest$ac_exeext
12413 }; then
12414 ac_cv_lib_pthread_pthread_self=yes
12415 else
12416 $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_cv_lib_pthread_pthread_self=no
12422 rm -rf conftest.dSYM
12423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12427 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12428 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12429 if test $ac_cv_lib_pthread_pthread_self = yes; then
12430 HAVE_GTK_AND_PTHREAD=yes
12434 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12435 case "${canonical}" in
12436 *-hpux*) ;;
12437 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12438 esac
12440 cat >>confdefs.h <<\_ACEOF
12441 #define HAVE_GTK_AND_PTHREAD 1
12442 _ACEOF
12448 HAVE_DBUS=no
12449 if test "${with_dbus}" = "yes"; then
12451 succeeded=no
12453 # Extract the first word of "pkg-config", so it can be a program name with args.
12454 set dummy pkg-config; ac_word=$2
12455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12458 $as_echo_n "(cached) " >&6
12459 else
12460 case $PKG_CONFIG in
12461 [\\/]* | ?:[\\/]*)
12462 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 break 2
12476 done
12477 done
12478 IFS=$as_save_IFS
12480 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12482 esac
12484 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12485 if test -n "$PKG_CONFIG"; then
12486 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12487 $as_echo "$PKG_CONFIG" >&6; }
12488 else
12489 { $as_echo "$as_me:$LINENO: result: no" >&5
12490 $as_echo "no" >&6; }
12495 if test "$PKG_CONFIG" = "no" ; then
12496 HAVE_DBUS=no
12497 else
12498 PKG_CONFIG_MIN_VERSION=0.9.0
12499 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12500 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12501 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12503 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12504 { $as_echo "$as_me:$LINENO: result: yes" >&5
12505 $as_echo "yes" >&6; }
12506 succeeded=yes
12508 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12509 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12510 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12511 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12512 $as_echo "$DBUS_CFLAGS" >&6; }
12514 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12515 $as_echo_n "checking DBUS_LIBS... " >&6; }
12516 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12517 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12518 $as_echo "$DBUS_LIBS" >&6; }
12519 else
12520 { $as_echo "$as_me:$LINENO: result: no" >&5
12521 $as_echo "no" >&6; }
12522 DBUS_CFLAGS=""
12523 DBUS_LIBS=""
12524 ## If we have a custom action on failure, don't print errors, but
12525 ## do set a variable so people can do so.
12526 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12532 else
12533 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12534 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12538 if test $succeeded = yes; then
12539 HAVE_DBUS=yes
12540 else
12541 HAVE_DBUS=no
12544 if test "$HAVE_DBUS" = yes; then
12545 LIBS="$LIBS $DBUS_LIBS"
12547 cat >>confdefs.h <<\_ACEOF
12548 #define HAVE_DBUS 1
12549 _ACEOF
12552 for ac_func in dbus_watch_get_unix_fd
12554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12555 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12556 $as_echo_n "checking for $ac_func... " >&6; }
12557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12558 $as_echo_n "(cached) " >&6
12559 else
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h. */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12568 #define $ac_func innocuous_$ac_func
12570 /* System header to define __stub macros and hopefully few prototypes,
12571 which can conflict with char $ac_func (); below.
12572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12573 <limits.h> exists even on freestanding compilers. */
12575 #ifdef __STDC__
12576 # include <limits.h>
12577 #else
12578 # include <assert.h>
12579 #endif
12581 #undef $ac_func
12583 /* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
12586 #ifdef __cplusplus
12587 extern "C"
12588 #endif
12589 char $ac_func ();
12590 /* The GNU C library defines this for functions which it implements
12591 to always fail with ENOSYS. Some functions are actually named
12592 something starting with __ and the normal name is an alias. */
12593 #if defined __stub_$ac_func || defined __stub___$ac_func
12594 choke me
12595 #endif
12598 main ()
12600 return $ac_func ();
12602 return 0;
12604 _ACEOF
12605 rm -f conftest.$ac_objext conftest$ac_exeext
12606 if { (ac_try="$ac_link"
12607 case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12610 esac
12611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12612 $as_echo "$ac_try_echo") >&5
12613 (eval "$ac_link") 2>conftest.er1
12614 ac_status=$?
12615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
12618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest$ac_exeext && {
12623 test "$cross_compiling" = yes ||
12624 $as_test_x conftest$ac_exeext
12625 }; then
12626 eval "$as_ac_var=yes"
12627 else
12628 $as_echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 eval "$as_ac_var=no"
12634 rm -rf conftest.dSYM
12635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12636 conftest$ac_exeext conftest.$ac_ext
12638 ac_res=`eval 'as_val=${'$as_ac_var'}
12639 $as_echo "$as_val"'`
12640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12641 $as_echo "$ac_res" >&6; }
12642 if test `eval 'as_val=${'$as_ac_var'}
12643 $as_echo "$as_val"'` = yes; then
12644 cat >>confdefs.h <<_ACEOF
12645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12646 _ACEOF
12649 done
12654 HAVE_GCONF=no
12655 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12657 succeeded=no
12659 # Extract the first word of "pkg-config", so it can be a program name with args.
12660 set dummy pkg-config; ac_word=$2
12661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12662 $as_echo_n "checking for $ac_word... " >&6; }
12663 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12664 $as_echo_n "(cached) " >&6
12665 else
12666 case $PKG_CONFIG in
12667 [\\/]* | ?:[\\/]*)
12668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672 for as_dir in $PATH
12674 IFS=$as_save_IFS
12675 test -z "$as_dir" && as_dir=.
12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12680 break 2
12682 done
12683 done
12684 IFS=$as_save_IFS
12686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12688 esac
12690 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12691 if test -n "$PKG_CONFIG"; then
12692 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12693 $as_echo "$PKG_CONFIG" >&6; }
12694 else
12695 { $as_echo "$as_me:$LINENO: result: no" >&5
12696 $as_echo "no" >&6; }
12701 if test "$PKG_CONFIG" = "no" ; then
12702 HAVE_GCONF=no
12703 else
12704 PKG_CONFIG_MIN_VERSION=0.9.0
12705 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12706 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12707 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12709 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12710 { $as_echo "$as_me:$LINENO: result: yes" >&5
12711 $as_echo "yes" >&6; }
12712 succeeded=yes
12714 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12715 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12716 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12717 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12718 $as_echo "$GCONF_CFLAGS" >&6; }
12720 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12721 $as_echo_n "checking GCONF_LIBS... " >&6; }
12722 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12723 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12724 $as_echo "$GCONF_LIBS" >&6; }
12725 else
12726 { $as_echo "$as_me:$LINENO: result: no" >&5
12727 $as_echo "no" >&6; }
12728 GCONF_CFLAGS=""
12729 GCONF_LIBS=""
12730 ## If we have a custom action on failure, don't print errors, but
12731 ## do set a variable so people can do so.
12732 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12738 else
12739 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12740 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12744 if test $succeeded = yes; then
12745 HAVE_GCONF=yes
12746 else
12747 HAVE_GCONF=no
12750 if test "$HAVE_GCONF" = yes; then
12752 cat >>confdefs.h <<\_ACEOF
12753 #define HAVE_GCONF 1
12754 _ACEOF
12759 HAVE_XAW3D=no
12760 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12761 if test "$with_xaw3d" != no; then
12762 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12763 $as_echo_n "checking for xaw3d... " >&6; }
12764 if test "${emacs_cv_xaw3d+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12766 else
12767 cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h. */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12774 #include <X11/Intrinsic.h>
12775 #include <X11/Xaw3d/Simple.h>
12777 main ()
12781 return 0;
12783 _ACEOF
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (ac_try="$ac_link"
12786 case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789 esac
12790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12791 $as_echo "$ac_try_echo") >&5
12792 (eval "$ac_link") 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } && {
12799 test -z "$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12801 } && test -s conftest$ac_exeext && {
12802 test "$cross_compiling" = yes ||
12803 $as_test_x conftest$ac_exeext
12804 }; then
12805 emacs_cv_xaw3d=yes
12806 else
12807 $as_echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12810 emacs_cv_xaw3d=no
12813 rm -rf conftest.dSYM
12814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12815 conftest$ac_exeext conftest.$ac_ext
12818 else
12819 emacs_cv_xaw3d=no
12821 if test $emacs_cv_xaw3d = yes; then
12822 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12823 $as_echo "yes; using Lucid toolkit" >&6; }
12824 USE_X_TOOLKIT=LUCID
12825 HAVE_XAW3D=yes
12827 cat >>confdefs.h <<\_ACEOF
12828 #define HAVE_XAW3D 1
12829 _ACEOF
12831 else
12832 { $as_echo "$as_me:$LINENO: result: no" >&5
12833 $as_echo "no" >&6; }
12834 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12835 $as_echo_n "checking for libXaw... " >&6; }
12836 if test "${emacs_cv_xaw+set}" = set; then
12837 $as_echo_n "(cached) " >&6
12838 else
12839 cat >conftest.$ac_ext <<_ACEOF
12840 /* confdefs.h. */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12846 #include <X11/Intrinsic.h>
12847 #include <X11/Xaw/Simple.h>
12849 main ()
12853 return 0;
12855 _ACEOF
12856 rm -f conftest.$ac_objext conftest$ac_exeext
12857 if { (ac_try="$ac_link"
12858 case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861 esac
12862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12863 $as_echo "$ac_try_echo") >&5
12864 (eval "$ac_link") 2>conftest.er1
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } && {
12871 test -z "$ac_c_werror_flag" ||
12872 test ! -s conftest.err
12873 } && test -s conftest$ac_exeext && {
12874 test "$cross_compiling" = yes ||
12875 $as_test_x conftest$ac_exeext
12876 }; then
12877 emacs_cv_xaw=yes
12878 else
12879 $as_echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12882 emacs_cv_xaw=no
12885 rm -rf conftest.dSYM
12886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12887 conftest$ac_exeext conftest.$ac_ext
12890 if test $emacs_cv_xaw = yes; then
12891 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12892 $as_echo "yes; using Lucid toolkit" >&6; }
12893 USE_X_TOOLKIT=LUCID
12894 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12895 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12896 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12897 { (exit 1); exit 1; }; }
12898 else
12899 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12900 $as_echo "no; do not use toolkit by default" >&6; }
12901 USE_X_TOOLKIT=none
12906 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12908 if test "${USE_X_TOOLKIT}" != "none"; then
12909 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12910 $as_echo_n "checking X11 toolkit version... " >&6; }
12911 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12912 $as_echo_n "(cached) " >&6
12913 else
12914 cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h. */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 #include <X11/Intrinsic.h>
12922 main ()
12924 #if XtSpecificationRelease < 6
12925 fail;
12926 #endif
12929 return 0;
12931 _ACEOF
12932 rm -f conftest.$ac_objext conftest$ac_exeext
12933 if { (ac_try="$ac_link"
12934 case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12937 esac
12938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12939 $as_echo "$ac_try_echo") >&5
12940 (eval "$ac_link") 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } && {
12947 test -z "$ac_c_werror_flag" ||
12948 test ! -s conftest.err
12949 } && test -s conftest$ac_exeext && {
12950 test "$cross_compiling" = yes ||
12951 $as_test_x conftest$ac_exeext
12952 }; then
12953 emacs_cv_x11_toolkit_version_6=yes
12954 else
12955 $as_echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12958 emacs_cv_x11_toolkit_version_6=no
12961 rm -rf conftest.dSYM
12962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12963 conftest$ac_exeext conftest.$ac_ext
12966 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12967 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12968 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12969 $as_echo "6 or newer" >&6; }
12971 cat >>confdefs.h <<\_ACEOF
12972 #define HAVE_X11XTR6 1
12973 _ACEOF
12975 else
12976 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12977 $as_echo "before 6" >&6; }
12980 OLDLIBS="$LIBS"
12981 if test x$HAVE_X11XTR6 = xyes; then
12982 LIBS="-lXt -lSM -lICE $LIBS"
12983 else
12984 LIBS="-lXt $LIBS"
12987 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12988 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12989 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12990 $as_echo_n "(cached) " >&6
12991 else
12992 ac_check_lib_save_LIBS=$LIBS
12993 LIBS="-lXmu $LIBS"
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h. */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13004 #ifdef __cplusplus
13005 extern "C"
13006 #endif
13007 char XmuConvertStandardSelection ();
13009 main ()
13011 return XmuConvertStandardSelection ();
13013 return 0;
13015 _ACEOF
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020 *) ac_try_echo=$ac_try;;
13021 esac
13022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13023 $as_echo "$ac_try_echo") >&5
13024 (eval "$ac_link") 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } && {
13031 test -z "$ac_c_werror_flag" ||
13032 test ! -s conftest.err
13033 } && test -s conftest$ac_exeext && {
13034 test "$cross_compiling" = yes ||
13035 $as_test_x conftest$ac_exeext
13036 }; then
13037 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13038 else
13039 $as_echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13042 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13045 rm -rf conftest.dSYM
13046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13047 conftest$ac_exeext conftest.$ac_ext
13048 LIBS=$ac_check_lib_save_LIBS
13050 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13051 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13052 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13053 cat >>confdefs.h <<_ACEOF
13054 #define HAVE_LIBXMU 1
13055 _ACEOF
13057 LIBS="-lXmu $LIBS"
13061 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13064 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13065 if test "${HAVE_X11}" = "yes"; then
13066 if test "${USE_X_TOOLKIT}" != "none"; then
13068 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13069 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13070 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13071 $as_echo_n "(cached) " >&6
13072 else
13073 ac_check_lib_save_LIBS=$LIBS
13074 LIBS="-lXext $LIBS"
13075 cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h. */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13082 /* Override any GCC internal prototype to avoid an error.
13083 Use char because int might match the return type of a GCC
13084 builtin and then its argument prototype would still apply. */
13085 #ifdef __cplusplus
13086 extern "C"
13087 #endif
13088 char XShapeQueryExtension ();
13090 main ()
13092 return XShapeQueryExtension ();
13094 return 0;
13096 _ACEOF
13097 rm -f conftest.$ac_objext conftest$ac_exeext
13098 if { (ac_try="$ac_link"
13099 case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13102 esac
13103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13104 $as_echo "$ac_try_echo") >&5
13105 (eval "$ac_link") 2>conftest.er1
13106 ac_status=$?
13107 grep -v '^ *+' conftest.er1 >conftest.err
13108 rm -f conftest.er1
13109 cat conftest.err >&5
13110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } && {
13112 test -z "$ac_c_werror_flag" ||
13113 test ! -s conftest.err
13114 } && test -s conftest$ac_exeext && {
13115 test "$cross_compiling" = yes ||
13116 $as_test_x conftest$ac_exeext
13117 }; then
13118 ac_cv_lib_Xext_XShapeQueryExtension=yes
13119 else
13120 $as_echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13123 ac_cv_lib_Xext_XShapeQueryExtension=no
13126 rm -rf conftest.dSYM
13127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13128 conftest$ac_exeext conftest.$ac_ext
13129 LIBS=$ac_check_lib_save_LIBS
13131 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13132 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13133 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13134 cat >>confdefs.h <<_ACEOF
13135 #define HAVE_LIBXEXT 1
13136 _ACEOF
13138 LIBS="-lXext $LIBS"
13145 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13146 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13147 $as_echo_n "checking for Motif version 2.1... " >&6; }
13148 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13149 $as_echo_n "(cached) " >&6
13150 else
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 #include <Xm/Xm.h>
13159 main ()
13161 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13162 int x = 5;
13163 #else
13164 Motif version prior to 2.1.
13165 #endif
13167 return 0;
13169 _ACEOF
13170 rm -f conftest.$ac_objext
13171 if { (ac_try="$ac_compile"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175 esac
13176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13177 $as_echo "$ac_try_echo") >&5
13178 (eval "$ac_compile") 2>conftest.er1
13179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest.$ac_objext; then
13188 emacs_cv_motif_version_2_1=yes
13189 else
13190 $as_echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 emacs_cv_motif_version_2_1=no
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13199 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13200 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13201 if test $emacs_cv_motif_version_2_1 = yes; then
13202 HAVE_LIBXP=no
13204 cat >>confdefs.h <<\_ACEOF
13205 #define HAVE_MOTIF_2_1 1
13206 _ACEOF
13208 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13209 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13210 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13211 $as_echo_n "(cached) " >&6
13212 else
13213 ac_check_lib_save_LIBS=$LIBS
13214 LIBS="-lXp $LIBS"
13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h. */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13222 /* Override any GCC internal prototype to avoid an error.
13223 Use char because int might match the return type of a GCC
13224 builtin and then its argument prototype would still apply. */
13225 #ifdef __cplusplus
13226 extern "C"
13227 #endif
13228 char XpCreateContext ();
13230 main ()
13232 return XpCreateContext ();
13234 return 0;
13236 _ACEOF
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (ac_try="$ac_link"
13239 case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242 esac
13243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13244 $as_echo "$ac_try_echo") >&5
13245 (eval "$ac_link") 2>conftest.er1
13246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } && {
13252 test -z "$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 } && test -s conftest$ac_exeext && {
13255 test "$cross_compiling" = yes ||
13256 $as_test_x conftest$ac_exeext
13257 }; then
13258 ac_cv_lib_Xp_XpCreateContext=yes
13259 else
13260 $as_echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13263 ac_cv_lib_Xp_XpCreateContext=no
13266 rm -rf conftest.dSYM
13267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13268 conftest$ac_exeext conftest.$ac_ext
13269 LIBS=$ac_check_lib_save_LIBS
13271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13272 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13273 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13274 HAVE_LIBXP=yes
13277 if test ${HAVE_LIBXP} = yes; then
13279 cat >>confdefs.h <<\_ACEOF
13280 #define HAVE_LIBXP 1
13281 _ACEOF
13284 else
13285 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13286 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13287 if test "${emacs_cv_lesstif+set}" = set; then
13288 $as_echo_n "(cached) " >&6
13289 else
13290 # We put this in CFLAGS temporarily to precede other -I options
13291 # that might be in CFLAGS temporarily.
13292 # We put this in CPPFLAGS where it precedes the other -I options.
13293 OLD_CPPFLAGS=$CPPFLAGS
13294 OLD_CFLAGS=$CFLAGS
13295 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13296 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13297 cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h. */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13303 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13305 main ()
13307 int x = 5;
13309 return 0;
13311 _ACEOF
13312 rm -f conftest.$ac_objext
13313 if { (ac_try="$ac_compile"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317 esac
13318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13319 $as_echo "$ac_try_echo") >&5
13320 (eval "$ac_compile") 2>conftest.er1
13321 ac_status=$?
13322 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1
13324 cat conftest.err >&5
13325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && {
13327 test -z "$ac_c_werror_flag" ||
13328 test ! -s conftest.err
13329 } && test -s conftest.$ac_objext; then
13330 emacs_cv_lesstif=yes
13331 else
13332 $as_echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13335 emacs_cv_lesstif=no
13338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13341 $as_echo "$emacs_cv_lesstif" >&6; }
13342 if test $emacs_cv_lesstif = yes; then
13343 # Make sure this -I option remains in CPPFLAGS after it is set
13344 # back to REAL_CPPFLAGS.
13345 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13346 # have those other -I options anyway. Ultimately, having this
13347 # directory ultimately in CPPFLAGS will be enough.
13348 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13349 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13350 else
13351 CFLAGS=$OLD_CFLAGS
13352 CPPFLAGS=$OLD_CPPFLAGS
13359 USE_TOOLKIT_SCROLL_BARS=no
13360 if test "${with_toolkit_scroll_bars}" != "no"; then
13361 if test "${USE_X_TOOLKIT}" != "none"; then
13362 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13363 cat >>confdefs.h <<\_ACEOF
13364 #define USE_TOOLKIT_SCROLL_BARS 1
13365 _ACEOF
13367 HAVE_XAW3D=no
13368 USE_TOOLKIT_SCROLL_BARS=yes
13369 elif test "${HAVE_XAW3D}" = "yes"; then
13370 cat >>confdefs.h <<\_ACEOF
13371 #define USE_TOOLKIT_SCROLL_BARS 1
13372 _ACEOF
13374 USE_TOOLKIT_SCROLL_BARS=yes
13376 elif test "${HAVE_GTK}" = "yes"; then
13377 cat >>confdefs.h <<\_ACEOF
13378 #define USE_TOOLKIT_SCROLL_BARS 1
13379 _ACEOF
13381 USE_TOOLKIT_SCROLL_BARS=yes
13382 elif test "${HAVE_NS}" = "yes"; then
13383 cat >>confdefs.h <<\_ACEOF
13384 #define USE_TOOLKIT_SCROLL_BARS 1
13385 _ACEOF
13387 USE_TOOLKIT_SCROLL_BARS=yes
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13398 #include <X11/Xlib.h>
13399 #include <X11/Xresource.h>
13401 main ()
13403 XIMProc callback;
13405 return 0;
13407 _ACEOF
13408 rm -f conftest.$ac_objext
13409 if { (ac_try="$ac_compile"
13410 case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413 esac
13414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13415 $as_echo "$ac_try_echo") >&5
13416 (eval "$ac_compile") 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && {
13423 test -z "$ac_c_werror_flag" ||
13424 test ! -s conftest.err
13425 } && test -s conftest.$ac_objext; then
13426 HAVE_XIM=yes
13428 cat >>confdefs.h <<\_ACEOF
13429 #define HAVE_XIM 1
13430 _ACEOF
13432 else
13433 $as_echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 HAVE_XIM=no
13439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13442 if test "${with_xim}" != "no"; then
13444 cat >>confdefs.h <<\_ACEOF
13445 #define USE_XIM 1
13446 _ACEOF
13451 if test "${HAVE_XIM}" != "no"; then
13452 late_CFLAGS=$CFLAGS
13453 if test "$GCC" = yes; then
13454 CFLAGS="$CFLAGS --pedantic-errors"
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13463 #include <X11/Xlib.h>
13464 #include <X11/Xresource.h>
13466 main ()
13468 Display *display;
13469 XrmDatabase db;
13470 char *res_name;
13471 char *res_class;
13472 XIMProc callback;
13473 XPointer *client_data;
13474 #ifndef __GNUC__
13475 /* If we're not using GCC, it's probably not XFree86, and this is
13476 probably right, but we can't use something like --pedantic-errors. */
13477 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13478 char*, XIMProc, XPointer*);
13479 #endif
13480 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13481 client_data);
13483 return 0;
13485 _ACEOF
13486 rm -f conftest.$ac_objext
13487 if { (ac_try="$ac_compile"
13488 case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13491 esac
13492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13493 $as_echo "$ac_try_echo") >&5
13494 (eval "$ac_compile") 2>conftest.er1
13495 ac_status=$?
13496 grep -v '^ *+' conftest.er1 >conftest.err
13497 rm -f conftest.er1
13498 cat conftest.err >&5
13499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); } && {
13501 test -z "$ac_c_werror_flag" ||
13502 test ! -s conftest.err
13503 } && test -s conftest.$ac_objext; then
13504 emacs_cv_arg6_star=yes
13505 else
13506 $as_echo "$as_me: failed program was:" >&5
13507 sed 's/^/| /' conftest.$ac_ext >&5
13512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13514 if test "$emacs_cv_arg6_star" = yes; then
13515 cat >>confdefs.h <<\_ACEOF
13516 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13517 _ACEOF
13519 else
13520 cat >>confdefs.h <<\_ACEOF
13521 #define XRegisterIMInstantiateCallback_arg6 XPointer
13522 _ACEOF
13525 CFLAGS=$late_CFLAGS
13528 ### Start of font-backend (under any platform) section.
13529 # (nothing here yet -- this is a placeholder)
13530 ### End of font-backend (under any platform) section.
13532 ### Start of font-backend (under X11) section.
13533 if test "${HAVE_X11}" = "yes"; then
13535 succeeded=no
13537 # Extract the first word of "pkg-config", so it can be a program name with args.
13538 set dummy pkg-config; ac_word=$2
13539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13540 $as_echo_n "checking for $ac_word... " >&6; }
13541 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13542 $as_echo_n "(cached) " >&6
13543 else
13544 case $PKG_CONFIG in
13545 [\\/]* | ?:[\\/]*)
13546 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550 for as_dir in $PATH
13552 IFS=$as_save_IFS
13553 test -z "$as_dir" && as_dir=.
13554 for ac_exec_ext in '' $ac_executable_extensions; do
13555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13556 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13558 break 2
13560 done
13561 done
13562 IFS=$as_save_IFS
13564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13566 esac
13568 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13569 if test -n "$PKG_CONFIG"; then
13570 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13571 $as_echo "$PKG_CONFIG" >&6; }
13572 else
13573 { $as_echo "$as_me:$LINENO: result: no" >&5
13574 $as_echo "no" >&6; }
13579 if test "$PKG_CONFIG" = "no" ; then
13580 HAVE_FC=no
13581 else
13582 PKG_CONFIG_MIN_VERSION=0.9.0
13583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13584 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13585 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13587 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13588 { $as_echo "$as_me:$LINENO: result: yes" >&5
13589 $as_echo "yes" >&6; }
13590 succeeded=yes
13592 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13593 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13594 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13595 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13596 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13598 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13599 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13600 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13601 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13602 $as_echo "$FONTCONFIG_LIBS" >&6; }
13603 else
13604 { $as_echo "$as_me:$LINENO: result: no" >&5
13605 $as_echo "no" >&6; }
13606 FONTCONFIG_CFLAGS=""
13607 FONTCONFIG_LIBS=""
13608 ## If we have a custom action on failure, don't print errors, but
13609 ## do set a variable so people can do so.
13610 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13616 else
13617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13622 if test $succeeded = yes; then
13623 HAVE_FC=yes
13624 else
13625 HAVE_FC=no
13629 ## Use -lXft if available, unless `--with-xft=no'.
13630 HAVE_XFT=maybe
13631 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13632 with_xft="no";
13634 if test "x${with_xft}" != "xno"; then
13637 succeeded=no
13639 # Extract the first word of "pkg-config", so it can be a program name with args.
13640 set dummy pkg-config; ac_word=$2
13641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13642 $as_echo_n "checking for $ac_word... " >&6; }
13643 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13644 $as_echo_n "(cached) " >&6
13645 else
13646 case $PKG_CONFIG in
13647 [\\/]* | ?:[\\/]*)
13648 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13654 IFS=$as_save_IFS
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13658 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13660 break 2
13662 done
13663 done
13664 IFS=$as_save_IFS
13666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13668 esac
13670 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13671 if test -n "$PKG_CONFIG"; then
13672 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13673 $as_echo "$PKG_CONFIG" >&6; }
13674 else
13675 { $as_echo "$as_me:$LINENO: result: no" >&5
13676 $as_echo "no" >&6; }
13681 if test "$PKG_CONFIG" = "no" ; then
13682 HAVE_XFT=no
13683 else
13684 PKG_CONFIG_MIN_VERSION=0.9.0
13685 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13686 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13687 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13689 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13690 { $as_echo "$as_me:$LINENO: result: yes" >&5
13691 $as_echo "yes" >&6; }
13692 succeeded=yes
13694 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13695 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13696 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13697 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13698 $as_echo "$XFT_CFLAGS" >&6; }
13700 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13701 $as_echo_n "checking XFT_LIBS... " >&6; }
13702 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13703 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13704 $as_echo "$XFT_LIBS" >&6; }
13705 else
13706 { $as_echo "$as_me:$LINENO: result: no" >&5
13707 $as_echo "no" >&6; }
13708 XFT_CFLAGS=""
13709 XFT_LIBS=""
13710 ## If we have a custom action on failure, don't print errors, but
13711 ## do set a variable so people can do so.
13712 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13718 else
13719 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13720 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13724 if test $succeeded = yes; then
13726 else
13727 HAVE_XFT=no
13730 ## Because xftfont.c uses XRenderQueryExtension, we also
13731 ## need to link to -lXrender.
13732 HAVE_XRENDER=no
13733 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13734 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13735 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13736 $as_echo_n "(cached) " >&6
13737 else
13738 ac_check_lib_save_LIBS=$LIBS
13739 LIBS="-lXrender $LIBS"
13740 cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h. */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13747 /* Override any GCC internal prototype to avoid an error.
13748 Use char because int might match the return type of a GCC
13749 builtin and then its argument prototype would still apply. */
13750 #ifdef __cplusplus
13751 extern "C"
13752 #endif
13753 char XRenderQueryExtension ();
13755 main ()
13757 return XRenderQueryExtension ();
13759 return 0;
13761 _ACEOF
13762 rm -f conftest.$ac_objext conftest$ac_exeext
13763 if { (ac_try="$ac_link"
13764 case "(($ac_try" in
13765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766 *) ac_try_echo=$ac_try;;
13767 esac
13768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13769 $as_echo "$ac_try_echo") >&5
13770 (eval "$ac_link") 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } && {
13777 test -z "$ac_c_werror_flag" ||
13778 test ! -s conftest.err
13779 } && test -s conftest$ac_exeext && {
13780 test "$cross_compiling" = yes ||
13781 $as_test_x conftest$ac_exeext
13782 }; then
13783 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13784 else
13785 $as_echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_cv_lib_Xrender_XRenderQueryExtension=no
13791 rm -rf conftest.dSYM
13792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13793 conftest$ac_exeext conftest.$ac_ext
13794 LIBS=$ac_check_lib_save_LIBS
13796 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13797 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13798 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13799 HAVE_XRENDER=yes
13802 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13803 OLD_CPPFLAGS="$CPPFLAGS"
13804 OLD_CFLAGS="$CFLAGS"
13805 OLD_LIBS="$LIBS"
13806 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13807 CFLAGS="$CFLAGS $XFT_CFLAGS"
13808 XFT_LIBS="-lXrender $XFT_LIBS"
13809 LIBS="$XFT_LIBS $LIBS"
13810 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13811 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13812 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13813 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13814 $as_echo_n "(cached) " >&6
13816 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13817 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13818 else
13819 # Is the header compilable?
13820 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13821 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 $ac_includes_default
13829 #include <X11/Xft/Xft.h>
13830 _ACEOF
13831 rm -f conftest.$ac_objext
13832 if { (ac_try="$ac_compile"
13833 case "(($ac_try" in
13834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835 *) ac_try_echo=$ac_try;;
13836 esac
13837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13838 $as_echo "$ac_try_echo") >&5
13839 (eval "$ac_compile") 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } && {
13846 test -z "$ac_c_werror_flag" ||
13847 test ! -s conftest.err
13848 } && test -s conftest.$ac_objext; then
13849 ac_header_compiler=yes
13850 else
13851 $as_echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13854 ac_header_compiler=no
13857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13858 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13859 $as_echo "$ac_header_compiler" >&6; }
13861 # Is the header present?
13862 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13863 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h. */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 #include <X11/Xft/Xft.h>
13871 _ACEOF
13872 if { (ac_try="$ac_cpp conftest.$ac_ext"
13873 case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13876 esac
13877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13878 $as_echo "$ac_try_echo") >&5
13879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } >/dev/null && {
13886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13887 test ! -s conftest.err
13888 }; then
13889 ac_header_preproc=yes
13890 else
13891 $as_echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13894 ac_header_preproc=no
13897 rm -f conftest.err conftest.$ac_ext
13898 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13899 $as_echo "$ac_header_preproc" >&6; }
13901 # So? What about this header?
13902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13903 yes:no: )
13904 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13905 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13906 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13907 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13908 ac_header_preproc=yes
13910 no:yes:* )
13911 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13912 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13913 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13914 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13915 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13916 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13917 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13918 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13919 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13920 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13921 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13922 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13925 esac
13926 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13927 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13928 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13929 $as_echo_n "(cached) " >&6
13930 else
13931 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13933 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13934 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13937 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13938 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13939 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13940 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13941 $as_echo_n "(cached) " >&6
13942 else
13943 ac_check_lib_save_LIBS=$LIBS
13944 LIBS="-lXft $XFT_LIBS $LIBS"
13945 cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h. */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13952 /* Override any GCC internal prototype to avoid an error.
13953 Use char because int might match the return type of a GCC
13954 builtin and then its argument prototype would still apply. */
13955 #ifdef __cplusplus
13956 extern "C"
13957 #endif
13958 char XftFontOpen ();
13960 main ()
13962 return XftFontOpen ();
13964 return 0;
13966 _ACEOF
13967 rm -f conftest.$ac_objext conftest$ac_exeext
13968 if { (ac_try="$ac_link"
13969 case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13972 esac
13973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13974 $as_echo "$ac_try_echo") >&5
13975 (eval "$ac_link") 2>conftest.er1
13976 ac_status=$?
13977 grep -v '^ *+' conftest.er1 >conftest.err
13978 rm -f conftest.er1
13979 cat conftest.err >&5
13980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && {
13982 test -z "$ac_c_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest$ac_exeext && {
13985 test "$cross_compiling" = yes ||
13986 $as_test_x conftest$ac_exeext
13987 }; then
13988 ac_cv_lib_Xft_XftFontOpen=yes
13989 else
13990 $as_echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 ac_cv_lib_Xft_XftFontOpen=no
13996 rm -rf conftest.dSYM
13997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13998 conftest$ac_exeext conftest.$ac_ext
13999 LIBS=$ac_check_lib_save_LIBS
14001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14002 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14003 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14004 HAVE_XFT=yes
14011 if test "${HAVE_XFT}" = "yes"; then
14013 cat >>confdefs.h <<\_ACEOF
14014 #define HAVE_XFT 1
14015 _ACEOF
14018 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14019 else
14020 CPPFLAGS="$OLD_CPPFLAGS"
14021 CFLAGS="$OLD_CFLAGS"
14022 LIBS="$OLD_LIBS"
14023 fi # "${HAVE_XFT}" = "yes"
14024 fi # "$HAVE_XFT" != no
14025 fi # "x${with_xft}" != "xno"
14027 if test "$HAVE_XFT" != "yes"; then
14028 HAVE_XFT=no
14032 HAVE_FREETYPE=no
14033 ## We used to allow building with FreeType and without Xft.
14034 ## However, the ftx font backend driver is not in good shape.
14035 if test "${HAVE_XFT}" = "yes"; then
14036 HAVE_FREETYPE=yes
14037 FONTCONFIG_CFLAGS=
14038 FONTCONFIG_LIBS=
14041 HAVE_LIBOTF=no
14042 if test "${HAVE_FREETYPE}" = "yes"; then
14044 cat >>confdefs.h <<\_ACEOF
14045 #define HAVE_FREETYPE 1
14046 _ACEOF
14048 if test "${with_libotf}" != "no"; then
14050 succeeded=no
14052 # Extract the first word of "pkg-config", so it can be a program name with args.
14053 set dummy pkg-config; ac_word=$2
14054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14055 $as_echo_n "checking for $ac_word... " >&6; }
14056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14057 $as_echo_n "(cached) " >&6
14058 else
14059 case $PKG_CONFIG in
14060 [\\/]* | ?:[\\/]*)
14061 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14065 for as_dir in $PATH
14067 IFS=$as_save_IFS
14068 test -z "$as_dir" && as_dir=.
14069 for ac_exec_ext in '' $ac_executable_extensions; do
14070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14073 break 2
14075 done
14076 done
14077 IFS=$as_save_IFS
14079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14081 esac
14083 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14084 if test -n "$PKG_CONFIG"; then
14085 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14086 $as_echo "$PKG_CONFIG" >&6; }
14087 else
14088 { $as_echo "$as_me:$LINENO: result: no" >&5
14089 $as_echo "no" >&6; }
14094 if test "$PKG_CONFIG" = "no" ; then
14095 HAVE_LIBOTF=no
14096 else
14097 PKG_CONFIG_MIN_VERSION=0.9.0
14098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14099 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14100 $as_echo_n "checking for libotf... " >&6; }
14102 if $PKG_CONFIG --exists "libotf" 2>&5; then
14103 { $as_echo "$as_me:$LINENO: result: yes" >&5
14104 $as_echo "yes" >&6; }
14105 succeeded=yes
14107 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14108 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14109 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14110 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14111 $as_echo "$LIBOTF_CFLAGS" >&6; }
14113 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14114 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14115 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14116 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14117 $as_echo "$LIBOTF_LIBS" >&6; }
14118 else
14119 { $as_echo "$as_me:$LINENO: result: no" >&5
14120 $as_echo "no" >&6; }
14121 LIBOTF_CFLAGS=""
14122 LIBOTF_LIBS=""
14123 ## If we have a custom action on failure, don't print errors, but
14124 ## do set a variable so people can do so.
14125 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14131 else
14132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14137 if test $succeeded = yes; then
14138 HAVE_LIBOTF=yes
14139 else
14140 HAVE_LIBOTF=no
14143 if test "$HAVE_LIBOTF" = "yes"; then
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_LIBOTF 1
14147 _ACEOF
14149 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14150 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14151 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14152 $as_echo_n "(cached) " >&6
14153 else
14154 ac_check_lib_save_LIBS=$LIBS
14155 LIBS="-lotf $LIBS"
14156 cat >conftest.$ac_ext <<_ACEOF
14157 /* confdefs.h. */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14163 /* Override any GCC internal prototype to avoid an error.
14164 Use char because int might match the return type of a GCC
14165 builtin and then its argument prototype would still apply. */
14166 #ifdef __cplusplus
14167 extern "C"
14168 #endif
14169 char OTF_get_variation_glyphs ();
14171 main ()
14173 return OTF_get_variation_glyphs ();
14175 return 0;
14177 _ACEOF
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (ac_try="$ac_link"
14180 case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14183 esac
14184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14185 $as_echo "$ac_try_echo") >&5
14186 (eval "$ac_link") 2>conftest.er1
14187 ac_status=$?
14188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
14191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } && {
14193 test -z "$ac_c_werror_flag" ||
14194 test ! -s conftest.err
14195 } && test -s conftest$ac_exeext && {
14196 test "$cross_compiling" = yes ||
14197 $as_test_x conftest$ac_exeext
14198 }; then
14199 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14200 else
14201 $as_echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14207 rm -rf conftest.dSYM
14208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14209 conftest$ac_exeext conftest.$ac_ext
14210 LIBS=$ac_check_lib_save_LIBS
14212 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14213 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14214 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14215 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14216 else
14217 HAVE_OTF_GET_VARIATION_GLYPHS=no
14220 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14222 cat >>confdefs.h <<\_ACEOF
14223 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14224 _ACEOF
14231 HAVE_M17N_FLT=no
14232 if test "${HAVE_LIBOTF}" = yes; then
14233 if test "${with_m17n_flt}" != "no"; then
14235 succeeded=no
14237 # Extract the first word of "pkg-config", so it can be a program name with args.
14238 set dummy pkg-config; ac_word=$2
14239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14240 $as_echo_n "checking for $ac_word... " >&6; }
14241 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14242 $as_echo_n "(cached) " >&6
14243 else
14244 case $PKG_CONFIG in
14245 [\\/]* | ?:[\\/]*)
14246 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14256 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 break 2
14260 done
14261 done
14262 IFS=$as_save_IFS
14264 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14266 esac
14268 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14269 if test -n "$PKG_CONFIG"; then
14270 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14271 $as_echo "$PKG_CONFIG" >&6; }
14272 else
14273 { $as_echo "$as_me:$LINENO: result: no" >&5
14274 $as_echo "no" >&6; }
14279 if test "$PKG_CONFIG" = "no" ; then
14280 HAVE_M17N_FLT=no
14281 else
14282 PKG_CONFIG_MIN_VERSION=0.9.0
14283 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14284 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14285 $as_echo_n "checking for m17n-flt... " >&6; }
14287 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14288 { $as_echo "$as_me:$LINENO: result: yes" >&5
14289 $as_echo "yes" >&6; }
14290 succeeded=yes
14292 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14293 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14294 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14295 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14296 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14298 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14299 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14300 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14301 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14302 $as_echo "$M17N_FLT_LIBS" >&6; }
14303 else
14304 { $as_echo "$as_me:$LINENO: result: no" >&5
14305 $as_echo "no" >&6; }
14306 M17N_FLT_CFLAGS=""
14307 M17N_FLT_LIBS=""
14308 ## If we have a custom action on failure, don't print errors, but
14309 ## do set a variable so people can do so.
14310 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14316 else
14317 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14318 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14322 if test $succeeded = yes; then
14323 HAVE_M17N_FLT=yes
14324 else
14325 HAVE_M17N_FLT=no
14328 if test "$HAVE_M17N_FLT" = "yes"; then
14330 cat >>confdefs.h <<\_ACEOF
14331 #define HAVE_M17N_FLT 1
14332 _ACEOF
14337 else
14338 HAVE_XFT=no
14339 HAVE_FREETYPE=no
14340 HAVE_LIBOTF=no
14341 HAVE_M17N_FLT=no
14343 ### End of font-backend (under X11) section.
14354 ### Use -lXpm if available, unless `--with-xpm=no'.
14355 HAVE_XPM=no
14356 LIBXPM=
14357 if test "${HAVE_X11}" = "yes"; then
14358 if test "${with_xpm}" != "no"; then
14359 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14360 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14361 $as_echo_n "checking for X11/xpm.h... " >&6; }
14362 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14363 $as_echo_n "(cached) " >&6
14365 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14366 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14367 else
14368 # Is the header compilable?
14369 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14370 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14371 cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h. */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14377 $ac_includes_default
14378 #include <X11/xpm.h>
14379 _ACEOF
14380 rm -f conftest.$ac_objext
14381 if { (ac_try="$ac_compile"
14382 case "(($ac_try" in
14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384 *) ac_try_echo=$ac_try;;
14385 esac
14386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14387 $as_echo "$ac_try_echo") >&5
14388 (eval "$ac_compile") 2>conftest.er1
14389 ac_status=$?
14390 grep -v '^ *+' conftest.er1 >conftest.err
14391 rm -f conftest.er1
14392 cat conftest.err >&5
14393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } && {
14395 test -z "$ac_c_werror_flag" ||
14396 test ! -s conftest.err
14397 } && test -s conftest.$ac_objext; then
14398 ac_header_compiler=yes
14399 else
14400 $as_echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ac_header_compiler=no
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14408 $as_echo "$ac_header_compiler" >&6; }
14410 # Is the header present?
14411 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14412 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14413 cat >conftest.$ac_ext <<_ACEOF
14414 /* confdefs.h. */
14415 _ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h. */
14419 #include <X11/xpm.h>
14420 _ACEOF
14421 if { (ac_try="$ac_cpp conftest.$ac_ext"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425 esac
14426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14427 $as_echo "$ac_try_echo") >&5
14428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } >/dev/null && {
14435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14436 test ! -s conftest.err
14437 }; then
14438 ac_header_preproc=yes
14439 else
14440 $as_echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14443 ac_header_preproc=no
14446 rm -f conftest.err conftest.$ac_ext
14447 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14448 $as_echo "$ac_header_preproc" >&6; }
14450 # So? What about this header?
14451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14452 yes:no: )
14453 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14454 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14455 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14456 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14457 ac_header_preproc=yes
14459 no:yes:* )
14460 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14461 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14462 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14463 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14464 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14465 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14466 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14467 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14468 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14469 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14470 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14471 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14474 esac
14475 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14476 $as_echo_n "checking for X11/xpm.h... " >&6; }
14477 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14478 $as_echo_n "(cached) " >&6
14479 else
14480 ac_cv_header_X11_xpm_h=$ac_header_preproc
14482 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14483 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14486 if test $ac_cv_header_X11_xpm_h = yes; then
14487 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14488 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14489 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14490 $as_echo_n "(cached) " >&6
14491 else
14492 ac_check_lib_save_LIBS=$LIBS
14493 LIBS="-lXpm -lX11 $LIBS"
14494 cat >conftest.$ac_ext <<_ACEOF
14495 /* confdefs.h. */
14496 _ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14501 /* Override any GCC internal prototype to avoid an error.
14502 Use char because int might match the return type of a GCC
14503 builtin and then its argument prototype would still apply. */
14504 #ifdef __cplusplus
14505 extern "C"
14506 #endif
14507 char XpmReadFileToPixmap ();
14509 main ()
14511 return XpmReadFileToPixmap ();
14513 return 0;
14515 _ACEOF
14516 rm -f conftest.$ac_objext conftest$ac_exeext
14517 if { (ac_try="$ac_link"
14518 case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14521 esac
14522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14523 $as_echo "$ac_try_echo") >&5
14524 (eval "$ac_link") 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } && {
14531 test -z "$ac_c_werror_flag" ||
14532 test ! -s conftest.err
14533 } && test -s conftest$ac_exeext && {
14534 test "$cross_compiling" = yes ||
14535 $as_test_x conftest$ac_exeext
14536 }; then
14537 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14538 else
14539 $as_echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14542 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14545 rm -rf conftest.dSYM
14546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14547 conftest$ac_exeext conftest.$ac_ext
14548 LIBS=$ac_check_lib_save_LIBS
14550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14551 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14552 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14553 HAVE_XPM=yes
14559 if test "${HAVE_XPM}" = "yes"; then
14560 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14561 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14562 cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h. */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 #include "X11/xpm.h"
14569 #ifndef XpmReturnAllocPixels
14570 no_return_alloc_pixels
14571 #endif
14573 _ACEOF
14574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14575 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14576 HAVE_XPM=no
14577 else
14578 HAVE_XPM=yes
14580 rm -f conftest*
14583 if test "${HAVE_XPM}" = "yes"; then
14584 { $as_echo "$as_me:$LINENO: result: yes" >&5
14585 $as_echo "yes" >&6; }
14586 else
14587 { $as_echo "$as_me:$LINENO: result: no" >&5
14588 $as_echo "no" >&6; }
14593 if test "${HAVE_XPM}" = "yes"; then
14595 cat >>confdefs.h <<\_ACEOF
14596 #define HAVE_XPM 1
14597 _ACEOF
14599 LIBXPM=-lXpm
14604 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14605 HAVE_JPEG=no
14606 LIBJPEG=
14607 if test "${HAVE_X11}" = "yes"; then
14608 if test "${with_jpeg}" != "no"; then
14609 if test "${ac_cv_header_jerror_h+set}" = set; then
14610 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14611 $as_echo_n "checking for jerror.h... " >&6; }
14612 if test "${ac_cv_header_jerror_h+set}" = set; then
14613 $as_echo_n "(cached) " >&6
14615 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14616 $as_echo "$ac_cv_header_jerror_h" >&6; }
14617 else
14618 # Is the header compilable?
14619 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14620 $as_echo_n "checking jerror.h usability... " >&6; }
14621 cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h. */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 $ac_includes_default
14628 #include <jerror.h>
14629 _ACEOF
14630 rm -f conftest.$ac_objext
14631 if { (ac_try="$ac_compile"
14632 case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14635 esac
14636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14637 $as_echo "$ac_try_echo") >&5
14638 (eval "$ac_compile") 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && {
14645 test -z "$ac_c_werror_flag" ||
14646 test ! -s conftest.err
14647 } && test -s conftest.$ac_objext; then
14648 ac_header_compiler=yes
14649 else
14650 $as_echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 ac_header_compiler=no
14656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14658 $as_echo "$ac_header_compiler" >&6; }
14660 # Is the header present?
14661 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14662 $as_echo_n "checking jerror.h presence... " >&6; }
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h. */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 #include <jerror.h>
14670 _ACEOF
14671 if { (ac_try="$ac_cpp conftest.$ac_ext"
14672 case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14675 esac
14676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14677 $as_echo "$ac_try_echo") >&5
14678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } >/dev/null && {
14685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14686 test ! -s conftest.err
14687 }; then
14688 ac_header_preproc=yes
14689 else
14690 $as_echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 ac_header_preproc=no
14696 rm -f conftest.err conftest.$ac_ext
14697 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14698 $as_echo "$ac_header_preproc" >&6; }
14700 # So? What about this header?
14701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14702 yes:no: )
14703 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14704 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14705 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14706 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14707 ac_header_preproc=yes
14709 no:yes:* )
14710 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14711 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14712 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14713 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14714 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14715 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14716 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14717 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14718 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14719 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14720 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14721 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14724 esac
14725 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14726 $as_echo_n "checking for jerror.h... " >&6; }
14727 if test "${ac_cv_header_jerror_h+set}" = set; then
14728 $as_echo_n "(cached) " >&6
14729 else
14730 ac_cv_header_jerror_h=$ac_header_preproc
14732 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14733 $as_echo "$ac_cv_header_jerror_h" >&6; }
14736 if test $ac_cv_header_jerror_h = yes; then
14737 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14738 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14739 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14740 $as_echo_n "(cached) " >&6
14741 else
14742 ac_check_lib_save_LIBS=$LIBS
14743 LIBS="-ljpeg $LIBS"
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h. */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14751 /* Override any GCC internal prototype to avoid an error.
14752 Use char because int might match the return type of a GCC
14753 builtin and then its argument prototype would still apply. */
14754 #ifdef __cplusplus
14755 extern "C"
14756 #endif
14757 char jpeg_destroy_compress ();
14759 main ()
14761 return jpeg_destroy_compress ();
14763 return 0;
14765 _ACEOF
14766 rm -f conftest.$ac_objext conftest$ac_exeext
14767 if { (ac_try="$ac_link"
14768 case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14771 esac
14772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14773 $as_echo "$ac_try_echo") >&5
14774 (eval "$ac_link") 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } && {
14781 test -z "$ac_c_werror_flag" ||
14782 test ! -s conftest.err
14783 } && test -s conftest$ac_exeext && {
14784 test "$cross_compiling" = yes ||
14785 $as_test_x conftest$ac_exeext
14786 }; then
14787 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14788 else
14789 $as_echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14792 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14795 rm -rf conftest.dSYM
14796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14797 conftest$ac_exeext conftest.$ac_ext
14798 LIBS=$ac_check_lib_save_LIBS
14800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14801 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14802 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14803 HAVE_JPEG=yes
14812 if test "${HAVE_JPEG}" = "yes"; then
14813 cat >>confdefs.h <<\_ACEOF
14814 #define HAVE_JPEG 1
14815 _ACEOF
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 #include <jpeglib.h>
14824 version=JPEG_LIB_VERSION
14826 _ACEOF
14827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14828 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14829 cat >>confdefs.h <<\_ACEOF
14830 #define HAVE_JPEG 1
14831 _ACEOF
14833 else
14834 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14835 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14836 HAVE_JPEG=no
14838 rm -f conftest*
14841 if test "${HAVE_JPEG}" = "yes"; then
14842 LIBJPEG=-ljpeg
14847 ### Use -lpng if available, unless `--with-png=no'.
14848 HAVE_PNG=no
14849 LIBPNG=
14850 if test "${HAVE_X11}" = "yes"; then
14851 if test "${with_png}" != "no"; then
14852 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14853 # in /usr/include/libpng.
14856 for ac_header in png.h libpng/png.h
14858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14861 $as_echo_n "checking for $ac_header... " >&6; }
14862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14863 $as_echo_n "(cached) " >&6
14865 ac_res=`eval 'as_val=${'$as_ac_Header'}
14866 $as_echo "$as_val"'`
14867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14868 $as_echo "$ac_res" >&6; }
14869 else
14870 # Is the header compilable?
14871 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14872 $as_echo_n "checking $ac_header usability... " >&6; }
14873 cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h. */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 $ac_includes_default
14880 #include <$ac_header>
14881 _ACEOF
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887 esac
14888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14889 $as_echo "$ac_try_echo") >&5
14890 (eval "$ac_compile") 2>conftest.er1
14891 ac_status=$?
14892 grep -v '^ *+' conftest.er1 >conftest.err
14893 rm -f conftest.er1
14894 cat conftest.err >&5
14895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } && {
14897 test -z "$ac_c_werror_flag" ||
14898 test ! -s conftest.err
14899 } && test -s conftest.$ac_objext; then
14900 ac_header_compiler=yes
14901 else
14902 $as_echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14905 ac_header_compiler=no
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14910 $as_echo "$ac_header_compiler" >&6; }
14912 # Is the header present?
14913 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14914 $as_echo_n "checking $ac_header presence... " >&6; }
14915 cat >conftest.$ac_ext <<_ACEOF
14916 /* confdefs.h. */
14917 _ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14921 #include <$ac_header>
14922 _ACEOF
14923 if { (ac_try="$ac_cpp conftest.$ac_ext"
14924 case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927 esac
14928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14929 $as_echo "$ac_try_echo") >&5
14930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } >/dev/null && {
14937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14938 test ! -s conftest.err
14939 }; then
14940 ac_header_preproc=yes
14941 else
14942 $as_echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_header_preproc=no
14948 rm -f conftest.err conftest.$ac_ext
14949 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14950 $as_echo "$ac_header_preproc" >&6; }
14952 # So? What about this header?
14953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14954 yes:no: )
14955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14956 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14958 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14959 ac_header_preproc=yes
14961 no:yes:* )
14962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14963 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14965 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14967 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14969 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14971 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14973 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14976 esac
14977 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14978 $as_echo_n "checking for $ac_header... " >&6; }
14979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14980 $as_echo_n "(cached) " >&6
14981 else
14982 eval "$as_ac_Header=\$ac_header_preproc"
14984 ac_res=`eval 'as_val=${'$as_ac_Header'}
14985 $as_echo "$as_val"'`
14986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14987 $as_echo "$ac_res" >&6; }
14990 if test `eval 'as_val=${'$as_ac_Header'}
14991 $as_echo "$as_val"'` = yes; then
14992 cat >>confdefs.h <<_ACEOF
14993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14994 _ACEOF
14998 done
15000 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15001 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15002 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15003 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15004 $as_echo_n "(cached) " >&6
15005 else
15006 ac_check_lib_save_LIBS=$LIBS
15007 LIBS="-lpng -lz -lm $LIBS"
15008 cat >conftest.$ac_ext <<_ACEOF
15009 /* confdefs.h. */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15015 /* Override any GCC internal prototype to avoid an error.
15016 Use char because int might match the return type of a GCC
15017 builtin and then its argument prototype would still apply. */
15018 #ifdef __cplusplus
15019 extern "C"
15020 #endif
15021 char png_get_channels ();
15023 main ()
15025 return png_get_channels ();
15027 return 0;
15029 _ACEOF
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (ac_try="$ac_link"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15035 esac
15036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15037 $as_echo "$ac_try_echo") >&5
15038 (eval "$ac_link") 2>conftest.er1
15039 ac_status=$?
15040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
15043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && {
15045 test -z "$ac_c_werror_flag" ||
15046 test ! -s conftest.err
15047 } && test -s conftest$ac_exeext && {
15048 test "$cross_compiling" = yes ||
15049 $as_test_x conftest$ac_exeext
15050 }; then
15051 ac_cv_lib_png_png_get_channels=yes
15052 else
15053 $as_echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15056 ac_cv_lib_png_png_get_channels=no
15059 rm -rf conftest.dSYM
15060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15061 conftest$ac_exeext conftest.$ac_ext
15062 LIBS=$ac_check_lib_save_LIBS
15064 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15065 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15066 if test $ac_cv_lib_png_png_get_channels = yes; then
15067 HAVE_PNG=yes
15073 if test "${HAVE_PNG}" = "yes"; then
15075 cat >>confdefs.h <<\_ACEOF
15076 #define HAVE_PNG 1
15077 _ACEOF
15079 LIBPNG="-lpng -lz -lm"
15084 ### Use -ltiff if available, unless `--with-tiff=no'.
15085 HAVE_TIFF=no
15086 LIBTIFF=
15087 if test "${HAVE_X11}" = "yes"; then
15088 if test "${with_tiff}" != "no"; then
15089 if test "${ac_cv_header_tiffio_h+set}" = set; then
15090 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15091 $as_echo_n "checking for tiffio.h... " >&6; }
15092 if test "${ac_cv_header_tiffio_h+set}" = set; then
15093 $as_echo_n "(cached) " >&6
15095 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15096 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15097 else
15098 # Is the header compilable?
15099 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15100 $as_echo_n "checking tiffio.h usability... " >&6; }
15101 cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h. */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 $ac_includes_default
15108 #include <tiffio.h>
15109 _ACEOF
15110 rm -f conftest.$ac_objext
15111 if { (ac_try="$ac_compile"
15112 case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15115 esac
15116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15117 $as_echo "$ac_try_echo") >&5
15118 (eval "$ac_compile") 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } && {
15125 test -z "$ac_c_werror_flag" ||
15126 test ! -s conftest.err
15127 } && test -s conftest.$ac_objext; then
15128 ac_header_compiler=yes
15129 else
15130 $as_echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_header_compiler=no
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15138 $as_echo "$ac_header_compiler" >&6; }
15140 # Is the header present?
15141 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15142 $as_echo_n "checking tiffio.h presence... " >&6; }
15143 cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h. */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 #include <tiffio.h>
15150 _ACEOF
15151 if { (ac_try="$ac_cpp conftest.$ac_ext"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155 esac
15156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15157 $as_echo "$ac_try_echo") >&5
15158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } >/dev/null && {
15165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15166 test ! -s conftest.err
15167 }; then
15168 ac_header_preproc=yes
15169 else
15170 $as_echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15173 ac_header_preproc=no
15176 rm -f conftest.err conftest.$ac_ext
15177 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15178 $as_echo "$ac_header_preproc" >&6; }
15180 # So? What about this header?
15181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15182 yes:no: )
15183 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15184 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15185 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15186 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15187 ac_header_preproc=yes
15189 no:yes:* )
15190 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15191 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15192 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15193 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15194 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15195 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15196 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15197 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15198 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15199 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15200 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15201 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15204 esac
15205 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15206 $as_echo_n "checking for tiffio.h... " >&6; }
15207 if test "${ac_cv_header_tiffio_h+set}" = set; then
15208 $as_echo_n "(cached) " >&6
15209 else
15210 ac_cv_header_tiffio_h=$ac_header_preproc
15212 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15213 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15216 if test $ac_cv_header_tiffio_h = yes; then
15217 tifflibs="-lz -lm"
15218 # At least one tiff package requires the jpeg library.
15219 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15220 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15221 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15222 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15223 $as_echo_n "(cached) " >&6
15224 else
15225 ac_check_lib_save_LIBS=$LIBS
15226 LIBS="-ltiff $tifflibs $LIBS"
15227 cat >conftest.$ac_ext <<_ACEOF
15228 /* confdefs.h. */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15234 /* Override any GCC internal prototype to avoid an error.
15235 Use char because int might match the return type of a GCC
15236 builtin and then its argument prototype would still apply. */
15237 #ifdef __cplusplus
15238 extern "C"
15239 #endif
15240 char TIFFGetVersion ();
15242 main ()
15244 return TIFFGetVersion ();
15246 return 0;
15248 _ACEOF
15249 rm -f conftest.$ac_objext conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254 esac
15255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15256 $as_echo "$ac_try_echo") >&5
15257 (eval "$ac_link") 2>conftest.er1
15258 ac_status=$?
15259 grep -v '^ *+' conftest.er1 >conftest.err
15260 rm -f conftest.er1
15261 cat conftest.err >&5
15262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } && {
15264 test -z "$ac_c_werror_flag" ||
15265 test ! -s conftest.err
15266 } && test -s conftest$ac_exeext && {
15267 test "$cross_compiling" = yes ||
15268 $as_test_x conftest$ac_exeext
15269 }; then
15270 ac_cv_lib_tiff_TIFFGetVersion=yes
15271 else
15272 $as_echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_cv_lib_tiff_TIFFGetVersion=no
15278 rm -rf conftest.dSYM
15279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15280 conftest$ac_exeext conftest.$ac_ext
15281 LIBS=$ac_check_lib_save_LIBS
15283 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15284 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15285 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15286 HAVE_TIFF=yes
15294 if test "${HAVE_TIFF}" = "yes"; then
15296 cat >>confdefs.h <<\_ACEOF
15297 #define HAVE_TIFF 1
15298 _ACEOF
15300 LIBTIFF=-ltiff
15305 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15306 HAVE_GIF=no
15307 LIBGIF=
15308 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15309 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15310 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15311 $as_echo_n "checking for gif_lib.h... " >&6; }
15312 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15313 $as_echo_n "(cached) " >&6
15315 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15316 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15317 else
15318 # Is the header compilable?
15319 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15320 $as_echo_n "checking gif_lib.h usability... " >&6; }
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 $ac_includes_default
15328 #include <gif_lib.h>
15329 _ACEOF
15330 rm -f conftest.$ac_objext
15331 if { (ac_try="$ac_compile"
15332 case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335 esac
15336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15337 $as_echo "$ac_try_echo") >&5
15338 (eval "$ac_compile") 2>conftest.er1
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } && {
15345 test -z "$ac_c_werror_flag" ||
15346 test ! -s conftest.err
15347 } && test -s conftest.$ac_objext; then
15348 ac_header_compiler=yes
15349 else
15350 $as_echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 ac_header_compiler=no
15356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15357 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15358 $as_echo "$ac_header_compiler" >&6; }
15360 # Is the header present?
15361 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15362 $as_echo_n "checking gif_lib.h presence... " >&6; }
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h. */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <gif_lib.h>
15370 _ACEOF
15371 if { (ac_try="$ac_cpp conftest.$ac_ext"
15372 case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375 esac
15376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15377 $as_echo "$ac_try_echo") >&5
15378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } >/dev/null && {
15385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15386 test ! -s conftest.err
15387 }; then
15388 ac_header_preproc=yes
15389 else
15390 $as_echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_header_preproc=no
15396 rm -f conftest.err conftest.$ac_ext
15397 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15398 $as_echo "$ac_header_preproc" >&6; }
15400 # So? What about this header?
15401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15402 yes:no: )
15403 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15404 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15405 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15406 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15407 ac_header_preproc=yes
15409 no:yes:* )
15410 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15411 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15412 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15413 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15414 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15415 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15416 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15417 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15418 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15419 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15420 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15421 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15424 esac
15425 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15426 $as_echo_n "checking for gif_lib.h... " >&6; }
15427 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15428 $as_echo_n "(cached) " >&6
15429 else
15430 ac_cv_header_gif_lib_h=$ac_header_preproc
15432 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15433 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15436 if test $ac_cv_header_gif_lib_h = yes; then
15437 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15438 # Earlier versions can crash Emacs.
15439 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15440 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15441 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15442 $as_echo_n "(cached) " >&6
15443 else
15444 ac_check_lib_save_LIBS=$LIBS
15445 LIBS="-lgif $LIBS"
15446 cat >conftest.$ac_ext <<_ACEOF
15447 /* confdefs.h. */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15453 /* Override any GCC internal prototype to avoid an error.
15454 Use char because int might match the return type of a GCC
15455 builtin and then its argument prototype would still apply. */
15456 #ifdef __cplusplus
15457 extern "C"
15458 #endif
15459 char EGifPutExtensionLast ();
15461 main ()
15463 return EGifPutExtensionLast ();
15465 return 0;
15467 _ACEOF
15468 rm -f conftest.$ac_objext conftest$ac_exeext
15469 if { (ac_try="$ac_link"
15470 case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15473 esac
15474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475 $as_echo "$ac_try_echo") >&5
15476 (eval "$ac_link") 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && {
15483 test -z "$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 } && test -s conftest$ac_exeext && {
15486 test "$cross_compiling" = yes ||
15487 $as_test_x conftest$ac_exeext
15488 }; then
15489 ac_cv_lib_gif_EGifPutExtensionLast=yes
15490 else
15491 $as_echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15494 ac_cv_lib_gif_EGifPutExtensionLast=no
15497 rm -rf conftest.dSYM
15498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15499 conftest$ac_exeext conftest.$ac_ext
15500 LIBS=$ac_check_lib_save_LIBS
15502 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15503 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15504 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15505 HAVE_GIF=yes
15506 else
15507 HAVE_GIF=maybe
15514 if test "$HAVE_GIF" = yes; then
15515 LIBGIF=-lgif
15516 elif test "$HAVE_GIF" = maybe; then
15517 # If gif_lib.h but no libgif, try libungif.
15518 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15519 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15520 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15521 $as_echo_n "(cached) " >&6
15522 else
15523 ac_check_lib_save_LIBS=$LIBS
15524 LIBS="-lungif $LIBS"
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h. */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15532 /* Override any GCC internal prototype to avoid an error.
15533 Use char because int might match the return type of a GCC
15534 builtin and then its argument prototype would still apply. */
15535 #ifdef __cplusplus
15536 extern "C"
15537 #endif
15538 char EGifPutExtensionLast ();
15540 main ()
15542 return EGifPutExtensionLast ();
15544 return 0;
15546 _ACEOF
15547 rm -f conftest.$ac_objext conftest$ac_exeext
15548 if { (ac_try="$ac_link"
15549 case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15552 esac
15553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15554 $as_echo "$ac_try_echo") >&5
15555 (eval "$ac_link") 2>conftest.er1
15556 ac_status=$?
15557 grep -v '^ *+' conftest.er1 >conftest.err
15558 rm -f conftest.er1
15559 cat conftest.err >&5
15560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } && {
15562 test -z "$ac_c_werror_flag" ||
15563 test ! -s conftest.err
15564 } && test -s conftest$ac_exeext && {
15565 test "$cross_compiling" = yes ||
15566 $as_test_x conftest$ac_exeext
15567 }; then
15568 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15569 else
15570 $as_echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_cv_lib_ungif_EGifPutExtensionLast=no
15576 rm -rf conftest.dSYM
15577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15578 conftest$ac_exeext conftest.$ac_ext
15579 LIBS=$ac_check_lib_save_LIBS
15581 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15582 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15583 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15584 HAVE_GIF=yes
15585 else
15586 HAVE_GIF=no
15589 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15592 if test "${HAVE_GIF}" = "yes"; then
15594 cat >>confdefs.h <<\_ACEOF
15595 #define HAVE_GIF 1
15596 _ACEOF
15602 if test "${HAVE_X11}" = "yes"; then
15603 MISSING=""
15604 WITH_NO=""
15605 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15606 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15607 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15608 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15609 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15610 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15611 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15612 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15613 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15614 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15616 if test "X${MISSING}" != X; then
15617 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15618 $MISSING
15619 Maybe some development libraries/packages are missing?
15620 If you don't want to link with them give
15621 $WITH_NO
15622 as options to configure" >&5
15623 $as_echo "$as_me: error: The following required libraries were not found:
15624 $MISSING
15625 Maybe some development libraries/packages are missing?
15626 If you don't want to link with them give
15627 $WITH_NO
15628 as options to configure" >&2;}
15629 { (exit 1); exit 1; }; }
15633 ### Use -lgpm if available, unless `--with-gpm=no'.
15634 HAVE_GPM=no
15635 LIBGPM=
15636 if test "${with_gpm}" != "no"; then
15637 if test "${ac_cv_header_gpm_h+set}" = set; then
15638 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15639 $as_echo_n "checking for gpm.h... " >&6; }
15640 if test "${ac_cv_header_gpm_h+set}" = set; then
15641 $as_echo_n "(cached) " >&6
15643 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15644 $as_echo "$ac_cv_header_gpm_h" >&6; }
15645 else
15646 # Is the header compilable?
15647 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15648 $as_echo_n "checking gpm.h usability... " >&6; }
15649 cat >conftest.$ac_ext <<_ACEOF
15650 /* confdefs.h. */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 $ac_includes_default
15656 #include <gpm.h>
15657 _ACEOF
15658 rm -f conftest.$ac_objext
15659 if { (ac_try="$ac_compile"
15660 case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15663 esac
15664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15665 $as_echo "$ac_try_echo") >&5
15666 (eval "$ac_compile") 2>conftest.er1
15667 ac_status=$?
15668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
15671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_c_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest.$ac_objext; then
15676 ac_header_compiler=yes
15677 else
15678 $as_echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 ac_header_compiler=no
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15686 $as_echo "$ac_header_compiler" >&6; }
15688 # Is the header present?
15689 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15690 $as_echo_n "checking gpm.h presence... " >&6; }
15691 cat >conftest.$ac_ext <<_ACEOF
15692 /* confdefs.h. */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15697 #include <gpm.h>
15698 _ACEOF
15699 if { (ac_try="$ac_cpp conftest.$ac_ext"
15700 case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15703 esac
15704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15705 $as_echo "$ac_try_echo") >&5
15706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } >/dev/null && {
15713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 }; then
15716 ac_header_preproc=yes
15717 else
15718 $as_echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15721 ac_header_preproc=no
15724 rm -f conftest.err conftest.$ac_ext
15725 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15726 $as_echo "$ac_header_preproc" >&6; }
15728 # So? What about this header?
15729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15730 yes:no: )
15731 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15732 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15733 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15734 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15735 ac_header_preproc=yes
15737 no:yes:* )
15738 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15739 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15740 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15741 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15742 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15743 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15744 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15745 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15746 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15747 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15748 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15749 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15752 esac
15753 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15754 $as_echo_n "checking for gpm.h... " >&6; }
15755 if test "${ac_cv_header_gpm_h+set}" = set; then
15756 $as_echo_n "(cached) " >&6
15757 else
15758 ac_cv_header_gpm_h=$ac_header_preproc
15760 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15761 $as_echo "$ac_cv_header_gpm_h" >&6; }
15764 if test $ac_cv_header_gpm_h = yes; then
15765 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15766 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15767 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15768 $as_echo_n "(cached) " >&6
15769 else
15770 ac_check_lib_save_LIBS=$LIBS
15771 LIBS="-lgpm $LIBS"
15772 cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h. */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15779 /* Override any GCC internal prototype to avoid an error.
15780 Use char because int might match the return type of a GCC
15781 builtin and then its argument prototype would still apply. */
15782 #ifdef __cplusplus
15783 extern "C"
15784 #endif
15785 char Gpm_Open ();
15787 main ()
15789 return Gpm_Open ();
15791 return 0;
15793 _ACEOF
15794 rm -f conftest.$ac_objext conftest$ac_exeext
15795 if { (ac_try="$ac_link"
15796 case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15799 esac
15800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15801 $as_echo "$ac_try_echo") >&5
15802 (eval "$ac_link") 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } && {
15809 test -z "$ac_c_werror_flag" ||
15810 test ! -s conftest.err
15811 } && test -s conftest$ac_exeext && {
15812 test "$cross_compiling" = yes ||
15813 $as_test_x conftest$ac_exeext
15814 }; then
15815 ac_cv_lib_gpm_Gpm_Open=yes
15816 else
15817 $as_echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_cv_lib_gpm_Gpm_Open=no
15823 rm -rf conftest.dSYM
15824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15825 conftest$ac_exeext conftest.$ac_ext
15826 LIBS=$ac_check_lib_save_LIBS
15828 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15829 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15830 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15831 HAVE_GPM=yes
15838 if test "${HAVE_GPM}" = "yes"; then
15840 cat >>confdefs.h <<\_ACEOF
15841 #define HAVE_GPM 1
15842 _ACEOF
15844 LIBGPM=-lgpm
15849 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15850 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15851 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15852 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15853 $as_echo_n "(cached) " >&6
15855 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15856 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15857 else
15858 # Is the header compilable?
15859 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15860 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15861 cat >conftest.$ac_ext <<_ACEOF
15862 /* confdefs.h. */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 $ac_includes_default
15868 #include <malloc/malloc.h>
15869 _ACEOF
15870 rm -f conftest.$ac_objext
15871 if { (ac_try="$ac_compile"
15872 case "(($ac_try" in
15873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874 *) ac_try_echo=$ac_try;;
15875 esac
15876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15877 $as_echo "$ac_try_echo") >&5
15878 (eval "$ac_compile") 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && {
15885 test -z "$ac_c_werror_flag" ||
15886 test ! -s conftest.err
15887 } && test -s conftest.$ac_objext; then
15888 ac_header_compiler=yes
15889 else
15890 $as_echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15893 ac_header_compiler=no
15896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15898 $as_echo "$ac_header_compiler" >&6; }
15900 # Is the header present?
15901 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15902 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15903 cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h. */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 #include <malloc/malloc.h>
15910 _ACEOF
15911 if { (ac_try="$ac_cpp conftest.$ac_ext"
15912 case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15915 esac
15916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15917 $as_echo "$ac_try_echo") >&5
15918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15919 ac_status=$?
15920 grep -v '^ *+' conftest.er1 >conftest.err
15921 rm -f conftest.er1
15922 cat conftest.err >&5
15923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } >/dev/null && {
15925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15926 test ! -s conftest.err
15927 }; then
15928 ac_header_preproc=yes
15929 else
15930 $as_echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 ac_header_preproc=no
15936 rm -f conftest.err conftest.$ac_ext
15937 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15938 $as_echo "$ac_header_preproc" >&6; }
15940 # So? What about this header?
15941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15942 yes:no: )
15943 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15944 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15945 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15946 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15947 ac_header_preproc=yes
15949 no:yes:* )
15950 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15951 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15952 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15953 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15954 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15955 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15956 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15957 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15958 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15959 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15960 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15961 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15964 esac
15965 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15966 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15967 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15968 $as_echo_n "(cached) " >&6
15969 else
15970 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15972 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15973 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15976 if test $ac_cv_header_malloc_malloc_h = yes; then
15978 cat >>confdefs.h <<\_ACEOF
15979 #define HAVE_MALLOC_MALLOC_H 1
15980 _ACEOF
15986 ### Use NeXTstep API to implement GUI.
15987 if test "${HAVE_NS}" = "yes"; then
15989 cat >>confdefs.h <<\_ACEOF
15990 #define HAVE_NS 1
15991 _ACEOF
15993 if test "${NS_IMPL_COCOA}" = "yes"; then
15995 cat >>confdefs.h <<\_ACEOF
15996 #define NS_IMPL_COCOA 1
15997 _ACEOF
15999 GNU_OBJC_CFLAGS=
16001 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16003 cat >>confdefs.h <<\_ACEOF
16004 #define NS_IMPL_GNUSTEP 1
16005 _ACEOF
16007 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16009 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16011 cat >>confdefs.h <<\_ACEOF
16012 #define NS_HAVE_NSINTEGER 1
16013 _ACEOF
16016 # We also have mouse menus.
16017 HAVE_MENUS=yes
16018 OTHER_FILES=ns-app
16022 ### Use session management (-lSM -lICE) if available
16023 HAVE_X_SM=no
16024 if test "${HAVE_X11}" = "yes"; then
16025 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16026 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16027 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16028 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16029 $as_echo_n "(cached) " >&6
16031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16032 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16033 else
16034 # Is the header compilable?
16035 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16036 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h. */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 $ac_includes_default
16044 #include <X11/SM/SMlib.h>
16045 _ACEOF
16046 rm -f conftest.$ac_objext
16047 if { (ac_try="$ac_compile"
16048 case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16051 esac
16052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16053 $as_echo "$ac_try_echo") >&5
16054 (eval "$ac_compile") 2>conftest.er1
16055 ac_status=$?
16056 grep -v '^ *+' conftest.er1 >conftest.err
16057 rm -f conftest.er1
16058 cat conftest.err >&5
16059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } && {
16061 test -z "$ac_c_werror_flag" ||
16062 test ! -s conftest.err
16063 } && test -s conftest.$ac_objext; then
16064 ac_header_compiler=yes
16065 else
16066 $as_echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16069 ac_header_compiler=no
16072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16074 $as_echo "$ac_header_compiler" >&6; }
16076 # Is the header present?
16077 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16078 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h. */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 #include <X11/SM/SMlib.h>
16086 _ACEOF
16087 if { (ac_try="$ac_cpp conftest.$ac_ext"
16088 case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16091 esac
16092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16093 $as_echo "$ac_try_echo") >&5
16094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16095 ac_status=$?
16096 grep -v '^ *+' conftest.er1 >conftest.err
16097 rm -f conftest.er1
16098 cat conftest.err >&5
16099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } >/dev/null && {
16101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16102 test ! -s conftest.err
16103 }; then
16104 ac_header_preproc=yes
16105 else
16106 $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16109 ac_header_preproc=no
16112 rm -f conftest.err conftest.$ac_ext
16113 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 $as_echo "$ac_header_preproc" >&6; }
16116 # So? What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16118 yes:no: )
16119 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16120 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16122 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16123 ac_header_preproc=yes
16125 no:yes:* )
16126 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16127 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16128 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16129 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16130 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16131 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16132 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16133 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16134 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16135 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16136 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16137 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16140 esac
16141 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16142 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16143 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16144 $as_echo_n "(cached) " >&6
16145 else
16146 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16148 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16149 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16152 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16153 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16154 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16155 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16156 $as_echo_n "(cached) " >&6
16157 else
16158 ac_check_lib_save_LIBS=$LIBS
16159 LIBS="-lSM -lICE $LIBS"
16160 cat >conftest.$ac_ext <<_ACEOF
16161 /* confdefs.h. */
16162 _ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16167 /* Override any GCC internal prototype to avoid an error.
16168 Use char because int might match the return type of a GCC
16169 builtin and then its argument prototype would still apply. */
16170 #ifdef __cplusplus
16171 extern "C"
16172 #endif
16173 char SmcOpenConnection ();
16175 main ()
16177 return SmcOpenConnection ();
16179 return 0;
16181 _ACEOF
16182 rm -f conftest.$ac_objext conftest$ac_exeext
16183 if { (ac_try="$ac_link"
16184 case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16187 esac
16188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16189 $as_echo "$ac_try_echo") >&5
16190 (eval "$ac_link") 2>conftest.er1
16191 ac_status=$?
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
16195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } && {
16197 test -z "$ac_c_werror_flag" ||
16198 test ! -s conftest.err
16199 } && test -s conftest$ac_exeext && {
16200 test "$cross_compiling" = yes ||
16201 $as_test_x conftest$ac_exeext
16202 }; then
16203 ac_cv_lib_SM_SmcOpenConnection=yes
16204 else
16205 $as_echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_cv_lib_SM_SmcOpenConnection=no
16211 rm -rf conftest.dSYM
16212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16213 conftest$ac_exeext conftest.$ac_ext
16214 LIBS=$ac_check_lib_save_LIBS
16216 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16217 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16218 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16219 HAVE_X_SM=yes
16226 if test "${HAVE_X_SM}" = "yes"; then
16228 cat >>confdefs.h <<\_ACEOF
16229 #define HAVE_X_SM 1
16230 _ACEOF
16232 case "$LIBS" in
16233 *-lSM*) ;;
16234 *) LIBS="-lSM -lICE $LIBS" ;;
16235 esac
16239 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16240 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16241 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16242 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16243 $as_echo_n "(cached) " >&6
16244 else
16245 cat >conftest.$ac_ext <<_ACEOF
16246 /* confdefs.h. */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 #include <netdb.h>
16253 main ()
16255 return h_errno;
16257 return 0;
16259 _ACEOF
16260 rm -f conftest.$ac_objext conftest$ac_exeext
16261 if { (ac_try="$ac_link"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265 esac
16266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16267 $as_echo "$ac_try_echo") >&5
16268 (eval "$ac_link") 2>conftest.er1
16269 ac_status=$?
16270 grep -v '^ *+' conftest.er1 >conftest.err
16271 rm -f conftest.er1
16272 cat conftest.err >&5
16273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } && {
16275 test -z "$ac_c_werror_flag" ||
16276 test ! -s conftest.err
16277 } && test -s conftest$ac_exeext && {
16278 test "$cross_compiling" = yes ||
16279 $as_test_x conftest$ac_exeext
16280 }; then
16281 emacs_cv_netdb_declares_h_errno=yes
16282 else
16283 $as_echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 emacs_cv_netdb_declares_h_errno=no
16289 rm -rf conftest.dSYM
16290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16291 conftest$ac_exeext conftest.$ac_ext
16293 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16294 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16295 if test $emacs_cv_netdb_declares_h_errno = yes; then
16297 cat >>confdefs.h <<\_ACEOF
16298 #define HAVE_H_ERRNO 1
16299 _ACEOF
16303 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16304 # for constant arguments. Useless!
16305 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16306 $as_echo_n "checking for working alloca.h... " >&6; }
16307 if test "${ac_cv_working_alloca_h+set}" = set; then
16308 $as_echo_n "(cached) " >&6
16309 else
16310 cat >conftest.$ac_ext <<_ACEOF
16311 /* confdefs.h. */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 #include <alloca.h>
16318 main ()
16320 char *p = (char *) alloca (2 * sizeof (int));
16321 if (p) return 0;
16323 return 0;
16325 _ACEOF
16326 rm -f conftest.$ac_objext conftest$ac_exeext
16327 if { (ac_try="$ac_link"
16328 case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331 esac
16332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16333 $as_echo "$ac_try_echo") >&5
16334 (eval "$ac_link") 2>conftest.er1
16335 ac_status=$?
16336 grep -v '^ *+' conftest.er1 >conftest.err
16337 rm -f conftest.er1
16338 cat conftest.err >&5
16339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } && {
16341 test -z "$ac_c_werror_flag" ||
16342 test ! -s conftest.err
16343 } && test -s conftest$ac_exeext && {
16344 test "$cross_compiling" = yes ||
16345 $as_test_x conftest$ac_exeext
16346 }; then
16347 ac_cv_working_alloca_h=yes
16348 else
16349 $as_echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16352 ac_cv_working_alloca_h=no
16355 rm -rf conftest.dSYM
16356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16357 conftest$ac_exeext conftest.$ac_ext
16359 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16360 $as_echo "$ac_cv_working_alloca_h" >&6; }
16361 if test $ac_cv_working_alloca_h = yes; then
16363 cat >>confdefs.h <<\_ACEOF
16364 #define HAVE_ALLOCA_H 1
16365 _ACEOF
16369 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16370 $as_echo_n "checking for alloca... " >&6; }
16371 if test "${ac_cv_func_alloca_works+set}" = set; then
16372 $as_echo_n "(cached) " >&6
16373 else
16374 cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h. */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 #ifdef __GNUC__
16381 # define alloca __builtin_alloca
16382 #else
16383 # ifdef _MSC_VER
16384 # include <malloc.h>
16385 # define alloca _alloca
16386 # else
16387 # ifdef HAVE_ALLOCA_H
16388 # include <alloca.h>
16389 # else
16390 # ifdef _AIX
16391 #pragma alloca
16392 # else
16393 # ifndef alloca /* predefined by HP cc +Olibcalls */
16394 char *alloca ();
16395 # endif
16396 # endif
16397 # endif
16398 # endif
16399 #endif
16402 main ()
16404 char *p = (char *) alloca (1);
16405 if (p) return 0;
16407 return 0;
16409 _ACEOF
16410 rm -f conftest.$ac_objext conftest$ac_exeext
16411 if { (ac_try="$ac_link"
16412 case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16415 esac
16416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16417 $as_echo "$ac_try_echo") >&5
16418 (eval "$ac_link") 2>conftest.er1
16419 ac_status=$?
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
16423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } && {
16425 test -z "$ac_c_werror_flag" ||
16426 test ! -s conftest.err
16427 } && test -s conftest$ac_exeext && {
16428 test "$cross_compiling" = yes ||
16429 $as_test_x conftest$ac_exeext
16430 }; then
16431 ac_cv_func_alloca_works=yes
16432 else
16433 $as_echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 ac_cv_func_alloca_works=no
16439 rm -rf conftest.dSYM
16440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16441 conftest$ac_exeext conftest.$ac_ext
16443 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16444 $as_echo "$ac_cv_func_alloca_works" >&6; }
16446 if test $ac_cv_func_alloca_works = yes; then
16448 cat >>confdefs.h <<\_ACEOF
16449 #define HAVE_ALLOCA 1
16450 _ACEOF
16452 else
16453 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16454 # that cause trouble. Some versions do not even contain alloca or
16455 # contain a buggy version. If you still want to use their alloca,
16456 # use ar to extract alloca.o from them instead of compiling alloca.c.
16458 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16460 cat >>confdefs.h <<\_ACEOF
16461 #define C_ALLOCA 1
16462 _ACEOF
16465 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16466 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16467 if test "${ac_cv_os_cray+set}" = set; then
16468 $as_echo_n "(cached) " >&6
16469 else
16470 cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h. */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16476 #if defined CRAY && ! defined CRAY2
16477 webecray
16478 #else
16479 wenotbecray
16480 #endif
16482 _ACEOF
16483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16484 $EGREP "webecray" >/dev/null 2>&1; then
16485 ac_cv_os_cray=yes
16486 else
16487 ac_cv_os_cray=no
16489 rm -f conftest*
16492 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16493 $as_echo "$ac_cv_os_cray" >&6; }
16494 if test $ac_cv_os_cray = yes; then
16495 for ac_func in _getb67 GETB67 getb67; do
16496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16497 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16498 $as_echo_n "checking for $ac_func... " >&6; }
16499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16500 $as_echo_n "(cached) " >&6
16501 else
16502 cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h. */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16510 #define $ac_func innocuous_$ac_func
16512 /* System header to define __stub macros and hopefully few prototypes,
16513 which can conflict with char $ac_func (); below.
16514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16515 <limits.h> exists even on freestanding compilers. */
16517 #ifdef __STDC__
16518 # include <limits.h>
16519 #else
16520 # include <assert.h>
16521 #endif
16523 #undef $ac_func
16525 /* Override any GCC internal prototype to avoid an error.
16526 Use char because int might match the return type of a GCC
16527 builtin and then its argument prototype would still apply. */
16528 #ifdef __cplusplus
16529 extern "C"
16530 #endif
16531 char $ac_func ();
16532 /* The GNU C library defines this for functions which it implements
16533 to always fail with ENOSYS. Some functions are actually named
16534 something starting with __ and the normal name is an alias. */
16535 #if defined __stub_$ac_func || defined __stub___$ac_func
16536 choke me
16537 #endif
16540 main ()
16542 return $ac_func ();
16544 return 0;
16546 _ACEOF
16547 rm -f conftest.$ac_objext conftest$ac_exeext
16548 if { (ac_try="$ac_link"
16549 case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16552 esac
16553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16554 $as_echo "$ac_try_echo") >&5
16555 (eval "$ac_link") 2>conftest.er1
16556 ac_status=$?
16557 grep -v '^ *+' conftest.er1 >conftest.err
16558 rm -f conftest.er1
16559 cat conftest.err >&5
16560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } && {
16562 test -z "$ac_c_werror_flag" ||
16563 test ! -s conftest.err
16564 } && test -s conftest$ac_exeext && {
16565 test "$cross_compiling" = yes ||
16566 $as_test_x conftest$ac_exeext
16567 }; then
16568 eval "$as_ac_var=yes"
16569 else
16570 $as_echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16573 eval "$as_ac_var=no"
16576 rm -rf conftest.dSYM
16577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16578 conftest$ac_exeext conftest.$ac_ext
16580 ac_res=`eval 'as_val=${'$as_ac_var'}
16581 $as_echo "$as_val"'`
16582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16583 $as_echo "$ac_res" >&6; }
16584 if test `eval 'as_val=${'$as_ac_var'}
16585 $as_echo "$as_val"'` = yes; then
16587 cat >>confdefs.h <<_ACEOF
16588 #define CRAY_STACKSEG_END $ac_func
16589 _ACEOF
16591 break
16594 done
16597 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16598 $as_echo_n "checking stack direction for C alloca... " >&6; }
16599 if test "${ac_cv_c_stack_direction+set}" = set; then
16600 $as_echo_n "(cached) " >&6
16601 else
16602 if test "$cross_compiling" = yes; then
16603 ac_cv_c_stack_direction=0
16604 else
16605 cat >conftest.$ac_ext <<_ACEOF
16606 /* confdefs.h. */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 $ac_includes_default
16613 find_stack_direction ()
16615 static char *addr = 0;
16616 auto char dummy;
16617 if (addr == 0)
16619 addr = &dummy;
16620 return find_stack_direction ();
16622 else
16623 return (&dummy > addr) ? 1 : -1;
16627 main ()
16629 return find_stack_direction () < 0;
16631 _ACEOF
16632 rm -f conftest$ac_exeext
16633 if { (ac_try="$ac_link"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637 esac
16638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16639 $as_echo "$ac_try_echo") >&5
16640 (eval "$ac_link") 2>&5
16641 ac_status=$?
16642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647 esac
16648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16649 $as_echo "$ac_try_echo") >&5
16650 (eval "$ac_try") 2>&5
16651 ac_status=$?
16652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654 ac_cv_c_stack_direction=1
16655 else
16656 $as_echo "$as_me: program exited with status $ac_status" >&5
16657 $as_echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16660 ( exit $ac_status )
16661 ac_cv_c_stack_direction=-1
16663 rm -rf conftest.dSYM
16664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16669 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16670 $as_echo "$ac_cv_c_stack_direction" >&6; }
16672 cat >>confdefs.h <<_ACEOF
16673 #define STACK_DIRECTION $ac_cv_c_stack_direction
16674 _ACEOF
16680 if test x"$ac_cv_func_alloca_works" != xyes; then
16681 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16682 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16683 { (exit 1); exit 1; }; }
16686 # fmod, logb, and frexp are found in -lm on most systems.
16687 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16689 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16690 $as_echo_n "checking for sqrt in -lm... " >&6; }
16691 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16692 $as_echo_n "(cached) " >&6
16693 else
16694 ac_check_lib_save_LIBS=$LIBS
16695 LIBS="-lm $LIBS"
16696 cat >conftest.$ac_ext <<_ACEOF
16697 /* confdefs.h. */
16698 _ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
16701 /* end confdefs.h. */
16703 /* Override any GCC internal prototype to avoid an error.
16704 Use char because int might match the return type of a GCC
16705 builtin and then its argument prototype would still apply. */
16706 #ifdef __cplusplus
16707 extern "C"
16708 #endif
16709 char sqrt ();
16711 main ()
16713 return sqrt ();
16715 return 0;
16717 _ACEOF
16718 rm -f conftest.$ac_objext conftest$ac_exeext
16719 if { (ac_try="$ac_link"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723 esac
16724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16725 $as_echo "$ac_try_echo") >&5
16726 (eval "$ac_link") 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } && {
16733 test -z "$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 } && test -s conftest$ac_exeext && {
16736 test "$cross_compiling" = yes ||
16737 $as_test_x conftest$ac_exeext
16738 }; then
16739 ac_cv_lib_m_sqrt=yes
16740 else
16741 $as_echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16744 ac_cv_lib_m_sqrt=no
16747 rm -rf conftest.dSYM
16748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16749 conftest$ac_exeext conftest.$ac_ext
16750 LIBS=$ac_check_lib_save_LIBS
16752 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16753 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16754 if test $ac_cv_lib_m_sqrt = yes; then
16755 cat >>confdefs.h <<_ACEOF
16756 #define HAVE_LIBM 1
16757 _ACEOF
16759 LIBS="-lm $LIBS"
16764 # Check for mail-locking functions in a "mail" library. Probably this should
16765 # have the same check as for liblockfile below.
16766 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16767 $as_echo_n "checking for maillock in -lmail... " >&6; }
16768 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16769 $as_echo_n "(cached) " >&6
16770 else
16771 ac_check_lib_save_LIBS=$LIBS
16772 LIBS="-lmail $LIBS"
16773 cat >conftest.$ac_ext <<_ACEOF
16774 /* confdefs.h. */
16775 _ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h. */
16780 /* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16783 #ifdef __cplusplus
16784 extern "C"
16785 #endif
16786 char maillock ();
16788 main ()
16790 return maillock ();
16792 return 0;
16794 _ACEOF
16795 rm -f conftest.$ac_objext conftest$ac_exeext
16796 if { (ac_try="$ac_link"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800 esac
16801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16802 $as_echo "$ac_try_echo") >&5
16803 (eval "$ac_link") 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } && {
16810 test -z "$ac_c_werror_flag" ||
16811 test ! -s conftest.err
16812 } && test -s conftest$ac_exeext && {
16813 test "$cross_compiling" = yes ||
16814 $as_test_x conftest$ac_exeext
16815 }; then
16816 ac_cv_lib_mail_maillock=yes
16817 else
16818 $as_echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16821 ac_cv_lib_mail_maillock=no
16824 rm -rf conftest.dSYM
16825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16826 conftest$ac_exeext conftest.$ac_ext
16827 LIBS=$ac_check_lib_save_LIBS
16829 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16830 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16831 if test $ac_cv_lib_mail_maillock = yes; then
16832 have_mail=yes
16833 else
16834 have_mail=no
16837 if test $have_mail = yes; then
16838 LIBS_MAIL=-lmail
16839 LIBS="$LIBS_MAIL $LIBS"
16841 cat >>confdefs.h <<\_ACEOF
16842 #define HAVE_LIBMAIL 1
16843 _ACEOF
16845 else
16846 LIBS_MAIL=
16848 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16849 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16850 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16851 $as_echo_n "(cached) " >&6
16852 else
16853 ac_check_lib_save_LIBS=$LIBS
16854 LIBS="-llockfile $LIBS"
16855 cat >conftest.$ac_ext <<_ACEOF
16856 /* confdefs.h. */
16857 _ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16862 /* Override any GCC internal prototype to avoid an error.
16863 Use char because int might match the return type of a GCC
16864 builtin and then its argument prototype would still apply. */
16865 #ifdef __cplusplus
16866 extern "C"
16867 #endif
16868 char maillock ();
16870 main ()
16872 return maillock ();
16874 return 0;
16876 _ACEOF
16877 rm -f conftest.$ac_objext conftest$ac_exeext
16878 if { (ac_try="$ac_link"
16879 case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16882 esac
16883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16884 $as_echo "$ac_try_echo") >&5
16885 (eval "$ac_link") 2>conftest.er1
16886 ac_status=$?
16887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
16890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } && {
16892 test -z "$ac_c_werror_flag" ||
16893 test ! -s conftest.err
16894 } && test -s conftest$ac_exeext && {
16895 test "$cross_compiling" = yes ||
16896 $as_test_x conftest$ac_exeext
16897 }; then
16898 ac_cv_lib_lockfile_maillock=yes
16899 else
16900 $as_echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16903 ac_cv_lib_lockfile_maillock=no
16906 rm -rf conftest.dSYM
16907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16908 conftest$ac_exeext conftest.$ac_ext
16909 LIBS=$ac_check_lib_save_LIBS
16911 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16912 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16913 if test $ac_cv_lib_lockfile_maillock = yes; then
16914 have_lockfile=yes
16915 else
16916 have_lockfile=no
16919 if test $have_lockfile = yes; then
16920 LIBS_MAIL=-llockfile
16921 LIBS="$LIBS_MAIL $LIBS"
16923 cat >>confdefs.h <<\_ACEOF
16924 #define HAVE_LIBLOCKFILE 1
16925 _ACEOF
16927 else
16928 # If we have the shared liblockfile, assume we must use it for mail
16929 # locking (e.g. Debian). If we couldn't link against liblockfile
16930 # (no liblockfile.a installed), ensure that we don't need to.
16931 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16932 set dummy liblockfile.so; ac_word=$2
16933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16934 $as_echo_n "checking for $ac_word... " >&6; }
16935 if test "${ac_cv_prog_liblockfile+set}" = set; then
16936 $as_echo_n "(cached) " >&6
16937 else
16938 if test -n "$liblockfile"; then
16939 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16940 else
16941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16942 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16943 for as_dir in $as_dummy
16945 IFS=$as_save_IFS
16946 test -z "$as_dir" && as_dir=.
16947 for ac_exec_ext in '' $ac_executable_extensions; do
16948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16949 ac_cv_prog_liblockfile="yes"
16950 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16951 break 2
16953 done
16954 done
16955 IFS=$as_save_IFS
16957 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16960 liblockfile=$ac_cv_prog_liblockfile
16961 if test -n "$liblockfile"; then
16962 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16963 $as_echo "$liblockfile" >&6; }
16964 else
16965 { $as_echo "$as_me:$LINENO: result: no" >&5
16966 $as_echo "no" >&6; }
16970 if test $ac_cv_prog_liblockfile = yes; then
16971 { { $as_echo "$as_me:$LINENO: 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." >&5
16974 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16975 This probably means that movemail could lose mail.
16976 There may be a \`development' package to install containing liblockfile." >&2;}
16977 { (exit 1); exit 1; }; }
16981 for ac_func in touchlock
16983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16984 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16985 $as_echo_n "checking for $ac_func... " >&6; }
16986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16987 $as_echo_n "(cached) " >&6
16988 else
16989 cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h. */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16997 #define $ac_func innocuous_$ac_func
16999 /* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char $ac_func (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
17004 #ifdef __STDC__
17005 # include <limits.h>
17006 #else
17007 # include <assert.h>
17008 #endif
17010 #undef $ac_func
17012 /* Override any GCC internal prototype to avoid an error.
17013 Use char because int might match the return type of a GCC
17014 builtin and then its argument prototype would still apply. */
17015 #ifdef __cplusplus
17016 extern "C"
17017 #endif
17018 char $ac_func ();
17019 /* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
17022 #if defined __stub_$ac_func || defined __stub___$ac_func
17023 choke me
17024 #endif
17027 main ()
17029 return $ac_func ();
17031 return 0;
17033 _ACEOF
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17039 esac
17040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17041 $as_echo "$ac_try_echo") >&5
17042 (eval "$ac_link") 2>conftest.er1
17043 ac_status=$?
17044 grep -v '^ *+' conftest.er1 >conftest.err
17045 rm -f conftest.er1
17046 cat conftest.err >&5
17047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } && {
17049 test -z "$ac_c_werror_flag" ||
17050 test ! -s conftest.err
17051 } && test -s conftest$ac_exeext && {
17052 test "$cross_compiling" = yes ||
17053 $as_test_x conftest$ac_exeext
17054 }; then
17055 eval "$as_ac_var=yes"
17056 else
17057 $as_echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 eval "$as_ac_var=no"
17063 rm -rf conftest.dSYM
17064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17065 conftest$ac_exeext conftest.$ac_ext
17067 ac_res=`eval 'as_val=${'$as_ac_var'}
17068 $as_echo "$as_val"'`
17069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17070 $as_echo "$ac_res" >&6; }
17071 if test `eval 'as_val=${'$as_ac_var'}
17072 $as_echo "$as_val"'` = yes; then
17073 cat >>confdefs.h <<_ACEOF
17074 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17075 _ACEOF
17078 done
17081 for ac_header in maillock.h
17083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17085 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17086 $as_echo_n "checking for $ac_header... " >&6; }
17087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17088 $as_echo_n "(cached) " >&6
17090 ac_res=`eval 'as_val=${'$as_ac_Header'}
17091 $as_echo "$as_val"'`
17092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17093 $as_echo "$ac_res" >&6; }
17094 else
17095 # Is the header compilable?
17096 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17097 $as_echo_n "checking $ac_header usability... " >&6; }
17098 cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h. */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 $ac_includes_default
17105 #include <$ac_header>
17106 _ACEOF
17107 rm -f conftest.$ac_objext
17108 if { (ac_try="$ac_compile"
17109 case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17112 esac
17113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17114 $as_echo "$ac_try_echo") >&5
17115 (eval "$ac_compile") 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } && {
17122 test -z "$ac_c_werror_flag" ||
17123 test ! -s conftest.err
17124 } && test -s conftest.$ac_objext; then
17125 ac_header_compiler=yes
17126 else
17127 $as_echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17130 ac_header_compiler=no
17133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17134 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17135 $as_echo "$ac_header_compiler" >&6; }
17137 # Is the header present?
17138 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17139 $as_echo_n "checking $ac_header presence... " >&6; }
17140 cat >conftest.$ac_ext <<_ACEOF
17141 /* confdefs.h. */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 #include <$ac_header>
17147 _ACEOF
17148 if { (ac_try="$ac_cpp conftest.$ac_ext"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152 esac
17153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17154 $as_echo "$ac_try_echo") >&5
17155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17156 ac_status=$?
17157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
17160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } >/dev/null && {
17162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17163 test ! -s conftest.err
17164 }; then
17165 ac_header_preproc=yes
17166 else
17167 $as_echo "$as_me: failed program was:" >&5
17168 sed 's/^/| /' conftest.$ac_ext >&5
17170 ac_header_preproc=no
17173 rm -f conftest.err conftest.$ac_ext
17174 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17175 $as_echo "$ac_header_preproc" >&6; }
17177 # So? What about this header?
17178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17179 yes:no: )
17180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17181 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17183 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17184 ac_header_preproc=yes
17186 no:yes:* )
17187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17188 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17190 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17192 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17194 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17198 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17201 esac
17202 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17203 $as_echo_n "checking for $ac_header... " >&6; }
17204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17205 $as_echo_n "(cached) " >&6
17206 else
17207 eval "$as_ac_Header=\$ac_header_preproc"
17209 ac_res=`eval 'as_val=${'$as_ac_Header'}
17210 $as_echo "$as_val"'`
17211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17212 $as_echo "$ac_res" >&6; }
17215 if test `eval 'as_val=${'$as_ac_Header'}
17216 $as_echo "$as_val"'` = yes; then
17217 cat >>confdefs.h <<_ACEOF
17218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17219 _ACEOF
17223 done
17298 for ac_func in gethostname getdomainname dup2 \
17299 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17300 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17301 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17302 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17303 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17304 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17305 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17306 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17307 cfmakeraw cfsetspeed
17309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17310 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17311 $as_echo_n "checking for $ac_func... " >&6; }
17312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17313 $as_echo_n "(cached) " >&6
17314 else
17315 cat >conftest.$ac_ext <<_ACEOF
17316 /* confdefs.h. */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17323 #define $ac_func innocuous_$ac_func
17325 /* System header to define __stub macros and hopefully few prototypes,
17326 which can conflict with char $ac_func (); below.
17327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17328 <limits.h> exists even on freestanding compilers. */
17330 #ifdef __STDC__
17331 # include <limits.h>
17332 #else
17333 # include <assert.h>
17334 #endif
17336 #undef $ac_func
17338 /* Override any GCC internal prototype to avoid an error.
17339 Use char because int might match the return type of a GCC
17340 builtin and then its argument prototype would still apply. */
17341 #ifdef __cplusplus
17342 extern "C"
17343 #endif
17344 char $ac_func ();
17345 /* The GNU C library defines this for functions which it implements
17346 to always fail with ENOSYS. Some functions are actually named
17347 something starting with __ and the normal name is an alias. */
17348 #if defined __stub_$ac_func || defined __stub___$ac_func
17349 choke me
17350 #endif
17353 main ()
17355 return $ac_func ();
17357 return 0;
17359 _ACEOF
17360 rm -f conftest.$ac_objext conftest$ac_exeext
17361 if { (ac_try="$ac_link"
17362 case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365 esac
17366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17367 $as_echo "$ac_try_echo") >&5
17368 (eval "$ac_link") 2>conftest.er1
17369 ac_status=$?
17370 grep -v '^ *+' conftest.er1 >conftest.err
17371 rm -f conftest.er1
17372 cat conftest.err >&5
17373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } && {
17375 test -z "$ac_c_werror_flag" ||
17376 test ! -s conftest.err
17377 } && test -s conftest$ac_exeext && {
17378 test "$cross_compiling" = yes ||
17379 $as_test_x conftest$ac_exeext
17380 }; then
17381 eval "$as_ac_var=yes"
17382 else
17383 $as_echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 eval "$as_ac_var=no"
17389 rm -rf conftest.dSYM
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17393 ac_res=`eval 'as_val=${'$as_ac_var'}
17394 $as_echo "$as_val"'`
17395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17396 $as_echo "$ac_res" >&6; }
17397 if test `eval 'as_val=${'$as_ac_var'}
17398 $as_echo "$as_val"'` = yes; then
17399 cat >>confdefs.h <<_ACEOF
17400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17401 _ACEOF
17404 done
17408 for ac_header in sys/un.h
17410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17412 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17413 $as_echo_n "checking for $ac_header... " >&6; }
17414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17415 $as_echo_n "(cached) " >&6
17417 ac_res=`eval 'as_val=${'$as_ac_Header'}
17418 $as_echo "$as_val"'`
17419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17420 $as_echo "$ac_res" >&6; }
17421 else
17422 # Is the header compilable?
17423 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17424 $as_echo_n "checking $ac_header usability... " >&6; }
17425 cat >conftest.$ac_ext <<_ACEOF
17426 /* confdefs.h. */
17427 _ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17431 $ac_includes_default
17432 #include <$ac_header>
17433 _ACEOF
17434 rm -f conftest.$ac_objext
17435 if { (ac_try="$ac_compile"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17439 esac
17440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17441 $as_echo "$ac_try_echo") >&5
17442 (eval "$ac_compile") 2>conftest.er1
17443 ac_status=$?
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
17447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } && {
17449 test -z "$ac_c_werror_flag" ||
17450 test ! -s conftest.err
17451 } && test -s conftest.$ac_objext; then
17452 ac_header_compiler=yes
17453 else
17454 $as_echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17457 ac_header_compiler=no
17460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17462 $as_echo "$ac_header_compiler" >&6; }
17464 # Is the header present?
17465 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17466 $as_echo_n "checking $ac_header presence... " >&6; }
17467 cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h. */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 #include <$ac_header>
17474 _ACEOF
17475 if { (ac_try="$ac_cpp conftest.$ac_ext"
17476 case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17479 esac
17480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17481 $as_echo "$ac_try_echo") >&5
17482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17483 ac_status=$?
17484 grep -v '^ *+' conftest.er1 >conftest.err
17485 rm -f conftest.er1
17486 cat conftest.err >&5
17487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } >/dev/null && {
17489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17490 test ! -s conftest.err
17491 }; then
17492 ac_header_preproc=yes
17493 else
17494 $as_echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17497 ac_header_preproc=no
17500 rm -f conftest.err conftest.$ac_ext
17501 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17502 $as_echo "$ac_header_preproc" >&6; }
17504 # So? What about this header?
17505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17506 yes:no: )
17507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17508 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17510 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17511 ac_header_preproc=yes
17513 no:yes:* )
17514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17515 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17517 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17519 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17521 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17523 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17525 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17528 esac
17529 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17530 $as_echo_n "checking for $ac_header... " >&6; }
17531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17532 $as_echo_n "(cached) " >&6
17533 else
17534 eval "$as_ac_Header=\$ac_header_preproc"
17536 ac_res=`eval 'as_val=${'$as_ac_Header'}
17537 $as_echo "$as_val"'`
17538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17539 $as_echo "$ac_res" >&6; }
17542 if test `eval 'as_val=${'$as_ac_Header'}
17543 $as_echo "$as_val"'` = yes; then
17544 cat >>confdefs.h <<_ACEOF
17545 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17546 _ACEOF
17550 done
17557 for ac_header in $ac_header_list
17559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17562 $as_echo_n "checking for $ac_header... " >&6; }
17563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17564 $as_echo_n "(cached) " >&6
17566 ac_res=`eval 'as_val=${'$as_ac_Header'}
17567 $as_echo "$as_val"'`
17568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17569 $as_echo "$ac_res" >&6; }
17570 else
17571 # Is the header compilable?
17572 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17573 $as_echo_n "checking $ac_header usability... " >&6; }
17574 cat >conftest.$ac_ext <<_ACEOF
17575 /* confdefs.h. */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17580 $ac_includes_default
17581 #include <$ac_header>
17582 _ACEOF
17583 rm -f conftest.$ac_objext
17584 if { (ac_try="$ac_compile"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588 esac
17589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17590 $as_echo "$ac_try_echo") >&5
17591 (eval "$ac_compile") 2>conftest.er1
17592 ac_status=$?
17593 grep -v '^ *+' conftest.er1 >conftest.err
17594 rm -f conftest.er1
17595 cat conftest.err >&5
17596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } && {
17598 test -z "$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 } && test -s conftest.$ac_objext; then
17601 ac_header_compiler=yes
17602 else
17603 $as_echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_header_compiler=no
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17611 $as_echo "$ac_header_compiler" >&6; }
17613 # Is the header present?
17614 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17615 $as_echo_n "checking $ac_header presence... " >&6; }
17616 cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h. */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 #include <$ac_header>
17623 _ACEOF
17624 if { (ac_try="$ac_cpp conftest.$ac_ext"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628 esac
17629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17630 $as_echo "$ac_try_echo") >&5
17631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } >/dev/null && {
17638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17639 test ! -s conftest.err
17640 }; then
17641 ac_header_preproc=yes
17642 else
17643 $as_echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17646 ac_header_preproc=no
17649 rm -f conftest.err conftest.$ac_ext
17650 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17651 $as_echo "$ac_header_preproc" >&6; }
17653 # So? What about this header?
17654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17655 yes:no: )
17656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17657 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17659 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17660 ac_header_preproc=yes
17662 no:yes:* )
17663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17664 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17666 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17668 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17670 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17672 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17674 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17677 esac
17678 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17679 $as_echo_n "checking for $ac_header... " >&6; }
17680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17681 $as_echo_n "(cached) " >&6
17682 else
17683 eval "$as_ac_Header=\$ac_header_preproc"
17685 ac_res=`eval 'as_val=${'$as_ac_Header'}
17686 $as_echo "$as_val"'`
17687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17688 $as_echo "$ac_res" >&6; }
17691 if test `eval 'as_val=${'$as_ac_Header'}
17692 $as_echo "$as_val"'` = yes; then
17693 cat >>confdefs.h <<_ACEOF
17694 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17695 _ACEOF
17699 done
17709 for ac_func in $ac_func_list
17711 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17712 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17713 $as_echo_n "checking for $ac_func... " >&6; }
17714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17715 $as_echo_n "(cached) " >&6
17716 else
17717 cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h. */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17725 #define $ac_func innocuous_$ac_func
17727 /* System header to define __stub macros and hopefully few prototypes,
17728 which can conflict with char $ac_func (); below.
17729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17730 <limits.h> exists even on freestanding compilers. */
17732 #ifdef __STDC__
17733 # include <limits.h>
17734 #else
17735 # include <assert.h>
17736 #endif
17738 #undef $ac_func
17740 /* Override any GCC internal prototype to avoid an error.
17741 Use char because int might match the return type of a GCC
17742 builtin and then its argument prototype would still apply. */
17743 #ifdef __cplusplus
17744 extern "C"
17745 #endif
17746 char $ac_func ();
17747 /* The GNU C library defines this for functions which it implements
17748 to always fail with ENOSYS. Some functions are actually named
17749 something starting with __ and the normal name is an alias. */
17750 #if defined __stub_$ac_func || defined __stub___$ac_func
17751 choke me
17752 #endif
17755 main ()
17757 return $ac_func ();
17759 return 0;
17761 _ACEOF
17762 rm -f conftest.$ac_objext conftest$ac_exeext
17763 if { (ac_try="$ac_link"
17764 case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17767 esac
17768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17769 $as_echo "$ac_try_echo") >&5
17770 (eval "$ac_link") 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest$ac_exeext && {
17780 test "$cross_compiling" = yes ||
17781 $as_test_x conftest$ac_exeext
17782 }; then
17783 eval "$as_ac_var=yes"
17784 else
17785 $as_echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 eval "$as_ac_var=no"
17791 rm -rf conftest.dSYM
17792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17793 conftest$ac_exeext conftest.$ac_ext
17795 ac_res=`eval 'as_val=${'$as_ac_var'}
17796 $as_echo "$as_val"'`
17797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17798 $as_echo "$ac_res" >&6; }
17799 if test `eval 'as_val=${'$as_ac_var'}
17800 $as_echo "$as_val"'` = yes; then
17801 cat >>confdefs.h <<_ACEOF
17802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17803 _ACEOF
17806 done
17824 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17825 $as_echo_n "checking for working mktime... " >&6; }
17826 if test "${ac_cv_func_working_mktime+set}" = set; then
17827 $as_echo_n "(cached) " >&6
17828 else
17829 if test "$cross_compiling" = yes; then
17830 ac_cv_func_working_mktime=no
17831 else
17832 cat >conftest.$ac_ext <<_ACEOF
17833 /* confdefs.h. */
17834 _ACEOF
17835 cat confdefs.h >>conftest.$ac_ext
17836 cat >>conftest.$ac_ext <<_ACEOF
17837 /* end confdefs.h. */
17838 /* Test program from Paul Eggert and Tony Leneis. */
17839 #ifdef TIME_WITH_SYS_TIME
17840 # include <sys/time.h>
17841 # include <time.h>
17842 #else
17843 # ifdef HAVE_SYS_TIME_H
17844 # include <sys/time.h>
17845 # else
17846 # include <time.h>
17847 # endif
17848 #endif
17850 #include <limits.h>
17851 #include <stdlib.h>
17853 #ifdef HAVE_UNISTD_H
17854 # include <unistd.h>
17855 #endif
17857 #ifndef HAVE_ALARM
17858 # define alarm(X) /* empty */
17859 #endif
17861 /* Work around redefinition to rpl_putenv by other config tests. */
17862 #undef putenv
17864 static time_t time_t_max;
17865 static time_t time_t_min;
17867 /* Values we'll use to set the TZ environment variable. */
17868 static char *tz_strings[] = {
17869 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17870 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17872 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17874 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17875 Based on a problem report from Andreas Jaeger. */
17876 static int
17877 spring_forward_gap ()
17879 /* glibc (up to about 1998-10-07) failed this test. */
17880 struct tm tm;
17882 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17883 instead of "TZ=America/Vancouver" in order to detect the bug even
17884 on systems that don't support the Olson extension, or don't have the
17885 full zoneinfo tables installed. */
17886 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17888 tm.tm_year = 98;
17889 tm.tm_mon = 3;
17890 tm.tm_mday = 5;
17891 tm.tm_hour = 2;
17892 tm.tm_min = 0;
17893 tm.tm_sec = 0;
17894 tm.tm_isdst = -1;
17895 return mktime (&tm) != (time_t) -1;
17898 static int
17899 mktime_test1 (now)
17900 time_t now;
17902 struct tm *lt;
17903 return ! (lt = localtime (&now)) || mktime (lt) == now;
17906 static int
17907 mktime_test (now)
17908 time_t now;
17910 return (mktime_test1 (now)
17911 && mktime_test1 ((time_t) (time_t_max - now))
17912 && mktime_test1 ((time_t) (time_t_min + now)));
17915 static int
17916 irix_6_4_bug ()
17918 /* Based on code from Ariel Faigon. */
17919 struct tm tm;
17920 tm.tm_year = 96;
17921 tm.tm_mon = 3;
17922 tm.tm_mday = 0;
17923 tm.tm_hour = 0;
17924 tm.tm_min = 0;
17925 tm.tm_sec = 0;
17926 tm.tm_isdst = -1;
17927 mktime (&tm);
17928 return tm.tm_mon == 2 && tm.tm_mday == 31;
17931 static int
17932 bigtime_test (j)
17933 int j;
17935 struct tm tm;
17936 time_t now;
17937 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17938 now = mktime (&tm);
17939 if (now != (time_t) -1)
17941 struct tm *lt = localtime (&now);
17942 if (! (lt
17943 && lt->tm_year == tm.tm_year
17944 && lt->tm_mon == tm.tm_mon
17945 && lt->tm_mday == tm.tm_mday
17946 && lt->tm_hour == tm.tm_hour
17947 && lt->tm_min == tm.tm_min
17948 && lt->tm_sec == tm.tm_sec
17949 && lt->tm_yday == tm.tm_yday
17950 && lt->tm_wday == tm.tm_wday
17951 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17952 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17953 return 0;
17955 return 1;
17958 static int
17959 year_2050_test ()
17961 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17962 ignoring leap seconds. */
17963 unsigned long int answer = 2527315200UL;
17965 struct tm tm;
17966 time_t t;
17967 tm.tm_year = 2050 - 1900;
17968 tm.tm_mon = 2 - 1;
17969 tm.tm_mday = 1;
17970 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17971 tm.tm_isdst = -1;
17973 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17974 instead of "TZ=America/Vancouver" in order to detect the bug even
17975 on systems that don't support the Olson extension, or don't have the
17976 full zoneinfo tables installed. */
17977 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17979 t = mktime (&tm);
17981 /* Check that the result is either a failure, or close enough
17982 to the correct answer that we can assume the discrepancy is
17983 due to leap seconds. */
17984 return (t == (time_t) -1
17985 || (0 < t && answer - 120 <= t && t <= answer + 120));
17989 main ()
17991 time_t t, delta;
17992 int i, j;
17994 /* This test makes some buggy mktime implementations loop.
17995 Give up after 60 seconds; a mktime slower than that
17996 isn't worth using anyway. */
17997 alarm (60);
17999 for (;;)
18001 t = (time_t_max << 1) + 1;
18002 if (t <= time_t_max)
18003 break;
18004 time_t_max = t;
18006 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18008 delta = time_t_max / 997; /* a suitable prime number */
18009 for (i = 0; i < N_STRINGS; i++)
18011 if (tz_strings[i])
18012 putenv (tz_strings[i]);
18014 for (t = 0; t <= time_t_max - delta; t += delta)
18015 if (! mktime_test (t))
18016 return 1;
18017 if (! (mktime_test ((time_t) 1)
18018 && mktime_test ((time_t) (60 * 60))
18019 && mktime_test ((time_t) (60 * 60 * 24))))
18020 return 1;
18022 for (j = 1; ; j <<= 1)
18023 if (! bigtime_test (j))
18024 return 1;
18025 else if (INT_MAX / 2 < j)
18026 break;
18027 if (! bigtime_test (INT_MAX))
18028 return 1;
18030 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18032 _ACEOF
18033 rm -f conftest$ac_exeext
18034 if { (ac_try="$ac_link"
18035 case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18038 esac
18039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18040 $as_echo "$ac_try_echo") >&5
18041 (eval "$ac_link") 2>&5
18042 ac_status=$?
18043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18045 { (case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18048 esac
18049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18050 $as_echo "$ac_try_echo") >&5
18051 (eval "$ac_try") 2>&5
18052 ac_status=$?
18053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 ac_cv_func_working_mktime=yes
18056 else
18057 $as_echo "$as_me: program exited with status $ac_status" >&5
18058 $as_echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18061 ( exit $ac_status )
18062 ac_cv_func_working_mktime=no
18064 rm -rf conftest.dSYM
18065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18070 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18071 $as_echo "$ac_cv_func_working_mktime" >&6; }
18072 if test $ac_cv_func_working_mktime = no; then
18073 case " $LIBOBJS " in
18074 *" mktime.$ac_objext "* ) ;;
18075 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18077 esac
18081 if test "$ac_cv_func_working_mktime" = no; then
18083 cat >>confdefs.h <<\_ACEOF
18084 #define BROKEN_MKTIME 1
18085 _ACEOF
18089 ac_have_func=no # yes means we've found a way to get the load average.
18091 # Make sure getloadavg.c is where it belongs, at configure-time.
18092 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18093 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18094 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18095 { (exit 1); exit 1; }; }
18097 ac_save_LIBS=$LIBS
18099 # Check for getloadavg, but be sure not to touch the cache variable.
18100 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18101 $as_echo_n "checking for getloadavg... " >&6; }
18102 if test "${ac_cv_func_getloadavg+set}" = set; then
18103 $as_echo_n "(cached) " >&6
18104 else
18105 cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h. */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18113 #define getloadavg innocuous_getloadavg
18115 /* System header to define __stub macros and hopefully few prototypes,
18116 which can conflict with char getloadavg (); below.
18117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18118 <limits.h> exists even on freestanding compilers. */
18120 #ifdef __STDC__
18121 # include <limits.h>
18122 #else
18123 # include <assert.h>
18124 #endif
18126 #undef getloadavg
18128 /* Override any GCC internal prototype to avoid an error.
18129 Use char because int might match the return type of a GCC
18130 builtin and then its argument prototype would still apply. */
18131 #ifdef __cplusplus
18132 extern "C"
18133 #endif
18134 char getloadavg ();
18135 /* The GNU C library defines this for functions which it implements
18136 to always fail with ENOSYS. Some functions are actually named
18137 something starting with __ and the normal name is an alias. */
18138 #if defined __stub_getloadavg || defined __stub___getloadavg
18139 choke me
18140 #endif
18143 main ()
18145 return getloadavg ();
18147 return 0;
18149 _ACEOF
18150 rm -f conftest.$ac_objext conftest$ac_exeext
18151 if { (ac_try="$ac_link"
18152 case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18155 esac
18156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18157 $as_echo "$ac_try_echo") >&5
18158 (eval "$ac_link") 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } && {
18165 test -z "$ac_c_werror_flag" ||
18166 test ! -s conftest.err
18167 } && test -s conftest$ac_exeext && {
18168 test "$cross_compiling" = yes ||
18169 $as_test_x conftest$ac_exeext
18170 }; then
18171 ac_cv_func_getloadavg=yes
18172 else
18173 $as_echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18176 ac_cv_func_getloadavg=no
18179 rm -rf conftest.dSYM
18180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18181 conftest$ac_exeext conftest.$ac_ext
18183 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18184 $as_echo "$ac_cv_func_getloadavg" >&6; }
18185 if test $ac_cv_func_getloadavg = yes; then
18186 exit 0
18187 else
18188 exit 1
18190 ) && ac_have_func=yes
18192 # On HPUX9, an unprivileged user can get load averages through this function.
18194 for ac_func in pstat_getdynamic
18196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18197 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18198 $as_echo_n "checking for $ac_func... " >&6; }
18199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18200 $as_echo_n "(cached) " >&6
18201 else
18202 cat >conftest.$ac_ext <<_ACEOF
18203 /* confdefs.h. */
18204 _ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h. */
18208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18210 #define $ac_func innocuous_$ac_func
18212 /* System header to define __stub macros and hopefully few prototypes,
18213 which can conflict with char $ac_func (); below.
18214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18215 <limits.h> exists even on freestanding compilers. */
18217 #ifdef __STDC__
18218 # include <limits.h>
18219 #else
18220 # include <assert.h>
18221 #endif
18223 #undef $ac_func
18225 /* Override any GCC internal prototype to avoid an error.
18226 Use char because int might match the return type of a GCC
18227 builtin and then its argument prototype would still apply. */
18228 #ifdef __cplusplus
18229 extern "C"
18230 #endif
18231 char $ac_func ();
18232 /* The GNU C library defines this for functions which it implements
18233 to always fail with ENOSYS. Some functions are actually named
18234 something starting with __ and the normal name is an alias. */
18235 #if defined __stub_$ac_func || defined __stub___$ac_func
18236 choke me
18237 #endif
18240 main ()
18242 return $ac_func ();
18244 return 0;
18246 _ACEOF
18247 rm -f conftest.$ac_objext conftest$ac_exeext
18248 if { (ac_try="$ac_link"
18249 case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252 esac
18253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18254 $as_echo "$ac_try_echo") >&5
18255 (eval "$ac_link") 2>conftest.er1
18256 ac_status=$?
18257 grep -v '^ *+' conftest.er1 >conftest.err
18258 rm -f conftest.er1
18259 cat conftest.err >&5
18260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } && {
18262 test -z "$ac_c_werror_flag" ||
18263 test ! -s conftest.err
18264 } && test -s conftest$ac_exeext && {
18265 test "$cross_compiling" = yes ||
18266 $as_test_x conftest$ac_exeext
18267 }; then
18268 eval "$as_ac_var=yes"
18269 else
18270 $as_echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18273 eval "$as_ac_var=no"
18276 rm -rf conftest.dSYM
18277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18278 conftest$ac_exeext conftest.$ac_ext
18280 ac_res=`eval 'as_val=${'$as_ac_var'}
18281 $as_echo "$as_val"'`
18282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18283 $as_echo "$ac_res" >&6; }
18284 if test `eval 'as_val=${'$as_ac_var'}
18285 $as_echo "$as_val"'` = yes; then
18286 cat >>confdefs.h <<_ACEOF
18287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18288 _ACEOF
18291 done
18294 # Solaris has libkstat which does not require root.
18296 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18297 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18298 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18299 $as_echo_n "(cached) " >&6
18300 else
18301 ac_check_lib_save_LIBS=$LIBS
18302 LIBS="-lkstat $LIBS"
18303 cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h. */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18310 /* Override any GCC internal prototype to avoid an error.
18311 Use char because int might match the return type of a GCC
18312 builtin and then its argument prototype would still apply. */
18313 #ifdef __cplusplus
18314 extern "C"
18315 #endif
18316 char kstat_open ();
18318 main ()
18320 return kstat_open ();
18322 return 0;
18324 _ACEOF
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330 esac
18331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18332 $as_echo "$ac_try_echo") >&5
18333 (eval "$ac_link") 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest$ac_exeext && {
18343 test "$cross_compiling" = yes ||
18344 $as_test_x conftest$ac_exeext
18345 }; then
18346 ac_cv_lib_kstat_kstat_open=yes
18347 else
18348 $as_echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 ac_cv_lib_kstat_kstat_open=no
18354 rm -rf conftest.dSYM
18355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18356 conftest$ac_exeext conftest.$ac_ext
18357 LIBS=$ac_check_lib_save_LIBS
18359 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18360 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18361 if test $ac_cv_lib_kstat_kstat_open = yes; then
18362 cat >>confdefs.h <<_ACEOF
18363 #define HAVE_LIBKSTAT 1
18364 _ACEOF
18366 LIBS="-lkstat $LIBS"
18370 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18372 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18373 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18374 # to get the right answer into the cache.
18375 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18376 if test $ac_have_func = no; then
18377 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18378 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18379 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18380 $as_echo_n "(cached) " >&6
18381 else
18382 ac_check_lib_save_LIBS=$LIBS
18383 LIBS="-lelf $LIBS"
18384 cat >conftest.$ac_ext <<_ACEOF
18385 /* confdefs.h. */
18386 _ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h. */
18391 /* Override any GCC internal prototype to avoid an error.
18392 Use char because int might match the return type of a GCC
18393 builtin and then its argument prototype would still apply. */
18394 #ifdef __cplusplus
18395 extern "C"
18396 #endif
18397 char elf_begin ();
18399 main ()
18401 return elf_begin ();
18403 return 0;
18405 _ACEOF
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18411 esac
18412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18413 $as_echo "$ac_try_echo") >&5
18414 (eval "$ac_link") 2>conftest.er1
18415 ac_status=$?
18416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
18419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } && {
18421 test -z "$ac_c_werror_flag" ||
18422 test ! -s conftest.err
18423 } && test -s conftest$ac_exeext && {
18424 test "$cross_compiling" = yes ||
18425 $as_test_x conftest$ac_exeext
18426 }; then
18427 ac_cv_lib_elf_elf_begin=yes
18428 else
18429 $as_echo "$as_me: failed program was:" >&5
18430 sed 's/^/| /' conftest.$ac_ext >&5
18432 ac_cv_lib_elf_elf_begin=no
18435 rm -rf conftest.dSYM
18436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18437 conftest$ac_exeext conftest.$ac_ext
18438 LIBS=$ac_check_lib_save_LIBS
18440 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18441 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18442 if test $ac_cv_lib_elf_elf_begin = yes; then
18443 LIBS="-lelf $LIBS"
18447 if test $ac_have_func = no; then
18448 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18449 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18450 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18451 $as_echo_n "(cached) " >&6
18452 else
18453 ac_check_lib_save_LIBS=$LIBS
18454 LIBS="-lkvm $LIBS"
18455 cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h. */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18462 /* Override any GCC internal prototype to avoid an error.
18463 Use char because int might match the return type of a GCC
18464 builtin and then its argument prototype would still apply. */
18465 #ifdef __cplusplus
18466 extern "C"
18467 #endif
18468 char kvm_open ();
18470 main ()
18472 return kvm_open ();
18474 return 0;
18476 _ACEOF
18477 rm -f conftest.$ac_objext conftest$ac_exeext
18478 if { (ac_try="$ac_link"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18482 esac
18483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18484 $as_echo "$ac_try_echo") >&5
18485 (eval "$ac_link") 2>conftest.er1
18486 ac_status=$?
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
18490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } && {
18492 test -z "$ac_c_werror_flag" ||
18493 test ! -s conftest.err
18494 } && test -s conftest$ac_exeext && {
18495 test "$cross_compiling" = yes ||
18496 $as_test_x conftest$ac_exeext
18497 }; then
18498 ac_cv_lib_kvm_kvm_open=yes
18499 else
18500 $as_echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18503 ac_cv_lib_kvm_kvm_open=no
18506 rm -rf conftest.dSYM
18507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18508 conftest$ac_exeext conftest.$ac_ext
18509 LIBS=$ac_check_lib_save_LIBS
18511 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18512 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18513 if test $ac_cv_lib_kvm_kvm_open = yes; then
18514 LIBS="-lkvm $LIBS"
18517 # Check for the 4.4BSD definition of getloadavg.
18518 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18519 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18520 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18521 $as_echo_n "(cached) " >&6
18522 else
18523 ac_check_lib_save_LIBS=$LIBS
18524 LIBS="-lutil $LIBS"
18525 cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h. */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18535 #ifdef __cplusplus
18536 extern "C"
18537 #endif
18538 char getloadavg ();
18540 main ()
18542 return getloadavg ();
18544 return 0;
18546 _ACEOF
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (ac_try="$ac_link"
18549 case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18552 esac
18553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18554 $as_echo "$ac_try_echo") >&5
18555 (eval "$ac_link") 2>conftest.er1
18556 ac_status=$?
18557 grep -v '^ *+' conftest.er1 >conftest.err
18558 rm -f conftest.er1
18559 cat conftest.err >&5
18560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } && {
18562 test -z "$ac_c_werror_flag" ||
18563 test ! -s conftest.err
18564 } && test -s conftest$ac_exeext && {
18565 test "$cross_compiling" = yes ||
18566 $as_test_x conftest$ac_exeext
18567 }; then
18568 ac_cv_lib_util_getloadavg=yes
18569 else
18570 $as_echo "$as_me: failed program was:" >&5
18571 sed 's/^/| /' conftest.$ac_ext >&5
18573 ac_cv_lib_util_getloadavg=no
18576 rm -rf conftest.dSYM
18577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18578 conftest$ac_exeext conftest.$ac_ext
18579 LIBS=$ac_check_lib_save_LIBS
18581 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18582 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18583 if test $ac_cv_lib_util_getloadavg = yes; then
18584 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18589 if test $ac_have_func = no; then
18590 # There is a commonly available library for RS/6000 AIX.
18591 # Since it is not a standard part of AIX, it might be installed locally.
18592 ac_getloadavg_LIBS=$LIBS
18593 LIBS="-L/usr/local/lib $LIBS"
18594 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18595 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18596 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18597 $as_echo_n "(cached) " >&6
18598 else
18599 ac_check_lib_save_LIBS=$LIBS
18600 LIBS="-lgetloadavg $LIBS"
18601 cat >conftest.$ac_ext <<_ACEOF
18602 /* confdefs.h. */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18608 /* Override any GCC internal prototype to avoid an error.
18609 Use char because int might match the return type of a GCC
18610 builtin and then its argument prototype would still apply. */
18611 #ifdef __cplusplus
18612 extern "C"
18613 #endif
18614 char getloadavg ();
18616 main ()
18618 return getloadavg ();
18620 return 0;
18622 _ACEOF
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628 esac
18629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18630 $as_echo "$ac_try_echo") >&5
18631 (eval "$ac_link") 2>conftest.er1
18632 ac_status=$?
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
18636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } && {
18638 test -z "$ac_c_werror_flag" ||
18639 test ! -s conftest.err
18640 } && test -s conftest$ac_exeext && {
18641 test "$cross_compiling" = yes ||
18642 $as_test_x conftest$ac_exeext
18643 }; then
18644 ac_cv_lib_getloadavg_getloadavg=yes
18645 else
18646 $as_echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18649 ac_cv_lib_getloadavg_getloadavg=no
18652 rm -rf conftest.dSYM
18653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18654 conftest$ac_exeext conftest.$ac_ext
18655 LIBS=$ac_check_lib_save_LIBS
18657 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18658 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18659 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18660 LIBS="-lgetloadavg $LIBS"
18661 else
18662 LIBS=$ac_getloadavg_LIBS
18667 # Make sure it is really in the library, if we think we found it,
18668 # otherwise set up the replacement function.
18670 for ac_func in getloadavg
18672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18673 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18674 $as_echo_n "checking for $ac_func... " >&6; }
18675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18676 $as_echo_n "(cached) " >&6
18677 else
18678 cat >conftest.$ac_ext <<_ACEOF
18679 /* confdefs.h. */
18680 _ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18686 #define $ac_func innocuous_$ac_func
18688 /* System header to define __stub macros and hopefully few prototypes,
18689 which can conflict with char $ac_func (); below.
18690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18691 <limits.h> exists even on freestanding compilers. */
18693 #ifdef __STDC__
18694 # include <limits.h>
18695 #else
18696 # include <assert.h>
18697 #endif
18699 #undef $ac_func
18701 /* Override any GCC internal prototype to avoid an error.
18702 Use char because int might match the return type of a GCC
18703 builtin and then its argument prototype would still apply. */
18704 #ifdef __cplusplus
18705 extern "C"
18706 #endif
18707 char $ac_func ();
18708 /* The GNU C library defines this for functions which it implements
18709 to always fail with ENOSYS. Some functions are actually named
18710 something starting with __ and the normal name is an alias. */
18711 #if defined __stub_$ac_func || defined __stub___$ac_func
18712 choke me
18713 #endif
18716 main ()
18718 return $ac_func ();
18720 return 0;
18722 _ACEOF
18723 rm -f conftest.$ac_objext conftest$ac_exeext
18724 if { (ac_try="$ac_link"
18725 case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18728 esac
18729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18730 $as_echo "$ac_try_echo") >&5
18731 (eval "$ac_link") 2>conftest.er1
18732 ac_status=$?
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
18736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } && {
18738 test -z "$ac_c_werror_flag" ||
18739 test ! -s conftest.err
18740 } && test -s conftest$ac_exeext && {
18741 test "$cross_compiling" = yes ||
18742 $as_test_x conftest$ac_exeext
18743 }; then
18744 eval "$as_ac_var=yes"
18745 else
18746 $as_echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18749 eval "$as_ac_var=no"
18752 rm -rf conftest.dSYM
18753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18754 conftest$ac_exeext conftest.$ac_ext
18756 ac_res=`eval 'as_val=${'$as_ac_var'}
18757 $as_echo "$as_val"'`
18758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18759 $as_echo "$ac_res" >&6; }
18760 if test `eval 'as_val=${'$as_ac_var'}
18761 $as_echo "$as_val"'` = yes; then
18762 cat >>confdefs.h <<_ACEOF
18763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18764 _ACEOF
18766 else
18767 case " $LIBOBJS " in
18768 *" getloadavg.$ac_objext "* ) ;;
18769 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18771 esac
18774 cat >>confdefs.h <<\_ACEOF
18775 #define C_GETLOADAVG 1
18776 _ACEOF
18778 # Figure out what our getloadavg.c needs.
18779 ac_have_func=no
18780 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18781 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18782 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18783 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18784 $as_echo_n "(cached) " >&6
18786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18787 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18788 else
18789 # Is the header compilable?
18790 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18791 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18792 cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h. */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 $ac_includes_default
18799 #include <sys/dg_sys_info.h>
18800 _ACEOF
18801 rm -f conftest.$ac_objext
18802 if { (ac_try="$ac_compile"
18803 case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806 esac
18807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18808 $as_echo "$ac_try_echo") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18810 ac_status=$?
18811 grep -v '^ *+' conftest.er1 >conftest.err
18812 rm -f conftest.er1
18813 cat conftest.err >&5
18814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ac_header_compiler=yes
18820 else
18821 $as_echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 ac_header_compiler=no
18827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18829 $as_echo "$ac_header_compiler" >&6; }
18831 # Is the header present?
18832 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18833 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18834 cat >conftest.$ac_ext <<_ACEOF
18835 /* confdefs.h. */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 #include <sys/dg_sys_info.h>
18841 _ACEOF
18842 if { (ac_try="$ac_cpp conftest.$ac_ext"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846 esac
18847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18848 $as_echo "$ac_try_echo") >&5
18849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } >/dev/null && {
18856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18858 }; then
18859 ac_header_preproc=yes
18860 else
18861 $as_echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 ac_header_preproc=no
18867 rm -f conftest.err conftest.$ac_ext
18868 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18869 $as_echo "$ac_header_preproc" >&6; }
18871 # So? What about this header?
18872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18873 yes:no: )
18874 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18875 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18876 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18877 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18878 ac_header_preproc=yes
18880 no:yes:* )
18881 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18882 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18883 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18884 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18885 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18886 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18887 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18888 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18889 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18890 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18891 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18892 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18895 esac
18896 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18897 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18898 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18899 $as_echo_n "(cached) " >&6
18900 else
18901 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18903 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18904 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18907 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18908 ac_have_func=yes
18910 cat >>confdefs.h <<\_ACEOF
18911 #define DGUX 1
18912 _ACEOF
18915 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18916 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18917 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18918 $as_echo_n "(cached) " >&6
18919 else
18920 ac_check_lib_save_LIBS=$LIBS
18921 LIBS="-ldgc $LIBS"
18922 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h. */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18929 /* Override any GCC internal prototype to avoid an error.
18930 Use char because int might match the return type of a GCC
18931 builtin and then its argument prototype would still apply. */
18932 #ifdef __cplusplus
18933 extern "C"
18934 #endif
18935 char dg_sys_info ();
18937 main ()
18939 return dg_sys_info ();
18941 return 0;
18943 _ACEOF
18944 rm -f conftest.$ac_objext conftest$ac_exeext
18945 if { (ac_try="$ac_link"
18946 case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18949 esac
18950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18951 $as_echo "$ac_try_echo") >&5
18952 (eval "$ac_link") 2>conftest.er1
18953 ac_status=$?
18954 grep -v '^ *+' conftest.er1 >conftest.err
18955 rm -f conftest.er1
18956 cat conftest.err >&5
18957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest$ac_exeext && {
18962 test "$cross_compiling" = yes ||
18963 $as_test_x conftest$ac_exeext
18964 }; then
18965 ac_cv_lib_dgc_dg_sys_info=yes
18966 else
18967 $as_echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 ac_cv_lib_dgc_dg_sys_info=no
18973 rm -rf conftest.dSYM
18974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18975 conftest$ac_exeext conftest.$ac_ext
18976 LIBS=$ac_check_lib_save_LIBS
18978 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18979 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18980 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18981 cat >>confdefs.h <<_ACEOF
18982 #define HAVE_LIBDGC 1
18983 _ACEOF
18985 LIBS="-ldgc $LIBS"
18993 if test "${ac_cv_header_locale_h+set}" = set; then
18994 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18995 $as_echo_n "checking for locale.h... " >&6; }
18996 if test "${ac_cv_header_locale_h+set}" = set; then
18997 $as_echo_n "(cached) " >&6
18999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19000 $as_echo "$ac_cv_header_locale_h" >&6; }
19001 else
19002 # Is the header compilable?
19003 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19004 $as_echo_n "checking locale.h usability... " >&6; }
19005 cat >conftest.$ac_ext <<_ACEOF
19006 /* confdefs.h. */
19007 _ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19011 $ac_includes_default
19012 #include <locale.h>
19013 _ACEOF
19014 rm -f conftest.$ac_objext
19015 if { (ac_try="$ac_compile"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019 esac
19020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19021 $as_echo "$ac_try_echo") >&5
19022 (eval "$ac_compile") 2>conftest.er1
19023 ac_status=$?
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
19027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest.$ac_objext; then
19032 ac_header_compiler=yes
19033 else
19034 $as_echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19037 ac_header_compiler=no
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19041 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19042 $as_echo "$ac_header_compiler" >&6; }
19044 # Is the header present?
19045 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19046 $as_echo_n "checking locale.h presence... " >&6; }
19047 cat >conftest.$ac_ext <<_ACEOF
19048 /* confdefs.h. */
19049 _ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h. */
19053 #include <locale.h>
19054 _ACEOF
19055 if { (ac_try="$ac_cpp conftest.$ac_ext"
19056 case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059 esac
19060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19061 $as_echo "$ac_try_echo") >&5
19062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } >/dev/null && {
19069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 }; then
19072 ac_header_preproc=yes
19073 else
19074 $as_echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19077 ac_header_preproc=no
19080 rm -f conftest.err conftest.$ac_ext
19081 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19082 $as_echo "$ac_header_preproc" >&6; }
19084 # So? What about this header?
19085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19086 yes:no: )
19087 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19088 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19089 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19090 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19091 ac_header_preproc=yes
19093 no:yes:* )
19094 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19095 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19096 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19097 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19098 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19099 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19100 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19101 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19102 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19103 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19104 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19105 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19108 esac
19109 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19110 $as_echo_n "checking for locale.h... " >&6; }
19111 if test "${ac_cv_header_locale_h+set}" = set; then
19112 $as_echo_n "(cached) " >&6
19113 else
19114 ac_cv_header_locale_h=$ac_header_preproc
19116 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19117 $as_echo "$ac_cv_header_locale_h" >&6; }
19123 for ac_func in setlocale
19125 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19126 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19127 $as_echo_n "checking for $ac_func... " >&6; }
19128 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19129 $as_echo_n "(cached) " >&6
19130 else
19131 cat >conftest.$ac_ext <<_ACEOF
19132 /* confdefs.h. */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19139 #define $ac_func innocuous_$ac_func
19141 /* System header to define __stub macros and hopefully few prototypes,
19142 which can conflict with char $ac_func (); below.
19143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19144 <limits.h> exists even on freestanding compilers. */
19146 #ifdef __STDC__
19147 # include <limits.h>
19148 #else
19149 # include <assert.h>
19150 #endif
19152 #undef $ac_func
19154 /* Override any GCC internal prototype to avoid an error.
19155 Use char because int might match the return type of a GCC
19156 builtin and then its argument prototype would still apply. */
19157 #ifdef __cplusplus
19158 extern "C"
19159 #endif
19160 char $ac_func ();
19161 /* The GNU C library defines this for functions which it implements
19162 to always fail with ENOSYS. Some functions are actually named
19163 something starting with __ and the normal name is an alias. */
19164 #if defined __stub_$ac_func || defined __stub___$ac_func
19165 choke me
19166 #endif
19169 main ()
19171 return $ac_func ();
19173 return 0;
19175 _ACEOF
19176 rm -f conftest.$ac_objext conftest$ac_exeext
19177 if { (ac_try="$ac_link"
19178 case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181 esac
19182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19183 $as_echo "$ac_try_echo") >&5
19184 (eval "$ac_link") 2>conftest.er1
19185 ac_status=$?
19186 grep -v '^ *+' conftest.er1 >conftest.err
19187 rm -f conftest.er1
19188 cat conftest.err >&5
19189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && {
19191 test -z "$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 } && test -s conftest$ac_exeext && {
19194 test "$cross_compiling" = yes ||
19195 $as_test_x conftest$ac_exeext
19196 }; then
19197 eval "$as_ac_var=yes"
19198 else
19199 $as_echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 eval "$as_ac_var=no"
19205 rm -rf conftest.dSYM
19206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19207 conftest$ac_exeext conftest.$ac_ext
19209 ac_res=`eval 'as_val=${'$as_ac_var'}
19210 $as_echo "$as_val"'`
19211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19212 $as_echo "$ac_res" >&6; }
19213 if test `eval 'as_val=${'$as_ac_var'}
19214 $as_echo "$as_val"'` = yes; then
19215 cat >>confdefs.h <<_ACEOF
19216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19217 _ACEOF
19220 done
19223 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19224 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19225 # Irix 4.0.5F has the header but not the library.
19226 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19227 ac_have_func=yes
19229 cat >>confdefs.h <<\_ACEOF
19230 #define SVR4 1
19231 _ACEOF
19235 if test $ac_have_func = no; then
19236 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19237 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19238 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19239 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19240 $as_echo_n "(cached) " >&6
19242 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19243 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19244 else
19245 # Is the header compilable?
19246 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19247 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19248 cat >conftest.$ac_ext <<_ACEOF
19249 /* confdefs.h. */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19254 $ac_includes_default
19255 #include <inq_stats/cpustats.h>
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (ac_try="$ac_compile"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19262 esac
19263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19264 $as_echo "$ac_try_echo") >&5
19265 (eval "$ac_compile") 2>conftest.er1
19266 ac_status=$?
19267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
19270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } && {
19272 test -z "$ac_c_werror_flag" ||
19273 test ! -s conftest.err
19274 } && test -s conftest.$ac_objext; then
19275 ac_header_compiler=yes
19276 else
19277 $as_echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19280 ac_header_compiler=no
19283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19284 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19285 $as_echo "$ac_header_compiler" >&6; }
19287 # Is the header present?
19288 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19289 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19290 cat >conftest.$ac_ext <<_ACEOF
19291 /* confdefs.h. */
19292 _ACEOF
19293 cat confdefs.h >>conftest.$ac_ext
19294 cat >>conftest.$ac_ext <<_ACEOF
19295 /* end confdefs.h. */
19296 #include <inq_stats/cpustats.h>
19297 _ACEOF
19298 if { (ac_try="$ac_cpp conftest.$ac_ext"
19299 case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19302 esac
19303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19304 $as_echo "$ac_try_echo") >&5
19305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } >/dev/null && {
19312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19313 test ! -s conftest.err
19314 }; then
19315 ac_header_preproc=yes
19316 else
19317 $as_echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19320 ac_header_preproc=no
19323 rm -f conftest.err conftest.$ac_ext
19324 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19325 $as_echo "$ac_header_preproc" >&6; }
19327 # So? What about this header?
19328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19329 yes:no: )
19330 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19331 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19332 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19333 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19334 ac_header_preproc=yes
19336 no:yes:* )
19337 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19338 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19339 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19340 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19341 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19342 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19343 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19344 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19345 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19346 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19347 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19348 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19351 esac
19352 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19353 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19354 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19355 $as_echo_n "(cached) " >&6
19356 else
19357 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19359 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19360 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19363 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19364 ac_have_func=yes
19366 cat >>confdefs.h <<\_ACEOF
19367 #define UMAX 1
19368 _ACEOF
19371 cat >>confdefs.h <<\_ACEOF
19372 #define UMAX4_3 1
19373 _ACEOF
19380 if test $ac_have_func = no; then
19381 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19382 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19383 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19384 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19385 $as_echo_n "(cached) " >&6
19387 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19388 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19389 else
19390 # Is the header compilable?
19391 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19392 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19393 cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h. */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 $ac_includes_default
19400 #include <sys/cpustats.h>
19401 _ACEOF
19402 rm -f conftest.$ac_objext
19403 if { (ac_try="$ac_compile"
19404 case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19407 esac
19408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19409 $as_echo "$ac_try_echo") >&5
19410 (eval "$ac_compile") 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest.$ac_objext; then
19420 ac_header_compiler=yes
19421 else
19422 $as_echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19425 ac_header_compiler=no
19428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19429 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19430 $as_echo "$ac_header_compiler" >&6; }
19432 # Is the header present?
19433 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19434 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19435 cat >conftest.$ac_ext <<_ACEOF
19436 /* confdefs.h. */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19441 #include <sys/cpustats.h>
19442 _ACEOF
19443 if { (ac_try="$ac_cpp conftest.$ac_ext"
19444 case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19447 esac
19448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19449 $as_echo "$ac_try_echo") >&5
19450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19451 ac_status=$?
19452 grep -v '^ *+' conftest.er1 >conftest.err
19453 rm -f conftest.er1
19454 cat conftest.err >&5
19455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } >/dev/null && {
19457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19458 test ! -s conftest.err
19459 }; then
19460 ac_header_preproc=yes
19461 else
19462 $as_echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19465 ac_header_preproc=no
19468 rm -f conftest.err conftest.$ac_ext
19469 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19470 $as_echo "$ac_header_preproc" >&6; }
19472 # So? What about this header?
19473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19474 yes:no: )
19475 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19476 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19477 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19478 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19479 ac_header_preproc=yes
19481 no:yes:* )
19482 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19483 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19484 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19485 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19486 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19487 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19488 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19489 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19490 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19491 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19492 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19493 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19496 esac
19497 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19498 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19499 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19500 $as_echo_n "(cached) " >&6
19501 else
19502 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19504 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19505 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19508 if test $ac_cv_header_sys_cpustats_h = yes; then
19509 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19510 #define UMAX 1
19511 _ACEOF
19518 if test $ac_have_func = no; then
19520 for ac_header in mach/mach.h
19522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19525 $as_echo_n "checking for $ac_header... " >&6; }
19526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19527 $as_echo_n "(cached) " >&6
19529 ac_res=`eval 'as_val=${'$as_ac_Header'}
19530 $as_echo "$as_val"'`
19531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19532 $as_echo "$ac_res" >&6; }
19533 else
19534 # Is the header compilable?
19535 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19536 $as_echo_n "checking $ac_header usability... " >&6; }
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h. */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 $ac_includes_default
19544 #include <$ac_header>
19545 _ACEOF
19546 rm -f conftest.$ac_objext
19547 if { (ac_try="$ac_compile"
19548 case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551 esac
19552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19553 $as_echo "$ac_try_echo") >&5
19554 (eval "$ac_compile") 2>conftest.er1
19555 ac_status=$?
19556 grep -v '^ *+' conftest.er1 >conftest.err
19557 rm -f conftest.er1
19558 cat conftest.err >&5
19559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest.$ac_objext; then
19564 ac_header_compiler=yes
19565 else
19566 $as_echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_header_compiler=no
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574 $as_echo "$ac_header_compiler" >&6; }
19576 # Is the header present?
19577 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19578 $as_echo_n "checking $ac_header presence... " >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h. */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 #include <$ac_header>
19586 _ACEOF
19587 if { (ac_try="$ac_cpp conftest.$ac_ext"
19588 case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19591 esac
19592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19593 $as_echo "$ac_try_echo") >&5
19594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } >/dev/null && {
19601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 }; then
19604 ac_header_preproc=yes
19605 else
19606 $as_echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 ac_header_preproc=no
19612 rm -f conftest.err conftest.$ac_ext
19613 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19614 $as_echo "$ac_header_preproc" >&6; }
19616 # So? What about this header?
19617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19618 yes:no: )
19619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19620 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19622 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19623 ac_header_preproc=yes
19625 no:yes:* )
19626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19627 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19629 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19631 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19633 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19635 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19637 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19640 esac
19641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19642 $as_echo_n "checking for $ac_header... " >&6; }
19643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19644 $as_echo_n "(cached) " >&6
19645 else
19646 eval "$as_ac_Header=\$ac_header_preproc"
19648 ac_res=`eval 'as_val=${'$as_ac_Header'}
19649 $as_echo "$as_val"'`
19650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19651 $as_echo "$ac_res" >&6; }
19654 if test `eval 'as_val=${'$as_ac_Header'}
19655 $as_echo "$as_val"'` = yes; then
19656 cat >>confdefs.h <<_ACEOF
19657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19658 _ACEOF
19662 done
19667 for ac_header in nlist.h
19669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19671 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19672 $as_echo_n "checking for $ac_header... " >&6; }
19673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19674 $as_echo_n "(cached) " >&6
19676 ac_res=`eval 'as_val=${'$as_ac_Header'}
19677 $as_echo "$as_val"'`
19678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19679 $as_echo "$ac_res" >&6; }
19680 else
19681 # Is the header compilable?
19682 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19683 $as_echo_n "checking $ac_header usability... " >&6; }
19684 cat >conftest.$ac_ext <<_ACEOF
19685 /* confdefs.h. */
19686 _ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 $ac_includes_default
19691 #include <$ac_header>
19692 _ACEOF
19693 rm -f conftest.$ac_objext
19694 if { (ac_try="$ac_compile"
19695 case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19698 esac
19699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19700 $as_echo "$ac_try_echo") >&5
19701 (eval "$ac_compile") 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest.$ac_objext; then
19711 ac_header_compiler=yes
19712 else
19713 $as_echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19716 ac_header_compiler=no
19719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19720 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19721 $as_echo "$ac_header_compiler" >&6; }
19723 # Is the header present?
19724 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19725 $as_echo_n "checking $ac_header presence... " >&6; }
19726 cat >conftest.$ac_ext <<_ACEOF
19727 /* confdefs.h. */
19728 _ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19732 #include <$ac_header>
19733 _ACEOF
19734 if { (ac_try="$ac_cpp conftest.$ac_ext"
19735 case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19738 esac
19739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19740 $as_echo "$ac_try_echo") >&5
19741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19742 ac_status=$?
19743 grep -v '^ *+' conftest.er1 >conftest.err
19744 rm -f conftest.er1
19745 cat conftest.err >&5
19746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } >/dev/null && {
19748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19749 test ! -s conftest.err
19750 }; then
19751 ac_header_preproc=yes
19752 else
19753 $as_echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19756 ac_header_preproc=no
19759 rm -f conftest.err conftest.$ac_ext
19760 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19761 $as_echo "$ac_header_preproc" >&6; }
19763 # So? What about this header?
19764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19765 yes:no: )
19766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19767 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19770 ac_header_preproc=yes
19772 no:yes:* )
19773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19774 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19776 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19778 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19780 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19782 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19784 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19787 esac
19788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19789 $as_echo_n "checking for $ac_header... " >&6; }
19790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19791 $as_echo_n "(cached) " >&6
19792 else
19793 eval "$as_ac_Header=\$ac_header_preproc"
19795 ac_res=`eval 'as_val=${'$as_ac_Header'}
19796 $as_echo "$as_val"'`
19797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19798 $as_echo "$ac_res" >&6; }
19801 if test `eval 'as_val=${'$as_ac_Header'}
19802 $as_echo "$as_val"'` = yes; then
19803 cat >>confdefs.h <<_ACEOF
19804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19805 _ACEOF
19806 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19807 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19808 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19809 $as_echo_n "(cached) " >&6
19810 else
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h. */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 #include <nlist.h>
19820 main ()
19822 static struct nlist ac_aggr;
19823 if (ac_aggr.n_un.n_name)
19824 return 0;
19826 return 0;
19828 _ACEOF
19829 rm -f conftest.$ac_objext
19830 if { (ac_try="$ac_compile"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19834 esac
19835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19836 $as_echo "$ac_try_echo") >&5
19837 (eval "$ac_compile") 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } && {
19844 test -z "$ac_c_werror_flag" ||
19845 test ! -s conftest.err
19846 } && test -s conftest.$ac_objext; then
19847 ac_cv_member_struct_nlist_n_un_n_name=yes
19848 else
19849 $as_echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h. */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 #include <nlist.h>
19861 main ()
19863 static struct nlist ac_aggr;
19864 if (sizeof ac_aggr.n_un.n_name)
19865 return 0;
19867 return 0;
19869 _ACEOF
19870 rm -f conftest.$ac_objext
19871 if { (ac_try="$ac_compile"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875 esac
19876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19877 $as_echo "$ac_try_echo") >&5
19878 (eval "$ac_compile") 2>conftest.er1
19879 ac_status=$?
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
19883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && {
19885 test -z "$ac_c_werror_flag" ||
19886 test ! -s conftest.err
19887 } && test -s conftest.$ac_objext; then
19888 ac_cv_member_struct_nlist_n_un_n_name=yes
19889 else
19890 $as_echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19893 ac_cv_member_struct_nlist_n_un_n_name=no
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19901 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19902 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19903 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19905 cat >>confdefs.h <<_ACEOF
19906 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19907 _ACEOF
19910 cat >>confdefs.h <<\_ACEOF
19911 #define NLIST_NAME_UNION 1
19912 _ACEOF
19919 done
19922 done
19925 # Some definitions of getloadavg require that the program be installed setgid.
19926 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19927 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19928 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19929 $as_echo_n "(cached) " >&6
19930 else
19931 cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h. */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19938 #ifdef LDAV_PRIVILEGED
19939 Yowza Am I SETGID yet
19940 #endif
19941 _ACEOF
19942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19943 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19944 ac_cv_func_getloadavg_setgid=yes
19945 else
19946 ac_cv_func_getloadavg_setgid=no
19948 rm -f conftest*
19951 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19952 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19953 if test $ac_cv_func_getloadavg_setgid = yes; then
19954 NEED_SETGID=true
19956 cat >>confdefs.h <<\_ACEOF
19957 #define GETLOADAVG_PRIVILEGED 1
19958 _ACEOF
19960 else
19961 NEED_SETGID=false
19964 if test $ac_cv_func_getloadavg_setgid = yes; then
19965 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19966 $as_echo_n "checking group of /dev/kmem... " >&6; }
19967 if test "${ac_cv_group_kmem+set}" = set; then
19968 $as_echo_n "(cached) " >&6
19969 else
19970 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19971 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19972 # If we got an error (system does not support symlinks), try without -L.
19973 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19974 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19975 | sed -ne 's/[ ][ ]*/ /g;
19976 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19977 / /s/.* //;p;'`
19980 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19981 $as_echo "$ac_cv_group_kmem" >&6; }
19982 KMEM_GROUP=$ac_cv_group_kmem
19984 if test "x$ac_save_LIBS" = x; then
19985 GETLOADAVG_LIBS=$LIBS
19986 else
19987 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19989 LIBS=$ac_save_LIBS
19993 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19994 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19995 if test "${ac_cv_sys_largefile_source+set}" = set; then
19996 $as_echo_n "(cached) " >&6
19997 else
19998 while :; do
19999 cat >conftest.$ac_ext <<_ACEOF
20000 /* confdefs.h. */
20001 _ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h. */
20005 #include <sys/types.h> /* for off_t */
20006 #include <stdio.h>
20008 main ()
20010 int (*fp) (FILE *, off_t, int) = fseeko;
20011 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20013 return 0;
20015 _ACEOF
20016 rm -f conftest.$ac_objext conftest$ac_exeext
20017 if { (ac_try="$ac_link"
20018 case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20021 esac
20022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20023 $as_echo "$ac_try_echo") >&5
20024 (eval "$ac_link") 2>conftest.er1
20025 ac_status=$?
20026 grep -v '^ *+' conftest.er1 >conftest.err
20027 rm -f conftest.er1
20028 cat conftest.err >&5
20029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } && {
20031 test -z "$ac_c_werror_flag" ||
20032 test ! -s conftest.err
20033 } && test -s conftest$ac_exeext && {
20034 test "$cross_compiling" = yes ||
20035 $as_test_x conftest$ac_exeext
20036 }; then
20037 ac_cv_sys_largefile_source=no; break
20038 else
20039 $as_echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20045 rm -rf conftest.dSYM
20046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20047 conftest$ac_exeext conftest.$ac_ext
20048 cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h. */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 #define _LARGEFILE_SOURCE 1
20055 #include <sys/types.h> /* for off_t */
20056 #include <stdio.h>
20058 main ()
20060 int (*fp) (FILE *, off_t, int) = fseeko;
20061 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20063 return 0;
20065 _ACEOF
20066 rm -f conftest.$ac_objext conftest$ac_exeext
20067 if { (ac_try="$ac_link"
20068 case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071 esac
20072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20073 $as_echo "$ac_try_echo") >&5
20074 (eval "$ac_link") 2>conftest.er1
20075 ac_status=$?
20076 grep -v '^ *+' conftest.er1 >conftest.err
20077 rm -f conftest.er1
20078 cat conftest.err >&5
20079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } && {
20081 test -z "$ac_c_werror_flag" ||
20082 test ! -s conftest.err
20083 } && test -s conftest$ac_exeext && {
20084 test "$cross_compiling" = yes ||
20085 $as_test_x conftest$ac_exeext
20086 }; then
20087 ac_cv_sys_largefile_source=1; break
20088 else
20089 $as_echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20095 rm -rf conftest.dSYM
20096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20097 conftest$ac_exeext conftest.$ac_ext
20098 ac_cv_sys_largefile_source=unknown
20099 break
20100 done
20102 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20103 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20104 case $ac_cv_sys_largefile_source in #(
20105 no | unknown) ;;
20107 cat >>confdefs.h <<_ACEOF
20108 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20109 _ACEOF
20111 esac
20112 rm -rf conftest*
20114 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20115 # in glibc 2.1.3, but that breaks too many other things.
20116 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20117 if test $ac_cv_sys_largefile_source != unknown; then
20119 cat >>confdefs.h <<\_ACEOF
20120 #define HAVE_FSEEKO 1
20121 _ACEOF
20126 # Configure getopt.
20127 # getopt.m4 serial 10
20129 # The getopt module assume you want GNU getopt, with getopt_long etc,
20130 # rather than vanilla POSIX getopt. This means your your code should
20131 # always include <getopt.h> for the getopt prototypes.
20143 # Prerequisites of lib/getopt*.
20148 GETOPT_H=
20150 for ac_header in getopt.h
20152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20154 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20155 $as_echo_n "checking for $ac_header... " >&6; }
20156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20157 $as_echo_n "(cached) " >&6
20159 ac_res=`eval 'as_val=${'$as_ac_Header'}
20160 $as_echo "$as_val"'`
20161 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20162 $as_echo "$ac_res" >&6; }
20163 else
20164 # Is the header compilable?
20165 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20166 $as_echo_n "checking $ac_header usability... " >&6; }
20167 cat >conftest.$ac_ext <<_ACEOF
20168 /* confdefs.h. */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 $ac_includes_default
20174 #include <$ac_header>
20175 _ACEOF
20176 rm -f conftest.$ac_objext
20177 if { (ac_try="$ac_compile"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181 esac
20182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20183 $as_echo "$ac_try_echo") >&5
20184 (eval "$ac_compile") 2>conftest.er1
20185 ac_status=$?
20186 grep -v '^ *+' conftest.er1 >conftest.err
20187 rm -f conftest.er1
20188 cat conftest.err >&5
20189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && {
20191 test -z "$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 } && test -s conftest.$ac_objext; then
20194 ac_header_compiler=yes
20195 else
20196 $as_echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20199 ac_header_compiler=no
20202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20203 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20204 $as_echo "$ac_header_compiler" >&6; }
20206 # Is the header present?
20207 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20208 $as_echo_n "checking $ac_header presence... " >&6; }
20209 cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h. */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 #include <$ac_header>
20216 _ACEOF
20217 if { (ac_try="$ac_cpp conftest.$ac_ext"
20218 case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20221 esac
20222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20223 $as_echo "$ac_try_echo") >&5
20224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } >/dev/null && {
20231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20232 test ! -s conftest.err
20233 }; then
20234 ac_header_preproc=yes
20235 else
20236 $as_echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 ac_header_preproc=no
20242 rm -f conftest.err conftest.$ac_ext
20243 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20244 $as_echo "$ac_header_preproc" >&6; }
20246 # So? What about this header?
20247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20248 yes:no: )
20249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20250 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20252 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20253 ac_header_preproc=yes
20255 no:yes:* )
20256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20257 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20259 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20261 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20263 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20265 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20267 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20270 esac
20271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20272 $as_echo_n "checking for $ac_header... " >&6; }
20273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20274 $as_echo_n "(cached) " >&6
20275 else
20276 eval "$as_ac_Header=\$ac_header_preproc"
20278 ac_res=`eval 'as_val=${'$as_ac_Header'}
20279 $as_echo "$as_val"'`
20280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20281 $as_echo "$ac_res" >&6; }
20284 if test `eval 'as_val=${'$as_ac_Header'}
20285 $as_echo "$as_val"'` = yes; then
20286 cat >>confdefs.h <<_ACEOF
20287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20288 _ACEOF
20290 else
20291 GETOPT_H=getopt.h
20294 done
20296 if test -z "$GETOPT_H"; then
20298 for ac_func in getopt_long_only
20300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20301 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20302 $as_echo_n "checking for $ac_func... " >&6; }
20303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20304 $as_echo_n "(cached) " >&6
20305 else
20306 cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h. */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20314 #define $ac_func innocuous_$ac_func
20316 /* System header to define __stub macros and hopefully few prototypes,
20317 which can conflict with char $ac_func (); below.
20318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20319 <limits.h> exists even on freestanding compilers. */
20321 #ifdef __STDC__
20322 # include <limits.h>
20323 #else
20324 # include <assert.h>
20325 #endif
20327 #undef $ac_func
20329 /* Override any GCC internal prototype to avoid an error.
20330 Use char because int might match the return type of a GCC
20331 builtin and then its argument prototype would still apply. */
20332 #ifdef __cplusplus
20333 extern "C"
20334 #endif
20335 char $ac_func ();
20336 /* The GNU C library defines this for functions which it implements
20337 to always fail with ENOSYS. Some functions are actually named
20338 something starting with __ and the normal name is an alias. */
20339 #if defined __stub_$ac_func || defined __stub___$ac_func
20340 choke me
20341 #endif
20344 main ()
20346 return $ac_func ();
20348 return 0;
20350 _ACEOF
20351 rm -f conftest.$ac_objext conftest$ac_exeext
20352 if { (ac_try="$ac_link"
20353 case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356 esac
20357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20358 $as_echo "$ac_try_echo") >&5
20359 (eval "$ac_link") 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest$ac_exeext && {
20369 test "$cross_compiling" = yes ||
20370 $as_test_x conftest$ac_exeext
20371 }; then
20372 eval "$as_ac_var=yes"
20373 else
20374 $as_echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20377 eval "$as_ac_var=no"
20380 rm -rf conftest.dSYM
20381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20382 conftest$ac_exeext conftest.$ac_ext
20384 ac_res=`eval 'as_val=${'$as_ac_var'}
20385 $as_echo "$as_val"'`
20386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20387 $as_echo "$ac_res" >&6; }
20388 if test `eval 'as_val=${'$as_ac_var'}
20389 $as_echo "$as_val"'` = yes; then
20390 cat >>confdefs.h <<_ACEOF
20391 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20392 _ACEOF
20394 else
20395 GETOPT_H=getopt.h
20397 done
20401 if test -z "$GETOPT_H"; then
20402 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20403 $as_echo_n "checking whether optreset is declared... " >&6; }
20404 if test "${ac_cv_have_decl_optreset+set}" = set; then
20405 $as_echo_n "(cached) " >&6
20406 else
20407 cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h. */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 #include <getopt.h>
20416 main ()
20418 #ifndef optreset
20419 (void) optreset;
20420 #endif
20423 return 0;
20425 _ACEOF
20426 rm -f conftest.$ac_objext
20427 if { (ac_try="$ac_compile"
20428 case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20431 esac
20432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20433 $as_echo "$ac_try_echo") >&5
20434 (eval "$ac_compile") 2>conftest.er1
20435 ac_status=$?
20436 grep -v '^ *+' conftest.er1 >conftest.err
20437 rm -f conftest.er1
20438 cat conftest.err >&5
20439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } && {
20441 test -z "$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20443 } && test -s conftest.$ac_objext; then
20444 ac_cv_have_decl_optreset=yes
20445 else
20446 $as_echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ac_cv_have_decl_optreset=no
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20455 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20456 if test $ac_cv_have_decl_optreset = yes; then
20457 GETOPT_H=getopt.h
20462 if test -z "$GETOPT_H"; then
20463 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20464 $as_echo_n "checking for working GNU getopt function... " >&6; }
20465 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20466 $as_echo_n "(cached) " >&6
20467 else
20468 if test "$cross_compiling" = yes; then
20469 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20470 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20471 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20472 $as_echo_n "(cached) " >&6
20473 else
20474 cat >conftest.$ac_ext <<_ACEOF
20475 /* confdefs.h. */
20476 _ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h. */
20480 #include <getopt.h>
20483 main ()
20485 #ifndef getopt_clip
20486 (void) getopt_clip;
20487 #endif
20490 return 0;
20492 _ACEOF
20493 rm -f conftest.$ac_objext
20494 if { (ac_try="$ac_compile"
20495 case "(($ac_try" in
20496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497 *) ac_try_echo=$ac_try;;
20498 esac
20499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20500 $as_echo "$ac_try_echo") >&5
20501 (eval "$ac_compile") 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } && {
20508 test -z "$ac_c_werror_flag" ||
20509 test ! -s conftest.err
20510 } && test -s conftest.$ac_objext; then
20511 ac_cv_have_decl_getopt_clip=yes
20512 else
20513 $as_echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 ac_cv_have_decl_getopt_clip=no
20519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20521 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20522 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20523 if test $ac_cv_have_decl_getopt_clip = yes; then
20524 gl_cv_func_gnu_getopt=no
20525 else
20526 gl_cv_func_gnu_getopt=yes
20529 else
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 #include <getopt.h>
20538 main ()
20541 char *myargv[3];
20542 myargv[0] = "conftest";
20543 myargv[1] = "-+";
20544 myargv[2] = 0;
20545 return getopt (2, myargv, "+a") != '?';
20548 return 0;
20550 _ACEOF
20551 rm -f conftest$ac_exeext
20552 if { (ac_try="$ac_link"
20553 case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20556 esac
20557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20558 $as_echo "$ac_try_echo") >&5
20559 (eval "$ac_link") 2>&5
20560 ac_status=$?
20561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20563 { (case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20566 esac
20567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20568 $as_echo "$ac_try_echo") >&5
20569 (eval "$ac_try") 2>&5
20570 ac_status=$?
20571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 gl_cv_func_gnu_getopt=yes
20574 else
20575 $as_echo "$as_me: program exited with status $ac_status" >&5
20576 $as_echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 ( exit $ac_status )
20580 gl_cv_func_gnu_getopt=no
20582 rm -rf conftest.dSYM
20583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20588 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20589 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20590 if test "$gl_cv_func_gnu_getopt" = "no"; then
20591 GETOPT_H=getopt.h
20597 if test -n "$GETOPT_H"; then
20600 GETOPT_H=getopt.h
20602 cat >>confdefs.h <<\_ACEOF
20603 #define __GETOPT_PREFIX rpl_
20604 _ACEOF
20609 GETOPTOBJS='getopt.o getopt1.o'
20616 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20617 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20618 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20619 $as_echo_n "(cached) " >&6
20620 else
20621 # Use it with a single arg.
20622 cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h. */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 $ac_includes_default
20630 main ()
20632 getpgrp (0);
20634 return 0;
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20644 $as_echo "$ac_try_echo") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
20655 ac_cv_func_getpgrp_void=no
20656 else
20657 $as_echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_cv_func_getpgrp_void=yes
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20666 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20667 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20668 if test $ac_cv_func_getpgrp_void = yes; then
20670 cat >>confdefs.h <<\_ACEOF
20671 #define GETPGRP_VOID 1
20672 _ACEOF
20678 for ac_func in strftime
20680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20681 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20682 $as_echo_n "checking for $ac_func... " >&6; }
20683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20684 $as_echo_n "(cached) " >&6
20685 else
20686 cat >conftest.$ac_ext <<_ACEOF
20687 /* confdefs.h. */
20688 _ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h. */
20692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20694 #define $ac_func innocuous_$ac_func
20696 /* System header to define __stub macros and hopefully few prototypes,
20697 which can conflict with char $ac_func (); below.
20698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20699 <limits.h> exists even on freestanding compilers. */
20701 #ifdef __STDC__
20702 # include <limits.h>
20703 #else
20704 # include <assert.h>
20705 #endif
20707 #undef $ac_func
20709 /* Override any GCC internal prototype to avoid an error.
20710 Use char because int might match the return type of a GCC
20711 builtin and then its argument prototype would still apply. */
20712 #ifdef __cplusplus
20713 extern "C"
20714 #endif
20715 char $ac_func ();
20716 /* The GNU C library defines this for functions which it implements
20717 to always fail with ENOSYS. Some functions are actually named
20718 something starting with __ and the normal name is an alias. */
20719 #if defined __stub_$ac_func || defined __stub___$ac_func
20720 choke me
20721 #endif
20724 main ()
20726 return $ac_func ();
20728 return 0;
20730 _ACEOF
20731 rm -f conftest.$ac_objext conftest$ac_exeext
20732 if { (ac_try="$ac_link"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20736 esac
20737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20738 $as_echo "$ac_try_echo") >&5
20739 (eval "$ac_link") 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } && {
20746 test -z "$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20748 } && test -s conftest$ac_exeext && {
20749 test "$cross_compiling" = yes ||
20750 $as_test_x conftest$ac_exeext
20751 }; then
20752 eval "$as_ac_var=yes"
20753 else
20754 $as_echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 eval "$as_ac_var=no"
20760 rm -rf conftest.dSYM
20761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20762 conftest$ac_exeext conftest.$ac_ext
20764 ac_res=`eval 'as_val=${'$as_ac_var'}
20765 $as_echo "$as_val"'`
20766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20767 $as_echo "$ac_res" >&6; }
20768 if test `eval 'as_val=${'$as_ac_var'}
20769 $as_echo "$as_val"'` = yes; then
20770 cat >>confdefs.h <<_ACEOF
20771 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20772 _ACEOF
20774 else
20775 # strftime is in -lintl on SCO UNIX.
20776 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20777 $as_echo_n "checking for strftime in -lintl... " >&6; }
20778 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20779 $as_echo_n "(cached) " >&6
20780 else
20781 ac_check_lib_save_LIBS=$LIBS
20782 LIBS="-lintl $LIBS"
20783 cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h. */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20790 /* Override any GCC internal prototype to avoid an error.
20791 Use char because int might match the return type of a GCC
20792 builtin and then its argument prototype would still apply. */
20793 #ifdef __cplusplus
20794 extern "C"
20795 #endif
20796 char strftime ();
20798 main ()
20800 return strftime ();
20802 return 0;
20804 _ACEOF
20805 rm -f conftest.$ac_objext conftest$ac_exeext
20806 if { (ac_try="$ac_link"
20807 case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20810 esac
20811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20812 $as_echo "$ac_try_echo") >&5
20813 (eval "$ac_link") 2>conftest.er1
20814 ac_status=$?
20815 grep -v '^ *+' conftest.er1 >conftest.err
20816 rm -f conftest.er1
20817 cat conftest.err >&5
20818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } && {
20820 test -z "$ac_c_werror_flag" ||
20821 test ! -s conftest.err
20822 } && test -s conftest$ac_exeext && {
20823 test "$cross_compiling" = yes ||
20824 $as_test_x conftest$ac_exeext
20825 }; then
20826 ac_cv_lib_intl_strftime=yes
20827 else
20828 $as_echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 ac_cv_lib_intl_strftime=no
20834 rm -rf conftest.dSYM
20835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20836 conftest$ac_exeext conftest.$ac_ext
20837 LIBS=$ac_check_lib_save_LIBS
20839 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20840 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20841 if test $ac_cv_lib_intl_strftime = yes; then
20842 cat >>confdefs.h <<\_ACEOF
20843 #define HAVE_STRFTIME 1
20844 _ACEOF
20846 LIBS="-lintl $LIBS"
20850 done
20853 # UNIX98 PTYs.
20855 for ac_func in grantpt
20857 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20858 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20859 $as_echo_n "checking for $ac_func... " >&6; }
20860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20861 $as_echo_n "(cached) " >&6
20862 else
20863 cat >conftest.$ac_ext <<_ACEOF
20864 /* confdefs.h. */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20871 #define $ac_func innocuous_$ac_func
20873 /* System header to define __stub macros and hopefully few prototypes,
20874 which can conflict with char $ac_func (); below.
20875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20876 <limits.h> exists even on freestanding compilers. */
20878 #ifdef __STDC__
20879 # include <limits.h>
20880 #else
20881 # include <assert.h>
20882 #endif
20884 #undef $ac_func
20886 /* Override any GCC internal prototype to avoid an error.
20887 Use char because int might match the return type of a GCC
20888 builtin and then its argument prototype would still apply. */
20889 #ifdef __cplusplus
20890 extern "C"
20891 #endif
20892 char $ac_func ();
20893 /* The GNU C library defines this for functions which it implements
20894 to always fail with ENOSYS. Some functions are actually named
20895 something starting with __ and the normal name is an alias. */
20896 #if defined __stub_$ac_func || defined __stub___$ac_func
20897 choke me
20898 #endif
20901 main ()
20903 return $ac_func ();
20905 return 0;
20907 _ACEOF
20908 rm -f conftest.$ac_objext conftest$ac_exeext
20909 if { (ac_try="$ac_link"
20910 case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20913 esac
20914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20915 $as_echo "$ac_try_echo") >&5
20916 (eval "$ac_link") 2>conftest.er1
20917 ac_status=$?
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
20921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest$ac_exeext && {
20926 test "$cross_compiling" = yes ||
20927 $as_test_x conftest$ac_exeext
20928 }; then
20929 eval "$as_ac_var=yes"
20930 else
20931 $as_echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20934 eval "$as_ac_var=no"
20937 rm -rf conftest.dSYM
20938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20939 conftest$ac_exeext conftest.$ac_ext
20941 ac_res=`eval 'as_val=${'$as_ac_var'}
20942 $as_echo "$as_val"'`
20943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20944 $as_echo "$ac_res" >&6; }
20945 if test `eval 'as_val=${'$as_ac_var'}
20946 $as_echo "$as_val"'` = yes; then
20947 cat >>confdefs.h <<_ACEOF
20948 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20949 _ACEOF
20952 done
20955 # PTY-related GNU extensions.
20957 for ac_func in getpt
20959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20960 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20961 $as_echo_n "checking for $ac_func... " >&6; }
20962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20963 $as_echo_n "(cached) " >&6
20964 else
20965 cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h. */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20973 #define $ac_func innocuous_$ac_func
20975 /* System header to define __stub macros and hopefully few prototypes,
20976 which can conflict with char $ac_func (); below.
20977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20978 <limits.h> exists even on freestanding compilers. */
20980 #ifdef __STDC__
20981 # include <limits.h>
20982 #else
20983 # include <assert.h>
20984 #endif
20986 #undef $ac_func
20988 /* Override any GCC internal prototype to avoid an error.
20989 Use char because int might match the return type of a GCC
20990 builtin and then its argument prototype would still apply. */
20991 #ifdef __cplusplus
20992 extern "C"
20993 #endif
20994 char $ac_func ();
20995 /* The GNU C library defines this for functions which it implements
20996 to always fail with ENOSYS. Some functions are actually named
20997 something starting with __ and the normal name is an alias. */
20998 #if defined __stub_$ac_func || defined __stub___$ac_func
20999 choke me
21000 #endif
21003 main ()
21005 return $ac_func ();
21007 return 0;
21009 _ACEOF
21010 rm -f conftest.$ac_objext conftest$ac_exeext
21011 if { (ac_try="$ac_link"
21012 case "(($ac_try" in
21013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014 *) ac_try_echo=$ac_try;;
21015 esac
21016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21017 $as_echo "$ac_try_echo") >&5
21018 (eval "$ac_link") 2>conftest.er1
21019 ac_status=$?
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
21023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } && {
21025 test -z "$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21027 } && test -s conftest$ac_exeext && {
21028 test "$cross_compiling" = yes ||
21029 $as_test_x conftest$ac_exeext
21030 }; then
21031 eval "$as_ac_var=yes"
21032 else
21033 $as_echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 eval "$as_ac_var=no"
21039 rm -rf conftest.dSYM
21040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21041 conftest$ac_exeext conftest.$ac_ext
21043 ac_res=`eval 'as_val=${'$as_ac_var'}
21044 $as_echo "$as_val"'`
21045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21046 $as_echo "$ac_res" >&6; }
21047 if test `eval 'as_val=${'$as_ac_var'}
21048 $as_echo "$as_val"'` = yes; then
21049 cat >>confdefs.h <<_ACEOF
21050 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21051 _ACEOF
21054 done
21057 # Check this now, so that we will NOT find the above functions in ncurses.
21058 # That is because we have not set up to link ncurses in lib-src.
21059 # It's better to believe a function is not available
21060 # than to expect to find it in ncurses.
21061 # Also we need tputs and frieds to be able to build at all.
21062 have_tputs_et_al=true
21063 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21064 $as_echo_n "checking for library containing tputs... " >&6; }
21065 if test "${ac_cv_search_tputs+set}" = set; then
21066 $as_echo_n "(cached) " >&6
21067 else
21068 ac_func_search_save_LIBS=$LIBS
21069 cat >conftest.$ac_ext <<_ACEOF
21070 /* confdefs.h. */
21071 _ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h. */
21076 /* Override any GCC internal prototype to avoid an error.
21077 Use char because int might match the return type of a GCC
21078 builtin and then its argument prototype would still apply. */
21079 #ifdef __cplusplus
21080 extern "C"
21081 #endif
21082 char tputs ();
21084 main ()
21086 return tputs ();
21088 return 0;
21090 _ACEOF
21091 for ac_lib in '' ncurses terminfo termcap; do
21092 if test -z "$ac_lib"; then
21093 ac_res="none required"
21094 else
21095 ac_res=-l$ac_lib
21096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21098 rm -f conftest.$ac_objext conftest$ac_exeext
21099 if { (ac_try="$ac_link"
21100 case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21103 esac
21104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21105 $as_echo "$ac_try_echo") >&5
21106 (eval "$ac_link") 2>conftest.er1
21107 ac_status=$?
21108 grep -v '^ *+' conftest.er1 >conftest.err
21109 rm -f conftest.er1
21110 cat conftest.err >&5
21111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest$ac_exeext && {
21116 test "$cross_compiling" = yes ||
21117 $as_test_x conftest$ac_exeext
21118 }; then
21119 ac_cv_search_tputs=$ac_res
21120 else
21121 $as_echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21127 rm -rf conftest.dSYM
21128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21129 conftest$ac_exeext
21130 if test "${ac_cv_search_tputs+set}" = set; then
21131 break
21133 done
21134 if test "${ac_cv_search_tputs+set}" = set; then
21136 else
21137 ac_cv_search_tputs=no
21139 rm conftest.$ac_ext
21140 LIBS=$ac_func_search_save_LIBS
21142 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21143 $as_echo "$ac_cv_search_tputs" >&6; }
21144 ac_res=$ac_cv_search_tputs
21145 if test "$ac_res" != no; then
21146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21148 else
21149 have_tputs_et_al=false
21152 if test "$have_tputs_et_al" != true; then
21153 { { $as_echo "$as_me:$LINENO: 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." >&5
21156 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21157 Maybe some development libraries/packages are missing? Try installing
21158 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21159 { (exit 1); exit 1; }; }
21161 # Must define this when any termcap library is found.
21162 cat >>confdefs.h <<\_ACEOF
21163 #define HAVE_LIBNCURSES 1
21164 _ACEOF
21167 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21169 resolv=no
21170 cat >conftest.$ac_ext <<_ACEOF
21171 /* confdefs.h. */
21172 _ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21176 #include <netinet/in.h>
21177 #include <arpa/nameser.h>
21178 #include <resolv.h>
21180 main ()
21182 return res_init();
21184 return 0;
21186 _ACEOF
21187 rm -f conftest.$ac_objext conftest$ac_exeext
21188 if { (ac_try="$ac_link"
21189 case "(($ac_try" in
21190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191 *) ac_try_echo=$ac_try;;
21192 esac
21193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21194 $as_echo "$ac_try_echo") >&5
21195 (eval "$ac_link") 2>conftest.er1
21196 ac_status=$?
21197 grep -v '^ *+' conftest.er1 >conftest.err
21198 rm -f conftest.er1
21199 cat conftest.err >&5
21200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } && {
21202 test -z "$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21204 } && test -s conftest$ac_exeext && {
21205 test "$cross_compiling" = yes ||
21206 $as_test_x conftest$ac_exeext
21207 }; then
21208 have_res_init=yes
21209 else
21210 $as_echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21213 have_res_init=no
21216 rm -rf conftest.dSYM
21217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21218 conftest$ac_exeext conftest.$ac_ext
21219 if test "$have_res_init" = no; then
21220 OLIBS="$LIBS"
21221 LIBS="$LIBS -lresolv"
21222 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21223 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21224 cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h. */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 #include <netinet/in.h>
21231 #include <arpa/nameser.h>
21232 #include <resolv.h>
21234 main ()
21236 return res_init();
21238 return 0;
21240 _ACEOF
21241 rm -f conftest.$ac_objext conftest$ac_exeext
21242 if { (ac_try="$ac_link"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21246 esac
21247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21248 $as_echo "$ac_try_echo") >&5
21249 (eval "$ac_link") 2>conftest.er1
21250 ac_status=$?
21251 grep -v '^ *+' conftest.er1 >conftest.err
21252 rm -f conftest.er1
21253 cat conftest.err >&5
21254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } && {
21256 test -z "$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 } && test -s conftest$ac_exeext && {
21259 test "$cross_compiling" = yes ||
21260 $as_test_x conftest$ac_exeext
21261 }; then
21262 have_res_init=yes
21263 else
21264 $as_echo "$as_me: failed program was:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21267 have_res_init=no
21270 rm -rf conftest.dSYM
21271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21272 conftest$ac_exeext conftest.$ac_ext
21273 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21274 $as_echo "$have_res_init" >&6; }
21275 if test "$have_res_init" = yes ; then
21276 resolv=yes
21278 LIBS="$OLIBS"
21281 if test "$have_res_init" = yes; then
21283 cat >>confdefs.h <<\_ACEOF
21284 #define HAVE_RES_INIT 1
21285 _ACEOF
21289 # Do we need the Hesiod library to provide the support routines?
21290 LIBHESIOD=
21291 if test "$with_hesiod" != no ; then
21292 # Don't set $LIBS here -- see comments above. FIXME which comments?
21293 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21294 $as_echo_n "checking for res_send... " >&6; }
21295 if test "${ac_cv_func_res_send+set}" = set; then
21296 $as_echo_n "(cached) " >&6
21297 else
21298 cat >conftest.$ac_ext <<_ACEOF
21299 /* confdefs.h. */
21300 _ACEOF
21301 cat confdefs.h >>conftest.$ac_ext
21302 cat >>conftest.$ac_ext <<_ACEOF
21303 /* end confdefs.h. */
21304 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21306 #define res_send innocuous_res_send
21308 /* System header to define __stub macros and hopefully few prototypes,
21309 which can conflict with char res_send (); below.
21310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21311 <limits.h> exists even on freestanding compilers. */
21313 #ifdef __STDC__
21314 # include <limits.h>
21315 #else
21316 # include <assert.h>
21317 #endif
21319 #undef res_send
21321 /* Override any GCC internal prototype to avoid an error.
21322 Use char because int might match the return type of a GCC
21323 builtin and then its argument prototype would still apply. */
21324 #ifdef __cplusplus
21325 extern "C"
21326 #endif
21327 char res_send ();
21328 /* The GNU C library defines this for functions which it implements
21329 to always fail with ENOSYS. Some functions are actually named
21330 something starting with __ and the normal name is an alias. */
21331 #if defined __stub_res_send || defined __stub___res_send
21332 choke me
21333 #endif
21336 main ()
21338 return res_send ();
21340 return 0;
21342 _ACEOF
21343 rm -f conftest.$ac_objext conftest$ac_exeext
21344 if { (ac_try="$ac_link"
21345 case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21348 esac
21349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21350 $as_echo "$ac_try_echo") >&5
21351 (eval "$ac_link") 2>conftest.er1
21352 ac_status=$?
21353 grep -v '^ *+' conftest.er1 >conftest.err
21354 rm -f conftest.er1
21355 cat conftest.err >&5
21356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } && {
21358 test -z "$ac_c_werror_flag" ||
21359 test ! -s conftest.err
21360 } && test -s conftest$ac_exeext && {
21361 test "$cross_compiling" = yes ||
21362 $as_test_x conftest$ac_exeext
21363 }; then
21364 ac_cv_func_res_send=yes
21365 else
21366 $as_echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 ac_cv_func_res_send=no
21372 rm -rf conftest.dSYM
21373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21374 conftest$ac_exeext conftest.$ac_ext
21376 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21377 $as_echo "$ac_cv_func_res_send" >&6; }
21378 if test $ac_cv_func_res_send = yes; then
21380 else
21381 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21382 $as_echo_n "checking for __res_send... " >&6; }
21383 if test "${ac_cv_func___res_send+set}" = set; then
21384 $as_echo_n "(cached) " >&6
21385 else
21386 cat >conftest.$ac_ext <<_ACEOF
21387 /* confdefs.h. */
21388 _ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h. */
21392 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21394 #define __res_send innocuous___res_send
21396 /* System header to define __stub macros and hopefully few prototypes,
21397 which can conflict with char __res_send (); below.
21398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21399 <limits.h> exists even on freestanding compilers. */
21401 #ifdef __STDC__
21402 # include <limits.h>
21403 #else
21404 # include <assert.h>
21405 #endif
21407 #undef __res_send
21409 /* Override any GCC internal prototype to avoid an error.
21410 Use char because int might match the return type of a GCC
21411 builtin and then its argument prototype would still apply. */
21412 #ifdef __cplusplus
21413 extern "C"
21414 #endif
21415 char __res_send ();
21416 /* The GNU C library defines this for functions which it implements
21417 to always fail with ENOSYS. Some functions are actually named
21418 something starting with __ and the normal name is an alias. */
21419 #if defined __stub___res_send || defined __stub_____res_send
21420 choke me
21421 #endif
21424 main ()
21426 return __res_send ();
21428 return 0;
21430 _ACEOF
21431 rm -f conftest.$ac_objext conftest$ac_exeext
21432 if { (ac_try="$ac_link"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21436 esac
21437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21438 $as_echo "$ac_try_echo") >&5
21439 (eval "$ac_link") 2>conftest.er1
21440 ac_status=$?
21441 grep -v '^ *+' conftest.er1 >conftest.err
21442 rm -f conftest.er1
21443 cat conftest.err >&5
21444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } && {
21446 test -z "$ac_c_werror_flag" ||
21447 test ! -s conftest.err
21448 } && test -s conftest$ac_exeext && {
21449 test "$cross_compiling" = yes ||
21450 $as_test_x conftest$ac_exeext
21451 }; then
21452 ac_cv_func___res_send=yes
21453 else
21454 $as_echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ac_cv_func___res_send=no
21460 rm -rf conftest.dSYM
21461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21462 conftest$ac_exeext conftest.$ac_ext
21464 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21465 $as_echo "$ac_cv_func___res_send" >&6; }
21466 if test $ac_cv_func___res_send = yes; then
21468 else
21469 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21470 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21471 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21472 $as_echo_n "(cached) " >&6
21473 else
21474 ac_check_lib_save_LIBS=$LIBS
21475 LIBS="-lresolv $LIBS"
21476 cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h. */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21483 /* Override any GCC internal prototype to avoid an error.
21484 Use char because int might match the return type of a GCC
21485 builtin and then its argument prototype would still apply. */
21486 #ifdef __cplusplus
21487 extern "C"
21488 #endif
21489 char res_send ();
21491 main ()
21493 return res_send ();
21495 return 0;
21497 _ACEOF
21498 rm -f conftest.$ac_objext conftest$ac_exeext
21499 if { (ac_try="$ac_link"
21500 case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21503 esac
21504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21505 $as_echo "$ac_try_echo") >&5
21506 (eval "$ac_link") 2>conftest.er1
21507 ac_status=$?
21508 grep -v '^ *+' conftest.er1 >conftest.err
21509 rm -f conftest.er1
21510 cat conftest.err >&5
21511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } && {
21513 test -z "$ac_c_werror_flag" ||
21514 test ! -s conftest.err
21515 } && test -s conftest$ac_exeext && {
21516 test "$cross_compiling" = yes ||
21517 $as_test_x conftest$ac_exeext
21518 }; then
21519 ac_cv_lib_resolv_res_send=yes
21520 else
21521 $as_echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21524 ac_cv_lib_resolv_res_send=no
21527 rm -rf conftest.dSYM
21528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21529 conftest$ac_exeext conftest.$ac_ext
21530 LIBS=$ac_check_lib_save_LIBS
21532 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21533 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21534 if test $ac_cv_lib_resolv_res_send = yes; then
21535 resolv=yes
21536 else
21537 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21538 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21539 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21540 $as_echo_n "(cached) " >&6
21541 else
21542 ac_check_lib_save_LIBS=$LIBS
21543 LIBS="-lresolv $LIBS"
21544 cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h. */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21551 /* Override any GCC internal prototype to avoid an error.
21552 Use char because int might match the return type of a GCC
21553 builtin and then its argument prototype would still apply. */
21554 #ifdef __cplusplus
21555 extern "C"
21556 #endif
21557 char __res_send ();
21559 main ()
21561 return __res_send ();
21563 return 0;
21565 _ACEOF
21566 rm -f conftest.$ac_objext conftest$ac_exeext
21567 if { (ac_try="$ac_link"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21571 esac
21572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21573 $as_echo "$ac_try_echo") >&5
21574 (eval "$ac_link") 2>conftest.er1
21575 ac_status=$?
21576 grep -v '^ *+' conftest.er1 >conftest.err
21577 rm -f conftest.er1
21578 cat conftest.err >&5
21579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } && {
21581 test -z "$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21583 } && test -s conftest$ac_exeext && {
21584 test "$cross_compiling" = yes ||
21585 $as_test_x conftest$ac_exeext
21586 }; then
21587 ac_cv_lib_resolv___res_send=yes
21588 else
21589 $as_echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 ac_cv_lib_resolv___res_send=no
21595 rm -rf conftest.dSYM
21596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21597 conftest$ac_exeext conftest.$ac_ext
21598 LIBS=$ac_check_lib_save_LIBS
21600 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21601 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21602 if test $ac_cv_lib_resolv___res_send = yes; then
21603 resolv=yes
21612 if test "$resolv" = yes ; then
21613 RESOLVLIB=-lresolv
21614 else
21615 RESOLVLIB=
21617 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21618 $as_echo_n "checking for hes_getmailhost... " >&6; }
21619 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21620 $as_echo_n "(cached) " >&6
21621 else
21622 cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h. */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21630 #define hes_getmailhost innocuous_hes_getmailhost
21632 /* System header to define __stub macros and hopefully few prototypes,
21633 which can conflict with char hes_getmailhost (); below.
21634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21635 <limits.h> exists even on freestanding compilers. */
21637 #ifdef __STDC__
21638 # include <limits.h>
21639 #else
21640 # include <assert.h>
21641 #endif
21643 #undef hes_getmailhost
21645 /* Override any GCC internal prototype to avoid an error.
21646 Use char because int might match the return type of a GCC
21647 builtin and then its argument prototype would still apply. */
21648 #ifdef __cplusplus
21649 extern "C"
21650 #endif
21651 char hes_getmailhost ();
21652 /* The GNU C library defines this for functions which it implements
21653 to always fail with ENOSYS. Some functions are actually named
21654 something starting with __ and the normal name is an alias. */
21655 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21656 choke me
21657 #endif
21660 main ()
21662 return hes_getmailhost ();
21664 return 0;
21666 _ACEOF
21667 rm -f conftest.$ac_objext conftest$ac_exeext
21668 if { (ac_try="$ac_link"
21669 case "(($ac_try" in
21670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21671 *) ac_try_echo=$ac_try;;
21672 esac
21673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21674 $as_echo "$ac_try_echo") >&5
21675 (eval "$ac_link") 2>conftest.er1
21676 ac_status=$?
21677 grep -v '^ *+' conftest.er1 >conftest.err
21678 rm -f conftest.er1
21679 cat conftest.err >&5
21680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } && {
21682 test -z "$ac_c_werror_flag" ||
21683 test ! -s conftest.err
21684 } && test -s conftest$ac_exeext && {
21685 test "$cross_compiling" = yes ||
21686 $as_test_x conftest$ac_exeext
21687 }; then
21688 ac_cv_func_hes_getmailhost=yes
21689 else
21690 $as_echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21693 ac_cv_func_hes_getmailhost=no
21696 rm -rf conftest.dSYM
21697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21698 conftest$ac_exeext conftest.$ac_ext
21700 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21701 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21702 if test $ac_cv_func_hes_getmailhost = yes; then
21704 else
21705 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21706 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21707 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21708 $as_echo_n "(cached) " >&6
21709 else
21710 ac_check_lib_save_LIBS=$LIBS
21711 LIBS="-lhesiod $RESOLVLIB $LIBS"
21712 cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h. */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21719 /* Override any GCC internal prototype to avoid an error.
21720 Use char because int might match the return type of a GCC
21721 builtin and then its argument prototype would still apply. */
21722 #ifdef __cplusplus
21723 extern "C"
21724 #endif
21725 char hes_getmailhost ();
21727 main ()
21729 return hes_getmailhost ();
21731 return 0;
21733 _ACEOF
21734 rm -f conftest.$ac_objext conftest$ac_exeext
21735 if { (ac_try="$ac_link"
21736 case "(($ac_try" in
21737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738 *) ac_try_echo=$ac_try;;
21739 esac
21740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21741 $as_echo "$ac_try_echo") >&5
21742 (eval "$ac_link") 2>conftest.er1
21743 ac_status=$?
21744 grep -v '^ *+' conftest.er1 >conftest.err
21745 rm -f conftest.er1
21746 cat conftest.err >&5
21747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } && {
21749 test -z "$ac_c_werror_flag" ||
21750 test ! -s conftest.err
21751 } && test -s conftest$ac_exeext && {
21752 test "$cross_compiling" = yes ||
21753 $as_test_x conftest$ac_exeext
21754 }; then
21755 ac_cv_lib_hesiod_hes_getmailhost=yes
21756 else
21757 $as_echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21760 ac_cv_lib_hesiod_hes_getmailhost=no
21763 rm -rf conftest.dSYM
21764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21765 conftest$ac_exeext conftest.$ac_ext
21766 LIBS=$ac_check_lib_save_LIBS
21768 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21769 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21770 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21771 hesiod=yes
21772 else
21779 if test x"$hesiod" = xyes; then
21781 cat >>confdefs.h <<\_ACEOF
21782 #define HAVE_LIBHESIOD 1
21783 _ACEOF
21785 LIBHESIOD=-lhesiod
21790 # Do we need libresolv (due to res_init or Hesiod)?
21791 if test "$resolv" = yes ; then
21793 cat >>confdefs.h <<\_ACEOF
21794 #define HAVE_LIBRESOLV 1
21795 _ACEOF
21797 LIBRESOLV=-lresolv
21798 else
21799 LIBRESOLV=
21803 # These tell us which Kerberos-related libraries to use.
21804 COM_ERRLIB=
21805 CRYPTOLIB=
21806 KRB5LIB=
21807 DESLIB=
21808 KRB4LIB=
21810 if test "${with_kerberos}" != no; then
21811 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21812 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21813 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21814 $as_echo_n "(cached) " >&6
21815 else
21816 ac_check_lib_save_LIBS=$LIBS
21817 LIBS="-lcom_err $LIBS"
21818 cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h. */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21825 /* Override any GCC internal prototype to avoid an error.
21826 Use char because int might match the return type of a GCC
21827 builtin and then its argument prototype would still apply. */
21828 #ifdef __cplusplus
21829 extern "C"
21830 #endif
21831 char com_err ();
21833 main ()
21835 return com_err ();
21837 return 0;
21839 _ACEOF
21840 rm -f conftest.$ac_objext conftest$ac_exeext
21841 if { (ac_try="$ac_link"
21842 case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21845 esac
21846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21847 $as_echo "$ac_try_echo") >&5
21848 (eval "$ac_link") 2>conftest.er1
21849 ac_status=$?
21850 grep -v '^ *+' conftest.er1 >conftest.err
21851 rm -f conftest.er1
21852 cat conftest.err >&5
21853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } && {
21855 test -z "$ac_c_werror_flag" ||
21856 test ! -s conftest.err
21857 } && test -s conftest$ac_exeext && {
21858 test "$cross_compiling" = yes ||
21859 $as_test_x conftest$ac_exeext
21860 }; then
21861 ac_cv_lib_com_err_com_err=yes
21862 else
21863 $as_echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21866 ac_cv_lib_com_err_com_err=no
21869 rm -rf conftest.dSYM
21870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21871 conftest$ac_exeext conftest.$ac_ext
21872 LIBS=$ac_check_lib_save_LIBS
21874 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21875 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21876 if test $ac_cv_lib_com_err_com_err = yes; then
21877 have_com_err=yes
21878 else
21879 have_com_err=no
21882 if test $have_com_err = yes; then
21883 COM_ERRLIB=-lcom_err
21884 LIBS="$COM_ERRLIB $LIBS"
21886 cat >>confdefs.h <<\_ACEOF
21887 #define HAVE_LIBCOM_ERR 1
21888 _ACEOF
21891 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21892 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21893 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21894 $as_echo_n "(cached) " >&6
21895 else
21896 ac_check_lib_save_LIBS=$LIBS
21897 LIBS="-lcrypto $LIBS"
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h. */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21905 /* Override any GCC internal prototype to avoid an error.
21906 Use char because int might match the return type of a GCC
21907 builtin and then its argument prototype would still apply. */
21908 #ifdef __cplusplus
21909 extern "C"
21910 #endif
21911 char mit_des_cbc_encrypt ();
21913 main ()
21915 return mit_des_cbc_encrypt ();
21917 return 0;
21919 _ACEOF
21920 rm -f conftest.$ac_objext conftest$ac_exeext
21921 if { (ac_try="$ac_link"
21922 case "(($ac_try" in
21923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924 *) ac_try_echo=$ac_try;;
21925 esac
21926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21927 $as_echo "$ac_try_echo") >&5
21928 (eval "$ac_link") 2>conftest.er1
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } && {
21935 test -z "$ac_c_werror_flag" ||
21936 test ! -s conftest.err
21937 } && test -s conftest$ac_exeext && {
21938 test "$cross_compiling" = yes ||
21939 $as_test_x conftest$ac_exeext
21940 }; then
21941 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21942 else
21943 $as_echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21946 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21949 rm -rf conftest.dSYM
21950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21951 conftest$ac_exeext conftest.$ac_ext
21952 LIBS=$ac_check_lib_save_LIBS
21954 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21955 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21956 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21957 have_crypto=yes
21958 else
21959 have_crypto=no
21962 if test $have_crypto = yes; then
21963 CRYPTOLIB=-lcrypto
21964 LIBS="$CRYPTOLIB $LIBS"
21966 cat >>confdefs.h <<\_ACEOF
21967 #define HAVE_LIBCRYPTO 1
21968 _ACEOF
21971 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21972 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21973 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21974 $as_echo_n "(cached) " >&6
21975 else
21976 ac_check_lib_save_LIBS=$LIBS
21977 LIBS="-lk5crypto $LIBS"
21978 cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h. */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21985 /* Override any GCC internal prototype to avoid an error.
21986 Use char because int might match the return type of a GCC
21987 builtin and then its argument prototype would still apply. */
21988 #ifdef __cplusplus
21989 extern "C"
21990 #endif
21991 char mit_des_cbc_encrypt ();
21993 main ()
21995 return mit_des_cbc_encrypt ();
21997 return 0;
21999 _ACEOF
22000 rm -f conftest.$ac_objext conftest$ac_exeext
22001 if { (ac_try="$ac_link"
22002 case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22005 esac
22006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22007 $as_echo "$ac_try_echo") >&5
22008 (eval "$ac_link") 2>conftest.er1
22009 ac_status=$?
22010 grep -v '^ *+' conftest.er1 >conftest.err
22011 rm -f conftest.er1
22012 cat conftest.err >&5
22013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } && {
22015 test -z "$ac_c_werror_flag" ||
22016 test ! -s conftest.err
22017 } && test -s conftest$ac_exeext && {
22018 test "$cross_compiling" = yes ||
22019 $as_test_x conftest$ac_exeext
22020 }; then
22021 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22022 else
22023 $as_echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22029 rm -rf conftest.dSYM
22030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22031 conftest$ac_exeext conftest.$ac_ext
22032 LIBS=$ac_check_lib_save_LIBS
22034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22035 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22036 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22037 have_k5crypto=yes
22038 else
22039 have_k5crypto=no
22042 if test $have_k5crypto = yes; then
22043 CRYPTOLIB=-lk5crypto
22044 LIBS="$CRYPTOLIB $LIBS"
22046 cat >>confdefs.h <<\_ACEOF
22047 #define HAVE_LIBK5CRYPTO 1
22048 _ACEOF
22051 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22052 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22053 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22054 $as_echo_n "(cached) " >&6
22055 else
22056 ac_check_lib_save_LIBS=$LIBS
22057 LIBS="-lkrb5 $LIBS"
22058 cat >conftest.$ac_ext <<_ACEOF
22059 /* confdefs.h. */
22060 _ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22065 /* Override any GCC internal prototype to avoid an error.
22066 Use char because int might match the return type of a GCC
22067 builtin and then its argument prototype would still apply. */
22068 #ifdef __cplusplus
22069 extern "C"
22070 #endif
22071 char krb5_init_context ();
22073 main ()
22075 return krb5_init_context ();
22077 return 0;
22079 _ACEOF
22080 rm -f conftest.$ac_objext conftest$ac_exeext
22081 if { (ac_try="$ac_link"
22082 case "(($ac_try" in
22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084 *) ac_try_echo=$ac_try;;
22085 esac
22086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22087 $as_echo "$ac_try_echo") >&5
22088 (eval "$ac_link") 2>conftest.er1
22089 ac_status=$?
22090 grep -v '^ *+' conftest.er1 >conftest.err
22091 rm -f conftest.er1
22092 cat conftest.err >&5
22093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); } && {
22095 test -z "$ac_c_werror_flag" ||
22096 test ! -s conftest.err
22097 } && test -s conftest$ac_exeext && {
22098 test "$cross_compiling" = yes ||
22099 $as_test_x conftest$ac_exeext
22100 }; then
22101 ac_cv_lib_krb5_krb5_init_context=yes
22102 else
22103 $as_echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 ac_cv_lib_krb5_krb5_init_context=no
22109 rm -rf conftest.dSYM
22110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22111 conftest$ac_exeext conftest.$ac_ext
22112 LIBS=$ac_check_lib_save_LIBS
22114 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22115 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22116 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22117 have_krb5=yes
22118 else
22119 have_krb5=no
22122 if test $have_krb5=yes; then
22123 KRB5LIB=-lkrb5
22124 LIBS="$KRB5LIB $LIBS"
22126 cat >>confdefs.h <<\_ACEOF
22127 #define HAVE_LIBKRB5 1
22128 _ACEOF
22131 if test "${with_kerberos5}" = no; then
22132 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22133 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22134 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22135 $as_echo_n "(cached) " >&6
22136 else
22137 ac_check_lib_save_LIBS=$LIBS
22138 LIBS="-ldes425 $LIBS"
22139 cat >conftest.$ac_ext <<_ACEOF
22140 /* confdefs.h. */
22141 _ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22146 /* Override any GCC internal prototype to avoid an error.
22147 Use char because int might match the return type of a GCC
22148 builtin and then its argument prototype would still apply. */
22149 #ifdef __cplusplus
22150 extern "C"
22151 #endif
22152 char des_cbc_encrypt ();
22154 main ()
22156 return des_cbc_encrypt ();
22158 return 0;
22160 _ACEOF
22161 rm -f conftest.$ac_objext conftest$ac_exeext
22162 if { (ac_try="$ac_link"
22163 case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22166 esac
22167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22168 $as_echo "$ac_try_echo") >&5
22169 (eval "$ac_link") 2>conftest.er1
22170 ac_status=$?
22171 grep -v '^ *+' conftest.er1 >conftest.err
22172 rm -f conftest.er1
22173 cat conftest.err >&5
22174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } && {
22176 test -z "$ac_c_werror_flag" ||
22177 test ! -s conftest.err
22178 } && test -s conftest$ac_exeext && {
22179 test "$cross_compiling" = yes ||
22180 $as_test_x conftest$ac_exeext
22181 }; then
22182 ac_cv_lib_des425_des_cbc_encrypt=yes
22183 else
22184 $as_echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 ac_cv_lib_des425_des_cbc_encrypt=no
22190 rm -rf conftest.dSYM
22191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22192 conftest$ac_exeext conftest.$ac_ext
22193 LIBS=$ac_check_lib_save_LIBS
22195 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22196 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22197 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22198 have_des425=yes
22199 else
22200 have_des425=no
22203 if test $have_des425 = yes; then
22204 DESLIB=-ldes425
22205 LIBS="$DESLIB $LIBS"
22207 cat >>confdefs.h <<\_ACEOF
22208 #define HAVE_LIBDES425 1
22209 _ACEOF
22211 else
22212 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22213 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22214 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22215 $as_echo_n "(cached) " >&6
22216 else
22217 ac_check_lib_save_LIBS=$LIBS
22218 LIBS="-ldes $LIBS"
22219 cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h. */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22226 /* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22229 #ifdef __cplusplus
22230 extern "C"
22231 #endif
22232 char des_cbc_encrypt ();
22234 main ()
22236 return des_cbc_encrypt ();
22238 return 0;
22240 _ACEOF
22241 rm -f conftest.$ac_objext conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22246 esac
22247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22248 $as_echo "$ac_try_echo") >&5
22249 (eval "$ac_link") 2>conftest.er1
22250 ac_status=$?
22251 grep -v '^ *+' conftest.er1 >conftest.err
22252 rm -f conftest.er1
22253 cat conftest.err >&5
22254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } && {
22256 test -z "$ac_c_werror_flag" ||
22257 test ! -s conftest.err
22258 } && test -s conftest$ac_exeext && {
22259 test "$cross_compiling" = yes ||
22260 $as_test_x conftest$ac_exeext
22261 }; then
22262 ac_cv_lib_des_des_cbc_encrypt=yes
22263 else
22264 $as_echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22267 ac_cv_lib_des_des_cbc_encrypt=no
22270 rm -rf conftest.dSYM
22271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22272 conftest$ac_exeext conftest.$ac_ext
22273 LIBS=$ac_check_lib_save_LIBS
22275 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22276 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22277 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22278 have_des=yes
22279 else
22280 have_des=no
22283 if test $have_des = yes; then
22284 DESLIB=-ldes
22285 LIBS="$DESLIB $LIBS"
22287 cat >>confdefs.h <<\_ACEOF
22288 #define HAVE_LIBDES 1
22289 _ACEOF
22293 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22294 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22295 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22296 $as_echo_n "(cached) " >&6
22297 else
22298 ac_check_lib_save_LIBS=$LIBS
22299 LIBS="-lkrb4 $LIBS"
22300 cat >conftest.$ac_ext <<_ACEOF
22301 /* confdefs.h. */
22302 _ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h. */
22307 /* Override any GCC internal prototype to avoid an error.
22308 Use char because int might match the return type of a GCC
22309 builtin and then its argument prototype would still apply. */
22310 #ifdef __cplusplus
22311 extern "C"
22312 #endif
22313 char krb_get_cred ();
22315 main ()
22317 return krb_get_cred ();
22319 return 0;
22321 _ACEOF
22322 rm -f conftest.$ac_objext conftest$ac_exeext
22323 if { (ac_try="$ac_link"
22324 case "(($ac_try" in
22325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326 *) ac_try_echo=$ac_try;;
22327 esac
22328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22329 $as_echo "$ac_try_echo") >&5
22330 (eval "$ac_link") 2>conftest.er1
22331 ac_status=$?
22332 grep -v '^ *+' conftest.er1 >conftest.err
22333 rm -f conftest.er1
22334 cat conftest.err >&5
22335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); } && {
22337 test -z "$ac_c_werror_flag" ||
22338 test ! -s conftest.err
22339 } && test -s conftest$ac_exeext && {
22340 test "$cross_compiling" = yes ||
22341 $as_test_x conftest$ac_exeext
22342 }; then
22343 ac_cv_lib_krb4_krb_get_cred=yes
22344 else
22345 $as_echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22348 ac_cv_lib_krb4_krb_get_cred=no
22351 rm -rf conftest.dSYM
22352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22353 conftest$ac_exeext conftest.$ac_ext
22354 LIBS=$ac_check_lib_save_LIBS
22356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22357 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22358 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22359 have_krb4=yes
22360 else
22361 have_krb4=no
22364 if test $have_krb4 = yes; then
22365 KRB4LIB=-lkrb4
22366 LIBS="$KRB4LIB $LIBS"
22368 cat >>confdefs.h <<\_ACEOF
22369 #define HAVE_LIBKRB4 1
22370 _ACEOF
22372 else
22373 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22374 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22375 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22376 $as_echo_n "(cached) " >&6
22377 else
22378 ac_check_lib_save_LIBS=$LIBS
22379 LIBS="-lkrb $LIBS"
22380 cat >conftest.$ac_ext <<_ACEOF
22381 /* confdefs.h. */
22382 _ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22387 /* Override any GCC internal prototype to avoid an error.
22388 Use char because int might match the return type of a GCC
22389 builtin and then its argument prototype would still apply. */
22390 #ifdef __cplusplus
22391 extern "C"
22392 #endif
22393 char krb_get_cred ();
22395 main ()
22397 return krb_get_cred ();
22399 return 0;
22401 _ACEOF
22402 rm -f conftest.$ac_objext conftest$ac_exeext
22403 if { (ac_try="$ac_link"
22404 case "(($ac_try" in
22405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406 *) ac_try_echo=$ac_try;;
22407 esac
22408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22409 $as_echo "$ac_try_echo") >&5
22410 (eval "$ac_link") 2>conftest.er1
22411 ac_status=$?
22412 grep -v '^ *+' conftest.er1 >conftest.err
22413 rm -f conftest.er1
22414 cat conftest.err >&5
22415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); } && {
22417 test -z "$ac_c_werror_flag" ||
22418 test ! -s conftest.err
22419 } && test -s conftest$ac_exeext && {
22420 test "$cross_compiling" = yes ||
22421 $as_test_x conftest$ac_exeext
22422 }; then
22423 ac_cv_lib_krb_krb_get_cred=yes
22424 else
22425 $as_echo "$as_me: failed program was:" >&5
22426 sed 's/^/| /' conftest.$ac_ext >&5
22428 ac_cv_lib_krb_krb_get_cred=no
22431 rm -rf conftest.dSYM
22432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22433 conftest$ac_exeext conftest.$ac_ext
22434 LIBS=$ac_check_lib_save_LIBS
22436 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22437 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22438 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22439 have_krb=yes
22440 else
22441 have_krb=no
22444 if test $have_krb = yes; then
22445 KRB4LIB=-lkrb
22446 LIBS="$KRB4LIB $LIBS"
22448 cat >>confdefs.h <<\_ACEOF
22449 #define HAVE_LIBKRB 1
22450 _ACEOF
22456 if test "${with_kerberos5}" != no; then
22458 for ac_header in krb5.h
22460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22462 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22463 $as_echo_n "checking for $ac_header... " >&6; }
22464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22465 $as_echo_n "(cached) " >&6
22467 ac_res=`eval 'as_val=${'$as_ac_Header'}
22468 $as_echo "$as_val"'`
22469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22470 $as_echo "$ac_res" >&6; }
22471 else
22472 # Is the header compilable?
22473 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22474 $as_echo_n "checking $ac_header usability... " >&6; }
22475 cat >conftest.$ac_ext <<_ACEOF
22476 /* confdefs.h. */
22477 _ACEOF
22478 cat confdefs.h >>conftest.$ac_ext
22479 cat >>conftest.$ac_ext <<_ACEOF
22480 /* end confdefs.h. */
22481 $ac_includes_default
22482 #include <$ac_header>
22483 _ACEOF
22484 rm -f conftest.$ac_objext
22485 if { (ac_try="$ac_compile"
22486 case "(($ac_try" in
22487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488 *) ac_try_echo=$ac_try;;
22489 esac
22490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22491 $as_echo "$ac_try_echo") >&5
22492 (eval "$ac_compile") 2>conftest.er1
22493 ac_status=$?
22494 grep -v '^ *+' conftest.er1 >conftest.err
22495 rm -f conftest.er1
22496 cat conftest.err >&5
22497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } && {
22499 test -z "$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 } && test -s conftest.$ac_objext; then
22502 ac_header_compiler=yes
22503 else
22504 $as_echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_header_compiler=no
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22512 $as_echo "$ac_header_compiler" >&6; }
22514 # Is the header present?
22515 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22516 $as_echo_n "checking $ac_header presence... " >&6; }
22517 cat >conftest.$ac_ext <<_ACEOF
22518 /* confdefs.h. */
22519 _ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22523 #include <$ac_header>
22524 _ACEOF
22525 if { (ac_try="$ac_cpp conftest.$ac_ext"
22526 case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22529 esac
22530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22531 $as_echo "$ac_try_echo") >&5
22532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22533 ac_status=$?
22534 grep -v '^ *+' conftest.er1 >conftest.err
22535 rm -f conftest.er1
22536 cat conftest.err >&5
22537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } >/dev/null && {
22539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22540 test ! -s conftest.err
22541 }; then
22542 ac_header_preproc=yes
22543 else
22544 $as_echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22547 ac_header_preproc=no
22550 rm -f conftest.err conftest.$ac_ext
22551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22552 $as_echo "$ac_header_preproc" >&6; }
22554 # So? What about this header?
22555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22556 yes:no: )
22557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22558 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22561 ac_header_preproc=yes
22563 no:yes:* )
22564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22565 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22567 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22569 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22571 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22575 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22578 esac
22579 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22580 $as_echo_n "checking for $ac_header... " >&6; }
22581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22582 $as_echo_n "(cached) " >&6
22583 else
22584 eval "$as_ac_Header=\$ac_header_preproc"
22586 ac_res=`eval 'as_val=${'$as_ac_Header'}
22587 $as_echo "$as_val"'`
22588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22589 $as_echo "$ac_res" >&6; }
22592 if test `eval 'as_val=${'$as_ac_Header'}
22593 $as_echo "$as_val"'` = yes; then
22594 cat >>confdefs.h <<_ACEOF
22595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22596 _ACEOF
22597 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22598 $as_echo_n "checking for krb5_error.text... " >&6; }
22599 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22600 $as_echo_n "(cached) " >&6
22601 else
22602 cat >conftest.$ac_ext <<_ACEOF
22603 /* confdefs.h. */
22604 _ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h. */
22608 #include <krb5.h>
22611 main ()
22613 static krb5_error ac_aggr;
22614 if (ac_aggr.text)
22615 return 0;
22617 return 0;
22619 _ACEOF
22620 rm -f conftest.$ac_objext
22621 if { (ac_try="$ac_compile"
22622 case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22625 esac
22626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22627 $as_echo "$ac_try_echo") >&5
22628 (eval "$ac_compile") 2>conftest.er1
22629 ac_status=$?
22630 grep -v '^ *+' conftest.er1 >conftest.err
22631 rm -f conftest.er1
22632 cat conftest.err >&5
22633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } && {
22635 test -z "$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22637 } && test -s conftest.$ac_objext; then
22638 ac_cv_member_krb5_error_text=yes
22639 else
22640 $as_echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22643 cat >conftest.$ac_ext <<_ACEOF
22644 /* confdefs.h. */
22645 _ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h. */
22649 #include <krb5.h>
22652 main ()
22654 static krb5_error ac_aggr;
22655 if (sizeof ac_aggr.text)
22656 return 0;
22658 return 0;
22660 _ACEOF
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22666 esac
22667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22668 $as_echo "$ac_try_echo") >&5
22669 (eval "$ac_compile") 2>conftest.er1
22670 ac_status=$?
22671 grep -v '^ *+' conftest.er1 >conftest.err
22672 rm -f conftest.er1
22673 cat conftest.err >&5
22674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest.$ac_objext; then
22679 ac_cv_member_krb5_error_text=yes
22680 else
22681 $as_echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 ac_cv_member_krb5_error_text=no
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22693 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22694 if test $ac_cv_member_krb5_error_text = yes; then
22696 cat >>confdefs.h <<_ACEOF
22697 #define HAVE_KRB5_ERROR_TEXT 1
22698 _ACEOF
22702 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22703 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22704 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22705 $as_echo_n "(cached) " >&6
22706 else
22707 cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h. */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22713 #include <krb5.h>
22716 main ()
22718 static krb5_error ac_aggr;
22719 if (ac_aggr.e_text)
22720 return 0;
22722 return 0;
22724 _ACEOF
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22730 esac
22731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22732 $as_echo "$ac_try_echo") >&5
22733 (eval "$ac_compile") 2>conftest.er1
22734 ac_status=$?
22735 grep -v '^ *+' conftest.er1 >conftest.err
22736 rm -f conftest.er1
22737 cat conftest.err >&5
22738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } && {
22740 test -z "$ac_c_werror_flag" ||
22741 test ! -s conftest.err
22742 } && test -s conftest.$ac_objext; then
22743 ac_cv_member_krb5_error_e_text=yes
22744 else
22745 $as_echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22748 cat >conftest.$ac_ext <<_ACEOF
22749 /* confdefs.h. */
22750 _ACEOF
22751 cat confdefs.h >>conftest.$ac_ext
22752 cat >>conftest.$ac_ext <<_ACEOF
22753 /* end confdefs.h. */
22754 #include <krb5.h>
22757 main ()
22759 static krb5_error ac_aggr;
22760 if (sizeof ac_aggr.e_text)
22761 return 0;
22763 return 0;
22765 _ACEOF
22766 rm -f conftest.$ac_objext
22767 if { (ac_try="$ac_compile"
22768 case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22771 esac
22772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22773 $as_echo "$ac_try_echo") >&5
22774 (eval "$ac_compile") 2>conftest.er1
22775 ac_status=$?
22776 grep -v '^ *+' conftest.er1 >conftest.err
22777 rm -f conftest.er1
22778 cat conftest.err >&5
22779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } && {
22781 test -z "$ac_c_werror_flag" ||
22782 test ! -s conftest.err
22783 } && test -s conftest.$ac_objext; then
22784 ac_cv_member_krb5_error_e_text=yes
22785 else
22786 $as_echo "$as_me: failed program was:" >&5
22787 sed 's/^/| /' conftest.$ac_ext >&5
22789 ac_cv_member_krb5_error_e_text=no
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22797 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22798 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22799 if test $ac_cv_member_krb5_error_e_text = yes; then
22801 cat >>confdefs.h <<_ACEOF
22802 #define HAVE_KRB5_ERROR_E_TEXT 1
22803 _ACEOF
22810 done
22812 else
22814 for ac_header in des.h
22816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22818 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22819 $as_echo_n "checking for $ac_header... " >&6; }
22820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22821 $as_echo_n "(cached) " >&6
22823 ac_res=`eval 'as_val=${'$as_ac_Header'}
22824 $as_echo "$as_val"'`
22825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22826 $as_echo "$ac_res" >&6; }
22827 else
22828 # Is the header compilable?
22829 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22830 $as_echo_n "checking $ac_header usability... " >&6; }
22831 cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h. */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 $ac_includes_default
22838 #include <$ac_header>
22839 _ACEOF
22840 rm -f conftest.$ac_objext
22841 if { (ac_try="$ac_compile"
22842 case "(($ac_try" in
22843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844 *) ac_try_echo=$ac_try;;
22845 esac
22846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22847 $as_echo "$ac_try_echo") >&5
22848 (eval "$ac_compile") 2>conftest.er1
22849 ac_status=$?
22850 grep -v '^ *+' conftest.er1 >conftest.err
22851 rm -f conftest.er1
22852 cat conftest.err >&5
22853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest.$ac_objext; then
22858 ac_header_compiler=yes
22859 else
22860 $as_echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22863 ac_header_compiler=no
22866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22868 $as_echo "$ac_header_compiler" >&6; }
22870 # Is the header present?
22871 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22872 $as_echo_n "checking $ac_header presence... " >&6; }
22873 cat >conftest.$ac_ext <<_ACEOF
22874 /* confdefs.h. */
22875 _ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 #include <$ac_header>
22880 _ACEOF
22881 if { (ac_try="$ac_cpp conftest.$ac_ext"
22882 case "(($ac_try" in
22883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884 *) ac_try_echo=$ac_try;;
22885 esac
22886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22887 $as_echo "$ac_try_echo") >&5
22888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22889 ac_status=$?
22890 grep -v '^ *+' conftest.er1 >conftest.err
22891 rm -f conftest.er1
22892 cat conftest.err >&5
22893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } >/dev/null && {
22895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22896 test ! -s conftest.err
22897 }; then
22898 ac_header_preproc=yes
22899 else
22900 $as_echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22903 ac_header_preproc=no
22906 rm -f conftest.err conftest.$ac_ext
22907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22908 $as_echo "$ac_header_preproc" >&6; }
22910 # So? What about this header?
22911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22912 yes:no: )
22913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22914 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22916 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22917 ac_header_preproc=yes
22919 no:yes:* )
22920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22921 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22923 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22925 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22927 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22931 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22934 esac
22935 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22936 $as_echo_n "checking for $ac_header... " >&6; }
22937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22938 $as_echo_n "(cached) " >&6
22939 else
22940 eval "$as_ac_Header=\$ac_header_preproc"
22942 ac_res=`eval 'as_val=${'$as_ac_Header'}
22943 $as_echo "$as_val"'`
22944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22945 $as_echo "$ac_res" >&6; }
22948 if test `eval 'as_val=${'$as_ac_Header'}
22949 $as_echo "$as_val"'` = yes; then
22950 cat >>confdefs.h <<_ACEOF
22951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22952 _ACEOF
22954 else
22956 for ac_header in kerberosIV/des.h
22958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22961 $as_echo_n "checking for $ac_header... " >&6; }
22962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22963 $as_echo_n "(cached) " >&6
22965 ac_res=`eval 'as_val=${'$as_ac_Header'}
22966 $as_echo "$as_val"'`
22967 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22968 $as_echo "$ac_res" >&6; }
22969 else
22970 # Is the header compilable?
22971 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22972 $as_echo_n "checking $ac_header usability... " >&6; }
22973 cat >conftest.$ac_ext <<_ACEOF
22974 /* confdefs.h. */
22975 _ACEOF
22976 cat confdefs.h >>conftest.$ac_ext
22977 cat >>conftest.$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22979 $ac_includes_default
22980 #include <$ac_header>
22981 _ACEOF
22982 rm -f conftest.$ac_objext
22983 if { (ac_try="$ac_compile"
22984 case "(($ac_try" in
22985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22986 *) ac_try_echo=$ac_try;;
22987 esac
22988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22989 $as_echo "$ac_try_echo") >&5
22990 (eval "$ac_compile") 2>conftest.er1
22991 ac_status=$?
22992 grep -v '^ *+' conftest.er1 >conftest.err
22993 rm -f conftest.er1
22994 cat conftest.err >&5
22995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } && {
22997 test -z "$ac_c_werror_flag" ||
22998 test ! -s conftest.err
22999 } && test -s conftest.$ac_objext; then
23000 ac_header_compiler=yes
23001 else
23002 $as_echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23005 ac_header_compiler=no
23008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23010 $as_echo "$ac_header_compiler" >&6; }
23012 # Is the header present?
23013 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23014 $as_echo_n "checking $ac_header presence... " >&6; }
23015 cat >conftest.$ac_ext <<_ACEOF
23016 /* confdefs.h. */
23017 _ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h. */
23021 #include <$ac_header>
23022 _ACEOF
23023 if { (ac_try="$ac_cpp conftest.$ac_ext"
23024 case "(($ac_try" in
23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 *) ac_try_echo=$ac_try;;
23027 esac
23028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23029 $as_echo "$ac_try_echo") >&5
23030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23031 ac_status=$?
23032 grep -v '^ *+' conftest.er1 >conftest.err
23033 rm -f conftest.er1
23034 cat conftest.err >&5
23035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } >/dev/null && {
23037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23038 test ! -s conftest.err
23039 }; then
23040 ac_header_preproc=yes
23041 else
23042 $as_echo "$as_me: failed program was:" >&5
23043 sed 's/^/| /' conftest.$ac_ext >&5
23045 ac_header_preproc=no
23048 rm -f conftest.err conftest.$ac_ext
23049 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23050 $as_echo "$ac_header_preproc" >&6; }
23052 # So? What about this header?
23053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23054 yes:no: )
23055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23056 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23058 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23059 ac_header_preproc=yes
23061 no:yes:* )
23062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23063 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23065 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23067 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23069 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23071 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23073 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23076 esac
23077 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23078 $as_echo_n "checking for $ac_header... " >&6; }
23079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23080 $as_echo_n "(cached) " >&6
23081 else
23082 eval "$as_ac_Header=\$ac_header_preproc"
23084 ac_res=`eval 'as_val=${'$as_ac_Header'}
23085 $as_echo "$as_val"'`
23086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23087 $as_echo "$ac_res" >&6; }
23090 if test `eval 'as_val=${'$as_ac_Header'}
23091 $as_echo "$as_val"'` = yes; then
23092 cat >>confdefs.h <<_ACEOF
23093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23094 _ACEOF
23096 else
23098 for ac_header in kerberos/des.h
23100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23103 $as_echo_n "checking for $ac_header... " >&6; }
23104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23105 $as_echo_n "(cached) " >&6
23107 ac_res=`eval 'as_val=${'$as_ac_Header'}
23108 $as_echo "$as_val"'`
23109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23110 $as_echo "$ac_res" >&6; }
23111 else
23112 # Is the header compilable?
23113 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23114 $as_echo_n "checking $ac_header usability... " >&6; }
23115 cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h. */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23121 $ac_includes_default
23122 #include <$ac_header>
23123 _ACEOF
23124 rm -f conftest.$ac_objext
23125 if { (ac_try="$ac_compile"
23126 case "(($ac_try" in
23127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23128 *) ac_try_echo=$ac_try;;
23129 esac
23130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23131 $as_echo "$ac_try_echo") >&5
23132 (eval "$ac_compile") 2>conftest.er1
23133 ac_status=$?
23134 grep -v '^ *+' conftest.er1 >conftest.err
23135 rm -f conftest.er1
23136 cat conftest.err >&5
23137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } && {
23139 test -z "$ac_c_werror_flag" ||
23140 test ! -s conftest.err
23141 } && test -s conftest.$ac_objext; then
23142 ac_header_compiler=yes
23143 else
23144 $as_echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 ac_header_compiler=no
23150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23151 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23152 $as_echo "$ac_header_compiler" >&6; }
23154 # Is the header present?
23155 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23156 $as_echo_n "checking $ac_header presence... " >&6; }
23157 cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h. */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23163 #include <$ac_header>
23164 _ACEOF
23165 if { (ac_try="$ac_cpp conftest.$ac_ext"
23166 case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23169 esac
23170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23171 $as_echo "$ac_try_echo") >&5
23172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23173 ac_status=$?
23174 grep -v '^ *+' conftest.er1 >conftest.err
23175 rm -f conftest.er1
23176 cat conftest.err >&5
23177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } >/dev/null && {
23179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23180 test ! -s conftest.err
23181 }; then
23182 ac_header_preproc=yes
23183 else
23184 $as_echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23187 ac_header_preproc=no
23190 rm -f conftest.err conftest.$ac_ext
23191 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23192 $as_echo "$ac_header_preproc" >&6; }
23194 # So? What about this header?
23195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23196 yes:no: )
23197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23198 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23200 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23201 ac_header_preproc=yes
23203 no:yes:* )
23204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23205 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23207 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23209 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23211 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23213 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23215 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23218 esac
23219 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23220 $as_echo_n "checking for $ac_header... " >&6; }
23221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23222 $as_echo_n "(cached) " >&6
23223 else
23224 eval "$as_ac_Header=\$ac_header_preproc"
23226 ac_res=`eval 'as_val=${'$as_ac_Header'}
23227 $as_echo "$as_val"'`
23228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23229 $as_echo "$ac_res" >&6; }
23232 if test `eval 'as_val=${'$as_ac_Header'}
23233 $as_echo "$as_val"'` = yes; then
23234 cat >>confdefs.h <<_ACEOF
23235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23236 _ACEOF
23240 done
23244 done
23248 done
23251 for ac_header in krb.h
23253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23256 $as_echo_n "checking for $ac_header... " >&6; }
23257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23258 $as_echo_n "(cached) " >&6
23260 ac_res=`eval 'as_val=${'$as_ac_Header'}
23261 $as_echo "$as_val"'`
23262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23263 $as_echo "$ac_res" >&6; }
23264 else
23265 # Is the header compilable?
23266 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23267 $as_echo_n "checking $ac_header usability... " >&6; }
23268 cat >conftest.$ac_ext <<_ACEOF
23269 /* confdefs.h. */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 $ac_includes_default
23275 #include <$ac_header>
23276 _ACEOF
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23282 esac
23283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23284 $as_echo "$ac_try_echo") >&5
23285 (eval "$ac_compile") 2>conftest.er1
23286 ac_status=$?
23287 grep -v '^ *+' conftest.er1 >conftest.err
23288 rm -f conftest.er1
23289 cat conftest.err >&5
23290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } && {
23292 test -z "$ac_c_werror_flag" ||
23293 test ! -s conftest.err
23294 } && test -s conftest.$ac_objext; then
23295 ac_header_compiler=yes
23296 else
23297 $as_echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23300 ac_header_compiler=no
23303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23304 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23305 $as_echo "$ac_header_compiler" >&6; }
23307 # Is the header present?
23308 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23309 $as_echo_n "checking $ac_header presence... " >&6; }
23310 cat >conftest.$ac_ext <<_ACEOF
23311 /* confdefs.h. */
23312 _ACEOF
23313 cat confdefs.h >>conftest.$ac_ext
23314 cat >>conftest.$ac_ext <<_ACEOF
23315 /* end confdefs.h. */
23316 #include <$ac_header>
23317 _ACEOF
23318 if { (ac_try="$ac_cpp conftest.$ac_ext"
23319 case "(($ac_try" in
23320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23321 *) ac_try_echo=$ac_try;;
23322 esac
23323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23324 $as_echo "$ac_try_echo") >&5
23325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23326 ac_status=$?
23327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
23330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } >/dev/null && {
23332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 }; then
23335 ac_header_preproc=yes
23336 else
23337 $as_echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ac_header_preproc=no
23343 rm -f conftest.err conftest.$ac_ext
23344 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23345 $as_echo "$ac_header_preproc" >&6; }
23347 # So? What about this header?
23348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23349 yes:no: )
23350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23351 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23353 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23354 ac_header_preproc=yes
23356 no:yes:* )
23357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23358 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23360 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23362 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23364 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23366 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23368 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23371 esac
23372 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23373 $as_echo_n "checking for $ac_header... " >&6; }
23374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23375 $as_echo_n "(cached) " >&6
23376 else
23377 eval "$as_ac_Header=\$ac_header_preproc"
23379 ac_res=`eval 'as_val=${'$as_ac_Header'}
23380 $as_echo "$as_val"'`
23381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23382 $as_echo "$ac_res" >&6; }
23385 if test `eval 'as_val=${'$as_ac_Header'}
23386 $as_echo "$as_val"'` = yes; then
23387 cat >>confdefs.h <<_ACEOF
23388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23389 _ACEOF
23391 else
23393 for ac_header in kerberosIV/krb.h
23395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23398 $as_echo_n "checking for $ac_header... " >&6; }
23399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23400 $as_echo_n "(cached) " >&6
23402 ac_res=`eval 'as_val=${'$as_ac_Header'}
23403 $as_echo "$as_val"'`
23404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23405 $as_echo "$ac_res" >&6; }
23406 else
23407 # Is the header compilable?
23408 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23409 $as_echo_n "checking $ac_header usability... " >&6; }
23410 cat >conftest.$ac_ext <<_ACEOF
23411 /* confdefs.h. */
23412 _ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416 $ac_includes_default
23417 #include <$ac_header>
23418 _ACEOF
23419 rm -f conftest.$ac_objext
23420 if { (ac_try="$ac_compile"
23421 case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23424 esac
23425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427 (eval "$ac_compile") 2>conftest.er1
23428 ac_status=$?
23429 grep -v '^ *+' conftest.er1 >conftest.err
23430 rm -f conftest.er1
23431 cat conftest.err >&5
23432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); } && {
23434 test -z "$ac_c_werror_flag" ||
23435 test ! -s conftest.err
23436 } && test -s conftest.$ac_objext; then
23437 ac_header_compiler=yes
23438 else
23439 $as_echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23442 ac_header_compiler=no
23445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23446 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23447 $as_echo "$ac_header_compiler" >&6; }
23449 # Is the header present?
23450 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23451 $as_echo_n "checking $ac_header presence... " >&6; }
23452 cat >conftest.$ac_ext <<_ACEOF
23453 /* confdefs.h. */
23454 _ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h. */
23458 #include <$ac_header>
23459 _ACEOF
23460 if { (ac_try="$ac_cpp conftest.$ac_ext"
23461 case "(($ac_try" in
23462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463 *) ac_try_echo=$ac_try;;
23464 esac
23465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23466 $as_echo "$ac_try_echo") >&5
23467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } >/dev/null && {
23474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 }; then
23477 ac_header_preproc=yes
23478 else
23479 $as_echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_header_preproc=no
23485 rm -f conftest.err conftest.$ac_ext
23486 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23487 $as_echo "$ac_header_preproc" >&6; }
23489 # So? What about this header?
23490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23491 yes:no: )
23492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23493 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23496 ac_header_preproc=yes
23498 no:yes:* )
23499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23500 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23502 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23504 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23506 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23508 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23510 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23513 esac
23514 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23515 $as_echo_n "checking for $ac_header... " >&6; }
23516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23517 $as_echo_n "(cached) " >&6
23518 else
23519 eval "$as_ac_Header=\$ac_header_preproc"
23521 ac_res=`eval 'as_val=${'$as_ac_Header'}
23522 $as_echo "$as_val"'`
23523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23524 $as_echo "$ac_res" >&6; }
23527 if test `eval 'as_val=${'$as_ac_Header'}
23528 $as_echo "$as_val"'` = yes; then
23529 cat >>confdefs.h <<_ACEOF
23530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23531 _ACEOF
23533 else
23535 for ac_header in kerberos/krb.h
23537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23539 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23540 $as_echo_n "checking for $ac_header... " >&6; }
23541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23542 $as_echo_n "(cached) " >&6
23544 ac_res=`eval 'as_val=${'$as_ac_Header'}
23545 $as_echo "$as_val"'`
23546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23547 $as_echo "$ac_res" >&6; }
23548 else
23549 # Is the header compilable?
23550 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23551 $as_echo_n "checking $ac_header usability... " >&6; }
23552 cat >conftest.$ac_ext <<_ACEOF
23553 /* confdefs.h. */
23554 _ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h. */
23558 $ac_includes_default
23559 #include <$ac_header>
23560 _ACEOF
23561 rm -f conftest.$ac_objext
23562 if { (ac_try="$ac_compile"
23563 case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23566 esac
23567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23568 $as_echo "$ac_try_echo") >&5
23569 (eval "$ac_compile") 2>conftest.er1
23570 ac_status=$?
23571 grep -v '^ *+' conftest.er1 >conftest.err
23572 rm -f conftest.er1
23573 cat conftest.err >&5
23574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } && {
23576 test -z "$ac_c_werror_flag" ||
23577 test ! -s conftest.err
23578 } && test -s conftest.$ac_objext; then
23579 ac_header_compiler=yes
23580 else
23581 $as_echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23584 ac_header_compiler=no
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23588 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23589 $as_echo "$ac_header_compiler" >&6; }
23591 # Is the header present?
23592 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23593 $as_echo_n "checking $ac_header presence... " >&6; }
23594 cat >conftest.$ac_ext <<_ACEOF
23595 /* confdefs.h. */
23596 _ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h. */
23600 #include <$ac_header>
23601 _ACEOF
23602 if { (ac_try="$ac_cpp conftest.$ac_ext"
23603 case "(($ac_try" in
23604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605 *) ac_try_echo=$ac_try;;
23606 esac
23607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23608 $as_echo "$ac_try_echo") >&5
23609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23610 ac_status=$?
23611 grep -v '^ *+' conftest.er1 >conftest.err
23612 rm -f conftest.er1
23613 cat conftest.err >&5
23614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } >/dev/null && {
23616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23617 test ! -s conftest.err
23618 }; then
23619 ac_header_preproc=yes
23620 else
23621 $as_echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23624 ac_header_preproc=no
23627 rm -f conftest.err conftest.$ac_ext
23628 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23629 $as_echo "$ac_header_preproc" >&6; }
23631 # So? What about this header?
23632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23633 yes:no: )
23634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23635 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23637 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23638 ac_header_preproc=yes
23640 no:yes:* )
23641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23642 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23644 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23646 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23648 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23650 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23652 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23655 esac
23656 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23657 $as_echo_n "checking for $ac_header... " >&6; }
23658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23659 $as_echo_n "(cached) " >&6
23660 else
23661 eval "$as_ac_Header=\$ac_header_preproc"
23663 ac_res=`eval 'as_val=${'$as_ac_Header'}
23664 $as_echo "$as_val"'`
23665 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23666 $as_echo "$ac_res" >&6; }
23669 if test `eval 'as_val=${'$as_ac_Header'}
23670 $as_echo "$as_val"'` = yes; then
23671 cat >>confdefs.h <<_ACEOF
23672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23673 _ACEOF
23677 done
23681 done
23685 done
23689 for ac_header in com_err.h
23691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23693 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23694 $as_echo_n "checking for $ac_header... " >&6; }
23695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23696 $as_echo_n "(cached) " >&6
23698 ac_res=`eval 'as_val=${'$as_ac_Header'}
23699 $as_echo "$as_val"'`
23700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23701 $as_echo "$ac_res" >&6; }
23702 else
23703 # Is the header compilable?
23704 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23705 $as_echo_n "checking $ac_header usability... " >&6; }
23706 cat >conftest.$ac_ext <<_ACEOF
23707 /* confdefs.h. */
23708 _ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h. */
23712 $ac_includes_default
23713 #include <$ac_header>
23714 _ACEOF
23715 rm -f conftest.$ac_objext
23716 if { (ac_try="$ac_compile"
23717 case "(($ac_try" in
23718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23719 *) ac_try_echo=$ac_try;;
23720 esac
23721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23722 $as_echo "$ac_try_echo") >&5
23723 (eval "$ac_compile") 2>conftest.er1
23724 ac_status=$?
23725 grep -v '^ *+' conftest.er1 >conftest.err
23726 rm -f conftest.er1
23727 cat conftest.err >&5
23728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); } && {
23730 test -z "$ac_c_werror_flag" ||
23731 test ! -s conftest.err
23732 } && test -s conftest.$ac_objext; then
23733 ac_header_compiler=yes
23734 else
23735 $as_echo "$as_me: failed program was:" >&5
23736 sed 's/^/| /' conftest.$ac_ext >&5
23738 ac_header_compiler=no
23741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23743 $as_echo "$ac_header_compiler" >&6; }
23745 # Is the header present?
23746 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23747 $as_echo_n "checking $ac_header presence... " >&6; }
23748 cat >conftest.$ac_ext <<_ACEOF
23749 /* confdefs.h. */
23750 _ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h. */
23754 #include <$ac_header>
23755 _ACEOF
23756 if { (ac_try="$ac_cpp conftest.$ac_ext"
23757 case "(($ac_try" in
23758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23760 esac
23761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23762 $as_echo "$ac_try_echo") >&5
23763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23764 ac_status=$?
23765 grep -v '^ *+' conftest.er1 >conftest.err
23766 rm -f conftest.er1
23767 cat conftest.err >&5
23768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } >/dev/null && {
23770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23771 test ! -s conftest.err
23772 }; then
23773 ac_header_preproc=yes
23774 else
23775 $as_echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23778 ac_header_preproc=no
23781 rm -f conftest.err conftest.$ac_ext
23782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23783 $as_echo "$ac_header_preproc" >&6; }
23785 # So? What about this header?
23786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23787 yes:no: )
23788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23789 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23791 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23792 ac_header_preproc=yes
23794 no:yes:* )
23795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23796 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23798 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23800 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23802 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23806 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23809 esac
23810 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23811 $as_echo_n "checking for $ac_header... " >&6; }
23812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23813 $as_echo_n "(cached) " >&6
23814 else
23815 eval "$as_ac_Header=\$ac_header_preproc"
23817 ac_res=`eval 'as_val=${'$as_ac_Header'}
23818 $as_echo "$as_val"'`
23819 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23820 $as_echo "$ac_res" >&6; }
23823 if test `eval 'as_val=${'$as_ac_Header'}
23824 $as_echo "$as_val"'` = yes; then
23825 cat >>confdefs.h <<_ACEOF
23826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23827 _ACEOF
23831 done
23841 # Solaris requires -lintl if you want strerror (which calls dgettext)
23842 # to return localized messages.
23844 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23845 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23846 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23847 $as_echo_n "(cached) " >&6
23848 else
23849 ac_check_lib_save_LIBS=$LIBS
23850 LIBS="-lintl $LIBS"
23851 cat >conftest.$ac_ext <<_ACEOF
23852 /* confdefs.h. */
23853 _ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h. */
23858 /* Override any GCC internal prototype to avoid an error.
23859 Use char because int might match the return type of a GCC
23860 builtin and then its argument prototype would still apply. */
23861 #ifdef __cplusplus
23862 extern "C"
23863 #endif
23864 char dgettext ();
23866 main ()
23868 return dgettext ();
23870 return 0;
23872 _ACEOF
23873 rm -f conftest.$ac_objext conftest$ac_exeext
23874 if { (ac_try="$ac_link"
23875 case "(($ac_try" in
23876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23877 *) ac_try_echo=$ac_try;;
23878 esac
23879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23880 $as_echo "$ac_try_echo") >&5
23881 (eval "$ac_link") 2>conftest.er1
23882 ac_status=$?
23883 grep -v '^ *+' conftest.er1 >conftest.err
23884 rm -f conftest.er1
23885 cat conftest.err >&5
23886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); } && {
23888 test -z "$ac_c_werror_flag" ||
23889 test ! -s conftest.err
23890 } && test -s conftest$ac_exeext && {
23891 test "$cross_compiling" = yes ||
23892 $as_test_x conftest$ac_exeext
23893 }; then
23894 ac_cv_lib_intl_dgettext=yes
23895 else
23896 $as_echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23899 ac_cv_lib_intl_dgettext=no
23902 rm -rf conftest.dSYM
23903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23904 conftest$ac_exeext conftest.$ac_ext
23905 LIBS=$ac_check_lib_save_LIBS
23907 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23908 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23909 if test $ac_cv_lib_intl_dgettext = yes; then
23910 cat >>confdefs.h <<_ACEOF
23911 #define HAVE_LIBINTL 1
23912 _ACEOF
23914 LIBS="-lintl $LIBS"
23919 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23920 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23921 if test "${emacs_cv_localtime_cache+set}" = set; then
23922 $as_echo_n "(cached) " >&6
23923 else
23924 if test x$ac_cv_func_tzset = xyes; then
23925 if test "$cross_compiling" = yes; then
23926 # If we have tzset, assume the worst when cross-compiling.
23927 emacs_cv_localtime_cache=yes
23928 else
23929 cat >conftest.$ac_ext <<_ACEOF
23930 /* confdefs.h. */
23931 _ACEOF
23932 cat confdefs.h >>conftest.$ac_ext
23933 cat >>conftest.$ac_ext <<_ACEOF
23934 /* end confdefs.h. */
23935 #include <time.h>
23936 extern char **environ;
23937 unset_TZ ()
23939 char **from, **to;
23940 for (to = from = environ; (*to = *from); from++)
23941 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23942 to++;
23944 char TZ_GMT0[] = "TZ=GMT0";
23945 char TZ_PST8[] = "TZ=PST8";
23946 main()
23948 time_t now = time ((time_t *) 0);
23949 int hour_GMT0, hour_unset;
23950 if (putenv (TZ_GMT0) != 0)
23951 exit (1);
23952 hour_GMT0 = localtime (&now)->tm_hour;
23953 unset_TZ ();
23954 hour_unset = localtime (&now)->tm_hour;
23955 if (putenv (TZ_PST8) != 0)
23956 exit (1);
23957 if (localtime (&now)->tm_hour == hour_GMT0)
23958 exit (1);
23959 unset_TZ ();
23960 if (localtime (&now)->tm_hour != hour_unset)
23961 exit (1);
23962 exit (0);
23964 _ACEOF
23965 rm -f conftest$ac_exeext
23966 if { (ac_try="$ac_link"
23967 case "(($ac_try" in
23968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23969 *) ac_try_echo=$ac_try;;
23970 esac
23971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23972 $as_echo "$ac_try_echo") >&5
23973 (eval "$ac_link") 2>&5
23974 ac_status=$?
23975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23977 { (case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23980 esac
23981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23982 $as_echo "$ac_try_echo") >&5
23983 (eval "$ac_try") 2>&5
23984 ac_status=$?
23985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); }; }; then
23987 emacs_cv_localtime_cache=no
23988 else
23989 $as_echo "$as_me: program exited with status $ac_status" >&5
23990 $as_echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23993 ( exit $ac_status )
23994 emacs_cv_localtime_cache=yes
23996 rm -rf conftest.dSYM
23997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24001 else
24002 # If we lack tzset, report that localtime does not cache TZ,
24003 # since we can't invalidate the cache if we don't have tzset.
24004 emacs_cv_localtime_cache=no
24007 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24008 $as_echo "$emacs_cv_localtime_cache" >&6; }
24009 if test $emacs_cv_localtime_cache = yes; then
24011 cat >>confdefs.h <<\_ACEOF
24012 #define LOCALTIME_CACHE 1
24013 _ACEOF
24017 if test "x$HAVE_TIMEVAL" = xyes; then
24019 for ac_func in gettimeofday
24021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24022 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24023 $as_echo_n "checking for $ac_func... " >&6; }
24024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24025 $as_echo_n "(cached) " >&6
24026 else
24027 cat >conftest.$ac_ext <<_ACEOF
24028 /* confdefs.h. */
24029 _ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h. */
24033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24035 #define $ac_func innocuous_$ac_func
24037 /* System header to define __stub macros and hopefully few prototypes,
24038 which can conflict with char $ac_func (); below.
24039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24040 <limits.h> exists even on freestanding compilers. */
24042 #ifdef __STDC__
24043 # include <limits.h>
24044 #else
24045 # include <assert.h>
24046 #endif
24048 #undef $ac_func
24050 /* Override any GCC internal prototype to avoid an error.
24051 Use char because int might match the return type of a GCC
24052 builtin and then its argument prototype would still apply. */
24053 #ifdef __cplusplus
24054 extern "C"
24055 #endif
24056 char $ac_func ();
24057 /* The GNU C library defines this for functions which it implements
24058 to always fail with ENOSYS. Some functions are actually named
24059 something starting with __ and the normal name is an alias. */
24060 #if defined __stub_$ac_func || defined __stub___$ac_func
24061 choke me
24062 #endif
24065 main ()
24067 return $ac_func ();
24069 return 0;
24071 _ACEOF
24072 rm -f conftest.$ac_objext conftest$ac_exeext
24073 if { (ac_try="$ac_link"
24074 case "(($ac_try" in
24075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076 *) ac_try_echo=$ac_try;;
24077 esac
24078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24079 $as_echo "$ac_try_echo") >&5
24080 (eval "$ac_link") 2>conftest.er1
24081 ac_status=$?
24082 grep -v '^ *+' conftest.er1 >conftest.err
24083 rm -f conftest.er1
24084 cat conftest.err >&5
24085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); } && {
24087 test -z "$ac_c_werror_flag" ||
24088 test ! -s conftest.err
24089 } && test -s conftest$ac_exeext && {
24090 test "$cross_compiling" = yes ||
24091 $as_test_x conftest$ac_exeext
24092 }; then
24093 eval "$as_ac_var=yes"
24094 else
24095 $as_echo "$as_me: failed program was:" >&5
24096 sed 's/^/| /' conftest.$ac_ext >&5
24098 eval "$as_ac_var=no"
24101 rm -rf conftest.dSYM
24102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24103 conftest$ac_exeext conftest.$ac_ext
24105 ac_res=`eval 'as_val=${'$as_ac_var'}
24106 $as_echo "$as_val"'`
24107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24108 $as_echo "$ac_res" >&6; }
24109 if test `eval 'as_val=${'$as_ac_var'}
24110 $as_echo "$as_val"'` = yes; then
24111 cat >>confdefs.h <<_ACEOF
24112 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24113 _ACEOF
24116 done
24118 if test $ac_cv_func_gettimeofday = yes; then
24119 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24120 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24121 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24122 $as_echo_n "(cached) " >&6
24123 else
24124 cat >conftest.$ac_ext <<_ACEOF
24125 /* confdefs.h. */
24126 _ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h. */
24131 #ifdef TIME_WITH_SYS_TIME
24132 #include <sys/time.h>
24133 #include <time.h>
24134 #else
24135 #ifdef HAVE_SYS_TIME_H
24136 #include <sys/time.h>
24137 #else
24138 #include <time.h>
24139 #endif
24140 #endif
24142 main ()
24144 struct timeval time;
24145 gettimeofday (&time, 0);
24147 return 0;
24149 _ACEOF
24150 rm -f conftest.$ac_objext
24151 if { (ac_try="$ac_compile"
24152 case "(($ac_try" in
24153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154 *) ac_try_echo=$ac_try;;
24155 esac
24156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24157 $as_echo "$ac_try_echo") >&5
24158 (eval "$ac_compile") 2>conftest.er1
24159 ac_status=$?
24160 grep -v '^ *+' conftest.er1 >conftest.err
24161 rm -f conftest.er1
24162 cat conftest.err >&5
24163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } && {
24165 test -z "$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24167 } && test -s conftest.$ac_objext; then
24168 emacs_cv_gettimeofday_two_arguments=yes
24169 else
24170 $as_echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24173 emacs_cv_gettimeofday_two_arguments=no
24176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24179 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24180 if test $emacs_cv_gettimeofday_two_arguments = no; then
24182 cat >>confdefs.h <<\_ACEOF
24183 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24184 _ACEOF
24190 ok_so_far=yes
24191 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24192 $as_echo_n "checking for socket... " >&6; }
24193 if test "${ac_cv_func_socket+set}" = set; then
24194 $as_echo_n "(cached) " >&6
24195 else
24196 cat >conftest.$ac_ext <<_ACEOF
24197 /* confdefs.h. */
24198 _ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h. */
24202 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24204 #define socket innocuous_socket
24206 /* System header to define __stub macros and hopefully few prototypes,
24207 which can conflict with char socket (); below.
24208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24209 <limits.h> exists even on freestanding compilers. */
24211 #ifdef __STDC__
24212 # include <limits.h>
24213 #else
24214 # include <assert.h>
24215 #endif
24217 #undef socket
24219 /* Override any GCC internal prototype to avoid an error.
24220 Use char because int might match the return type of a GCC
24221 builtin and then its argument prototype would still apply. */
24222 #ifdef __cplusplus
24223 extern "C"
24224 #endif
24225 char socket ();
24226 /* The GNU C library defines this for functions which it implements
24227 to always fail with ENOSYS. Some functions are actually named
24228 something starting with __ and the normal name is an alias. */
24229 #if defined __stub_socket || defined __stub___socket
24230 choke me
24231 #endif
24234 main ()
24236 return socket ();
24238 return 0;
24240 _ACEOF
24241 rm -f conftest.$ac_objext conftest$ac_exeext
24242 if { (ac_try="$ac_link"
24243 case "(($ac_try" in
24244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24246 esac
24247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24248 $as_echo "$ac_try_echo") >&5
24249 (eval "$ac_link") 2>conftest.er1
24250 ac_status=$?
24251 grep -v '^ *+' conftest.er1 >conftest.err
24252 rm -f conftest.er1
24253 cat conftest.err >&5
24254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } && {
24256 test -z "$ac_c_werror_flag" ||
24257 test ! -s conftest.err
24258 } && test -s conftest$ac_exeext && {
24259 test "$cross_compiling" = yes ||
24260 $as_test_x conftest$ac_exeext
24261 }; then
24262 ac_cv_func_socket=yes
24263 else
24264 $as_echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24267 ac_cv_func_socket=no
24270 rm -rf conftest.dSYM
24271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24272 conftest$ac_exeext conftest.$ac_ext
24274 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24275 $as_echo "$ac_cv_func_socket" >&6; }
24276 if test $ac_cv_func_socket = yes; then
24278 else
24279 ok_so_far=no
24282 if test $ok_so_far = yes; then
24283 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24284 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24285 $as_echo_n "checking for netinet/in.h... " >&6; }
24286 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24287 $as_echo_n "(cached) " >&6
24289 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24290 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24291 else
24292 # Is the header compilable?
24293 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24294 $as_echo_n "checking netinet/in.h usability... " >&6; }
24295 cat >conftest.$ac_ext <<_ACEOF
24296 /* confdefs.h. */
24297 _ACEOF
24298 cat confdefs.h >>conftest.$ac_ext
24299 cat >>conftest.$ac_ext <<_ACEOF
24300 /* end confdefs.h. */
24301 $ac_includes_default
24302 #include <netinet/in.h>
24303 _ACEOF
24304 rm -f conftest.$ac_objext
24305 if { (ac_try="$ac_compile"
24306 case "(($ac_try" in
24307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308 *) ac_try_echo=$ac_try;;
24309 esac
24310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24311 $as_echo "$ac_try_echo") >&5
24312 (eval "$ac_compile") 2>conftest.er1
24313 ac_status=$?
24314 grep -v '^ *+' conftest.er1 >conftest.err
24315 rm -f conftest.er1
24316 cat conftest.err >&5
24317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest.$ac_objext; then
24322 ac_header_compiler=yes
24323 else
24324 $as_echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24327 ac_header_compiler=no
24330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24331 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24332 $as_echo "$ac_header_compiler" >&6; }
24334 # Is the header present?
24335 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24336 $as_echo_n "checking netinet/in.h presence... " >&6; }
24337 cat >conftest.$ac_ext <<_ACEOF
24338 /* confdefs.h. */
24339 _ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h. */
24343 #include <netinet/in.h>
24344 _ACEOF
24345 if { (ac_try="$ac_cpp conftest.$ac_ext"
24346 case "(($ac_try" in
24347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348 *) ac_try_echo=$ac_try;;
24349 esac
24350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24351 $as_echo "$ac_try_echo") >&5
24352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24353 ac_status=$?
24354 grep -v '^ *+' conftest.er1 >conftest.err
24355 rm -f conftest.er1
24356 cat conftest.err >&5
24357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); } >/dev/null && {
24359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24360 test ! -s conftest.err
24361 }; then
24362 ac_header_preproc=yes
24363 else
24364 $as_echo "$as_me: failed program was:" >&5
24365 sed 's/^/| /' conftest.$ac_ext >&5
24367 ac_header_preproc=no
24370 rm -f conftest.err conftest.$ac_ext
24371 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24372 $as_echo "$ac_header_preproc" >&6; }
24374 # So? What about this header?
24375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24376 yes:no: )
24377 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24378 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24379 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24380 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24381 ac_header_preproc=yes
24383 no:yes:* )
24384 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24385 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24386 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24387 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24388 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24389 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24390 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24391 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24392 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24393 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24394 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24395 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24398 esac
24399 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24400 $as_echo_n "checking for netinet/in.h... " >&6; }
24401 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24402 $as_echo_n "(cached) " >&6
24403 else
24404 ac_cv_header_netinet_in_h=$ac_header_preproc
24406 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24407 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24410 if test $ac_cv_header_netinet_in_h = yes; then
24412 else
24413 ok_so_far=no
24418 if test $ok_so_far = yes; then
24419 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24420 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24421 $as_echo_n "checking for arpa/inet.h... " >&6; }
24422 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24423 $as_echo_n "(cached) " >&6
24425 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24426 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24427 else
24428 # Is the header compilable?
24429 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24430 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24431 cat >conftest.$ac_ext <<_ACEOF
24432 /* confdefs.h. */
24433 _ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h. */
24437 $ac_includes_default
24438 #include <arpa/inet.h>
24439 _ACEOF
24440 rm -f conftest.$ac_objext
24441 if { (ac_try="$ac_compile"
24442 case "(($ac_try" in
24443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444 *) ac_try_echo=$ac_try;;
24445 esac
24446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24447 $as_echo "$ac_try_echo") >&5
24448 (eval "$ac_compile") 2>conftest.er1
24449 ac_status=$?
24450 grep -v '^ *+' conftest.er1 >conftest.err
24451 rm -f conftest.er1
24452 cat conftest.err >&5
24453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } && {
24455 test -z "$ac_c_werror_flag" ||
24456 test ! -s conftest.err
24457 } && test -s conftest.$ac_objext; then
24458 ac_header_compiler=yes
24459 else
24460 $as_echo "$as_me: failed program was:" >&5
24461 sed 's/^/| /' conftest.$ac_ext >&5
24463 ac_header_compiler=no
24466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24467 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24468 $as_echo "$ac_header_compiler" >&6; }
24470 # Is the header present?
24471 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24472 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24473 cat >conftest.$ac_ext <<_ACEOF
24474 /* confdefs.h. */
24475 _ACEOF
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h. */
24479 #include <arpa/inet.h>
24480 _ACEOF
24481 if { (ac_try="$ac_cpp conftest.$ac_ext"
24482 case "(($ac_try" in
24483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484 *) ac_try_echo=$ac_try;;
24485 esac
24486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24487 $as_echo "$ac_try_echo") >&5
24488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24489 ac_status=$?
24490 grep -v '^ *+' conftest.er1 >conftest.err
24491 rm -f conftest.er1
24492 cat conftest.err >&5
24493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); } >/dev/null && {
24495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24496 test ! -s conftest.err
24497 }; then
24498 ac_header_preproc=yes
24499 else
24500 $as_echo "$as_me: failed program was:" >&5
24501 sed 's/^/| /' conftest.$ac_ext >&5
24503 ac_header_preproc=no
24506 rm -f conftest.err conftest.$ac_ext
24507 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24508 $as_echo "$ac_header_preproc" >&6; }
24510 # So? What about this header?
24511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24512 yes:no: )
24513 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24514 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24515 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24516 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24517 ac_header_preproc=yes
24519 no:yes:* )
24520 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24521 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24522 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24523 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24524 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24525 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24526 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24527 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24528 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24529 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24530 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24531 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24534 esac
24535 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24536 $as_echo_n "checking for arpa/inet.h... " >&6; }
24537 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24538 $as_echo_n "(cached) " >&6
24539 else
24540 ac_cv_header_arpa_inet_h=$ac_header_preproc
24542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24543 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24546 if test $ac_cv_header_arpa_inet_h = yes; then
24548 else
24549 ok_so_far=no
24554 if test $ok_so_far = yes; then
24556 cat >>confdefs.h <<\_ACEOF
24557 #define HAVE_INET_SOCKETS 1
24558 _ACEOF
24563 for ac_header in sys/ioctl.h
24565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24568 $as_echo_n "checking for $ac_header... " >&6; }
24569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24570 $as_echo_n "(cached) " >&6
24572 ac_res=`eval 'as_val=${'$as_ac_Header'}
24573 $as_echo "$as_val"'`
24574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24575 $as_echo "$ac_res" >&6; }
24576 else
24577 # Is the header compilable?
24578 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24579 $as_echo_n "checking $ac_header usability... " >&6; }
24580 cat >conftest.$ac_ext <<_ACEOF
24581 /* confdefs.h. */
24582 _ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h. */
24586 $ac_includes_default
24587 #include <$ac_header>
24588 _ACEOF
24589 rm -f conftest.$ac_objext
24590 if { (ac_try="$ac_compile"
24591 case "(($ac_try" in
24592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593 *) ac_try_echo=$ac_try;;
24594 esac
24595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24596 $as_echo "$ac_try_echo") >&5
24597 (eval "$ac_compile") 2>conftest.er1
24598 ac_status=$?
24599 grep -v '^ *+' conftest.er1 >conftest.err
24600 rm -f conftest.er1
24601 cat conftest.err >&5
24602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); } && {
24604 test -z "$ac_c_werror_flag" ||
24605 test ! -s conftest.err
24606 } && test -s conftest.$ac_objext; then
24607 ac_header_compiler=yes
24608 else
24609 $as_echo "$as_me: failed program was:" >&5
24610 sed 's/^/| /' conftest.$ac_ext >&5
24612 ac_header_compiler=no
24615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24616 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24617 $as_echo "$ac_header_compiler" >&6; }
24619 # Is the header present?
24620 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24621 $as_echo_n "checking $ac_header presence... " >&6; }
24622 cat >conftest.$ac_ext <<_ACEOF
24623 /* confdefs.h. */
24624 _ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h. */
24628 #include <$ac_header>
24629 _ACEOF
24630 if { (ac_try="$ac_cpp conftest.$ac_ext"
24631 case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24634 esac
24635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24636 $as_echo "$ac_try_echo") >&5
24637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24638 ac_status=$?
24639 grep -v '^ *+' conftest.er1 >conftest.err
24640 rm -f conftest.er1
24641 cat conftest.err >&5
24642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } >/dev/null && {
24644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24645 test ! -s conftest.err
24646 }; then
24647 ac_header_preproc=yes
24648 else
24649 $as_echo "$as_me: failed program was:" >&5
24650 sed 's/^/| /' conftest.$ac_ext >&5
24652 ac_header_preproc=no
24655 rm -f conftest.err conftest.$ac_ext
24656 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24657 $as_echo "$ac_header_preproc" >&6; }
24659 # So? What about this header?
24660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24661 yes:no: )
24662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24663 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24665 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24666 ac_header_preproc=yes
24668 no:yes:* )
24669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24670 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24672 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24674 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24676 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24678 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24680 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24683 esac
24684 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24685 $as_echo_n "checking for $ac_header... " >&6; }
24686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24687 $as_echo_n "(cached) " >&6
24688 else
24689 eval "$as_ac_Header=\$ac_header_preproc"
24691 ac_res=`eval 'as_val=${'$as_ac_Header'}
24692 $as_echo "$as_val"'`
24693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24694 $as_echo "$ac_res" >&6; }
24697 if test `eval 'as_val=${'$as_ac_Header'}
24698 $as_echo "$as_val"'` = yes; then
24699 cat >>confdefs.h <<_ACEOF
24700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24701 _ACEOF
24705 done
24708 if test -f /usr/lpp/X11/bin/smt.exp; then
24710 cat >>confdefs.h <<\_ACEOF
24711 #define HAVE_AIX_SMT_EXP 1
24712 _ACEOF
24716 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24717 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24718 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24719 { $as_echo "$as_me:$LINENO: result: yes" >&5
24720 $as_echo "yes" >&6; }
24722 cat >>confdefs.h <<\_ACEOF
24723 #define HAVE_DEV_PTMX 1
24724 _ACEOF
24726 else
24727 { $as_echo "$as_me:$LINENO: result: no" >&5
24728 $as_echo "no" >&6; }
24731 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24732 $as_echo_n "checking for pid_t... " >&6; }
24733 if test "${ac_cv_type_pid_t+set}" = set; then
24734 $as_echo_n "(cached) " >&6
24735 else
24736 ac_cv_type_pid_t=no
24737 cat >conftest.$ac_ext <<_ACEOF
24738 /* confdefs.h. */
24739 _ACEOF
24740 cat confdefs.h >>conftest.$ac_ext
24741 cat >>conftest.$ac_ext <<_ACEOF
24742 /* end confdefs.h. */
24743 $ac_includes_default
24745 main ()
24747 if (sizeof (pid_t))
24748 return 0;
24750 return 0;
24752 _ACEOF
24753 rm -f conftest.$ac_objext
24754 if { (ac_try="$ac_compile"
24755 case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24758 esac
24759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24760 $as_echo "$ac_try_echo") >&5
24761 (eval "$ac_compile") 2>conftest.er1
24762 ac_status=$?
24763 grep -v '^ *+' conftest.er1 >conftest.err
24764 rm -f conftest.er1
24765 cat conftest.err >&5
24766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } && {
24768 test -z "$ac_c_werror_flag" ||
24769 test ! -s conftest.err
24770 } && test -s conftest.$ac_objext; then
24771 cat >conftest.$ac_ext <<_ACEOF
24772 /* confdefs.h. */
24773 _ACEOF
24774 cat confdefs.h >>conftest.$ac_ext
24775 cat >>conftest.$ac_ext <<_ACEOF
24776 /* end confdefs.h. */
24777 $ac_includes_default
24779 main ()
24781 if (sizeof ((pid_t)))
24782 return 0;
24784 return 0;
24786 _ACEOF
24787 rm -f conftest.$ac_objext
24788 if { (ac_try="$ac_compile"
24789 case "(($ac_try" in
24790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791 *) ac_try_echo=$ac_try;;
24792 esac
24793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24794 $as_echo "$ac_try_echo") >&5
24795 (eval "$ac_compile") 2>conftest.er1
24796 ac_status=$?
24797 grep -v '^ *+' conftest.er1 >conftest.err
24798 rm -f conftest.er1
24799 cat conftest.err >&5
24800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } && {
24802 test -z "$ac_c_werror_flag" ||
24803 test ! -s conftest.err
24804 } && test -s conftest.$ac_objext; then
24806 else
24807 $as_echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24810 ac_cv_type_pid_t=yes
24813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814 else
24815 $as_echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24823 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24824 $as_echo "$ac_cv_type_pid_t" >&6; }
24825 if test $ac_cv_type_pid_t = yes; then
24827 else
24829 cat >>confdefs.h <<_ACEOF
24830 #define pid_t int
24831 _ACEOF
24836 for ac_header in vfork.h
24838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24841 $as_echo_n "checking for $ac_header... " >&6; }
24842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24843 $as_echo_n "(cached) " >&6
24845 ac_res=`eval 'as_val=${'$as_ac_Header'}
24846 $as_echo "$as_val"'`
24847 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24848 $as_echo "$ac_res" >&6; }
24849 else
24850 # Is the header compilable?
24851 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24852 $as_echo_n "checking $ac_header usability... " >&6; }
24853 cat >conftest.$ac_ext <<_ACEOF
24854 /* confdefs.h. */
24855 _ACEOF
24856 cat confdefs.h >>conftest.$ac_ext
24857 cat >>conftest.$ac_ext <<_ACEOF
24858 /* end confdefs.h. */
24859 $ac_includes_default
24860 #include <$ac_header>
24861 _ACEOF
24862 rm -f conftest.$ac_objext
24863 if { (ac_try="$ac_compile"
24864 case "(($ac_try" in
24865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24866 *) ac_try_echo=$ac_try;;
24867 esac
24868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24869 $as_echo "$ac_try_echo") >&5
24870 (eval "$ac_compile") 2>conftest.er1
24871 ac_status=$?
24872 grep -v '^ *+' conftest.er1 >conftest.err
24873 rm -f conftest.er1
24874 cat conftest.err >&5
24875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } && {
24877 test -z "$ac_c_werror_flag" ||
24878 test ! -s conftest.err
24879 } && test -s conftest.$ac_objext; then
24880 ac_header_compiler=yes
24881 else
24882 $as_echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24885 ac_header_compiler=no
24888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24889 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24890 $as_echo "$ac_header_compiler" >&6; }
24892 # Is the header present?
24893 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24894 $as_echo_n "checking $ac_header presence... " >&6; }
24895 cat >conftest.$ac_ext <<_ACEOF
24896 /* confdefs.h. */
24897 _ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24901 #include <$ac_header>
24902 _ACEOF
24903 if { (ac_try="$ac_cpp conftest.$ac_ext"
24904 case "(($ac_try" in
24905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906 *) ac_try_echo=$ac_try;;
24907 esac
24908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24909 $as_echo "$ac_try_echo") >&5
24910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24911 ac_status=$?
24912 grep -v '^ *+' conftest.er1 >conftest.err
24913 rm -f conftest.er1
24914 cat conftest.err >&5
24915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); } >/dev/null && {
24917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24918 test ! -s conftest.err
24919 }; then
24920 ac_header_preproc=yes
24921 else
24922 $as_echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24925 ac_header_preproc=no
24928 rm -f conftest.err conftest.$ac_ext
24929 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24930 $as_echo "$ac_header_preproc" >&6; }
24932 # So? What about this header?
24933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24934 yes:no: )
24935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24936 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24938 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24939 ac_header_preproc=yes
24941 no:yes:* )
24942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24943 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24945 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24947 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24949 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24953 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24956 esac
24957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24958 $as_echo_n "checking for $ac_header... " >&6; }
24959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24960 $as_echo_n "(cached) " >&6
24961 else
24962 eval "$as_ac_Header=\$ac_header_preproc"
24964 ac_res=`eval 'as_val=${'$as_ac_Header'}
24965 $as_echo "$as_val"'`
24966 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24967 $as_echo "$ac_res" >&6; }
24970 if test `eval 'as_val=${'$as_ac_Header'}
24971 $as_echo "$as_val"'` = yes; then
24972 cat >>confdefs.h <<_ACEOF
24973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24974 _ACEOF
24978 done
24982 for ac_func in fork vfork
24984 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24985 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24986 $as_echo_n "checking for $ac_func... " >&6; }
24987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24988 $as_echo_n "(cached) " >&6
24989 else
24990 cat >conftest.$ac_ext <<_ACEOF
24991 /* confdefs.h. */
24992 _ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24998 #define $ac_func innocuous_$ac_func
25000 /* System header to define __stub macros and hopefully few prototypes,
25001 which can conflict with char $ac_func (); below.
25002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25003 <limits.h> exists even on freestanding compilers. */
25005 #ifdef __STDC__
25006 # include <limits.h>
25007 #else
25008 # include <assert.h>
25009 #endif
25011 #undef $ac_func
25013 /* Override any GCC internal prototype to avoid an error.
25014 Use char because int might match the return type of a GCC
25015 builtin and then its argument prototype would still apply. */
25016 #ifdef __cplusplus
25017 extern "C"
25018 #endif
25019 char $ac_func ();
25020 /* The GNU C library defines this for functions which it implements
25021 to always fail with ENOSYS. Some functions are actually named
25022 something starting with __ and the normal name is an alias. */
25023 #if defined __stub_$ac_func || defined __stub___$ac_func
25024 choke me
25025 #endif
25028 main ()
25030 return $ac_func ();
25032 return 0;
25034 _ACEOF
25035 rm -f conftest.$ac_objext conftest$ac_exeext
25036 if { (ac_try="$ac_link"
25037 case "(($ac_try" in
25038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039 *) ac_try_echo=$ac_try;;
25040 esac
25041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25042 $as_echo "$ac_try_echo") >&5
25043 (eval "$ac_link") 2>conftest.er1
25044 ac_status=$?
25045 grep -v '^ *+' conftest.er1 >conftest.err
25046 rm -f conftest.er1
25047 cat conftest.err >&5
25048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); } && {
25050 test -z "$ac_c_werror_flag" ||
25051 test ! -s conftest.err
25052 } && test -s conftest$ac_exeext && {
25053 test "$cross_compiling" = yes ||
25054 $as_test_x conftest$ac_exeext
25055 }; then
25056 eval "$as_ac_var=yes"
25057 else
25058 $as_echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25061 eval "$as_ac_var=no"
25064 rm -rf conftest.dSYM
25065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25066 conftest$ac_exeext conftest.$ac_ext
25068 ac_res=`eval 'as_val=${'$as_ac_var'}
25069 $as_echo "$as_val"'`
25070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25071 $as_echo "$ac_res" >&6; }
25072 if test `eval 'as_val=${'$as_ac_var'}
25073 $as_echo "$as_val"'` = yes; then
25074 cat >>confdefs.h <<_ACEOF
25075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25076 _ACEOF
25079 done
25081 if test "x$ac_cv_func_fork" = xyes; then
25082 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25083 $as_echo_n "checking for working fork... " >&6; }
25084 if test "${ac_cv_func_fork_works+set}" = set; then
25085 $as_echo_n "(cached) " >&6
25086 else
25087 if test "$cross_compiling" = yes; then
25088 ac_cv_func_fork_works=cross
25089 else
25090 cat >conftest.$ac_ext <<_ACEOF
25091 /* confdefs.h. */
25092 _ACEOF
25093 cat confdefs.h >>conftest.$ac_ext
25094 cat >>conftest.$ac_ext <<_ACEOF
25095 /* end confdefs.h. */
25096 $ac_includes_default
25098 main ()
25101 /* By Ruediger Kuhlmann. */
25102 return fork () < 0;
25105 return 0;
25107 _ACEOF
25108 rm -f conftest$ac_exeext
25109 if { (ac_try="$ac_link"
25110 case "(($ac_try" in
25111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112 *) ac_try_echo=$ac_try;;
25113 esac
25114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25115 $as_echo "$ac_try_echo") >&5
25116 (eval "$ac_link") 2>&5
25117 ac_status=$?
25118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25120 { (case "(($ac_try" in
25121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25123 esac
25124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25125 $as_echo "$ac_try_echo") >&5
25126 (eval "$ac_try") 2>&5
25127 ac_status=$?
25128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; }; then
25130 ac_cv_func_fork_works=yes
25131 else
25132 $as_echo "$as_me: program exited with status $ac_status" >&5
25133 $as_echo "$as_me: failed program was:" >&5
25134 sed 's/^/| /' conftest.$ac_ext >&5
25136 ( exit $ac_status )
25137 ac_cv_func_fork_works=no
25139 rm -rf conftest.dSYM
25140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25145 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25146 $as_echo "$ac_cv_func_fork_works" >&6; }
25148 else
25149 ac_cv_func_fork_works=$ac_cv_func_fork
25151 if test "x$ac_cv_func_fork_works" = xcross; then
25152 case $host in
25153 *-*-amigaos* | *-*-msdosdjgpp*)
25154 # Override, as these systems have only a dummy fork() stub
25155 ac_cv_func_fork_works=no
25158 ac_cv_func_fork_works=yes
25160 esac
25161 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25162 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25164 ac_cv_func_vfork_works=$ac_cv_func_vfork
25165 if test "x$ac_cv_func_vfork" = xyes; then
25166 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25167 $as_echo_n "checking for working vfork... " >&6; }
25168 if test "${ac_cv_func_vfork_works+set}" = set; then
25169 $as_echo_n "(cached) " >&6
25170 else
25171 if test "$cross_compiling" = yes; then
25172 ac_cv_func_vfork_works=cross
25173 else
25174 cat >conftest.$ac_ext <<_ACEOF
25175 /* confdefs.h. */
25176 _ACEOF
25177 cat confdefs.h >>conftest.$ac_ext
25178 cat >>conftest.$ac_ext <<_ACEOF
25179 /* end confdefs.h. */
25180 /* Thanks to Paul Eggert for this test. */
25181 $ac_includes_default
25182 #include <sys/wait.h>
25183 #ifdef HAVE_VFORK_H
25184 # include <vfork.h>
25185 #endif
25186 /* On some sparc systems, changes by the child to local and incoming
25187 argument registers are propagated back to the parent. The compiler
25188 is told about this with #include <vfork.h>, but some compilers
25189 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25190 static variable whose address is put into a register that is
25191 clobbered by the vfork. */
25192 static void
25193 #ifdef __cplusplus
25194 sparc_address_test (int arg)
25195 # else
25196 sparc_address_test (arg) int arg;
25197 #endif
25199 static pid_t child;
25200 if (!child) {
25201 child = vfork ();
25202 if (child < 0) {
25203 perror ("vfork");
25204 _exit(2);
25206 if (!child) {
25207 arg = getpid();
25208 write(-1, "", 0);
25209 _exit (arg);
25215 main ()
25217 pid_t parent = getpid ();
25218 pid_t child;
25220 sparc_address_test (0);
25222 child = vfork ();
25224 if (child == 0) {
25225 /* Here is another test for sparc vfork register problems. This
25226 test uses lots of local variables, at least as many local
25227 variables as main has allocated so far including compiler
25228 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25229 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25230 reuse the register of parent for one of the local variables,
25231 since it will think that parent can't possibly be used any more
25232 in this routine. Assigning to the local variable will thus
25233 munge parent in the parent process. */
25234 pid_t
25235 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25236 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25237 /* Convince the compiler that p..p7 are live; otherwise, it might
25238 use the same hardware register for all 8 local variables. */
25239 if (p != p1 || p != p2 || p != p3 || p != p4
25240 || p != p5 || p != p6 || p != p7)
25241 _exit(1);
25243 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25244 from child file descriptors. If the child closes a descriptor
25245 before it execs or exits, this munges the parent's descriptor
25246 as well. Test for this by closing stdout in the child. */
25247 _exit(close(fileno(stdout)) != 0);
25248 } else {
25249 int status;
25250 struct stat st;
25252 while (wait(&status) != child)
25254 return (
25255 /* Was there some problem with vforking? */
25256 child < 0
25258 /* Did the child fail? (This shouldn't happen.) */
25259 || status
25261 /* Did the vfork/compiler bug occur? */
25262 || parent != getpid()
25264 /* Did the file descriptor bug occur? */
25265 || fstat(fileno(stdout), &st) != 0
25269 _ACEOF
25270 rm -f conftest$ac_exeext
25271 if { (ac_try="$ac_link"
25272 case "(($ac_try" in
25273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25274 *) ac_try_echo=$ac_try;;
25275 esac
25276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25277 $as_echo "$ac_try_echo") >&5
25278 (eval "$ac_link") 2>&5
25279 ac_status=$?
25280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25282 { (case "(($ac_try" in
25283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25284 *) ac_try_echo=$ac_try;;
25285 esac
25286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25287 $as_echo "$ac_try_echo") >&5
25288 (eval "$ac_try") 2>&5
25289 ac_status=$?
25290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); }; }; then
25292 ac_cv_func_vfork_works=yes
25293 else
25294 $as_echo "$as_me: program exited with status $ac_status" >&5
25295 $as_echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25298 ( exit $ac_status )
25299 ac_cv_func_vfork_works=no
25301 rm -rf conftest.dSYM
25302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25307 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25308 $as_echo "$ac_cv_func_vfork_works" >&6; }
25311 if test "x$ac_cv_func_fork_works" = xcross; then
25312 ac_cv_func_vfork_works=$ac_cv_func_vfork
25313 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25314 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25317 if test "x$ac_cv_func_vfork_works" = xyes; then
25319 cat >>confdefs.h <<\_ACEOF
25320 #define HAVE_WORKING_VFORK 1
25321 _ACEOF
25323 else
25325 cat >>confdefs.h <<\_ACEOF
25326 #define vfork fork
25327 _ACEOF
25330 if test "x$ac_cv_func_fork_works" = xyes; then
25332 cat >>confdefs.h <<\_ACEOF
25333 #define HAVE_WORKING_FORK 1
25334 _ACEOF
25339 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25340 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25341 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25342 $as_echo_n "(cached) " >&6
25343 else
25344 cat >conftest.$ac_ext <<_ACEOF
25345 /* confdefs.h. */
25346 _ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h. */
25350 #include <langinfo.h>
25352 main ()
25354 char* cs = nl_langinfo(CODESET);
25356 return 0;
25358 _ACEOF
25359 rm -f conftest.$ac_objext conftest$ac_exeext
25360 if { (ac_try="$ac_link"
25361 case "(($ac_try" in
25362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25363 *) ac_try_echo=$ac_try;;
25364 esac
25365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25366 $as_echo "$ac_try_echo") >&5
25367 (eval "$ac_link") 2>conftest.er1
25368 ac_status=$?
25369 grep -v '^ *+' conftest.er1 >conftest.err
25370 rm -f conftest.er1
25371 cat conftest.err >&5
25372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); } && {
25374 test -z "$ac_c_werror_flag" ||
25375 test ! -s conftest.err
25376 } && test -s conftest$ac_exeext && {
25377 test "$cross_compiling" = yes ||
25378 $as_test_x conftest$ac_exeext
25379 }; then
25380 emacs_cv_langinfo_codeset=yes
25381 else
25382 $as_echo "$as_me: failed program was:" >&5
25383 sed 's/^/| /' conftest.$ac_ext >&5
25385 emacs_cv_langinfo_codeset=no
25388 rm -rf conftest.dSYM
25389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25390 conftest$ac_exeext conftest.$ac_ext
25393 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25394 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25395 if test $emacs_cv_langinfo_codeset = yes; then
25397 cat >>confdefs.h <<\_ACEOF
25398 #define HAVE_LANGINFO_CODESET 1
25399 _ACEOF
25403 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25404 $as_echo_n "checking for size_t... " >&6; }
25405 if test "${ac_cv_type_size_t+set}" = set; then
25406 $as_echo_n "(cached) " >&6
25407 else
25408 ac_cv_type_size_t=no
25409 cat >conftest.$ac_ext <<_ACEOF
25410 /* confdefs.h. */
25411 _ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h. */
25415 $ac_includes_default
25417 main ()
25419 if (sizeof (size_t))
25420 return 0;
25422 return 0;
25424 _ACEOF
25425 rm -f conftest.$ac_objext
25426 if { (ac_try="$ac_compile"
25427 case "(($ac_try" in
25428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25429 *) ac_try_echo=$ac_try;;
25430 esac
25431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25432 $as_echo "$ac_try_echo") >&5
25433 (eval "$ac_compile") 2>conftest.er1
25434 ac_status=$?
25435 grep -v '^ *+' conftest.er1 >conftest.err
25436 rm -f conftest.er1
25437 cat conftest.err >&5
25438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); } && {
25440 test -z "$ac_c_werror_flag" ||
25441 test ! -s conftest.err
25442 } && test -s conftest.$ac_objext; then
25443 cat >conftest.$ac_ext <<_ACEOF
25444 /* confdefs.h. */
25445 _ACEOF
25446 cat confdefs.h >>conftest.$ac_ext
25447 cat >>conftest.$ac_ext <<_ACEOF
25448 /* end confdefs.h. */
25449 $ac_includes_default
25451 main ()
25453 if (sizeof ((size_t)))
25454 return 0;
25456 return 0;
25458 _ACEOF
25459 rm -f conftest.$ac_objext
25460 if { (ac_try="$ac_compile"
25461 case "(($ac_try" in
25462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25463 *) ac_try_echo=$ac_try;;
25464 esac
25465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25466 $as_echo "$ac_try_echo") >&5
25467 (eval "$ac_compile") 2>conftest.er1
25468 ac_status=$?
25469 grep -v '^ *+' conftest.er1 >conftest.err
25470 rm -f conftest.er1
25471 cat conftest.err >&5
25472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); } && {
25474 test -z "$ac_c_werror_flag" ||
25475 test ! -s conftest.err
25476 } && test -s conftest.$ac_objext; then
25478 else
25479 $as_echo "$as_me: failed program was:" >&5
25480 sed 's/^/| /' conftest.$ac_ext >&5
25482 ac_cv_type_size_t=yes
25485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25486 else
25487 $as_echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25495 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25496 $as_echo "$ac_cv_type_size_t" >&6; }
25497 if test $ac_cv_type_size_t = yes; then
25499 cat >>confdefs.h <<_ACEOF
25500 #define HAVE_SIZE_T 1
25501 _ACEOF
25507 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25508 $as_echo_n "checking for mbstate_t... " >&6; }
25509 if test "${ac_cv_type_mbstate_t+set}" = set; then
25510 $as_echo_n "(cached) " >&6
25511 else
25512 cat >conftest.$ac_ext <<_ACEOF
25513 /* confdefs.h. */
25514 _ACEOF
25515 cat confdefs.h >>conftest.$ac_ext
25516 cat >>conftest.$ac_ext <<_ACEOF
25517 /* end confdefs.h. */
25518 $ac_includes_default
25519 # include <wchar.h>
25521 main ()
25523 mbstate_t x; return sizeof x;
25525 return 0;
25527 _ACEOF
25528 rm -f conftest.$ac_objext
25529 if { (ac_try="$ac_compile"
25530 case "(($ac_try" in
25531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532 *) ac_try_echo=$ac_try;;
25533 esac
25534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25535 $as_echo "$ac_try_echo") >&5
25536 (eval "$ac_compile") 2>conftest.er1
25537 ac_status=$?
25538 grep -v '^ *+' conftest.er1 >conftest.err
25539 rm -f conftest.er1
25540 cat conftest.err >&5
25541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); } && {
25543 test -z "$ac_c_werror_flag" ||
25544 test ! -s conftest.err
25545 } && test -s conftest.$ac_objext; then
25546 ac_cv_type_mbstate_t=yes
25547 else
25548 $as_echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25551 ac_cv_type_mbstate_t=no
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25556 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25557 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25558 if test $ac_cv_type_mbstate_t = yes; then
25560 cat >>confdefs.h <<\_ACEOF
25561 #define HAVE_MBSTATE_T 1
25562 _ACEOF
25564 else
25566 cat >>confdefs.h <<\_ACEOF
25567 #define mbstate_t int
25568 _ACEOF
25572 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25573 $as_echo_n "checking for C restrict keyword... " >&6; }
25574 if test "${emacs_cv_c_restrict+set}" = set; then
25575 $as_echo_n "(cached) " >&6
25576 else
25577 cat >conftest.$ac_ext <<_ACEOF
25578 /* confdefs.h. */
25579 _ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h. */
25583 void fred (int *restrict x);
25585 main ()
25589 return 0;
25591 _ACEOF
25592 rm -f conftest.$ac_objext
25593 if { (ac_try="$ac_compile"
25594 case "(($ac_try" in
25595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25596 *) ac_try_echo=$ac_try;;
25597 esac
25598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25599 $as_echo "$ac_try_echo") >&5
25600 (eval "$ac_compile") 2>conftest.er1
25601 ac_status=$?
25602 grep -v '^ *+' conftest.er1 >conftest.err
25603 rm -f conftest.er1
25604 cat conftest.err >&5
25605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606 (exit $ac_status); } && {
25607 test -z "$ac_c_werror_flag" ||
25608 test ! -s conftest.err
25609 } && test -s conftest.$ac_objext; then
25610 emacs_cv_c_restrict=yes
25611 else
25612 $as_echo "$as_me: failed program was:" >&5
25613 sed 's/^/| /' conftest.$ac_ext >&5
25615 cat >conftest.$ac_ext <<_ACEOF
25616 /* confdefs.h. */
25617 _ACEOF
25618 cat confdefs.h >>conftest.$ac_ext
25619 cat >>conftest.$ac_ext <<_ACEOF
25620 /* end confdefs.h. */
25621 void fred (int *__restrict x);
25623 main ()
25627 return 0;
25629 _ACEOF
25630 rm -f conftest.$ac_objext
25631 if { (ac_try="$ac_compile"
25632 case "(($ac_try" in
25633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634 *) ac_try_echo=$ac_try;;
25635 esac
25636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25637 $as_echo "$ac_try_echo") >&5
25638 (eval "$ac_compile") 2>conftest.er1
25639 ac_status=$?
25640 grep -v '^ *+' conftest.er1 >conftest.err
25641 rm -f conftest.er1
25642 cat conftest.err >&5
25643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); } && {
25645 test -z "$ac_c_werror_flag" ||
25646 test ! -s conftest.err
25647 } && test -s conftest.$ac_objext; then
25648 emacs_cv_c_restrict=__restrict
25649 else
25650 $as_echo "$as_me: failed program was:" >&5
25651 sed 's/^/| /' conftest.$ac_ext >&5
25653 emacs_cv_c_restrict=no
25656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25662 $as_echo "$emacs_cv_c_restrict" >&6; }
25663 case "$emacs_cv_c_restrict" in
25664 yes) emacs_restrict=restrict;;
25665 no) emacs_restrict="";;
25666 *) emacs_restrict="$emacs_cv_c_restrict";;
25667 esac
25668 if test "$emacs_restrict" != __restrict; then
25670 cat >>confdefs.h <<_ACEOF
25671 #define __restrict $emacs_restrict
25672 _ACEOF
25676 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25677 $as_echo_n "checking for C restricted array declarations... " >&6; }
25678 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25679 $as_echo_n "(cached) " >&6
25680 else
25681 cat >conftest.$ac_ext <<_ACEOF
25682 /* confdefs.h. */
25683 _ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 void fred (int x[__restrict]);
25689 main ()
25693 return 0;
25695 _ACEOF
25696 rm -f conftest.$ac_objext
25697 if { (ac_try="$ac_compile"
25698 case "(($ac_try" in
25699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700 *) ac_try_echo=$ac_try;;
25701 esac
25702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25703 $as_echo "$ac_try_echo") >&5
25704 (eval "$ac_compile") 2>conftest.er1
25705 ac_status=$?
25706 grep -v '^ *+' conftest.er1 >conftest.err
25707 rm -f conftest.er1
25708 cat conftest.err >&5
25709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); } && {
25711 test -z "$ac_c_werror_flag" ||
25712 test ! -s conftest.err
25713 } && test -s conftest.$ac_objext; then
25714 emacs_cv_c_restrict_arr=yes
25715 else
25716 $as_echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25719 emacs_cv_c_restrict_arr=no
25722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25724 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25725 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25726 if test "$emacs_cv_c_restrict_arr" = yes; then
25728 cat >>confdefs.h <<\_ACEOF
25729 #define __restrict_arr __restrict
25730 _ACEOF
25736 # Set up the CFLAGS for real compilation, so we can substitute it.
25737 CFLAGS="$REAL_CFLAGS"
25738 CPPFLAGS="$REAL_CPPFLAGS"
25740 #### Find out which version of Emacs this is.
25741 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25742 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25743 if test x"${version}" = x; then
25744 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25745 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25746 { (exit 1); exit 1; }; }
25748 if test x"${version}" != x"$PACKAGE_VERSION"; then
25749 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25750 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25753 ### Specify what sort of things we'll be editing into Makefile and config.h.
25754 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25799 cat >>confdefs.h <<_ACEOF
25800 #define EMACS_CONFIGURATION "${canonical}"
25801 _ACEOF
25804 cat >>confdefs.h <<_ACEOF
25805 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25806 _ACEOF
25809 cat >>confdefs.h <<_ACEOF
25810 #define config_machfile "${machfile}"
25811 _ACEOF
25814 cat >>confdefs.h <<_ACEOF
25815 #define config_opsysfile "${opsysfile}"
25816 _ACEOF
25819 cat >>confdefs.h <<_ACEOF
25820 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25821 _ACEOF
25824 cat >>confdefs.h <<_ACEOF
25825 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25826 _ACEOF
25829 cat >>confdefs.h <<_ACEOF
25830 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25831 _ACEOF
25834 cat >>confdefs.h <<_ACEOF
25835 #define UNEXEC_SRC ${UNEXEC_SRC}
25836 _ACEOF
25839 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25841 cat >>confdefs.h <<\_ACEOF
25842 #define HAVE_X_WINDOWS 1
25843 _ACEOF
25846 if test "${USE_X_TOOLKIT}" != "none" ; then
25848 cat >>confdefs.h <<\_ACEOF
25849 #define USE_X_TOOLKIT 1
25850 _ACEOF
25852 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25854 cat >>confdefs.h <<\_ACEOF
25855 #define USE_LUCID 1
25856 _ACEOF
25858 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25860 cat >>confdefs.h <<\_ACEOF
25861 #define USE_MOTIF 1
25862 _ACEOF
25866 if test "${HAVE_X11}" = "yes" ; then
25868 cat >>confdefs.h <<\_ACEOF
25869 #define HAVE_X11 1
25870 _ACEOF
25873 if test "${HAVE_MENUS}" = "yes" ; then
25875 cat >>confdefs.h <<\_ACEOF
25876 #define HAVE_MENUS 1
25877 _ACEOF
25880 if test "${GNU_MALLOC}" = "yes" ; then
25882 cat >>confdefs.h <<\_ACEOF
25883 #define GNU_MALLOC 1
25884 _ACEOF
25887 if test "${REL_ALLOC}" = "yes" ; then
25889 cat >>confdefs.h <<\_ACEOF
25890 #define REL_ALLOC 1
25891 _ACEOF
25900 #### Report on what we decided to do.
25901 #### Report GTK as a toolkit, even if it doesn't use Xt.
25902 #### It makes printing result more understandable as using GTK sets
25903 #### toolkit_scroll_bars to yes by default.
25904 if test "${HAVE_GTK}" = "yes"; then
25905 USE_X_TOOLKIT=GTK
25908 echo "
25909 Configured for \`${canonical}'.
25911 Where should the build process find the source code? ${srcdir}
25912 What operating system and machine description files should Emacs use?
25913 \`${opsysfile}' and \`${machfile}'
25914 What compiler should emacs be built with? ${CC} ${CFLAGS}
25915 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25916 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25917 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25918 What window system should Emacs use? ${window_system}
25919 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25921 if test -n "${x_includes}"; then
25922 echo " Where do we find X Windows header files? ${x_includes}"
25923 else
25924 echo " Where do we find X Windows header files? Standard dirs"
25926 if test -n "${x_libraries}"; then
25927 echo " Where do we find X Windows libraries? ${x_libraries}"
25928 else
25929 echo " Where do we find X Windows libraries? Standard dirs"
25932 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25933 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25934 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25935 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25936 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25937 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25938 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25939 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25940 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25941 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25943 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25944 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25945 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25946 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25948 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25949 echo
25951 if test $USE_XASSERTS = yes; then
25952 echo " Compiling with asserts turned on."
25953 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25956 echo
25958 if test "$HAVE_NS" = "yes"; then
25959 echo
25960 echo "You must run \"make install\" in order to test the built application.
25961 The installed application will go to nextstep/Emacs.app and can be
25962 run or moved from there."
25963 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25964 echo "The application will be fully self-contained."
25965 else
25966 echo "The lisp resources for the application will be installed under ${prefix}.
25967 You may need to run \"make install\" with sudo. The application will fail
25968 to run if these resources are not installed."
25970 echo
25973 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25974 echo "D-Bus integration has been tested for GNU/Linux only."
25975 echo
25979 # Remove any trailing slashes in these variables.
25980 test "${prefix}" != NONE &&
25981 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25982 test "${exec_prefix}" != NONE &&
25983 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25985 # Now get this: Some word that is part of the ${srcdir} directory name
25986 # or the ${configuration} value might, just might, happen to be an
25987 # identifier like `sun4' or `i386' or something, and be predefined by
25988 # the C preprocessor to some helpful value like 1, or maybe the empty
25989 # string. Needless to say consequent macro substitutions are less
25990 # than conducive to the makefile finding the correct directory.
25991 cpp_undefs="`echo $srcdir $configuration $canonical |
25992 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25993 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25995 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25996 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25997 ## from Makefile.c can correctly provide the arg `-traditional' to the
25998 ## C preprocessor.
26000 cat >conftest.$ac_ext <<_ACEOF
26001 /* confdefs.h. */
26002 _ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h. */
26006 yes..yes
26007 _ACEOF
26008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26009 $EGREP "yes..yes" >/dev/null 2>&1; then
26010 CPP_NEED_TRADITIONAL=no
26011 else
26012 CPP_NEED_TRADITIONAL=yes
26014 rm -f conftest*
26017 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"
26019 ac_config_commands="$ac_config_commands default"
26021 cat >confcache <<\_ACEOF
26022 # This file is a shell script that caches the results of configure
26023 # tests run on this system so they can be shared between configure
26024 # scripts and configure runs, see configure's option --config-cache.
26025 # It is not useful on other systems. If it contains results you don't
26026 # want to keep, you may remove or edit it.
26028 # config.status only pays attention to the cache file if you give it
26029 # the --recheck option to rerun configure.
26031 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26032 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26033 # following values.
26035 _ACEOF
26037 # The following way of writing the cache mishandles newlines in values,
26038 # but we know of no workaround that is simple, portable, and efficient.
26039 # So, we kill variables containing newlines.
26040 # Ultrix sh set writes to stderr and can't be redirected directly,
26041 # and sets the high bit in the cache file unless we assign to the vars.
26043 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26044 eval ac_val=\$$ac_var
26045 case $ac_val in #(
26046 *${as_nl}*)
26047 case $ac_var in #(
26048 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26049 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26050 esac
26051 case $ac_var in #(
26052 _ | IFS | as_nl) ;; #(
26053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26054 *) $as_unset $ac_var ;;
26055 esac ;;
26056 esac
26057 done
26059 (set) 2>&1 |
26060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26061 *${as_nl}ac_space=\ *)
26062 # `set' does not quote correctly, so add quotes (double-quote
26063 # substitution turns \\\\ into \\, and sed turns \\ into \).
26064 sed -n \
26065 "s/'/'\\\\''/g;
26066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26067 ;; #(
26069 # `set' quotes correctly as required by POSIX, so do not add quotes.
26070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26072 esac |
26073 sort
26075 sed '
26076 /^ac_cv_env_/b end
26077 t clear
26078 :clear
26079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26080 t end
26081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26082 :end' >>confcache
26083 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26084 if test -w "$cache_file"; then
26085 test "x$cache_file" != "x/dev/null" &&
26086 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26087 $as_echo "$as_me: updating cache $cache_file" >&6;}
26088 cat confcache >$cache_file
26089 else
26090 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26091 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26094 rm -f confcache
26096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26097 # Let make expand exec_prefix.
26098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26100 DEFS=-DHAVE_CONFIG_H
26102 ac_libobjs=
26103 ac_ltlibobjs=
26104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26105 # 1. Remove the extension, and $U if already installed.
26106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26107 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26109 # will be set to the directory where LIBOBJS objects are built.
26110 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26111 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26112 done
26113 LIBOBJS=$ac_libobjs
26115 LTLIBOBJS=$ac_ltlibobjs
26119 : ${CONFIG_STATUS=./config.status}
26120 ac_write_fail=0
26121 ac_clean_files_save=$ac_clean_files
26122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26123 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26125 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26126 #! $SHELL
26127 # Generated by $as_me.
26128 # Run this file to recreate the current configuration.
26129 # Compiler output produced by configure, useful for debugging
26130 # configure, is in config.log if it exists.
26132 debug=false
26133 ac_cs_recheck=false
26134 ac_cs_silent=false
26135 SHELL=\${CONFIG_SHELL-$SHELL}
26136 _ACEOF
26138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26139 ## --------------------- ##
26140 ## M4sh Initialization. ##
26141 ## --------------------- ##
26143 # Be more Bourne compatible
26144 DUALCASE=1; export DUALCASE # for MKS sh
26145 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26146 emulate sh
26147 NULLCMD=:
26148 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26149 # is contrary to our usage. Disable this feature.
26150 alias -g '${1+"$@"}'='"$@"'
26151 setopt NO_GLOB_SUBST
26152 else
26153 case `(set -o) 2>/dev/null` in
26154 *posix*) set -o posix ;;
26155 esac
26162 # PATH needs CR
26163 # Avoid depending upon Character Ranges.
26164 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26165 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26166 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26167 as_cr_digits='0123456789'
26168 as_cr_alnum=$as_cr_Letters$as_cr_digits
26170 as_nl='
26172 export as_nl
26173 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26174 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26175 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26176 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26177 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26178 as_echo='printf %s\n'
26179 as_echo_n='printf %s'
26180 else
26181 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26182 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26183 as_echo_n='/usr/ucb/echo -n'
26184 else
26185 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26186 as_echo_n_body='eval
26187 arg=$1;
26188 case $arg in
26189 *"$as_nl"*)
26190 expr "X$arg" : "X\\(.*\\)$as_nl";
26191 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26192 esac;
26193 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26195 export as_echo_n_body
26196 as_echo_n='sh -c $as_echo_n_body as_echo'
26198 export as_echo_body
26199 as_echo='sh -c $as_echo_body as_echo'
26202 # The user is always right.
26203 if test "${PATH_SEPARATOR+set}" != set; then
26204 PATH_SEPARATOR=:
26205 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26206 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26207 PATH_SEPARATOR=';'
26211 # Support unset when possible.
26212 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26213 as_unset=unset
26214 else
26215 as_unset=false
26219 # IFS
26220 # We need space, tab and new line, in precisely that order. Quoting is
26221 # there to prevent editors from complaining about space-tab.
26222 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26223 # splitting by setting IFS to empty value.)
26224 IFS=" "" $as_nl"
26226 # Find who we are. Look in the path if we contain no directory separator.
26227 case $0 in
26228 *[\\/]* ) as_myself=$0 ;;
26229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26230 for as_dir in $PATH
26232 IFS=$as_save_IFS
26233 test -z "$as_dir" && as_dir=.
26234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26235 done
26236 IFS=$as_save_IFS
26239 esac
26240 # We did not find ourselves, most probably we were run as `sh COMMAND'
26241 # in which case we are not to be found in the path.
26242 if test "x$as_myself" = x; then
26243 as_myself=$0
26245 if test ! -f "$as_myself"; then
26246 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26247 { (exit 1); exit 1; }
26250 # Work around bugs in pre-3.0 UWIN ksh.
26251 for as_var in ENV MAIL MAILPATH
26252 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26253 done
26254 PS1='$ '
26255 PS2='> '
26256 PS4='+ '
26258 # NLS nuisances.
26259 LC_ALL=C
26260 export LC_ALL
26261 LANGUAGE=C
26262 export LANGUAGE
26264 # Required to use basename.
26265 if expr a : '\(a\)' >/dev/null 2>&1 &&
26266 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26267 as_expr=expr
26268 else
26269 as_expr=false
26272 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26273 as_basename=basename
26274 else
26275 as_basename=false
26279 # Name of the executable.
26280 as_me=`$as_basename -- "$0" ||
26281 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26282 X"$0" : 'X\(//\)$' \| \
26283 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26284 $as_echo X/"$0" |
26285 sed '/^.*\/\([^/][^/]*\)\/*$/{
26286 s//\1/
26289 /^X\/\(\/\/\)$/{
26290 s//\1/
26293 /^X\/\(\/\).*/{
26294 s//\1/
26297 s/.*/./; q'`
26299 # CDPATH.
26300 $as_unset CDPATH
26304 as_lineno_1=$LINENO
26305 as_lineno_2=$LINENO
26306 test "x$as_lineno_1" != "x$as_lineno_2" &&
26307 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26309 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26310 # uniformly replaced by the line number. The first 'sed' inserts a
26311 # line-number line after each line using $LINENO; the second 'sed'
26312 # does the real work. The second script uses 'N' to pair each
26313 # line-number line with the line containing $LINENO, and appends
26314 # trailing '-' during substitution so that $LINENO is not a special
26315 # case at line end.
26316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26317 # scripts with optimization help from Paolo Bonzini. Blame Lee
26318 # E. McMahon (1931-1989) for sed's syntax. :-)
26319 sed -n '
26321 /[$]LINENO/=
26322 ' <$as_myself |
26323 sed '
26324 s/[$]LINENO.*/&-/
26325 t lineno
26327 :lineno
26329 :loop
26330 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26331 t loop
26332 s/-\n.*//
26333 ' >$as_me.lineno &&
26334 chmod +x "$as_me.lineno" ||
26335 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26336 { (exit 1); exit 1; }; }
26338 # Don't try to exec as it changes $[0], causing all sort of problems
26339 # (the dirname of $[0] is not the place where we might find the
26340 # original and so on. Autoconf is especially sensitive to this).
26341 . "./$as_me.lineno"
26342 # Exit status is that of the last command.
26343 exit
26347 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26348 as_dirname=dirname
26349 else
26350 as_dirname=false
26353 ECHO_C= ECHO_N= ECHO_T=
26354 case `echo -n x` in
26355 -n*)
26356 case `echo 'x\c'` in
26357 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26358 *) ECHO_C='\c';;
26359 esac;;
26361 ECHO_N='-n';;
26362 esac
26363 if expr a : '\(a\)' >/dev/null 2>&1 &&
26364 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26365 as_expr=expr
26366 else
26367 as_expr=false
26370 rm -f conf$$ conf$$.exe conf$$.file
26371 if test -d conf$$.dir; then
26372 rm -f conf$$.dir/conf$$.file
26373 else
26374 rm -f conf$$.dir
26375 mkdir conf$$.dir 2>/dev/null
26377 if (echo >conf$$.file) 2>/dev/null; then
26378 if ln -s conf$$.file conf$$ 2>/dev/null; then
26379 as_ln_s='ln -s'
26380 # ... but there are two gotchas:
26381 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26382 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26383 # In both cases, we have to default to `cp -p'.
26384 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26385 as_ln_s='cp -p'
26386 elif ln conf$$.file conf$$ 2>/dev/null; then
26387 as_ln_s=ln
26388 else
26389 as_ln_s='cp -p'
26391 else
26392 as_ln_s='cp -p'
26394 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26395 rmdir conf$$.dir 2>/dev/null
26397 if mkdir -p . 2>/dev/null; then
26398 as_mkdir_p=:
26399 else
26400 test -d ./-p && rmdir ./-p
26401 as_mkdir_p=false
26404 if test -x / >/dev/null 2>&1; then
26405 as_test_x='test -x'
26406 else
26407 if ls -dL / >/dev/null 2>&1; then
26408 as_ls_L_option=L
26409 else
26410 as_ls_L_option=
26412 as_test_x='
26413 eval sh -c '\''
26414 if test -d "$1"; then
26415 test -d "$1/.";
26416 else
26417 case $1 in
26418 -*)set "./$1";;
26419 esac;
26420 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26421 ???[sx]*):;;*)false;;esac;fi
26422 '\'' sh
26425 as_executable_p=$as_test_x
26427 # Sed expression to map a string onto a valid CPP name.
26428 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26430 # Sed expression to map a string onto a valid variable name.
26431 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26434 exec 6>&1
26436 # Save the log message, to keep $[0] and so on meaningful, and to
26437 # report actual input values of CONFIG_FILES etc. instead of their
26438 # values after options handling.
26439 ac_log="
26440 This file was extended by emacs $as_me 24.0.50, which was
26441 generated by GNU Autoconf 2.62. Invocation command line was
26443 CONFIG_FILES = $CONFIG_FILES
26444 CONFIG_HEADERS = $CONFIG_HEADERS
26445 CONFIG_LINKS = $CONFIG_LINKS
26446 CONFIG_COMMANDS = $CONFIG_COMMANDS
26447 $ $0 $@
26449 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26452 _ACEOF
26454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26455 # Files that config.status was made for.
26456 config_files="$ac_config_files"
26457 config_headers="$ac_config_headers"
26458 config_commands="$ac_config_commands"
26460 _ACEOF
26462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26463 ac_cs_usage="\
26464 \`$as_me' instantiates files from templates according to the
26465 current configuration.
26467 Usage: $0 [OPTIONS] [FILE]...
26469 -h, --help print this help, then exit
26470 -V, --version print version number and configuration settings, then exit
26471 -q, --quiet do not print progress messages
26472 -d, --debug don't remove temporary files
26473 --recheck update $as_me by reconfiguring in the same conditions
26474 --file=FILE[:TEMPLATE]
26475 instantiate the configuration file FILE
26476 --header=FILE[:TEMPLATE]
26477 instantiate the configuration header FILE
26479 Configuration files:
26480 $config_files
26482 Configuration headers:
26483 $config_headers
26485 Configuration commands:
26486 $config_commands
26488 Report bugs to <bug-autoconf@gnu.org>."
26490 _ACEOF
26491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26492 ac_cs_version="\\
26493 emacs config.status 24.0.50
26494 configured by $0, generated by GNU Autoconf 2.62,
26495 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26497 Copyright (C) 2008 Free Software Foundation, Inc.
26498 This config.status script is free software; the Free Software Foundation
26499 gives unlimited permission to copy, distribute and modify it."
26501 ac_pwd='$ac_pwd'
26502 srcdir='$srcdir'
26503 INSTALL='$INSTALL'
26504 test -n "\$AWK" || AWK=awk
26505 _ACEOF
26507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26508 # The default lists apply if the user does not specify any file.
26509 ac_need_defaults=:
26510 while test $# != 0
26512 case $1 in
26513 --*=*)
26514 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26515 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26516 ac_shift=:
26519 ac_option=$1
26520 ac_optarg=$2
26521 ac_shift=shift
26523 esac
26525 case $ac_option in
26526 # Handling of the options.
26527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26528 ac_cs_recheck=: ;;
26529 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26530 $as_echo "$ac_cs_version"; exit ;;
26531 --debug | --debu | --deb | --de | --d | -d )
26532 debug=: ;;
26533 --file | --fil | --fi | --f )
26534 $ac_shift
26535 case $ac_optarg in
26536 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26537 esac
26538 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26539 ac_need_defaults=false;;
26540 --header | --heade | --head | --hea )
26541 $ac_shift
26542 case $ac_optarg in
26543 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26544 esac
26545 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26546 ac_need_defaults=false;;
26547 --he | --h)
26548 # Conflict between --help and --header
26549 { $as_echo "$as_me: error: ambiguous option: $1
26550 Try \`$0 --help' for more information." >&2
26551 { (exit 1); exit 1; }; };;
26552 --help | --hel | -h )
26553 $as_echo "$ac_cs_usage"; exit ;;
26554 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26555 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26556 ac_cs_silent=: ;;
26558 # This is an error.
26559 -*) { $as_echo "$as_me: error: unrecognized option: $1
26560 Try \`$0 --help' for more information." >&2
26561 { (exit 1); exit 1; }; } ;;
26563 *) ac_config_targets="$ac_config_targets $1"
26564 ac_need_defaults=false ;;
26566 esac
26567 shift
26568 done
26570 ac_configure_extra_args=
26572 if $ac_cs_silent; then
26573 exec 6>/dev/null
26574 ac_configure_extra_args="$ac_configure_extra_args --silent"
26577 _ACEOF
26578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26579 if \$ac_cs_recheck; then
26580 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26581 shift
26582 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26583 CONFIG_SHELL='$SHELL'
26584 export CONFIG_SHELL
26585 exec "\$@"
26588 _ACEOF
26589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26590 exec 5>>config.log
26592 echo
26593 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26594 ## Running $as_me. ##
26595 _ASBOX
26596 $as_echo "$ac_log"
26597 } >&5
26599 _ACEOF
26600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26602 # INIT-COMMANDS
26604 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26606 _ACEOF
26608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26610 # Handling of arguments.
26611 for ac_config_target in $ac_config_targets
26613 case $ac_config_target in
26614 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26615 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26616 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26617 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26618 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26619 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26620 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26621 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26622 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26623 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26624 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26625 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26626 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26628 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26629 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26630 { (exit 1); exit 1; }; };;
26631 esac
26632 done
26635 # If the user did not use the arguments to specify the items to instantiate,
26636 # then the envvar interface is used. Set only those that are not.
26637 # We use the long form for the default assignment because of an extremely
26638 # bizarre bug on SunOS 4.1.3.
26639 if $ac_need_defaults; then
26640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26642 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26645 # Have a temporary directory for convenience. Make it in the build tree
26646 # simply because there is no reason against having it here, and in addition,
26647 # creating and moving files from /tmp can sometimes cause problems.
26648 # Hook for its removal unless debugging.
26649 # Note that there is a small window in which the directory will not be cleaned:
26650 # after its creation but before its name has been assigned to `$tmp'.
26651 $debug ||
26653 tmp=
26654 trap 'exit_status=$?
26655 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26657 trap '{ (exit 1); exit 1; }' 1 2 13 15
26659 # Create a (secure) tmp directory for tmp files.
26662 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26663 test -n "$tmp" && test -d "$tmp"
26664 } ||
26666 tmp=./conf$$-$RANDOM
26667 (umask 077 && mkdir "$tmp")
26668 } ||
26670 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26671 { (exit 1); exit 1; }
26674 # Set up the scripts for CONFIG_FILES section.
26675 # No need to generate them if there are no CONFIG_FILES.
26676 # This happens for instance with `./config.status config.h'.
26677 if test -n "$CONFIG_FILES"; then
26680 ac_cr=' '
26681 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26682 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26683 ac_cs_awk_cr='\\r'
26684 else
26685 ac_cs_awk_cr=$ac_cr
26688 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26689 _ACEOF
26693 echo "cat >conf$$subs.awk <<_ACEOF" &&
26694 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26695 echo "_ACEOF"
26696 } >conf$$subs.sh ||
26697 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26698 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26699 { (exit 1); exit 1; }; }
26700 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26701 ac_delim='%!_!# '
26702 for ac_last_try in false false false false false :; do
26703 . ./conf$$subs.sh ||
26704 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26705 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26706 { (exit 1); exit 1; }; }
26708 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26709 break
26710 elif $ac_last_try; then
26711 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26712 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26713 { (exit 1); exit 1; }; }
26714 else
26715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26717 done
26718 rm -f conf$$subs.sh
26720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26721 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26722 _ACEOF
26723 sed -n '
26725 s/^/S["/; s/!.*/"]=/
26728 s/^[^!]*!//
26729 :repl
26730 t repl
26731 s/'"$ac_delim"'$//
26732 t delim
26735 s/\(.\{148\}\).*/\1/
26736 t more1
26737 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26740 b repl
26741 :more1
26742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26745 s/.\{148\}//
26746 t nl
26747 :delim
26749 s/\(.\{148\}\).*/\1/
26750 t more2
26751 s/["\\]/\\&/g; s/^/"/; s/$/"/
26754 :more2
26755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26758 s/.\{148\}//
26759 t delim
26760 ' <conf$$subs.awk | sed '
26761 /^[^""]/{
26763 s/\n//
26765 ' >>$CONFIG_STATUS || ac_write_fail=1
26766 rm -f conf$$subs.awk
26767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26768 _ACAWK
26769 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26770 for (key in S) S_is_set[key] = 1
26771 FS = "\a"
26775 line = $ 0
26776 nfields = split(line, field, "@")
26777 substed = 0
26778 len = length(field[1])
26779 for (i = 2; i < nfields; i++) {
26780 key = field[i]
26781 keylen = length(key)
26782 if (S_is_set[key]) {
26783 value = S[key]
26784 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26785 len += length(value) + length(field[++i])
26786 substed = 1
26787 } else
26788 len += 1 + keylen
26791 print line
26794 _ACAWK
26795 _ACEOF
26796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26797 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26798 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26799 else
26801 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26802 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26803 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26804 { (exit 1); exit 1; }; }
26805 _ACEOF
26807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26809 # trailing colons and then remove the whole line if VPATH becomes empty
26810 # (actually we leave an empty line to preserve line numbers).
26811 if test "x$srcdir" = x.; then
26812 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26813 s/:*\$(srcdir):*/:/
26814 s/:*\${srcdir}:*/:/
26815 s/:*@srcdir@:*/:/
26816 s/^\([^=]*=[ ]*\):*/\1/
26817 s/:*$//
26818 s/^[^=]*=[ ]*$//
26822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26823 fi # test -n "$CONFIG_FILES"
26825 # Set up the scripts for CONFIG_HEADERS section.
26826 # No need to generate them if there are no CONFIG_HEADERS.
26827 # This happens for instance with `./config.status Makefile'.
26828 if test -n "$CONFIG_HEADERS"; then
26829 cat >"$tmp/defines.awk" <<\_ACAWK ||
26830 BEGIN {
26831 _ACEOF
26833 # Transform confdefs.h into an awk script `defines.awk', embedded as
26834 # here-document in config.status, that substitutes the proper values into
26835 # config.h.in to produce config.h.
26837 # Create a delimiter string that does not exist in confdefs.h, to ease
26838 # handling of long lines.
26839 ac_delim='%!_!# '
26840 for ac_last_try in false false :; do
26841 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26842 if test -z "$ac_t"; then
26843 break
26844 elif $ac_last_try; then
26845 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26846 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26847 { (exit 1); exit 1; }; }
26848 else
26849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26851 done
26853 # For the awk script, D is an array of macro values keyed by name,
26854 # likewise P contains macro parameters if any. Preserve backslash
26855 # newline sequences.
26857 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26858 sed -n '
26859 s/.\{148\}/&'"$ac_delim"'/g
26860 t rset
26861 :rset
26862 s/^[ ]*#[ ]*define[ ][ ]*/ /
26863 t def
26865 :def
26866 s/\\$//
26867 t bsnl
26868 s/["\\]/\\&/g
26869 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26870 D["\1"]=" \3"/p
26871 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26873 :bsnl
26874 s/["\\]/\\&/g
26875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26876 D["\1"]=" \3\\\\\\n"\\/p
26877 t cont
26878 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26879 t cont
26881 :cont
26883 s/.\{148\}/&'"$ac_delim"'/g
26884 t clear
26885 :clear
26886 s/\\$//
26887 t bsnlc
26888 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26890 :bsnlc
26891 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26892 b cont
26893 ' <confdefs.h | sed '
26894 s/'"$ac_delim"'/"\\\
26895 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26898 for (key in D) D_is_set[key] = 1
26899 FS = "\a"
26901 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26902 line = \$ 0
26903 split(line, arg, " ")
26904 if (arg[1] == "#") {
26905 defundef = arg[2]
26906 mac1 = arg[3]
26907 } else {
26908 defundef = substr(arg[1], 2)
26909 mac1 = arg[2]
26911 split(mac1, mac2, "(") #)
26912 macro = mac2[1]
26913 if (D_is_set[macro]) {
26914 # Preserve the white space surrounding the "#".
26915 prefix = substr(line, 1, index(line, defundef) - 1)
26916 print prefix "define", macro P[macro] D[macro]
26917 next
26918 } else {
26919 # Replace #undef with comments. This is necessary, for example,
26920 # in the case of _POSIX_SOURCE, which is predefined and required
26921 # on some systems where configure will not decide to define it.
26922 if (defundef == "undef") {
26923 print "/*", line, "*/"
26924 next
26928 { print }
26929 _ACAWK
26930 _ACEOF
26931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26932 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26933 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26934 { (exit 1); exit 1; }; }
26935 fi # test -n "$CONFIG_HEADERS"
26938 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26939 shift
26940 for ac_tag
26942 case $ac_tag in
26943 :[FHLC]) ac_mode=$ac_tag; continue;;
26944 esac
26945 case $ac_mode$ac_tag in
26946 :[FHL]*:*);;
26947 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26948 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26949 { (exit 1); exit 1; }; };;
26950 :[FH]-) ac_tag=-:-;;
26951 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26952 esac
26953 ac_save_IFS=$IFS
26954 IFS=:
26955 set x $ac_tag
26956 IFS=$ac_save_IFS
26957 shift
26958 ac_file=$1
26959 shift
26961 case $ac_mode in
26962 :L) ac_source=$1;;
26963 :[FH])
26964 ac_file_inputs=
26965 for ac_f
26967 case $ac_f in
26968 -) ac_f="$tmp/stdin";;
26969 *) # Look for the file first in the build tree, then in the source tree
26970 # (if the path is not absolute). The absolute path cannot be DOS-style,
26971 # because $ac_f cannot contain `:'.
26972 test -f "$ac_f" ||
26973 case $ac_f in
26974 [\\/$]*) false;;
26975 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26976 esac ||
26977 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26978 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26979 { (exit 1); exit 1; }; };;
26980 esac
26981 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26982 ac_file_inputs="$ac_file_inputs '$ac_f'"
26983 done
26985 # Let's still pretend it is `configure' which instantiates (i.e., don't
26986 # use $as_me), people would be surprised to read:
26987 # /* config.h. Generated by config.status. */
26988 configure_input='Generated from '`
26989 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26990 `' by configure.'
26991 if test x"$ac_file" != x-; then
26992 configure_input="$ac_file. $configure_input"
26993 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26994 $as_echo "$as_me: creating $ac_file" >&6;}
26996 # Neutralize special characters interpreted by sed in replacement strings.
26997 case $configure_input in #(
26998 *\&* | *\|* | *\\* )
26999 ac_sed_conf_input=`$as_echo "$configure_input" |
27000 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27001 *) ac_sed_conf_input=$configure_input;;
27002 esac
27004 case $ac_tag in
27005 *:-:* | *:-) cat >"$tmp/stdin" \
27006 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27007 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27008 { (exit 1); exit 1; }; } ;;
27009 esac
27011 esac
27013 ac_dir=`$as_dirname -- "$ac_file" ||
27014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27015 X"$ac_file" : 'X\(//\)[^/]' \| \
27016 X"$ac_file" : 'X\(//\)$' \| \
27017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27018 $as_echo X"$ac_file" |
27019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27020 s//\1/
27023 /^X\(\/\/\)[^/].*/{
27024 s//\1/
27027 /^X\(\/\/\)$/{
27028 s//\1/
27031 /^X\(\/\).*/{
27032 s//\1/
27035 s/.*/./; q'`
27036 { as_dir="$ac_dir"
27037 case $as_dir in #(
27038 -*) as_dir=./$as_dir;;
27039 esac
27040 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27041 as_dirs=
27042 while :; do
27043 case $as_dir in #(
27044 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27045 *) as_qdir=$as_dir;;
27046 esac
27047 as_dirs="'$as_qdir' $as_dirs"
27048 as_dir=`$as_dirname -- "$as_dir" ||
27049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27050 X"$as_dir" : 'X\(//\)[^/]' \| \
27051 X"$as_dir" : 'X\(//\)$' \| \
27052 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27053 $as_echo X"$as_dir" |
27054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27055 s//\1/
27058 /^X\(\/\/\)[^/].*/{
27059 s//\1/
27062 /^X\(\/\/\)$/{
27063 s//\1/
27066 /^X\(\/\).*/{
27067 s//\1/
27070 s/.*/./; q'`
27071 test -d "$as_dir" && break
27072 done
27073 test -z "$as_dirs" || eval "mkdir $as_dirs"
27074 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27075 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27076 { (exit 1); exit 1; }; }; }
27077 ac_builddir=.
27079 case "$ac_dir" in
27080 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27082 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27083 # A ".." for each directory in $ac_dir_suffix.
27084 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27085 case $ac_top_builddir_sub in
27086 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27087 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27088 esac ;;
27089 esac
27090 ac_abs_top_builddir=$ac_pwd
27091 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27092 # for backward compatibility:
27093 ac_top_builddir=$ac_top_build_prefix
27095 case $srcdir in
27096 .) # We are building in place.
27097 ac_srcdir=.
27098 ac_top_srcdir=$ac_top_builddir_sub
27099 ac_abs_top_srcdir=$ac_pwd ;;
27100 [\\/]* | ?:[\\/]* ) # Absolute name.
27101 ac_srcdir=$srcdir$ac_dir_suffix;
27102 ac_top_srcdir=$srcdir
27103 ac_abs_top_srcdir=$srcdir ;;
27104 *) # Relative name.
27105 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27106 ac_top_srcdir=$ac_top_build_prefix$srcdir
27107 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27108 esac
27109 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27112 case $ac_mode in
27115 # CONFIG_FILE
27118 case $INSTALL in
27119 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27120 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27121 esac
27122 _ACEOF
27124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27125 # If the template does not know about datarootdir, expand it.
27126 # FIXME: This hack should be removed a few years after 2.60.
27127 ac_datarootdir_hack=; ac_datarootdir_seen=
27129 ac_sed_dataroot='
27130 /datarootdir/ {
27134 /@datadir@/p
27135 /@docdir@/p
27136 /@infodir@/p
27137 /@localedir@/p
27138 /@mandir@/p
27140 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27141 *datarootdir*) ac_datarootdir_seen=yes;;
27142 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27143 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27144 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27145 _ACEOF
27146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27147 ac_datarootdir_hack='
27148 s&@datadir@&$datadir&g
27149 s&@docdir@&$docdir&g
27150 s&@infodir@&$infodir&g
27151 s&@localedir@&$localedir&g
27152 s&@mandir@&$mandir&g
27153 s&\\\${datarootdir}&$datarootdir&g' ;;
27154 esac
27155 _ACEOF
27157 # Neutralize VPATH when `$srcdir' = `.'.
27158 # Shell code in configure.ac might set extrasub.
27159 # FIXME: do we really want to maintain this feature?
27160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27161 ac_sed_extra="$ac_vpsub
27162 $extrasub
27163 _ACEOF
27164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27167 s|@configure_input@|$ac_sed_conf_input|;t t
27168 s&@top_builddir@&$ac_top_builddir_sub&;t t
27169 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27170 s&@srcdir@&$ac_srcdir&;t t
27171 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27172 s&@top_srcdir@&$ac_top_srcdir&;t t
27173 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27174 s&@builddir@&$ac_builddir&;t t
27175 s&@abs_builddir@&$ac_abs_builddir&;t t
27176 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27177 s&@INSTALL@&$ac_INSTALL&;t t
27178 $ac_datarootdir_hack
27180 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27181 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27182 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27183 { (exit 1); exit 1; }; }
27185 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27186 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27187 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27188 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27189 which seems to be undefined. Please make sure it is defined." >&5
27190 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27191 which seems to be undefined. Please make sure it is defined." >&2;}
27193 rm -f "$tmp/stdin"
27194 case $ac_file in
27195 -) cat "$tmp/out" && rm -f "$tmp/out";;
27196 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27197 esac \
27198 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27199 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27200 { (exit 1); exit 1; }; }
27204 # CONFIG_HEADER
27206 if test x"$ac_file" != x-; then
27208 $as_echo "/* $configure_input */" \
27209 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27210 } >"$tmp/config.h" \
27211 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27212 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27213 { (exit 1); exit 1; }; }
27214 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27215 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27216 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27217 else
27218 rm -f "$ac_file"
27219 mv "$tmp/config.h" "$ac_file" \
27220 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27221 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27222 { (exit 1); exit 1; }; }
27224 else
27225 $as_echo "/* $configure_input */" \
27226 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27227 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27228 $as_echo "$as_me: error: could not create -" >&2;}
27229 { (exit 1); exit 1; }; }
27233 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27234 $as_echo "$as_me: executing $ac_file commands" >&6;}
27236 esac
27239 case $ac_file$ac_mode in
27240 "default":C)
27242 ### Make the necessary directories, if they don't exist.
27243 for dir in etc lisp ; do
27244 test -d ${dir} || mkdir ${dir}
27245 done
27247 # Build src/Makefile from ${srcdir}/src/Makefile.c
27248 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27249 # This must be done after src/config.h is built, since we rely on that file.
27251 echo creating src/epaths.h
27252 ${MAKE-make} epaths-force
27254 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27255 # `..' to `. .' unless invoked with -traditional
27257 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27258 CPPFLAGS="$CPPFLAGS -traditional"
27261 echo creating lib-src/Makefile
27262 ( cd lib-src
27263 rm -f junk.c junk1.c junk2.c
27264 sed -e '/start of cpp stuff/q' \
27265 < Makefile.c > junk1.c
27266 sed -e '1,/start of cpp stuff/d'\
27267 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27268 < Makefile.c > junk.c
27269 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27270 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27271 cat junk1.c junk2.c > Makefile.new
27272 rm -f junk.c junk1.c junk2.c
27273 chmod 444 Makefile.new
27274 mv -f Makefile.new Makefile
27277 echo creating src/Makefile
27278 ( cd src
27279 rm -f junk.c junk1.c junk2.c
27280 sed -e '/start of cpp stuff/q' \
27281 < Makefile.c > junk1.c
27282 sed -e '1,/start of cpp stuff/d'\
27283 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27284 < Makefile.c > junk.c
27285 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27286 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27287 cat junk1.c junk2.c > Makefile.new
27288 rm -f junk.c junk1.c junk2.c
27289 chmod 444 Makefile.new
27290 mv -f Makefile.new Makefile
27293 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27294 echo creating src/.gdbinit
27295 echo source $srcdir/src/.gdbinit > src/.gdbinit
27300 esac
27301 done # for ac_tag
27304 { (exit 0); exit 0; }
27305 _ACEOF
27306 chmod +x $CONFIG_STATUS
27307 ac_clean_files=$ac_clean_files_save
27309 test $ac_write_fail = 0 ||
27310 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27311 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27312 { (exit 1); exit 1; }; }
27315 # configure is writing to config.log, and then calls config.status.
27316 # config.status does its own redirection, appending to config.log.
27317 # Unfortunately, on DOS this fails, as config.log is still kept open
27318 # by configure, so config.status won't be able to write to it; its
27319 # output is simply discarded. So we exec the FD to /dev/null,
27320 # effectively closing config.log, so it can be properly (re)opened and
27321 # appended to by config.status. When coming back to configure, we
27322 # need to make the FD available again.
27323 if test "$no_create" != yes; then
27324 ac_cs_success=:
27325 ac_config_status_args=
27326 test "$silent" = yes &&
27327 ac_config_status_args="$ac_config_status_args --quiet"
27328 exec 5>/dev/null
27329 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27330 exec 5>>config.log
27331 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27332 # would make configure fail if this is the last instruction.
27333 $ac_cs_success || { (exit 1); exit 1; }
27335 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27336 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27337 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}