* configure.in: Remove references to usg5-4 and bsd-common, $opsys
[emacs.git] / configure
blob5f97e64a014f8841ca2515b34b99ddb1282f9506
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT=''
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
695 GREP
696 EGREP
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 RANLIB
701 INSTALL_INFO
702 GZIP_PROG
703 MAKEINFO
704 LD_SWITCH_SYSTEM
705 C_SWITCH_MACHINE
706 C_SWITCH_SYSTEM
707 LIBS_SYSTEM
708 CRT_DIR
709 LIB_MATH
710 START_FILES
711 LIBSOUND
712 PKG_CONFIG
713 ALSA_CFLAGS
714 ALSA_LIBS
715 CFLAGS_SOUND
716 SET_MAKE
717 XMKMF
718 LD_SWITCH_X_SITE_AUX
719 LD_SWITCH_X_SITE_AUX_RPATH
720 NS_IMPL_GNUSTEP_INC
721 NS_OBJ
722 NS_SUPPORT
723 LIB_STANDARD
724 HAVE_XSERVER
725 RSVG_CFLAGS
726 RSVG_LIBS
727 GTK_CFLAGS
728 GTK_LIBS
729 GTK_OBJ
730 DBUS_CFLAGS
731 DBUS_LIBS
732 DBUS_OBJ
733 GCONF_CFLAGS
734 GCONF_LIBS
735 LIBSELINUX_LIBS
736 LIBXTR6
737 LIBXMU
738 FONTCONFIG_CFLAGS
739 FONTCONFIG_LIBS
740 XFT_CFLAGS
741 XFT_LIBS
742 LIBOTF_CFLAGS
743 LIBOTF_LIBS
744 M17N_FLT_CFLAGS
745 M17N_FLT_LIBS
746 FREETYPE_CFLAGS
747 FREETYPE_LIBS
748 LIBXPM
749 LIBJPEG
750 LIBPNG
751 LIBTIFF
752 LIBGIF
753 LIBGPM
754 LIBXSM
755 ALLOCA
756 liblockfile
757 LIBS_MAIL
758 BLESSMAIL_TARGET
759 LIBOBJS
760 NEED_SETGID
761 KMEM_GROUP
762 GETLOADAVG_LIBS
763 GETOPT_H
764 GETOPTOBJS
765 LIBS_TERMCAP
766 TERMCAP_OBJ
767 LIBHESIOD
768 LIBRESOLV
769 COM_ERRLIB
770 CRYPTOLIB
771 KRB5LIB
772 DESLIB
773 KRB4LIB
774 version
775 configuration
776 canonical
777 srcdir
778 lispdir
779 locallisppath
780 lisppath
781 x_default_search_path
782 etcdir
783 archlibdir
784 bitmapdir
785 gamedir
786 gameuser
787 unexec
788 LD_SWITCH_X_SITE
789 C_SWITCH_X_SITE
790 C_SWITCH_X_SYSTEM
791 X_TOOLKIT_TYPE
792 machfile
793 opsysfile
794 ns_appdir
795 ns_appbindir
796 ns_appresdir
797 ns_appsrc
798 GNUSTEP_SYSTEM_HEADERS
799 GNUSTEP_SYSTEM_LIBRARIES
800 GNU_OBJC_CFLAGS
801 OTHER_FILES
802 FONT_OBJ
803 XMENU_OBJ
804 XOBJ
805 WIDGET_OBJ
806 TOOLKIT_LIBW
807 LIBXT_OTHER
808 OLDXMENU_TARGET
809 OLDXMENU
810 LIBXMENU
811 LIBX_OTHER
812 CYGWIN_OBJ
813 PRE_ALLOC_OBJ
814 POST_ALLOC_OBJ
815 LD_SWITCH_SYSTEM_TEMACS
816 LD_SWITCH_SYSTEM_EXTRA
817 LIB_GCC
818 MOUSE_SUPPORT
819 TOOLTIP_SUPPORT
820 WINDOW_SUPPORT
821 LTLIBOBJS'
822 ac_subst_files=''
823 ac_user_opts='
824 enable_option_checking
825 with_pop
826 with_kerberos
827 with_kerberos5
828 with_hesiod
829 with_mmdf
830 with_mail_unlink
831 with_mailhost
832 with_sound
833 with_sync_input
834 with_x_toolkit
835 with_xpm
836 with_jpeg
837 with_tiff
838 with_gif
839 with_png
840 with_rsvg
841 with_xft
842 with_libotf
843 with_m17n_flt
844 with_toolkit_scroll_bars
845 with_xaw3d
846 with_xim
847 with_ns
848 with_gpm
849 with_dbus
850 with_gconf
851 with_selinux
852 with_makeinfo
853 with_gtk
854 with_gcc
855 with_pkg_config_prog
856 with_crt_dir
857 with_gnustep_conf
858 enable_ns_self_contained
859 enable_asserts
860 enable_maintainer_mode
861 enable_locallisppath
862 enable_checking
863 enable_profiling
864 enable_autodepend
865 enable_largefile
866 with_x
868 ac_precious_vars='build_alias
869 host_alias
870 target_alias
872 CFLAGS
873 LDFLAGS
874 LIBS
875 CPPFLAGS
877 XMKMF'
880 # Initialize some variables set by options.
881 ac_init_help=
882 ac_init_version=false
883 ac_unrecognized_opts=
884 ac_unrecognized_sep=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
887 cache_file=/dev/null
888 exec_prefix=NONE
889 no_create=
890 no_recursion=
891 prefix=NONE
892 program_prefix=NONE
893 program_suffix=NONE
894 program_transform_name=s,x,x,
895 silent=
896 site=
897 srcdir=
898 verbose=
899 x_includes=NONE
900 x_libraries=NONE
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir='${datarootdir}/info'
920 htmldir='${docdir}'
921 dvidir='${docdir}'
922 pdfdir='${docdir}'
923 psdir='${docdir}'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
928 ac_prev=
929 ac_dashdash=
930 for ac_option
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
935 ac_prev=
936 continue
939 case $ac_option in
940 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *) ac_optarg=yes ;;
942 esac
944 # Accept the important Cygnus configure options, so we can diagnose typos.
946 case $ac_dashdash$ac_option in
948 ac_dashdash=yes ;;
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
967 --config-cache | -C)
968 cache_file=config.cache ;;
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
987 { (exit 1); exit 1; }; }
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=\$ac_optarg ;;
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=\$ac_optarg ;;
1231 -without-* | --without-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=no ;;
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1267 Try \`$0 --help' for more information." >&2
1268 { (exit 1); exit 1; }; }
1271 *=*)
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1275 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276 { (exit 1); exit 1; }; }
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 esac
1289 done
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1294 { (exit 1); exit 1; }; }
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1299 no) ;;
1300 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1301 { (exit 1); exit 1; }; } ;;
1302 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 esac
1306 # Check all directory arguments for consistency.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1312 eval ac_val=\$$ac_var
1313 # Remove trailing slashes.
1314 case $ac_val in
1315 */ )
1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\$ac_val;;
1318 esac
1319 # Be sure to have absolute directory names.
1320 case $ac_val in
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323 esac
1324 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325 { (exit 1); exit 1; }; }
1326 done
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used." >&2
1341 elif test "x$build_alias" != "x$host_alias"; then
1342 cross_compiling=yes
1346 ac_tool_prefix=
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349 test "$silent" = yes && exec 6>/dev/null
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1356 { (exit 1); exit 1; }; }
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1359 { (exit 1); exit 1; }; }
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 s//\1/
1376 /^X\(\/\/\)[^/].*/{
1377 s//\1/
1380 /^X\(\/\/\)$/{
1381 s//\1/
1384 /^X\(\/\).*/{
1385 s//\1/
1388 s/.*/./; q'`
1389 srcdir=$ac_confdir
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 srcdir=..
1393 else
1394 ac_srcdir_defaulted=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399 { (exit 1); exit 1; }; }
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1404 { (exit 1); exit 1; }; }
1405 pwd)`
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 srcdir=.
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1413 case $srcdir in
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 esac
1416 for ac_var in $ac_precious_vars; do
1417 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_env_${ac_var}_value=\$${ac_var}
1419 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421 done
1424 # Report the --help message.
1426 if test "$ac_init_help" = "long"; then
1427 # Omit some internal or obsolete options to make the list less imposing.
1428 # This message is too long to be a string in the A/UX 3.1 sh.
1429 cat <<_ACEOF
1430 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE. See below for descriptions of some of the useful variables.
1437 Defaults for the options are specified in brackets.
1439 Configuration:
1440 -h, --help display this help and exit
1441 --help=short display options specific to this package
1442 --help=recursive display the short help of all the included packages
1443 -V, --version display version information and exit
1444 -q, --quiet, --silent do not print \`checking...' messages
1445 --cache-file=FILE cache test results in FILE [disabled]
1446 -C, --config-cache alias for \`--cache-file=config.cache'
1447 -n, --no-create do not create output files
1448 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450 Installation directories:
1451 --prefix=PREFIX install architecture-independent files in PREFIX
1452 [$ac_default_prefix]
1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454 [PREFIX]
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1461 For better control, use the options below.
1463 Fine tuning of the installation directories:
1464 --bindir=DIR user executables [EPREFIX/bin]
1465 --sbindir=DIR system admin executables [EPREFIX/sbin]
1466 --libexecdir=DIR program executables [EPREFIX/libexec]
1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1483 _ACEOF
1485 cat <<\_ACEOF
1487 Program names:
1488 --program-prefix=PREFIX prepend PREFIX to installed program names
1489 --program-suffix=SUFFIX append SUFFIX to installed program names
1490 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492 X features:
1493 --x-includes=DIR X include files are in DIR
1494 --x-libraries=DIR X library files are in DIR
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 _ACEOF
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1505 esac
1506 cat <<\_ACEOF
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --disable-ns-self-contained
1513 disable self contained build under NeXTstep
1514 --enable-asserts compile code with asserts enabled
1515 --enable-maintainer-mode
1516 enable make rules and dependencies not useful (and
1517 sometimes confusing) to the casual installer
1518 --enable-locallisppath=PATH
1519 directories Emacs should search for lisp files
1520 specific to this site
1521 --enable-checking[=LIST]
1522 enable expensive run-time checks. With LIST, enable
1523 only specific categories of checks. Categories are:
1524 all,yes,no. Flags are: stringbytes, stringoverrun,
1525 stringfreelist, xmallocoverrun, conslist
1526 --enable-profiling build emacs with profiling support. This might not
1527 work on all platforms
1528 --enable-autodepend automatically generate dependencies to .h-files.
1529 Requires GNU Make and Gcc. Enabled if GNU Make and
1530 Gcc is found
1531 --disable-largefile omit support for large files
1533 Optional Packages:
1534 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1535 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1536 --without-pop don't support POP mail retrieval with movemail
1537 --with-kerberos support Kerberos-authenticated POP
1538 --with-kerberos5 support Kerberos version 5 authenticated POP
1539 --with-hesiod support Hesiod to get the POP server host
1540 --with-mmdf support MMDF mailboxes
1541 --with-mail-unlink unlink, rather than empty, mail spool after reading
1542 --with-mailhost=HOSTNAME
1543 string giving default POP mail host
1544 --without-sound don't compile with sound support
1545 --without-sync-input process async input synchronously
1546 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1547 athena, motif, no)
1548 --without-xpm don't compile with XPM image support
1549 --without-jpeg don't compile with JPEG image support
1550 --without-tiff don't compile with TIFF image support
1551 --without-gif don't compile with GIF image support
1552 --without-png don't compile with PNG image support
1553 --without-rsvg don't compile with SVG image support
1554 --without-xft don't use XFT for anti aliased fonts
1555 --without-libotf don't use libotf for OpenType font support
1556 --without-m17n-flt don't use m17n-flt for text shaping
1557 --without-toolkit-scroll-bars
1558 don't use Motif or Xaw3d scroll bars
1559 --without-xaw3d don't use Xaw3d
1560 --without-xim don't use X11 XIM
1561 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1562 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1563 console
1564 --without-dbus don't compile with D-Bus support
1565 --without-gconf don't compile with GConf support
1566 --without-selinux don't compile with SELinux support
1567 --without-makeinfo don't require makeinfo for building manuals
1569 --with-pkg-config-prog=PATH
1570 path to pkg-config for finding GTK and librsvg
1571 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1572 /usr/lib, or /usr/lib64 on some platforms.
1573 --with-gnustep-conf=PATH
1574 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1575 or /etc/GNUstep/GNUstep.conf
1576 --with-x use the X Window System
1578 Some influential environment variables:
1579 CC C compiler command
1580 CFLAGS C compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
1583 LIBS libraries to pass to the linker, e.g. -l<library>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1586 CPP C preprocessor
1587 XMKMF Path to xmkmf, Makefile generator for X Window System
1589 Use these variables to override the choices made by `configure' or to help
1590 it to find libraries and programs with nonstandard names/locations.
1592 _ACEOF
1593 ac_status=$?
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601 continue
1602 ac_builddir=.
1604 case "$ac_dir" in
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613 esac ;;
1614 esac
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1620 case $srcdir in
1621 .) # We are building in place.
1622 ac_srcdir=.
1623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
1626 ac_srcdir=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1629 *) # Relative name.
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 esac
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1644 else
1645 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 fi || ac_status=$?
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1648 done
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1653 cat <<\_ACEOF
1654 emacs configure 24.0.50
1655 generated by GNU Autoconf 2.62
1657 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1658 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1661 _ACEOF
1662 exit
1664 cat >config.log <<_ACEOF
1665 This file contains any messages produced by compilers while
1666 running configure, to aid debugging if configure makes a mistake.
1668 It was created by emacs $as_me 24.0.50, which was
1669 generated by GNU Autoconf 2.62. Invocation command line was
1671 $ $0 $@
1673 _ACEOF
1674 exec 5>>config.log
1676 cat <<_ASUNAME
1677 ## --------- ##
1678 ## Platform. ##
1679 ## --------- ##
1681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1688 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1690 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1691 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1693 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1694 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1695 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1696 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1698 _ASUNAME
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 $as_echo "PATH: $as_dir"
1706 done
1707 IFS=$as_save_IFS
1709 } >&5
1711 cat >&5 <<_ACEOF
1714 ## ----------- ##
1715 ## Core tests. ##
1716 ## ----------- ##
1718 _ACEOF
1721 # Keep a trace of the command line.
1722 # Strip out --no-create and --no-recursion so they do not pile up.
1723 # Strip out --silent because we don't want to record it for future runs.
1724 # Also quote any args containing shell meta-characters.
1725 # Make two passes to allow for proper duplicate-argument suppression.
1726 ac_configure_args=
1727 ac_configure_args0=
1728 ac_configure_args1=
1729 ac_must_keep_next=false
1730 for ac_pass in 1 2
1732 for ac_arg
1734 case $ac_arg in
1735 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1737 | -silent | --silent | --silen | --sile | --sil)
1738 continue ;;
1739 *\'*)
1740 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1741 esac
1742 case $ac_pass in
1743 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1745 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1746 if test $ac_must_keep_next = true; then
1747 ac_must_keep_next=false # Got value, back to normal.
1748 else
1749 case $ac_arg in
1750 *=* | --config-cache | -C | -disable-* | --disable-* \
1751 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1752 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1753 | -with-* | --with-* | -without-* | --without-* | --x)
1754 case "$ac_configure_args0 " in
1755 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1756 esac
1758 -* ) ac_must_keep_next=true ;;
1759 esac
1761 ac_configure_args="$ac_configure_args '$ac_arg'"
1763 esac
1764 done
1765 done
1766 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1767 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1769 # When interrupted or exit'd, cleanup temporary files, and complete
1770 # config.log. We remove comments because anyway the quotes in there
1771 # would cause problems or look ugly.
1772 # WARNING: Use '\'' to represent an apostrophe within the trap.
1773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1774 trap 'exit_status=$?
1775 # Save into config.log some information that might help in debugging.
1777 echo
1779 cat <<\_ASBOX
1780 ## ---------------- ##
1781 ## Cache variables. ##
1782 ## ---------------- ##
1783 _ASBOX
1784 echo
1785 # The following way of writing the cache mishandles newlines in values,
1787 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788 eval ac_val=\$$ac_var
1789 case $ac_val in #(
1790 *${as_nl}*)
1791 case $ac_var in #(
1792 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1793 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1794 esac
1795 case $ac_var in #(
1796 _ | IFS | as_nl) ;; #(
1797 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1798 *) $as_unset $ac_var ;;
1799 esac ;;
1800 esac
1801 done
1802 (set) 2>&1 |
1803 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1804 *${as_nl}ac_space=\ *)
1805 sed -n \
1806 "s/'\''/'\''\\\\'\'''\''/g;
1807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1808 ;; #(
1810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1812 esac |
1813 sort
1815 echo
1817 cat <<\_ASBOX
1818 ## ----------------- ##
1819 ## Output variables. ##
1820 ## ----------------- ##
1821 _ASBOX
1822 echo
1823 for ac_var in $ac_subst_vars
1825 eval ac_val=\$$ac_var
1826 case $ac_val in
1827 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 esac
1829 $as_echo "$ac_var='\''$ac_val'\''"
1830 done | sort
1831 echo
1833 if test -n "$ac_subst_files"; then
1834 cat <<\_ASBOX
1835 ## ------------------- ##
1836 ## File substitutions. ##
1837 ## ------------------- ##
1838 _ASBOX
1839 echo
1840 for ac_var in $ac_subst_files
1842 eval ac_val=\$$ac_var
1843 case $ac_val in
1844 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845 esac
1846 $as_echo "$ac_var='\''$ac_val'\''"
1847 done | sort
1848 echo
1851 if test -s confdefs.h; then
1852 cat <<\_ASBOX
1853 ## ----------- ##
1854 ## confdefs.h. ##
1855 ## ----------- ##
1856 _ASBOX
1857 echo
1858 cat confdefs.h
1859 echo
1861 test "$ac_signal" != 0 &&
1862 $as_echo "$as_me: caught signal $ac_signal"
1863 $as_echo "$as_me: exit $exit_status"
1864 } >&5
1865 rm -f core *.core core.conftest.* &&
1866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1867 exit $exit_status
1869 for ac_signal in 1 2 13 15; do
1870 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1871 done
1872 ac_signal=0
1874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1875 rm -f -r conftest* confdefs.h
1877 # Predefined preprocessor variables.
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_NAME "$PACKAGE_NAME"
1881 _ACEOF
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1886 _ACEOF
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1891 _ACEOF
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_STRING "$PACKAGE_STRING"
1896 _ACEOF
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1901 _ACEOF
1904 # Let the site file select an alternate cache file if it wants to.
1905 # Prefer an explicitly selected file to automatically selected ones.
1906 ac_site_file1=NONE
1907 ac_site_file2=NONE
1908 if test -n "$CONFIG_SITE"; then
1909 ac_site_file1=$CONFIG_SITE
1910 elif test "x$prefix" != xNONE; then
1911 ac_site_file1=$prefix/share/config.site
1912 ac_site_file2=$prefix/etc/config.site
1913 else
1914 ac_site_file1=$ac_default_prefix/share/config.site
1915 ac_site_file2=$ac_default_prefix/etc/config.site
1917 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1919 test "x$ac_site_file" = xNONE && continue
1920 if test -r "$ac_site_file"; then
1921 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1922 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1923 sed 's/^/| /' "$ac_site_file" >&5
1924 . "$ac_site_file"
1926 done
1928 if test -r "$cache_file"; then
1929 # Some versions of bash will fail to source /dev/null (special
1930 # files actually), so we avoid doing that.
1931 if test -f "$cache_file"; then
1932 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1933 $as_echo "$as_me: loading cache $cache_file" >&6;}
1934 case $cache_file in
1935 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1936 *) . "./$cache_file";;
1937 esac
1939 else
1940 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1941 $as_echo "$as_me: creating cache $cache_file" >&6;}
1942 >$cache_file
1945 ac_header_list="$ac_header_list sys/time.h"
1946 ac_header_list="$ac_header_list unistd.h"
1947 ac_func_list="$ac_func_list alarm"
1948 # Check that the precious variables saved in the cache have kept the same
1949 # value.
1950 ac_cache_corrupted=false
1951 for ac_var in $ac_precious_vars; do
1952 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953 eval ac_new_set=\$ac_env_${ac_var}_set
1954 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955 eval ac_new_val=\$ac_env_${ac_var}_value
1956 case $ac_old_set,$ac_new_set in
1957 set,)
1958 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960 ac_cache_corrupted=: ;;
1961 ,set)
1962 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1965 ,);;
1967 if test "x$ac_old_val" != "x$ac_new_val"; then
1968 # differences in whitespace do not lead to failure.
1969 ac_old_val_w=`echo x $ac_old_val`
1970 ac_new_val_w=`echo x $ac_new_val`
1971 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974 ac_cache_corrupted=:
1975 else
1976 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1977 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1978 eval $ac_var=\$ac_old_val
1980 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1981 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1982 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1983 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1984 fi;;
1985 esac
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1988 case $ac_new_val in
1989 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1990 *) ac_arg=$ac_var=$ac_new_val ;;
1991 esac
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1994 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1995 esac
1997 done
1998 if $ac_cache_corrupted; then
1999 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2030 ac_ext=c
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2041 test "$program_prefix" != NONE &&
2042 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2043 # Use a double $ so make ignores it.
2044 test "$program_suffix" != NONE &&
2045 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2046 # Double any \ or $.
2047 # By default was `s,x,x', remove it if useless.
2048 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2049 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2052 lispdir='${datadir}/emacs/${version}/lisp'
2053 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2054 '${datadir}/emacs/site-lisp'
2055 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2056 etcdir='${datadir}/emacs/${version}/etc'
2057 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2058 docdir='${datadir}/emacs/${version}/etc'
2059 gamedir='${localstatedir}/games/emacs'
2061 gameuser=games
2066 # Check whether --with-pop was given.
2067 if test "${with_pop+set}" = set; then
2068 withval=$with_pop;
2069 else
2070 with_pop=yes
2073 if test "$with_pop" = yes; then
2074 cat >>confdefs.h <<\_ACEOF
2075 #define MAIL_USE_POP 1
2076 _ACEOF
2082 # Check whether --with-kerberos was given.
2083 if test "${with_kerberos+set}" = set; then
2084 withval=$with_kerberos;
2085 else
2086 with_kerberos=no
2089 if test "$with_kerberos" != no; then
2090 cat >>confdefs.h <<\_ACEOF
2091 #define KERBEROS 1
2092 _ACEOF
2098 # Check whether --with-kerberos5 was given.
2099 if test "${with_kerberos5+set}" = set; then
2100 withval=$with_kerberos5;
2101 else
2102 with_kerberos5=no
2105 if test "${with_kerberos5}" != no; then
2106 if test "${with_kerberos}" = no; then
2107 with_kerberos=yes
2108 cat >>confdefs.h <<\_ACEOF
2109 #define KERBEROS 1
2110 _ACEOF
2114 cat >>confdefs.h <<\_ACEOF
2115 #define KERBEROS5 1
2116 _ACEOF
2121 # Check whether --with-hesiod was given.
2122 if test "${with_hesiod+set}" = set; then
2123 withval=$with_hesiod;
2124 else
2125 with_hesiod=no
2128 if test "$with_hesiod" != no; then
2130 cat >>confdefs.h <<\_ACEOF
2131 #define HESIOD 1
2132 _ACEOF
2137 # Check whether --with-mmdf was given.
2138 if test "${with_mmdf+set}" = set; then
2139 withval=$with_mmdf;
2140 else
2141 with_mmdf=no
2144 if test "$with_mmdf" != no; then
2146 cat >>confdefs.h <<\_ACEOF
2147 #define MAIL_USE_MMDF 1
2148 _ACEOF
2153 # Check whether --with-mail-unlink was given.
2154 if test "${with_mail_unlink+set}" = set; then
2155 withval=$with_mail_unlink;
2156 else
2157 with_mail_unlink=no
2160 if test "$with_mail_unlink" != no; then
2162 cat >>confdefs.h <<\_ACEOF
2163 #define MAIL_UNLINK_SPOOL 1
2164 _ACEOF
2169 # Check whether --with-mailhost was given.
2170 if test "${with_mailhost+set}" = set; then
2171 withval=$with_mailhost;
2172 cat >>confdefs.h <<_ACEOF
2173 #define MAILHOST "$withval"
2174 _ACEOF
2180 # Check whether --with-sound was given.
2181 if test "${with_sound+set}" = set; then
2182 withval=$with_sound;
2183 else
2184 with_sound=yes
2189 # Check whether --with-sync-input was given.
2190 if test "${with_sync_input+set}" = set; then
2191 withval=$with_sync_input;
2192 else
2193 with_sync_input=yes
2196 if test "$with_sync_input" = yes; then
2198 cat >>confdefs.h <<\_ACEOF
2199 #define SYNC_INPUT 1
2200 _ACEOF
2205 # Check whether --with-x-toolkit was given.
2206 if test "${with_x_toolkit+set}" = set; then
2207 withval=$with_x_toolkit; case "${withval}" in
2208 y | ye | yes ) val=gtk ;;
2209 n | no ) val=no ;;
2210 l | lu | luc | luci | lucid ) val=lucid ;;
2211 a | at | ath | athe | athen | athena ) val=athena ;;
2212 m | mo | mot | moti | motif ) val=motif ;;
2213 g | gt | gtk ) val=gtk ;;
2215 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2216 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2217 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2218 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2219 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2220 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2221 { (exit 1); exit 1; }; }
2223 esac
2224 with_x_toolkit=$val
2230 # Check whether --with-xpm was given.
2231 if test "${with_xpm+set}" = set; then
2232 withval=$with_xpm;
2233 else
2234 with_xpm=yes
2238 # Check whether --with-jpeg was given.
2239 if test "${with_jpeg+set}" = set; then
2240 withval=$with_jpeg;
2241 else
2242 with_jpeg=yes
2246 # Check whether --with-tiff was given.
2247 if test "${with_tiff+set}" = set; then
2248 withval=$with_tiff;
2249 else
2250 with_tiff=yes
2254 # Check whether --with-gif was given.
2255 if test "${with_gif+set}" = set; then
2256 withval=$with_gif;
2257 else
2258 with_gif=yes
2262 # Check whether --with-png was given.
2263 if test "${with_png+set}" = set; then
2264 withval=$with_png;
2265 else
2266 with_png=yes
2270 # Check whether --with-rsvg was given.
2271 if test "${with_rsvg+set}" = set; then
2272 withval=$with_rsvg;
2273 else
2274 with_rsvg=yes
2279 # Check whether --with-xft was given.
2280 if test "${with_xft+set}" = set; then
2281 withval=$with_xft;
2282 else
2283 with_xft=yes
2287 # Check whether --with-libotf was given.
2288 if test "${with_libotf+set}" = set; then
2289 withval=$with_libotf;
2290 else
2291 with_libotf=yes
2295 # Check whether --with-m17n-flt was given.
2296 if test "${with_m17n_flt+set}" = set; then
2297 withval=$with_m17n_flt;
2298 else
2299 with_m17n_flt=yes
2304 # Check whether --with-toolkit-scroll-bars was given.
2305 if test "${with_toolkit_scroll_bars+set}" = set; then
2306 withval=$with_toolkit_scroll_bars;
2307 else
2308 with_toolkit_scroll_bars=yes
2312 # Check whether --with-xaw3d was given.
2313 if test "${with_xaw3d+set}" = set; then
2314 withval=$with_xaw3d;
2315 else
2316 with_xaw3d=yes
2320 # Check whether --with-xim was given.
2321 if test "${with_xim+set}" = set; then
2322 withval=$with_xim;
2323 else
2324 with_xim=yes
2328 # Check whether --with-ns was given.
2329 if test "${with_ns+set}" = set; then
2330 withval=$with_ns;
2331 else
2332 with_ns=no
2337 # Check whether --with-gpm was given.
2338 if test "${with_gpm+set}" = set; then
2339 withval=$with_gpm;
2340 else
2341 with_gpm=yes
2345 # Check whether --with-dbus was given.
2346 if test "${with_dbus+set}" = set; then
2347 withval=$with_dbus;
2348 else
2349 with_dbus=yes
2353 # Check whether --with-gconf was given.
2354 if test "${with_gconf+set}" = set; then
2355 withval=$with_gconf;
2356 else
2357 with_gconf=yes
2361 # Check whether --with-selinux was given.
2362 if test "${with_selinux+set}" = set; then
2363 withval=$with_selinux;
2364 else
2365 with_selinux=yes
2369 ## For the times when you want to build Emacs but don't have
2370 ## a suitable makeinfo, and can live without the manuals.
2372 # Check whether --with-makeinfo was given.
2373 if test "${with_makeinfo+set}" = set; then
2374 withval=$with_makeinfo;
2375 else
2376 with_makeinfo=yes
2381 # Check whether --with-gtk was given.
2382 if test "${with_gtk+set}" = set; then
2383 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2384 specify a toolkit." >&5
2385 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2386 specify a toolkit." >&2;}
2387 { (exit 1); exit 1; }; }
2392 # Check whether --with-gcc was given.
2393 if test "${with_gcc+set}" = set; then
2394 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2395 variable to specify a compiler." >&5
2396 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2397 variable to specify a compiler." >&2;}
2398 { (exit 1); exit 1; }; }
2403 # Check whether --with-pkg-config-prog was given.
2404 if test "${with_pkg_config_prog+set}" = set; then
2405 withval=$with_pkg_config_prog;
2408 if test "X${with_pkg_config_prog}" != X; then
2409 if test "${with_pkg_config_prog}" != yes; then
2410 PKG_CONFIG="${with_pkg_config_prog}"
2414 CRT_DIR=
2416 # Check whether --with-crt-dir was given.
2417 if test "${with_crt_dir+set}" = set; then
2418 withval=$with_crt_dir;
2421 CRT_DIR="${with_crt_dir}"
2424 # Check whether --with-gnustep-conf was given.
2425 if test "${with_gnustep_conf+set}" = set; then
2426 withval=$with_gnustep_conf;
2429 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2430 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2431 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2432 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2434 # Check whether --enable-ns-self-contained was given.
2435 if test "${enable_ns_self_contained+set}" = set; then
2436 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2437 else
2438 EN_NS_SELF_CONTAINED=yes
2442 # Check whether --enable-asserts was given.
2443 if test "${enable_asserts+set}" = set; then
2444 enableval=$enable_asserts; USE_XASSERTS=$enableval
2445 else
2446 USE_XASSERTS=no
2450 # Check whether --enable-maintainer-mode was given.
2451 if test "${enable_maintainer_mode+set}" = set; then
2452 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2453 else
2454 USE_MAINTAINER_MODE=no
2457 if test $USE_MAINTAINER_MODE = yes; then
2458 MAINT=
2459 else
2460 MAINT=#
2464 # Check whether --enable-locallisppath was given.
2465 if test "${enable_locallisppath+set}" = set; then
2466 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2467 locallisppath=
2468 elif test "${enableval}" != "yes"; then
2469 locallisppath=${enableval}
2474 # Check whether --enable-checking was given.
2475 if test "${enable_checking+set}" = set; then
2476 enableval=$enable_checking; ac_checking_flags="${enableval}"
2479 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2480 for check in $ac_checking_flags
2482 case $check in
2483 # these set all the flags to specific states
2484 yes) ac_enable_checking=1 ;;
2485 no) ac_enable_checking= ;
2486 ac_gc_check_stringbytes= ;
2487 ac_gc_check_string_overrun= ;
2488 ac_gc_check_string_free_list= ;
2489 ac_xmalloc_overrun= ;
2490 ac_gc_check_cons_list= ;;
2491 all) ac_enable_checking=1 ;
2492 ac_gc_check_stringbytes=1 ;
2493 ac_gc_check_string_overrun=1 ;
2494 ac_gc_check_string_free_list=1 ;
2495 ac_xmalloc_overrun=1 ;
2496 ac_gc_check_cons_list=1 ;;
2497 # these enable particular checks
2498 stringbytes) ac_gc_check_stringbytes=1 ;;
2499 stringoverrun) ac_gc_check_string_overrun=1 ;;
2500 stringfreelist) ac_gc_check_string_free_list=1 ;;
2501 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2502 conslist) ac_gc_check_cons_list=1 ;;
2503 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2504 $as_echo "$as_me: error: unknown check category $check" >&2;}
2505 { (exit 1); exit 1; }; } ;;
2506 esac
2507 done
2508 IFS="$ac_save_IFS"
2510 if test x$ac_enable_checking != x ; then
2512 cat >>confdefs.h <<\_ACEOF
2513 #define ENABLE_CHECKING 1
2514 _ACEOF
2517 if test x$ac_gc_check_stringbytes != x ; then
2519 cat >>confdefs.h <<\_ACEOF
2520 #define GC_CHECK_STRING_BYTES 1
2521 _ACEOF
2524 if test x$ac_gc_check_stringoverrun != x ; then
2526 cat >>confdefs.h <<\_ACEOF
2527 #define GC_CHECK_STRING_OVERRUN 1
2528 _ACEOF
2531 if test x$ac_gc_check_string_free_list != x ; then
2533 cat >>confdefs.h <<\_ACEOF
2534 #define GC_CHECK_STRING_FREE_LIST 1
2535 _ACEOF
2538 if test x$ac_xmalloc_overrun != x ; then
2540 cat >>confdefs.h <<\_ACEOF
2541 #define XMALLOC_OVERRUN_CHECK 1
2542 _ACEOF
2545 if test x$ac_gc_check_cons_list != x ; then
2547 cat >>confdefs.h <<\_ACEOF
2548 #define GC_CHECK_CONS_LIST 1
2549 _ACEOF
2553 # Check whether --enable-profiling was given.
2554 if test "${enable_profiling+set}" = set; then
2555 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2558 if test x$ac_enable_profiling != x ; then
2559 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2560 PROFILING_LDFLAGS="-pg"
2561 else
2562 PROFILING_CFLAGS=
2563 PROFILING_LDFLAGS=
2566 # Check whether --enable-autodepend was given.
2567 if test "${enable_autodepend+set}" = set; then
2568 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2569 else
2570 ac_enable_autodepend=yes
2574 #### Make srcdir absolute, if it isn't already. It's important to
2575 #### avoid running the path through pwd unnecessarily, since pwd can
2576 #### give you automounter prefixes, which can go away. We do all this
2577 #### so Emacs can find its files when run uninstalled.
2578 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2579 unset CDPATH
2580 case "${srcdir}" in
2581 /* ) ;;
2583 ## We may be able to use the $PWD environment variable to make this
2584 ## absolute. But sometimes PWD is inaccurate.
2585 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2586 ## but that tested only for a well-formed and valid PWD,
2587 ## it did not object when PWD was well-formed and valid but just wrong.
2588 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2589 then
2590 srcdir="$PWD"
2591 else
2592 srcdir="`(cd ${srcdir}; pwd)`"
2595 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2596 esac
2598 #### Check if the source directory already has a configured system in it.
2599 if test `pwd` != `(cd ${srcdir} && pwd)` \
2600 && test -f "${srcdir}/src/config.h" ; then
2601 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2602 as a build directory right now; it has been configured in its own
2603 right. To configure in another directory as well, you MUST
2604 use GNU make. If you do not have GNU make, then you must
2605 now do \`make distclean' in ${srcdir},
2606 and then run $0 again." >&5
2607 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2608 as a build directory right now; it has been configured in its own
2609 right. To configure in another directory as well, you MUST
2610 use GNU make. If you do not have GNU make, then you must
2611 now do \`make distclean' in ${srcdir},
2612 and then run $0 again." >&2;}
2615 #### Given the configuration name, set machfile and opsysfile to the
2616 #### names of the m/*.h and s/*.h files we should use.
2618 ### Canonicalize the configuration name.
2620 ac_aux_dir=
2621 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2622 if test -f "$ac_dir/install-sh"; then
2623 ac_aux_dir=$ac_dir
2624 ac_install_sh="$ac_aux_dir/install-sh -c"
2625 break
2626 elif test -f "$ac_dir/install.sh"; then
2627 ac_aux_dir=$ac_dir
2628 ac_install_sh="$ac_aux_dir/install.sh -c"
2629 break
2630 elif test -f "$ac_dir/shtool"; then
2631 ac_aux_dir=$ac_dir
2632 ac_install_sh="$ac_aux_dir/shtool install -c"
2633 break
2635 done
2636 if test -z "$ac_aux_dir"; then
2637 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2638 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2639 { (exit 1); exit 1; }; }
2642 # These three variables are undocumented and unsupported,
2643 # and are intended to be withdrawn in a future Autoconf release.
2644 # They can cause serious problems if a builder's source tree is in a directory
2645 # whose full name contains unusual characters.
2646 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2647 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2648 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2651 # Make sure we can run config.sub.
2652 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2653 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2654 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2655 { (exit 1); exit 1; }; }
2657 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2658 $as_echo_n "checking build system type... " >&6; }
2659 if test "${ac_cv_build+set}" = set; then
2660 $as_echo_n "(cached) " >&6
2661 else
2662 ac_build_alias=$build_alias
2663 test "x$ac_build_alias" = x &&
2664 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2665 test "x$ac_build_alias" = x &&
2666 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2667 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2668 { (exit 1); exit 1; }; }
2669 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2670 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2671 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2672 { (exit 1); exit 1; }; }
2675 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2676 $as_echo "$ac_cv_build" >&6; }
2677 case $ac_cv_build in
2678 *-*-*) ;;
2679 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2680 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2681 { (exit 1); exit 1; }; };;
2682 esac
2683 build=$ac_cv_build
2684 ac_save_IFS=$IFS; IFS='-'
2685 set x $ac_cv_build
2686 shift
2687 build_cpu=$1
2688 build_vendor=$2
2689 shift; shift
2690 # Remember, the first character of IFS is used to create $*,
2691 # except with old shells:
2692 build_os=$*
2693 IFS=$ac_save_IFS
2694 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2697 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2698 $as_echo_n "checking host system type... " >&6; }
2699 if test "${ac_cv_host+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test "x$host_alias" = x; then
2703 ac_cv_host=$ac_cv_build
2704 else
2705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2706 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2707 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2708 { (exit 1); exit 1; }; }
2712 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2713 $as_echo "$ac_cv_host" >&6; }
2714 case $ac_cv_host in
2715 *-*-*) ;;
2716 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2717 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2718 { (exit 1); exit 1; }; };;
2719 esac
2720 host=$ac_cv_host
2721 ac_save_IFS=$IFS; IFS='-'
2722 set x $ac_cv_host
2723 shift
2724 host_cpu=$1
2725 host_vendor=$2
2726 shift; shift
2727 # Remember, the first character of IFS is used to create $*,
2728 # except with old shells:
2729 host_os=$*
2730 IFS=$ac_save_IFS
2731 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2734 canonical=$host
2735 configuration=${host_alias-${build_alias-$host}}
2739 ### If you add support for a new configuration, add code to this
2740 ### switch statement to recognize your configuration name and select
2741 ### the appropriate operating system and machine description files.
2743 ### You would hope that you could choose an m/*.h file pretty much
2744 ### based on the machine portion of the configuration name, and an s-
2745 ### file based on the operating system portion. However, it turns out
2746 ### that each m/*.h file is pretty manufacturer-specific - for
2747 ### example mips.h is MIPS
2748 ### So we basically have to have a special case for each
2749 ### configuration name.
2751 ### As far as handling version numbers on operating systems is
2752 ### concerned, make sure things will fail in a fixable way. If
2753 ### /etc/MACHINES doesn't say anything about version numbers, be
2754 ### prepared to handle anything reasonably. If version numbers
2755 ### matter, be sure /etc/MACHINES says something about it.
2757 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2758 ### "System V Release 4"; he writes, "The old convention encouraged
2759 ### confusion between `system' and `release' levels'."
2761 machine='' opsys='' unported=no
2762 case "${canonical}" in
2764 ## FreeBSD ports
2765 *-*-freebsd* )
2766 opsys=freebsd
2767 case "${canonical}" in
2768 alpha*-*-freebsd*) machine=alpha ;;
2769 arm*-*-freebsd*) machine=arm ;;
2770 ia64-*-freebsd*) machine=ia64 ;;
2771 sparc-*-freebsd*) machine=sparc ;;
2772 sparc64-*-freebsd*) machine=sparc ;;
2773 powerpc-*-freebsd*) machine=macppc ;;
2774 i[3456]86-*-freebsd*) machine=intel386 ;;
2775 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2776 esac
2779 ## FreeBSD kernel + glibc based userland
2780 *-*-kfreebsd*gnu* )
2781 opsys=gnu-kfreebsd
2782 case "${canonical}" in
2783 alpha*-*-kfreebsd*) machine=alpha ;;
2784 ia64-*-kfreebsd*) machine=ia64 ;;
2785 sparc-*-kfreebsd*) machine=sparc ;;
2786 sparc64-*-kfreebsd*) machine=sparc ;;
2787 powerpc-*-kfreebsd*) machine=macppc ;;
2788 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2789 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2790 esac
2793 ## NetBSD ports
2794 *-*-netbsd* )
2795 opsys=netbsd
2796 case "${canonical}" in
2797 alpha*-*-netbsd*) machine=alpha ;;
2798 i[3456]86-*-netbsd*) machine=intel386 ;;
2799 mips-*-netbsd*) machine=mips ;;
2800 mipsel-*-netbsd*) machine=mips ;;
2801 mipseb-*-netbsd*) machine=mips ;;
2802 powerpc-*-netbsd*) machine=macppc ;;
2803 sparc*-*-netbsd*) machine=sparc ;;
2804 vax-*-netbsd*) machine=vax ;;
2805 arm-*-netbsd*) machine=arm ;;
2806 x86_64-*-netbsd*) machine=amdx86-64 ;;
2807 hppa-*-netbsd*) machine=hp800 ;;
2808 m68k-*-netbsd*) machine=m68k ;;
2809 esac
2812 ## OpenBSD ports
2813 *-*-openbsd* )
2814 opsys=openbsd
2815 case "${canonical}" in
2816 alpha*-*-openbsd*) machine=alpha ;;
2817 arm-*-openbsd*) machine=arm ;;
2818 i386-*-openbsd*) machine=intel386 ;;
2819 powerpc-*-openbsd*) machine=macppc ;;
2820 sparc*-*-openbsd*) machine=sparc ;;
2821 vax-*-openbsd*) machine=vax ;;
2822 x86_64-*-openbsd*) machine=amdx86-64 ;;
2823 hppa-*-openbsd*) machine=hp800 ;;
2824 esac
2827 alpha*-*-linux-gnu* )
2828 machine=alpha opsys=gnu-linux
2831 arm*-*-linux-gnu* )
2832 machine=arm opsys=gnu-linux
2835 ## Apple Darwin / Mac OS X
2836 *-apple-darwin* )
2837 case "${canonical}" in
2838 i[3456]86-* ) machine=intel386 ;;
2839 powerpc-* ) machine=macppc ;;
2840 x86_64-* ) machine=amdx86-64 ;;
2841 * ) unported=yes ;;
2842 esac
2843 opsys=darwin
2844 # Define CPP as follows to make autoconf work correctly.
2845 CPP="${CC-cc} -E -no-cpp-precomp"
2846 # Use fink packages if available.
2847 if test -d /sw/include && test -d /sw/lib; then
2848 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2849 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2850 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2854 ## HP 9000 series 700 and 800, running HP/UX
2855 hppa*-hp-hpux10.2* )
2856 machine=hp800 opsys=hpux10-20
2858 hppa*-hp-hpux1[1-9]* )
2859 machine=hp800 opsys=hpux11
2860 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2863 hppa*-*-linux-gnu* )
2864 machine=hp800 opsys=gnu-linux
2867 ## IBM machines
2868 s390-*-linux-gnu* )
2869 machine=ibms390 opsys=gnu-linux
2871 s390x-*-linux-gnu* )
2872 machine=ibms390x opsys=gnu-linux
2874 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2875 machine=ibmrs6000 opsys=aix4-2
2877 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2878 machine=ibmrs6000 opsys=aix4-2
2880 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2881 machine=ibmrs6000 opsys=aix4-2
2883 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2884 machine=ibmrs6000 opsys=aix4-2
2887 ## Macintosh PowerPC
2888 powerpc*-*-linux-gnu* )
2889 machine=macppc opsys=gnu-linux
2892 ## Silicon Graphics machines
2893 ## Iris 4D
2894 mips-sgi-irix6.5 )
2895 machine=iris4d opsys=irix6-5
2896 # Without defining _LANGUAGE_C, things get masked out in the headers
2897 # so that, for instance, grepping for `free' in stdlib.h fails and
2898 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2899 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2900 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2903 ## Suns
2904 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2905 machine=sparc opsys=gnu-linux
2908 *-sun-solaris* \
2909 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2910 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2911 case "${canonical}" in
2912 i[3456]86-*-* ) machine=intel386 ;;
2913 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2914 sparc* ) machine=sparc ;;
2915 * ) unported=yes ;;
2916 esac
2917 case "${canonical}" in
2918 *-sunos5.6* | *-solaris2.6* )
2919 opsys=sol2-6
2920 NON_GNU_CPP=/usr/ccs/lib/cpp
2921 RANLIB="ar -ts"
2923 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2924 opsys=sol2-6
2925 emacs_check_sunpro_c=yes
2926 NON_GNU_CPP=/usr/ccs/lib/cpp
2928 *-sunos5* | *-solaris* )
2929 opsys=sol2-10
2930 emacs_check_sunpro_c=yes
2931 NON_GNU_CPP=/usr/ccs/lib/cpp
2933 esac
2934 ## Watch out for a compiler that we know will not work.
2935 case "${canonical}" in
2936 *-solaris* | *-sunos5* )
2937 if [ "x$CC" = x/usr/ucb/cc ]; then
2938 ## /usr/ucb/cc doesn't work;
2939 ## we should find some other compiler that does work.
2940 unset CC
2943 *) ;;
2944 esac
2947 ## IA-64
2948 ia64*-*-linux* )
2949 machine=ia64 opsys=gnu-linux
2952 ## Intel 386 machines where we don't care about the manufacturer
2953 i[3456]86-*-* )
2954 machine=intel386
2955 case "${canonical}" in
2956 *-cygwin ) opsys=cygwin ;;
2957 *-darwin* ) opsys=darwin
2958 CPP="${CC-cc} -E -no-cpp-precomp"
2960 *-linux-gnu* ) opsys=gnu-linux ;;
2961 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2962 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2963 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2964 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2965 esac
2968 ## m68k Linux-based GNU system
2969 m68k-*-linux-gnu* )
2970 machine=m68k opsys=gnu-linux
2973 ## Mips Linux-based GNU system
2974 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2975 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2976 machine=mips opsys=gnu-linux
2979 ## AMD x86-64 Linux-based GNU system
2980 x86_64-*-linux-gnu* )
2981 machine=amdx86-64 opsys=gnu-linux
2984 ## Tensilica Xtensa Linux-based GNU system
2985 xtensa*-*-linux-gnu* )
2986 machine=xtensa opsys=gnu-linux
2989 ## SuperH Linux-based GNU system
2990 sh[34]*-*-linux-gnu* )
2991 machine=sh3 opsys=gnu-linux
2995 unported=yes
2997 esac
2999 ### If the code above didn't choose an operating system, just choose
3000 ### an operating system based on the configuration name. You really
3001 ### only want to use this when you have no idea what the right
3002 ### operating system is; if you know what operating systems a machine
3003 ### runs, it's cleaner to make it explicit in the case statement
3004 ### above.
3005 if test x"${opsys}" = x; then
3006 case "${canonical}" in
3007 *-gnu* ) opsys=gnu ;;
3009 unported=yes
3011 esac
3016 if test $unported = yes; then
3017 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3018 Check \`etc/MACHINES' for recognized configuration names." >&5
3019 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3020 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3021 { (exit 1); exit 1; }; }
3024 machfile="m/${machine}.h"
3025 opsysfile="s/${opsys}.h"
3028 #### Choose a compiler.
3029 test -n "$CC" && cc_specified=yes
3031 # Save the value of CFLAGS that the user specified.
3032 SPECIFIED_CFLAGS="$CFLAGS"
3034 ac_ext=c
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3041 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if test "${ac_cv_prog_CC+set}" = set; then
3045 $as_echo_n "(cached) " >&6
3046 else
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3061 done
3062 done
3063 IFS=$as_save_IFS
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072 { $as_echo "$as_me:$LINENO: result: no" >&5
3073 $as_echo "no" >&6; }
3078 if test -z "$ac_cv_prog_CC"; then
3079 ac_ct_CC=$CC
3080 # Extract the first word of "gcc", so it can be a program name with args.
3081 set dummy gcc; ac_word=$2
3082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3085 $as_echo_n "(cached) " >&6
3086 else
3087 if test -n "$ac_ct_CC"; then
3088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097 ac_cv_prog_ac_ct_CC="gcc"
3098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3101 done
3102 done
3103 IFS=$as_save_IFS
3107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3108 if test -n "$ac_ct_CC"; then
3109 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3110 $as_echo "$ac_ct_CC" >&6; }
3111 else
3112 { $as_echo "$as_me:$LINENO: result: no" >&5
3113 $as_echo "no" >&6; }
3116 if test "x$ac_ct_CC" = x; then
3117 CC=""
3118 else
3119 case $cross_compiling:$ac_tool_warned in
3120 yes:)
3121 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3122 whose name does not start with the host triplet. If you think this
3123 configuration is useful to you, please write to autoconf@gnu.org." >&5
3124 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3125 whose name does not start with the host triplet. If you think this
3126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3127 ac_tool_warned=yes ;;
3128 esac
3129 CC=$ac_ct_CC
3131 else
3132 CC="$ac_cv_prog_CC"
3135 if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}cc; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CC="${ac_tool_prefix}cc"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3176 if test -z "$CC"; then
3177 # Extract the first word of "cc", so it can be a program name with args.
3178 set dummy cc; ac_word=$2
3179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3186 else
3187 ac_prog_rejected=no
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3196 ac_prog_rejected=yes
3197 continue
3199 ac_cv_prog_CC="cc"
3200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3203 done
3204 done
3205 IFS=$as_save_IFS
3207 if test $ac_prog_rejected = yes; then
3208 # We found a bogon in the path, so make sure we never use it.
3209 set dummy $ac_cv_prog_CC
3210 shift
3211 if test $# != 0; then
3212 # We chose a different compiler from the bogus one.
3213 # However, it has the same basename, so the bogon will be chosen
3214 # first if we set CC to just the basename; use the full file name.
3215 shift
3216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3221 CC=$ac_cv_prog_CC
3222 if test -n "$CC"; then
3223 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3225 else
3226 { $as_echo "$as_me:$LINENO: result: no" >&5
3227 $as_echo "no" >&6; }
3232 if test -z "$CC"; then
3233 if test -n "$ac_tool_prefix"; then
3234 for ac_prog in cl.exe
3236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_prog_CC+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3257 done
3258 done
3259 IFS=$as_save_IFS
3263 CC=$ac_cv_prog_CC
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3267 else
3268 { $as_echo "$as_me:$LINENO: result: no" >&5
3269 $as_echo "no" >&6; }
3273 test -n "$CC" && break
3274 done
3276 if test -z "$CC"; then
3277 ac_ct_CC=$CC
3278 for ac_prog in cl.exe
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281 set dummy $ac_prog; ac_word=$2
3282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3285 $as_echo_n "(cached) " >&6
3286 else
3287 if test -n "$ac_ct_CC"; then
3288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_ac_ct_CC="$ac_prog"
3298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3301 done
3302 done
3303 IFS=$as_save_IFS
3307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3308 if test -n "$ac_ct_CC"; then
3309 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3310 $as_echo "$ac_ct_CC" >&6; }
3311 else
3312 { $as_echo "$as_me:$LINENO: result: no" >&5
3313 $as_echo "no" >&6; }
3317 test -n "$ac_ct_CC" && break
3318 done
3320 if test "x$ac_ct_CC" = x; then
3321 CC=""
3322 else
3323 case $cross_compiling:$ac_tool_warned in
3324 yes:)
3325 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3326 whose name does not start with the host triplet. If you think this
3327 configuration is useful to you, please write to autoconf@gnu.org." >&5
3328 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3329 whose name does not start with the host triplet. If you think this
3330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3331 ac_tool_warned=yes ;;
3332 esac
3333 CC=$ac_ct_CC
3340 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3341 See \`config.log' for more details." >&5
3342 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3343 See \`config.log' for more details." >&2;}
3344 { (exit 1); exit 1; }; }
3346 # Provide some information about the compiler.
3347 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3348 set X $ac_compile
3349 ac_compiler=$2
3350 { (ac_try="$ac_compiler --version >&5"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356 $as_echo "$ac_try_echo") >&5
3357 (eval "$ac_compiler --version >&5") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }
3361 { (ac_try="$ac_compiler -v >&5"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3367 $as_echo "$ac_try_echo") >&5
3368 (eval "$ac_compiler -v >&5") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }
3372 { (ac_try="$ac_compiler -V >&5"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3378 $as_echo "$ac_try_echo") >&5
3379 (eval "$ac_compiler -V >&5") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3392 main ()
3396 return 0;
3398 _ACEOF
3399 ac_clean_files_save=$ac_clean_files
3400 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3401 # Try to create an executable without -o first, disregard a.out.
3402 # It will help us diagnose broken compilers, and finding out an intuition
3403 # of exeext.
3404 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3405 $as_echo_n "checking for C compiler default output file name... " >&6; }
3406 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3408 # The possible output files:
3409 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3411 ac_rmfiles=
3412 for ac_file in $ac_files
3414 case $ac_file in
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3417 esac
3418 done
3419 rm -f $ac_rmfiles
3421 if { (ac_try="$ac_link_default"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3427 $as_echo "$ac_try_echo") >&5
3428 (eval "$ac_link_default") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; then
3432 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3433 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3434 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3435 # so that the user can short-circuit this test for compilers unknown to
3436 # Autoconf.
3437 for ac_file in $ac_files ''
3439 test -f "$ac_file" || continue
3440 case $ac_file in
3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3443 [ab].out )
3444 # We found the default executable, but exeext='' is most
3445 # certainly right.
3446 break;;
3447 *.* )
3448 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3449 then :; else
3450 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 # We set ac_cv_exeext here because the later test for it is not
3453 # safe: cross compilers may not add the suffix if given an `-o'
3454 # argument, so we may need to know it at that point already.
3455 # Even if this section looks crufty: it has the advantage of
3456 # actually working.
3457 break;;
3459 break;;
3460 esac
3461 done
3462 test "$ac_cv_exeext" = no && ac_cv_exeext=
3464 else
3465 ac_file=''
3468 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3469 $as_echo "$ac_file" >&6; }
3470 if test -z "$ac_file"; then
3471 $as_echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3475 See \`config.log' for more details." >&5
3476 $as_echo "$as_me: error: C compiler cannot create executables
3477 See \`config.log' for more details." >&2;}
3478 { (exit 77); exit 77; }; }
3481 ac_exeext=$ac_cv_exeext
3483 # Check that the compiler produces executables we can run. If not, either
3484 # the compiler is broken, or we cross compile.
3485 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3486 $as_echo_n "checking whether the C compiler works... " >&6; }
3487 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3488 # If not cross compiling, check that we can run a simple program.
3489 if test "$cross_compiling" != yes; then
3490 if { ac_try='./$ac_file'
3491 { (case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494 esac
3495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496 $as_echo "$ac_try_echo") >&5
3497 (eval "$ac_try") 2>&5
3498 ac_status=$?
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 cross_compiling=no
3502 else
3503 if test "$cross_compiling" = maybe; then
3504 cross_compiling=yes
3505 else
3506 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3507 If you meant to cross compile, use \`--host'.
3508 See \`config.log' for more details." >&5
3509 $as_echo "$as_me: error: cannot run C compiled programs.
3510 If you meant to cross compile, use \`--host'.
3511 See \`config.log' for more details." >&2;}
3512 { (exit 1); exit 1; }; }
3516 { $as_echo "$as_me:$LINENO: result: yes" >&5
3517 $as_echo "yes" >&6; }
3519 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3520 ac_clean_files=$ac_clean_files_save
3521 # Check that the compiler produces executables we can run. If not, either
3522 # the compiler is broken, or we cross compile.
3523 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3524 $as_echo_n "checking whether we are cross compiling... " >&6; }
3525 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3526 $as_echo "$cross_compiling" >&6; }
3528 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3529 $as_echo_n "checking for suffix of executables... " >&6; }
3530 if { (ac_try="$ac_link"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3536 $as_echo "$ac_try_echo") >&5
3537 (eval "$ac_link") 2>&5
3538 ac_status=$?
3539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; then
3541 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3542 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3543 # work properly (i.e., refer to `conftest.exe'), while it won't with
3544 # `rm'.
3545 for ac_file in conftest.exe conftest conftest.*; do
3546 test -f "$ac_file" || continue
3547 case $ac_file in
3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3549 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3550 break;;
3551 * ) break;;
3552 esac
3553 done
3554 else
3555 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3556 See \`config.log' for more details." >&5
3557 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3558 See \`config.log' for more details." >&2;}
3559 { (exit 1); exit 1; }; }
3562 rm -f conftest$ac_cv_exeext
3563 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3564 $as_echo "$ac_cv_exeext" >&6; }
3566 rm -f conftest.$ac_ext
3567 EXEEXT=$ac_cv_exeext
3568 ac_exeext=$EXEEXT
3569 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3570 $as_echo_n "checking for suffix of object files... " >&6; }
3571 if test "${ac_cv_objext+set}" = set; then
3572 $as_echo_n "(cached) " >&6
3573 else
3574 cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h. */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3582 main ()
3586 return 0;
3588 _ACEOF
3589 rm -f conftest.o conftest.obj
3590 if { (ac_try="$ac_compile"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3596 $as_echo "$ac_try_echo") >&5
3597 (eval "$ac_compile") 2>&5
3598 ac_status=$?
3599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; then
3601 for ac_file in conftest.o conftest.obj conftest.*; do
3602 test -f "$ac_file" || continue;
3603 case $ac_file in
3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3605 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3606 break;;
3607 esac
3608 done
3609 else
3610 $as_echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3613 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3614 See \`config.log' for more details." >&5
3615 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3616 See \`config.log' for more details." >&2;}
3617 { (exit 1); exit 1; }; }
3620 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3622 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3623 $as_echo "$ac_cv_objext" >&6; }
3624 OBJEXT=$ac_cv_objext
3625 ac_objext=$OBJEXT
3626 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3627 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3628 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3629 $as_echo_n "(cached) " >&6
3630 else
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h. */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3639 main ()
3641 #ifndef __GNUC__
3642 choke me
3643 #endif
3646 return 0;
3648 _ACEOF
3649 rm -f conftest.$ac_objext
3650 if { (ac_try="$ac_compile"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657 (eval "$ac_compile") 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } && {
3664 test -z "$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3666 } && test -s conftest.$ac_objext; then
3667 ac_compiler_gnu=yes
3668 else
3669 $as_echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3672 ac_compiler_gnu=no
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3680 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3681 if test $ac_compiler_gnu = yes; then
3682 GCC=yes
3683 else
3684 GCC=
3686 ac_test_CFLAGS=${CFLAGS+set}
3687 ac_save_CFLAGS=$CFLAGS
3688 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3689 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3690 if test "${ac_cv_prog_cc_g+set}" = set; then
3691 $as_echo_n "(cached) " >&6
3692 else
3693 ac_save_c_werror_flag=$ac_c_werror_flag
3694 ac_c_werror_flag=yes
3695 ac_cv_prog_cc_g=no
3696 CFLAGS="-g"
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3705 main ()
3709 return 0;
3711 _ACEOF
3712 rm -f conftest.$ac_objext
3713 if { (ac_try="$ac_compile"
3714 case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717 esac
3718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3719 $as_echo "$ac_try_echo") >&5
3720 (eval "$ac_compile") 2>conftest.er1
3721 ac_status=$?
3722 grep -v '^ *+' conftest.er1 >conftest.err
3723 rm -f conftest.er1
3724 cat conftest.err >&5
3725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } && {
3727 test -z "$ac_c_werror_flag" ||
3728 test ! -s conftest.err
3729 } && test -s conftest.$ac_objext; then
3730 ac_cv_prog_cc_g=yes
3731 else
3732 $as_echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 CFLAGS=""
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3744 main ()
3748 return 0;
3750 _ACEOF
3751 rm -f conftest.$ac_objext
3752 if { (ac_try="$ac_compile"
3753 case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3758 $as_echo "$ac_try_echo") >&5
3759 (eval "$ac_compile") 2>conftest.er1
3760 ac_status=$?
3761 grep -v '^ *+' conftest.er1 >conftest.err
3762 rm -f conftest.er1
3763 cat conftest.err >&5
3764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } && {
3766 test -z "$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 } && test -s conftest.$ac_objext; then
3770 else
3771 $as_echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 ac_c_werror_flag=$ac_save_c_werror_flag
3775 CFLAGS="-g"
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3784 main ()
3788 return 0;
3790 _ACEOF
3791 rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3798 $as_echo "$ac_try_echo") >&5
3799 (eval "$ac_compile") 2>conftest.er1
3800 ac_status=$?
3801 grep -v '^ *+' conftest.er1 >conftest.err
3802 rm -f conftest.er1
3803 cat conftest.err >&5
3804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } && {
3806 test -z "$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3808 } && test -s conftest.$ac_objext; then
3809 ac_cv_prog_cc_g=yes
3810 else
3811 $as_echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_c_werror_flag=$ac_save_c_werror_flag
3826 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3827 $as_echo "$ac_cv_prog_cc_g" >&6; }
3828 if test "$ac_test_CFLAGS" = set; then
3829 CFLAGS=$ac_save_CFLAGS
3830 elif test $ac_cv_prog_cc_g = yes; then
3831 if test "$GCC" = yes; then
3832 CFLAGS="-g -O2"
3833 else
3834 CFLAGS="-g"
3836 else
3837 if test "$GCC" = yes; then
3838 CFLAGS="-O2"
3839 else
3840 CFLAGS=
3843 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3844 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3845 if test "${ac_cv_prog_cc_c89+set}" = set; then
3846 $as_echo_n "(cached) " >&6
3847 else
3848 ac_cv_prog_cc_c89=no
3849 ac_save_CC=$CC
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 #include <stdarg.h>
3857 #include <stdio.h>
3858 #include <sys/types.h>
3859 #include <sys/stat.h>
3860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3861 struct buf { int x; };
3862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3863 static char *e (p, i)
3864 char **p;
3865 int i;
3867 return p[i];
3869 static char *f (char * (*g) (char **, int), char **p, ...)
3871 char *s;
3872 va_list v;
3873 va_start (v,p);
3874 s = g (p, va_arg (v,int));
3875 va_end (v);
3876 return s;
3879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3880 function prototypes and stuff, but not '\xHH' hex character constants.
3881 These don't provoke an error unfortunately, instead are silently treated
3882 as 'x'. The following induces an error, until -std is added to get
3883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3884 array size at least. It's necessary to write '\x00'==0 to get something
3885 that's true only with -std. */
3886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3889 inside strings and character constants. */
3890 #define FOO(x) 'x'
3891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3893 int test (int i, double x);
3894 struct s1 {int (*f) (int a);};
3895 struct s2 {int (*f) (double a);};
3896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3897 int argc;
3898 char **argv;
3900 main ()
3902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3904 return 0;
3906 _ACEOF
3907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3910 CC="$ac_save_CC $ac_arg"
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3913 case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3918 $as_echo "$ac_try_echo") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3929 ac_cv_prog_cc_c89=$ac_arg
3930 else
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3937 rm -f core conftest.err conftest.$ac_objext
3938 test "x$ac_cv_prog_cc_c89" != "xno" && break
3939 done
3940 rm -f conftest.$ac_ext
3941 CC=$ac_save_CC
3944 # AC_CACHE_VAL
3945 case "x$ac_cv_prog_cc_c89" in
3947 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3948 $as_echo "none needed" >&6; } ;;
3949 xno)
3950 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3951 $as_echo "unsupported" >&6; } ;;
3953 CC="$CC $ac_cv_prog_cc_c89"
3954 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3955 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3956 esac
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966 # On Suns, sometimes $CPP names a directory.
3967 if test -n "$CPP" && test -d "$CPP"; then
3968 CPP=
3971 ## If not using gcc, and on Solaris, and no CPP specified, see if
3972 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3973 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3974 test x"$CPP" = x; then
3975 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3976 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3978 if test "${emacs_cv_sunpro_c+set}" = set; then
3979 $as_echo_n "(cached) " >&6
3980 else
3981 cat >conftest.$ac_ext <<_ACEOF
3982 /* confdefs.h. */
3983 _ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3989 main ()
3991 #ifndef __SUNPRO_C
3992 fail;
3993 #endif
3996 return 0;
3998 _ACEOF
3999 rm -f conftest.$ac_objext conftest$ac_exeext
4000 if { (ac_try="$ac_link"
4001 case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4006 $as_echo "$ac_try_echo") >&5
4007 (eval "$ac_link") 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } && {
4014 test -z "$ac_c_werror_flag" ||
4015 test ! -s conftest.err
4016 } && test -s conftest$ac_exeext && {
4017 test "$cross_compiling" = yes ||
4018 $as_test_x conftest$ac_exeext
4019 }; then
4020 emacs_cv_sunpro_c=yes
4021 else
4022 $as_echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 emacs_cv_sunpro_c=no
4028 rm -rf conftest.dSYM
4029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4030 conftest$ac_exeext conftest.$ac_ext
4033 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4034 $as_echo "$emacs_cv_sunpro_c" >&6; }
4036 if test x"$emacs_cv_sunpro_c" = xyes; then
4037 NON_GNU_CPP="$CC -E -Xs"
4041 #### Some systems specify a CPP to use unless we are using GCC.
4042 #### Now that we know whether we are using GCC, we can decide whether
4043 #### to use that one.
4044 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4045 then
4046 CPP="$NON_GNU_CPP"
4049 #### Some systems specify a CC to use unless we are using GCC.
4050 #### Now that we know whether we are using GCC, we can decide whether
4051 #### to use that one.
4052 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4053 test x$cc_specified != xyes
4054 then
4055 CC="$NON_GNU_CC"
4058 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4059 then
4060 CC="$CC $GCC_TEST_OPTIONS"
4063 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4064 then
4065 CC="$CC $NON_GCC_TEST_OPTIONS"
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4074 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4075 # On Suns, sometimes $CPP names a directory.
4076 if test -n "$CPP" && test -d "$CPP"; then
4077 CPP=
4079 if test -z "$CPP"; then
4080 if test "${ac_cv_prog_CPP+set}" = set; then
4081 $as_echo_n "(cached) " >&6
4082 else
4083 # Double quotes because CPP needs to be expanded
4084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4086 ac_preproc_ok=false
4087 for ac_c_preproc_warn_flag in '' yes
4089 # Use a header file that comes with gcc, so configuring glibc
4090 # with a fresh cross-compiler works.
4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 # <limits.h> exists even on freestanding compilers.
4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4094 # not just through cpp. "Syntax error" is here to catch this case.
4095 cat >conftest.$ac_ext <<_ACEOF
4096 /* confdefs.h. */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 #ifdef __STDC__
4102 # include <limits.h>
4103 #else
4104 # include <assert.h>
4105 #endif
4106 Syntax error
4107 _ACEOF
4108 if { (ac_try="$ac_cpp conftest.$ac_ext"
4109 case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112 esac
4113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4114 $as_echo "$ac_try_echo") >&5
4115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4116 ac_status=$?
4117 grep -v '^ *+' conftest.er1 >conftest.err
4118 rm -f conftest.er1
4119 cat conftest.err >&5
4120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } >/dev/null && {
4122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4123 test ! -s conftest.err
4124 }; then
4126 else
4127 $as_echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 # Broken: fails on valid input.
4131 continue
4134 rm -f conftest.err conftest.$ac_ext
4136 # OK, works on sane cases. Now check whether nonexistent headers
4137 # can be detected and how.
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <ac_nonexistent.h>
4145 _ACEOF
4146 if { (ac_try="$ac_cpp conftest.$ac_ext"
4147 case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150 esac
4151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4152 $as_echo "$ac_try_echo") >&5
4153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4154 ac_status=$?
4155 grep -v '^ *+' conftest.er1 >conftest.err
4156 rm -f conftest.er1
4157 cat conftest.err >&5
4158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } >/dev/null && {
4160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4161 test ! -s conftest.err
4162 }; then
4163 # Broken: success on invalid input.
4164 continue
4165 else
4166 $as_echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 # Passes both tests.
4170 ac_preproc_ok=:
4171 break
4174 rm -f conftest.err conftest.$ac_ext
4176 done
4177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4178 rm -f conftest.err conftest.$ac_ext
4179 if $ac_preproc_ok; then
4180 break
4183 done
4184 ac_cv_prog_CPP=$CPP
4187 CPP=$ac_cv_prog_CPP
4188 else
4189 ac_cv_prog_CPP=$CPP
4191 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4192 $as_echo "$CPP" >&6; }
4193 ac_preproc_ok=false
4194 for ac_c_preproc_warn_flag in '' yes
4196 # Use a header file that comes with gcc, so configuring glibc
4197 # with a fresh cross-compiler works.
4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 # <limits.h> exists even on freestanding compilers.
4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4201 # not just through cpp. "Syntax error" is here to catch this case.
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208 #ifdef __STDC__
4209 # include <limits.h>
4210 #else
4211 # include <assert.h>
4212 #endif
4213 Syntax error
4214 _ACEOF
4215 if { (ac_try="$ac_cpp conftest.$ac_ext"
4216 case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4221 $as_echo "$ac_try_echo") >&5
4222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
4227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } >/dev/null && {
4229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4230 test ! -s conftest.err
4231 }; then
4233 else
4234 $as_echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 # Broken: fails on valid input.
4238 continue
4241 rm -f conftest.err conftest.$ac_ext
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h. */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #include <ac_nonexistent.h>
4252 _ACEOF
4253 if { (ac_try="$ac_cpp conftest.$ac_ext"
4254 case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257 esac
4258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4259 $as_echo "$ac_try_echo") >&5
4260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4261 ac_status=$?
4262 grep -v '^ *+' conftest.er1 >conftest.err
4263 rm -f conftest.er1
4264 cat conftest.err >&5
4265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } >/dev/null && {
4267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4268 test ! -s conftest.err
4269 }; then
4270 # Broken: success on invalid input.
4271 continue
4272 else
4273 $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 # Passes both tests.
4277 ac_preproc_ok=:
4278 break
4281 rm -f conftest.err conftest.$ac_ext
4283 done
4284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4285 rm -f conftest.err conftest.$ac_ext
4286 if $ac_preproc_ok; then
4288 else
4289 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4290 See \`config.log' for more details." >&5
4291 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4292 See \`config.log' for more details." >&2;}
4293 { (exit 1); exit 1; }; }
4296 ac_ext=c
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4304 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4305 if test "${ac_cv_path_GREP+set}" = set; then
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -z "$GREP"; then
4309 ac_path_GREP_found=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_prog in grep ggrep; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4320 # Check for GNU ac_path_GREP and select it if it is found.
4321 # Check for GNU $ac_path_GREP
4322 case `"$ac_path_GREP" --version 2>&1` in
4323 *GNU*)
4324 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4326 ac_count=0
4327 $as_echo_n 0123456789 >"conftest.in"
4328 while :
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'GREP' >> "conftest.nl"
4334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336 ac_count=`expr $ac_count + 1`
4337 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_GREP="$ac_path_GREP"
4340 ac_path_GREP_max=$ac_count
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4344 done
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346 esac
4348 $ac_path_GREP_found && break 3
4349 done
4350 done
4351 done
4352 IFS=$as_save_IFS
4353 if test -z "$ac_cv_path_GREP"; then
4354 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4355 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4356 { (exit 1); exit 1; }; }
4358 else
4359 ac_cv_path_GREP=$GREP
4363 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4364 $as_echo "$ac_cv_path_GREP" >&6; }
4365 GREP="$ac_cv_path_GREP"
4368 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4369 $as_echo_n "checking for egrep... " >&6; }
4370 if test "${ac_cv_path_EGREP+set}" = set; then
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4374 then ac_cv_path_EGREP="$GREP -E"
4375 else
4376 if test -z "$EGREP"; then
4377 ac_path_EGREP_found=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_prog in egrep; do
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4387 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4388 # Check for GNU ac_path_EGREP and select it if it is found.
4389 # Check for GNU $ac_path_EGREP
4390 case `"$ac_path_EGREP" --version 2>&1` in
4391 *GNU*)
4392 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4394 ac_count=0
4395 $as_echo_n 0123456789 >"conftest.in"
4396 while :
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 $as_echo 'EGREP' >> "conftest.nl"
4402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4404 ac_count=`expr $ac_count + 1`
4405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_EGREP="$ac_path_EGREP"
4408 ac_path_EGREP_max=$ac_count
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4412 done
4413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414 esac
4416 $ac_path_EGREP_found && break 3
4417 done
4418 done
4419 done
4420 IFS=$as_save_IFS
4421 if test -z "$ac_cv_path_EGREP"; then
4422 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4423 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4424 { (exit 1); exit 1; }; }
4426 else
4427 ac_cv_path_EGREP=$EGREP
4432 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4433 $as_echo "$ac_cv_path_EGREP" >&6; }
4434 EGREP="$ac_cv_path_EGREP"
4437 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4438 $as_echo_n "checking for ANSI C header files... " >&6; }
4439 if test "${ac_cv_header_stdc+set}" = set; then
4440 $as_echo_n "(cached) " >&6
4441 else
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h. */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448 #include <stdlib.h>
4449 #include <stdarg.h>
4450 #include <string.h>
4451 #include <float.h>
4454 main ()
4458 return 0;
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (ac_try="$ac_compile"
4463 case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4468 $as_echo "$ac_try_echo") >&5
4469 (eval "$ac_compile") 2>conftest.er1
4470 ac_status=$?
4471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && {
4476 test -z "$ac_c_werror_flag" ||
4477 test ! -s conftest.err
4478 } && test -s conftest.$ac_objext; then
4479 ac_cv_header_stdc=yes
4480 else
4481 $as_echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 ac_cv_header_stdc=no
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 if test $ac_cv_header_stdc = yes; then
4490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4491 cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h. */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4497 #include <string.h>
4499 _ACEOF
4500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4501 $EGREP "memchr" >/dev/null 2>&1; then
4503 else
4504 ac_cv_header_stdc=no
4506 rm -f conftest*
4510 if test $ac_cv_header_stdc = yes; then
4511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4512 cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h. */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 #include <stdlib.h>
4520 _ACEOF
4521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4522 $EGREP "free" >/dev/null 2>&1; then
4524 else
4525 ac_cv_header_stdc=no
4527 rm -f conftest*
4531 if test $ac_cv_header_stdc = yes; then
4532 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4533 if test "$cross_compiling" = yes; then
4535 else
4536 cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h. */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4542 #include <ctype.h>
4543 #include <stdlib.h>
4544 #if ((' ' & 0x0FF) == 0x020)
4545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4547 #else
4548 # define ISLOWER(c) \
4549 (('a' <= (c) && (c) <= 'i') \
4550 || ('j' <= (c) && (c) <= 'r') \
4551 || ('s' <= (c) && (c) <= 'z'))
4552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4553 #endif
4555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4557 main ()
4559 int i;
4560 for (i = 0; i < 256; i++)
4561 if (XOR (islower (i), ISLOWER (i))
4562 || toupper (i) != TOUPPER (i))
4563 return 2;
4564 return 0;
4566 _ACEOF
4567 rm -f conftest$ac_exeext
4568 if { (ac_try="$ac_link"
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_link") 2>&5
4576 ac_status=$?
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4579 { (case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582 esac
4583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4584 $as_echo "$ac_try_echo") >&5
4585 (eval "$ac_try") 2>&5
4586 ac_status=$?
4587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4590 else
4591 $as_echo "$as_me: program exited with status $ac_status" >&5
4592 $as_echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 ( exit $ac_status )
4596 ac_cv_header_stdc=no
4598 rm -rf conftest.dSYM
4599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4606 $as_echo "$ac_cv_header_stdc" >&6; }
4607 if test $ac_cv_header_stdc = yes; then
4609 cat >>confdefs.h <<\_ACEOF
4610 #define STDC_HEADERS 1
4611 _ACEOF
4615 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4625 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4626 inttypes.h stdint.h unistd.h
4628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4630 $as_echo_n "checking for $ac_header... " >&6; }
4631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4632 $as_echo_n "(cached) " >&6
4633 else
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 $ac_includes_default
4642 #include <$ac_header>
4643 _ACEOF
4644 rm -f conftest.$ac_objext
4645 if { (ac_try="$ac_compile"
4646 case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649 esac
4650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4651 $as_echo "$ac_try_echo") >&5
4652 (eval "$ac_compile") 2>conftest.er1
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && {
4659 test -z "$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 } && test -s conftest.$ac_objext; then
4662 eval "$as_ac_Header=yes"
4663 else
4664 $as_echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4667 eval "$as_ac_Header=no"
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 ac_res=`eval 'as_val=${'$as_ac_Header'}
4673 $as_echo "$as_val"'`
4674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4675 $as_echo "$ac_res" >&6; }
4676 if test `eval 'as_val=${'$as_ac_Header'}
4677 $as_echo "$as_val"'` = yes; then
4678 cat >>confdefs.h <<_ACEOF
4679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4680 _ACEOF
4684 done
4688 if test "${ac_cv_header_minix_config_h+set}" = set; then
4689 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4690 $as_echo_n "checking for minix/config.h... " >&6; }
4691 if test "${ac_cv_header_minix_config_h+set}" = set; then
4692 $as_echo_n "(cached) " >&6
4694 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4695 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4696 else
4697 # Is the header compilable?
4698 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4699 $as_echo_n "checking minix/config.h usability... " >&6; }
4700 cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h. */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4706 $ac_includes_default
4707 #include <minix/config.h>
4708 _ACEOF
4709 rm -f conftest.$ac_objext
4710 if { (ac_try="$ac_compile"
4711 case "(($ac_try" in
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4714 esac
4715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4716 $as_echo "$ac_try_echo") >&5
4717 (eval "$ac_compile") 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } && {
4724 test -z "$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 } && test -s conftest.$ac_objext; then
4727 ac_header_compiler=yes
4728 else
4729 $as_echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4732 ac_header_compiler=no
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4737 $as_echo "$ac_header_compiler" >&6; }
4739 # Is the header present?
4740 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4741 $as_echo_n "checking minix/config.h presence... " >&6; }
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 #include <minix/config.h>
4749 _ACEOF
4750 if { (ac_try="$ac_cpp conftest.$ac_ext"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } >/dev/null && {
4764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 }; then
4767 ac_header_preproc=yes
4768 else
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 ac_header_preproc=no
4775 rm -f conftest.err conftest.$ac_ext
4776 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4777 $as_echo "$ac_header_preproc" >&6; }
4779 # So? What about this header?
4780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4781 yes:no: )
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4783 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4785 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4786 ac_header_preproc=yes
4788 no:yes:* )
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4791 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4792 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4794 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4795 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4796 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4797 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4798 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4799 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4800 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4803 esac
4804 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4805 $as_echo_n "checking for minix/config.h... " >&6; }
4806 if test "${ac_cv_header_minix_config_h+set}" = set; then
4807 $as_echo_n "(cached) " >&6
4808 else
4809 ac_cv_header_minix_config_h=$ac_header_preproc
4811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4812 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4815 if test $ac_cv_header_minix_config_h = yes; then
4816 MINIX=yes
4817 else
4818 MINIX=
4822 if test "$MINIX" = yes; then
4824 cat >>confdefs.h <<\_ACEOF
4825 #define _POSIX_SOURCE 1
4826 _ACEOF
4829 cat >>confdefs.h <<\_ACEOF
4830 #define _POSIX_1_SOURCE 2
4831 _ACEOF
4834 cat >>confdefs.h <<\_ACEOF
4835 #define _MINIX 1
4836 _ACEOF
4842 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4843 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4844 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4854 # define __EXTENSIONS__ 1
4855 $ac_includes_default
4857 main ()
4861 return 0;
4863 _ACEOF
4864 rm -f conftest.$ac_objext
4865 if { (ac_try="$ac_compile"
4866 case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869 esac
4870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4871 $as_echo "$ac_try_echo") >&5
4872 (eval "$ac_compile") 2>conftest.er1
4873 ac_status=$?
4874 grep -v '^ *+' conftest.er1 >conftest.err
4875 rm -f conftest.er1
4876 cat conftest.err >&5
4877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } && {
4879 test -z "$ac_c_werror_flag" ||
4880 test ! -s conftest.err
4881 } && test -s conftest.$ac_objext; then
4882 ac_cv_safe_to_define___extensions__=yes
4883 else
4884 $as_echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ac_cv_safe_to_define___extensions__=no
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4893 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4894 test $ac_cv_safe_to_define___extensions__ = yes &&
4895 cat >>confdefs.h <<\_ACEOF
4896 #define __EXTENSIONS__ 1
4897 _ACEOF
4899 cat >>confdefs.h <<\_ACEOF
4900 #define _ALL_SOURCE 1
4901 _ACEOF
4903 cat >>confdefs.h <<\_ACEOF
4904 #define _GNU_SOURCE 1
4905 _ACEOF
4907 cat >>confdefs.h <<\_ACEOF
4908 #define _POSIX_PTHREAD_SEMANTICS 1
4909 _ACEOF
4911 cat >>confdefs.h <<\_ACEOF
4912 #define _TANDEM_SOURCE 1
4913 _ACEOF
4917 ### Use -Wno-pointer-sign if the compiler supports it
4918 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4919 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4920 SAVE_CFLAGS="$CFLAGS"
4921 CFLAGS="$CFLAGS -Wno-pointer-sign"
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4930 main ()
4934 return 0;
4936 _ACEOF
4937 rm -f conftest.$ac_objext
4938 if { (ac_try="$ac_compile"
4939 case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942 esac
4943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4944 $as_echo "$ac_try_echo") >&5
4945 (eval "$ac_compile") 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } && {
4952 test -z "$ac_c_werror_flag" ||
4953 test ! -s conftest.err
4954 } && test -s conftest.$ac_objext; then
4955 has_option=yes
4956 else
4957 $as_echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4960 has_option=no
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 if test $has_option = yes; then
4965 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4967 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4968 $as_echo "$has_option" >&6; }
4969 CFLAGS="$SAVE_CFLAGS"
4970 unset has_option
4971 unset SAVE_CFLAGS
4973 ### Use -Wdeclaration-after-statement if the compiler supports it
4974 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4975 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4976 SAVE_CFLAGS="$CFLAGS"
4977 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4986 main ()
4990 return 0;
4992 _ACEOF
4993 rm -f conftest.$ac_objext
4994 if { (ac_try="$ac_compile"
4995 case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998 esac
4999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5000 $as_echo "$ac_try_echo") >&5
5001 (eval "$ac_compile") 2>conftest.er1
5002 ac_status=$?
5003 grep -v '^ *+' conftest.er1 >conftest.err
5004 rm -f conftest.er1
5005 cat conftest.err >&5
5006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } && {
5008 test -z "$ac_c_werror_flag" ||
5009 test ! -s conftest.err
5010 } && test -s conftest.$ac_objext; then
5011 has_option=yes
5012 else
5013 $as_echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 has_option=no
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020 if test $has_option = yes; then
5021 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5023 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5024 $as_echo "$has_option" >&6; }
5025 CFLAGS="$SAVE_CFLAGS"
5026 unset has_option
5027 unset SAVE_CFLAGS
5029 #### Some other nice autoconf tests.
5031 ac_ext=c
5032 ac_cpp='$CPP $CPPFLAGS'
5033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5036 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5038 # On Suns, sometimes $CPP names a directory.
5039 if test -n "$CPP" && test -d "$CPP"; then
5040 CPP=
5042 if test -z "$CPP"; then
5043 if test "${ac_cv_prog_CPP+set}" = set; then
5044 $as_echo_n "(cached) " >&6
5045 else
5046 # Double quotes because CPP needs to be expanded
5047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5049 ac_preproc_ok=false
5050 for ac_c_preproc_warn_flag in '' yes
5052 # Use a header file that comes with gcc, so configuring glibc
5053 # with a fresh cross-compiler works.
5054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055 # <limits.h> exists even on freestanding compilers.
5056 # On the NeXT, cc -E runs the code through the compiler's parser,
5057 # not just through cpp. "Syntax error" is here to catch this case.
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 #ifdef __STDC__
5065 # include <limits.h>
5066 #else
5067 # include <assert.h>
5068 #endif
5069 Syntax error
5070 _ACEOF
5071 if { (ac_try="$ac_cpp conftest.$ac_ext"
5072 case "(($ac_try" in
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5075 esac
5076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5077 $as_echo "$ac_try_echo") >&5
5078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } >/dev/null && {
5085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5087 }; then
5089 else
5090 $as_echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 # Broken: fails on valid input.
5094 continue
5097 rm -f conftest.err conftest.$ac_ext
5099 # OK, works on sane cases. Now check whether nonexistent headers
5100 # can be detected and how.
5101 cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h. */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 #include <ac_nonexistent.h>
5108 _ACEOF
5109 if { (ac_try="$ac_cpp conftest.$ac_ext"
5110 case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113 esac
5114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5115 $as_echo "$ac_try_echo") >&5
5116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } >/dev/null && {
5123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5124 test ! -s conftest.err
5125 }; then
5126 # Broken: success on invalid input.
5127 continue
5128 else
5129 $as_echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 # Passes both tests.
5133 ac_preproc_ok=:
5134 break
5137 rm -f conftest.err conftest.$ac_ext
5139 done
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then
5143 break
5146 done
5147 ac_cv_prog_CPP=$CPP
5150 CPP=$ac_cv_prog_CPP
5151 else
5152 ac_cv_prog_CPP=$CPP
5154 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5155 $as_echo "$CPP" >&6; }
5156 ac_preproc_ok=false
5157 for ac_c_preproc_warn_flag in '' yes
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 #ifdef __STDC__
5172 # include <limits.h>
5173 #else
5174 # include <assert.h>
5175 #endif
5176 Syntax error
5177 _ACEOF
5178 if { (ac_try="$ac_cpp conftest.$ac_ext"
5179 case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182 esac
5183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5184 $as_echo "$ac_try_echo") >&5
5185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } >/dev/null && {
5192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5193 test ! -s conftest.err
5194 }; then
5196 else
5197 $as_echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5200 # Broken: fails on valid input.
5201 continue
5204 rm -f conftest.err conftest.$ac_ext
5206 # OK, works on sane cases. Now check whether nonexistent headers
5207 # can be detected and how.
5208 cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h. */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <ac_nonexistent.h>
5215 _ACEOF
5216 if { (ac_try="$ac_cpp conftest.$ac_ext"
5217 case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5220 esac
5221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5222 $as_echo "$ac_try_echo") >&5
5223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5224 ac_status=$?
5225 grep -v '^ *+' conftest.er1 >conftest.err
5226 rm -f conftest.er1
5227 cat conftest.err >&5
5228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev/null && {
5230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5231 test ! -s conftest.err
5232 }; then
5233 # Broken: success on invalid input.
5234 continue
5235 else
5236 $as_echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5239 # Passes both tests.
5240 ac_preproc_ok=:
5241 break
5244 rm -f conftest.err conftest.$ac_ext
5246 done
5247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248 rm -f conftest.err conftest.$ac_ext
5249 if $ac_preproc_ok; then
5251 else
5252 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5253 See \`config.log' for more details." >&5
5254 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5255 See \`config.log' for more details." >&2;}
5256 { (exit 1); exit 1; }; }
5259 ac_ext=c
5260 ac_cpp='$CPP $CPPFLAGS'
5261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5265 # Find a good install program. We prefer a C program (faster),
5266 # so one script is as good as another. But avoid the broken or
5267 # incompatible versions:
5268 # SysV /etc/install, /usr/sbin/install
5269 # SunOS /usr/etc/install
5270 # IRIX /sbin/install
5271 # AIX /bin/install
5272 # AmigaOS /C/install, which installs bootblocks on floppy discs
5273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5276 # OS/2's system install, which has a completely different semantic
5277 # ./install, which can be erroneously created by make from ./install.sh.
5278 # Reject install programs that cannot install multiple files.
5279 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5280 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5281 if test -z "$INSTALL"; then
5282 if test "${ac_cv_path_install+set}" = set; then
5283 $as_echo_n "(cached) " >&6
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 # Account for people who put trailing slashes in PATH elements.
5291 case $as_dir/ in
5292 ./ | .// | /cC/* | \
5293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5294 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5295 /usr/ucb/* ) ;;
5297 # OSF1 and SCO ODT 3.0 have their own names for install.
5298 # Don't use installbsd from OSF since it installs stuff as root
5299 # by default.
5300 for ac_prog in ginstall scoinst install; do
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5303 if test $ac_prog = install &&
5304 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5305 # AIX install. It has an incompatible calling convention.
5307 elif test $ac_prog = install &&
5308 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5309 # program-specific install script used by HP pwplus--don't use.
5311 else
5312 rm -rf conftest.one conftest.two conftest.dir
5313 echo one > conftest.one
5314 echo two > conftest.two
5315 mkdir conftest.dir
5316 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5317 test -s conftest.one && test -s conftest.two &&
5318 test -s conftest.dir/conftest.one &&
5319 test -s conftest.dir/conftest.two
5320 then
5321 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5322 break 3
5326 done
5327 done
5329 esac
5331 done
5332 IFS=$as_save_IFS
5334 rm -rf conftest.one conftest.two conftest.dir
5337 if test "${ac_cv_path_install+set}" = set; then
5338 INSTALL=$ac_cv_path_install
5339 else
5340 # As a last resort, use the slow shell script. Don't cache a
5341 # value for INSTALL within a source directory, because that will
5342 # break other packages using the cache if that directory is
5343 # removed, or if the value is a relative name.
5344 INSTALL=$ac_install_sh
5347 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5348 $as_echo "$INSTALL" >&6; }
5350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5351 # It thinks the first close brace ends the variable substitution.
5352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5358 if test "x$RANLIB" = x; then
5359 if test -n "$ac_tool_prefix"; then
5360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if test "${ac_cv_prog_RANLIB+set}" = set; then
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$RANLIB"; then
5368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5381 done
5382 done
5383 IFS=$as_save_IFS
5387 RANLIB=$ac_cv_prog_RANLIB
5388 if test -n "$RANLIB"; then
5389 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5390 $as_echo "$RANLIB" >&6; }
5391 else
5392 { $as_echo "$as_me:$LINENO: result: no" >&5
5393 $as_echo "no" >&6; }
5398 if test -z "$ac_cv_prog_RANLIB"; then
5399 ac_ct_RANLIB=$RANLIB
5400 # Extract the first word of "ranlib", so it can be a program name with args.
5401 set dummy ranlib; ac_word=$2
5402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5405 $as_echo_n "(cached) " >&6
5406 else
5407 if test -n "$ac_ct_RANLIB"; then
5408 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_prog_ac_ct_RANLIB="ranlib"
5418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5421 done
5422 done
5423 IFS=$as_save_IFS
5427 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5428 if test -n "$ac_ct_RANLIB"; then
5429 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5430 $as_echo "$ac_ct_RANLIB" >&6; }
5431 else
5432 { $as_echo "$as_me:$LINENO: result: no" >&5
5433 $as_echo "no" >&6; }
5436 if test "x$ac_ct_RANLIB" = x; then
5437 RANLIB=":"
5438 else
5439 case $cross_compiling:$ac_tool_warned in
5440 yes:)
5441 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5442 whose name does not start with the host triplet. If you think this
5443 configuration is useful to you, please write to autoconf@gnu.org." >&5
5444 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5445 whose name does not start with the host triplet. If you think this
5446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5447 ac_tool_warned=yes ;;
5448 esac
5449 RANLIB=$ac_ct_RANLIB
5451 else
5452 RANLIB="$ac_cv_prog_RANLIB"
5457 ## Although we're running on an amd64 kernel, we're actually compiling for
5458 ## the x86 architecture. The user should probably have provided an
5459 ## explicit --build to `configure', but if everything else than the kernel
5460 ## is running in i386 mode, we can help them out.
5461 if test "$machine" = "amdx86-64"; then
5462 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5463 $as_echo_n "checking whether i386 is declared... " >&6; }
5464 if test "${ac_cv_have_decl_i386+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5466 else
5467 cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h. */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 $ac_includes_default
5475 main ()
5477 #ifndef i386
5478 (void) i386;
5479 #endif
5482 return 0;
5484 _ACEOF
5485 rm -f conftest.$ac_objext
5486 if { (ac_try="$ac_compile"
5487 case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490 esac
5491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5492 $as_echo "$ac_try_echo") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest.$ac_objext; then
5503 ac_cv_have_decl_i386=yes
5504 else
5505 $as_echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_cv_have_decl_i386=no
5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5514 $as_echo "$ac_cv_have_decl_i386" >&6; }
5516 if test "$ac_cv_have_decl_i386" = "yes"; then
5517 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5518 machine=intel386
5519 machfile="m/${machine}.h"
5523 # Extract the first word of "install-info", so it can be a program name with args.
5524 set dummy install-info; ac_word=$2
5525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5528 $as_echo_n "(cached) " >&6
5529 else
5530 case $INSTALL_INFO in
5531 [\\/]* | ?:[\\/]*)
5532 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5546 done
5547 done
5548 IFS=$as_save_IFS
5551 esac
5553 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5554 if test -n "$INSTALL_INFO"; then
5555 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5556 $as_echo "$INSTALL_INFO" >&6; }
5557 else
5558 { $as_echo "$as_me:$LINENO: result: no" >&5
5559 $as_echo "no" >&6; }
5563 # Extract the first word of "install-info", so it can be a program name with args.
5564 set dummy install-info; ac_word=$2
5565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5568 $as_echo_n "(cached) " >&6
5569 else
5570 case $INSTALL_INFO in
5571 [\\/]* | ?:[\\/]*)
5572 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in /usr/sbin
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 break 2
5586 done
5587 done
5588 IFS=$as_save_IFS
5591 esac
5593 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5594 if test -n "$INSTALL_INFO"; then
5595 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5596 $as_echo "$INSTALL_INFO" >&6; }
5597 else
5598 { $as_echo "$as_me:$LINENO: result: no" >&5
5599 $as_echo "no" >&6; }
5603 # Extract the first word of "install-info", so it can be a program name with args.
5604 set dummy install-info; ac_word=$2
5605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5608 $as_echo_n "(cached) " >&6
5609 else
5610 case $INSTALL_INFO in
5611 [\\/]* | ?:[\\/]*)
5612 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in /sbin
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5626 done
5627 done
5628 IFS=$as_save_IFS
5630 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5632 esac
5634 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5635 if test -n "$INSTALL_INFO"; then
5636 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5637 $as_echo "$INSTALL_INFO" >&6; }
5638 else
5639 { $as_echo "$as_me:$LINENO: result: no" >&5
5640 $as_echo "no" >&6; }
5644 # Extract the first word of "gzip", so it can be a program name with args.
5645 set dummy gzip; ac_word=$2
5646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5649 $as_echo_n "(cached) " >&6
5650 else
5651 case $GZIP_PROG in
5652 [\\/]* | ?:[\\/]*)
5653 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5667 done
5668 done
5669 IFS=$as_save_IFS
5672 esac
5674 GZIP_PROG=$ac_cv_path_GZIP_PROG
5675 if test -n "$GZIP_PROG"; then
5676 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5677 $as_echo "$GZIP_PROG" >&6; }
5678 else
5679 { $as_echo "$as_me:$LINENO: result: no" >&5
5680 $as_echo "no" >&6; }
5686 ## Need makeinfo >= 4.6 (?) to build the manuals.
5687 # Extract the first word of "makeinfo", so it can be a program name with args.
5688 set dummy makeinfo; ac_word=$2
5689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5692 $as_echo_n "(cached) " >&6
5693 else
5694 case $MAKEINFO in
5695 [\\/]* | ?:[\\/]*)
5696 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5710 done
5711 done
5712 IFS=$as_save_IFS
5714 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5716 esac
5718 MAKEINFO=$ac_cv_path_MAKEINFO
5719 if test -n "$MAKEINFO"; then
5720 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5721 $as_echo "$MAKEINFO" >&6; }
5722 else
5723 { $as_echo "$as_me:$LINENO: result: no" >&5
5724 $as_echo "no" >&6; }
5728 if test "$MAKEINFO" != "no" && \
5729 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
5730 MAKEINFO=no
5733 ## Makeinfo is unusual. For a released Emacs, the manuals are
5734 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5735 ## therefore in the category of "special tools" not normally required, which
5736 ## configure does not have to check for (eg autoconf itself).
5737 ## In a Bazaar checkout on the other hand, the manuals are not included.
5738 ## So makeinfo is a requirement to build from Bazaar, and configure
5739 ## should test for it as it does for any other build requirement.
5740 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5741 ## with pre-built manuals, from a Bazaar checkout.
5742 if test "$MAKEINFO" = "no"; then
5743 if test "x${with_makeinfo}" = "xno"; then
5744 MAKEINFO=off
5745 elif test ! -e $srcdir/info/emacs; then
5746 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5747 source tree does not seem to have pre-built manuals in the \`info' directory.
5748 Either install a suitable version of makeinfo, or re-run configure
5749 with the \`--without-makeinfo' option to build without the manuals. " >&5
5750 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5751 source tree does not seem to have pre-built manuals in the \`info' directory.
5752 Either install a suitable version of makeinfo, or re-run configure
5753 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5754 { (exit 1); exit 1; }; }
5759 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5760 then
5761 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5764 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5765 then
5766 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5770 late_LDFLAGS=$LDFLAGS
5771 if test "$GCC" = yes; then
5772 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5773 else
5774 LDFLAGS="$LDFLAGS -znocombreloc"
5777 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5778 $as_echo_n "checking for -znocombreloc... " >&6; }
5779 cat >conftest.$ac_ext <<_ACEOF
5780 main(){return 0;}
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (ac_try="$ac_link"
5784 case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787 esac
5788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789 $as_echo "$ac_try_echo") >&5
5790 (eval "$ac_link") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest$ac_exeext && {
5800 test "$cross_compiling" = yes ||
5801 $as_test_x conftest$ac_exeext
5802 }; then
5803 { $as_echo "$as_me:$LINENO: result: yes" >&5
5804 $as_echo "yes" >&6; }
5805 else
5806 $as_echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 LDFLAGS=$late_LDFLAGS
5810 { $as_echo "$as_me:$LINENO: result: no" >&5
5811 $as_echo "no" >&6; }
5814 rm -rf conftest.dSYM
5815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5816 conftest$ac_exeext conftest.$ac_ext
5818 #### Extract some information from the operating system and machine files.
5820 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5821 - which libraries the lib-src programs will want, and
5822 - whether the GNU malloc routines are usable..." >&5
5823 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5824 - which libraries the lib-src programs will want, and
5825 - whether the GNU malloc routines are usable..." >&6;}
5827 ### First figure out CFLAGS (which we use for running the compiler here)
5828 ### and REAL_CFLAGS (which we use for real compilation).
5829 ### The two are the same except on a few systems, where they are made
5830 ### different to work around various lossages. For example,
5831 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5832 ### as implying static linking.
5834 ### If the CFLAGS env var is specified, we use that value
5835 ### instead of the default.
5837 ### It's not important that this name contain the PID; you can't run
5838 ### two configures in the same directory and have anything work
5839 ### anyway.
5840 tempcname="conftest.c"
5842 echo '
5843 #include "'${srcdir}'/src/'${opsysfile}'"
5844 #include "'${srcdir}'/src/'${machfile}'"
5846 configure___ LIBX=-lX11
5848 configure___ unexec=UNEXEC
5850 #ifdef SYSTEM_MALLOC
5851 configure___ system_malloc=yes
5852 #else
5853 configure___ system_malloc=no
5854 #endif
5856 #ifdef USE_MMAP_FOR_BUFFERS
5857 configure___ use_mmap_for_buffers=yes
5858 #else
5859 configure___ use_mmap_for_buffers=no
5860 #endif
5862 #ifndef C_OPTIMIZE_SWITCH
5863 #ifdef __GNUC__
5864 #define C_OPTIMIZE_SWITCH -O2
5865 #else
5866 #define C_OPTIMIZE_SWITCH -O
5867 #endif
5868 #endif
5870 #ifndef C_WARNINGS_SWITCH
5871 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5872 #endif
5874 #ifdef THIS_IS_CONFIGURE
5876 /* Get the CFLAGS for tests in configure. */
5877 #ifdef __GNUC__
5878 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5879 #else
5880 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5881 #endif
5883 #else /* not THIS_IS_CONFIGURE */
5885 /* Get the CFLAGS for real compilation. */
5886 #ifdef __GNUC__
5887 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5888 #else
5889 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5890 #endif
5892 #endif /* not THIS_IS_CONFIGURE */
5893 ' > ${tempcname}
5895 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5897 # The value of CPP is a quoted variable reference, so we need to do this
5898 # to get its actual value...
5899 CPP=`eval "echo $CPP"`
5900 eval `${CPP} -Isrc ${tempcname} \
5901 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5902 if test "x$SPECIFIED_CFLAGS" = x; then
5903 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5904 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5905 else
5906 REAL_CFLAGS="$CFLAGS"
5908 rm ${tempcname}
5911 LD_SWITCH_SYSTEM=
5912 case "$opsys" in
5913 freebsd)
5914 ## Let `ld' find image libs and similar things in /usr/local/lib.
5915 ## The system compiler, GCC, has apparently been modified to not
5916 ## look there, contrary to what a stock GCC would do.
5917 LD_SWITCH_SYSTEM=-L/usr/local/lib
5920 gnu-linux)
5921 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5922 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5925 netbsd)
5926 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5929 openbsd)
5930 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5931 ## otherwise Emacs dumps core on elf systems.
5932 LD_SWITCH_SYSTEM="-Z"
5934 esac
5937 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5939 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5940 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5941 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5942 ## values in configure and the Makefiles. How helpful.
5943 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5944 case "$opsys" in
5945 gnu-linux)
5946 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5947 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5949 netbsd|openbsd)
5950 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5951 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5952 esac
5955 C_SWITCH_MACHINE=
5956 if test "$machine" = "alpha"; then
5957 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5958 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5959 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5960 $as_echo_n "(cached) " >&6
5961 else
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 $ac_includes_default
5970 main ()
5972 #ifndef __ELF__
5973 (void) __ELF__;
5974 #endif
5977 return 0;
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (ac_try="$ac_compile"
5982 case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985 esac
5986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987 $as_echo "$ac_try_echo") >&5
5988 (eval "$ac_compile") 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } && {
5995 test -z "$ac_c_werror_flag" ||
5996 test ! -s conftest.err
5997 } && test -s conftest.$ac_objext; then
5998 ac_cv_have_decl___ELF__=yes
5999 else
6000 $as_echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 ac_cv_have_decl___ELF__=no
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6009 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6011 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6012 ## With ELF, make sure that all common symbols get allocated to in the
6013 ## data section. Otherwise, the dump of temacs may miss variables in
6014 ## the shared library that have been initialized. For example, with
6015 ## GNU libc, __malloc_initialized would normally be resolved to the
6016 ## shared library's .bss section, which is fatal.
6017 if test "x$GCC" = "xyes"; then
6018 C_SWITCH_MACHINE="-fno-common"
6019 else
6020 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6021 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6022 { (exit 1); exit 1; }; }
6029 C_SWITCH_SYSTEM=
6030 ## Some programs in src produce warnings saying certain subprograms
6031 ## are too complex and need a MAXMEM value greater than 2000 for
6032 ## additional optimization. --nils@exp-math.uni-essen.de
6033 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6034 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6035 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6036 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6040 LIBS_SYSTEM=
6041 case "$opsys" in
6042 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6043 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6045 freebsd) LIBS_SYSTEM="-lutil" ;;
6047 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6049 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6051 ## Motif needs -lgen.
6052 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6053 esac
6057 ### Make sure subsequent tests use flags consistent with the build flags.
6059 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6060 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6061 else
6062 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6067 # Check whether --enable-largefile was given.
6068 if test "${enable_largefile+set}" = set; then
6069 enableval=$enable_largefile;
6072 if test "$enable_largefile" != no; then
6074 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6075 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6076 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6077 $as_echo_n "(cached) " >&6
6078 else
6079 ac_cv_sys_largefile_CC=no
6080 if test "$GCC" != yes; then
6081 ac_save_CC=$CC
6082 while :; do
6083 # IRIX 6.2 and later do not support large files by default,
6084 # so use the C compiler's -n32 option if that helps.
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <sys/types.h>
6092 /* Check that off_t can represent 2**63 - 1 correctly.
6093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6094 since some C++ compilers masquerading as C compilers
6095 incorrectly reject 9223372036854775807. */
6096 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6098 && LARGE_OFF_T % 2147483647 == 1)
6099 ? 1 : -1];
6101 main ()
6105 return 0;
6107 _ACEOF
6108 rm -f conftest.$ac_objext
6109 if { (ac_try="$ac_compile"
6110 case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6113 esac
6114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6115 $as_echo "$ac_try_echo") >&5
6116 (eval "$ac_compile") 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } && {
6123 test -z "$ac_c_werror_flag" ||
6124 test ! -s conftest.err
6125 } && test -s conftest.$ac_objext; then
6126 break
6127 else
6128 $as_echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6134 rm -f core conftest.err conftest.$ac_objext
6135 CC="$CC -n32"
6136 rm -f conftest.$ac_objext
6137 if { (ac_try="$ac_compile"
6138 case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141 esac
6142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6143 $as_echo "$ac_try_echo") >&5
6144 (eval "$ac_compile") 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } && {
6151 test -z "$ac_c_werror_flag" ||
6152 test ! -s conftest.err
6153 } && test -s conftest.$ac_objext; then
6154 ac_cv_sys_largefile_CC=' -n32'; break
6155 else
6156 $as_echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6162 rm -f core conftest.err conftest.$ac_objext
6163 break
6164 done
6165 CC=$ac_save_CC
6166 rm -f conftest.$ac_ext
6169 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6170 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6171 if test "$ac_cv_sys_largefile_CC" != no; then
6172 CC=$CC$ac_cv_sys_largefile_CC
6175 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6176 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6177 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6178 $as_echo_n "(cached) " >&6
6179 else
6180 while :; do
6181 cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h. */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #include <sys/types.h>
6188 /* Check that off_t can represent 2**63 - 1 correctly.
6189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6190 since some C++ compilers masquerading as C compilers
6191 incorrectly reject 9223372036854775807. */
6192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6194 && LARGE_OFF_T % 2147483647 == 1)
6195 ? 1 : -1];
6197 main ()
6201 return 0;
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (ac_try="$ac_compile"
6206 case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209 esac
6210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6211 $as_echo "$ac_try_echo") >&5
6212 (eval "$ac_compile") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.$ac_objext; then
6222 ac_cv_sys_file_offset_bits=no; break
6223 else
6224 $as_echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h. */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #define _FILE_OFFSET_BITS 64
6238 #include <sys/types.h>
6239 /* Check that off_t can represent 2**63 - 1 correctly.
6240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6241 since some C++ compilers masquerading as C compilers
6242 incorrectly reject 9223372036854775807. */
6243 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6245 && LARGE_OFF_T % 2147483647 == 1)
6246 ? 1 : -1];
6248 main ()
6252 return 0;
6254 _ACEOF
6255 rm -f conftest.$ac_objext
6256 if { (ac_try="$ac_compile"
6257 case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260 esac
6261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6262 $as_echo "$ac_try_echo") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest.$ac_objext; then
6273 ac_cv_sys_file_offset_bits=64; break
6274 else
6275 $as_echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 ac_cv_sys_file_offset_bits=unknown
6283 break
6284 done
6286 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6287 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6288 case $ac_cv_sys_file_offset_bits in #(
6289 no | unknown) ;;
6291 cat >>confdefs.h <<_ACEOF
6292 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6293 _ACEOF
6295 esac
6296 rm -rf conftest*
6297 if test $ac_cv_sys_file_offset_bits = unknown; then
6298 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6299 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6300 if test "${ac_cv_sys_large_files+set}" = set; then
6301 $as_echo_n "(cached) " >&6
6302 else
6303 while :; do
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <sys/types.h>
6311 /* Check that off_t can represent 2**63 - 1 correctly.
6312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6313 since some C++ compilers masquerading as C compilers
6314 incorrectly reject 9223372036854775807. */
6315 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6317 && LARGE_OFF_T % 2147483647 == 1)
6318 ? 1 : -1];
6320 main ()
6324 return 0;
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (ac_try="$ac_compile"
6329 case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6332 esac
6333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6334 $as_echo "$ac_try_echo") >&5
6335 (eval "$ac_compile") 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest.$ac_objext; then
6345 ac_cv_sys_large_files=no; break
6346 else
6347 $as_echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 cat >conftest.$ac_ext <<_ACEOF
6355 /* confdefs.h. */
6356 _ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6360 #define _LARGE_FILES 1
6361 #include <sys/types.h>
6362 /* Check that off_t can represent 2**63 - 1 correctly.
6363 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6364 since some C++ compilers masquerading as C compilers
6365 incorrectly reject 9223372036854775807. */
6366 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6367 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6368 && LARGE_OFF_T % 2147483647 == 1)
6369 ? 1 : -1];
6371 main ()
6375 return 0;
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6380 case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383 esac
6384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6385 $as_echo "$ac_try_echo") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
6396 ac_cv_sys_large_files=1; break
6397 else
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 ac_cv_sys_large_files=unknown
6406 break
6407 done
6409 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6410 $as_echo "$ac_cv_sys_large_files" >&6; }
6411 case $ac_cv_sys_large_files in #(
6412 no | unknown) ;;
6414 cat >>confdefs.h <<_ACEOF
6415 #define _LARGE_FILES $ac_cv_sys_large_files
6416 _ACEOF
6418 esac
6419 rm -rf conftest*
6425 ## If user specified a crt-dir, use that unconditionally.
6426 if test "X$CRT_DIR" = "X"; then
6428 case "$canonical" in
6429 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6430 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6431 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6432 ## For anything else (eg /usr/lib32), it is up the user to specify
6433 ## the location (bug#5655).
6434 ## Test for crtn.o, not just the directory, because sometimes the
6435 ## directory exists but does not have the relevant files (bug#1287).
6436 ## FIXME better to test for binary compatibility somehow.
6437 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6440 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6441 esac
6443 case "$opsys" in
6444 hpux10-20) CRT_DIR=/lib ;;
6445 esac
6447 ## Default is /usr/lib.
6448 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6450 else
6452 ## Some platforms don't use any of these files, so it is not
6453 ## appropriate to put this test outside the if block.
6454 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6455 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6456 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6457 { (exit 1); exit 1; }; }
6463 LIB_MATH=-lm
6464 LIB_STANDARD=
6465 START_FILES=
6467 case $opsys in
6468 cygwin )
6469 LIB_MATH=
6470 START_FILES='ecrt0.o'
6472 darwin )
6473 ## Adding -lm confuses the dynamic linker, so omit it.
6474 LIB_MATH=
6475 START_FILES='pre-crt0.o'
6477 freebsd )
6478 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6479 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6481 gnu-linux | gnu-kfreebsd )
6482 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6483 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6485 hpux10-20 | hpux11 )
6486 LIB_STANDARD=-lc
6487 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6489 netbsd | openbsd )
6490 if test -f $CRT_DIR/crti.o; then
6491 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6492 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6493 else
6494 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6495 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6498 esac
6506 if test "${with_sound}" != "no"; then
6507 # Sound support for GNU/Linux and the free BSDs.
6511 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 $as_echo_n "checking for $ac_header... " >&6; }
6517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6518 $as_echo_n "(cached) " >&6
6520 ac_res=`eval 'as_val=${'$as_ac_Header'}
6521 $as_echo "$as_val"'`
6522 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6523 $as_echo "$ac_res" >&6; }
6524 else
6525 # Is the header compilable?
6526 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6527 $as_echo_n "checking $ac_header usability... " >&6; }
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h. */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
6535 #include <$ac_header>
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6539 case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542 esac
6543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6544 $as_echo "$ac_try_echo") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6555 ac_header_compiler=yes
6556 else
6557 $as_echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6560 ac_header_compiler=no
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6565 $as_echo "$ac_header_compiler" >&6; }
6567 # Is the header present?
6568 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6569 $as_echo_n "checking $ac_header presence... " >&6; }
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <$ac_header>
6577 _ACEOF
6578 if { (ac_try="$ac_cpp conftest.$ac_ext"
6579 case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582 esac
6583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6584 $as_echo "$ac_try_echo") >&5
6585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } >/dev/null && {
6592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 }; then
6595 ac_header_preproc=yes
6596 else
6597 $as_echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 ac_header_preproc=no
6603 rm -f conftest.err conftest.$ac_ext
6604 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6605 $as_echo "$ac_header_preproc" >&6; }
6607 # So? What about this header?
6608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6609 yes:no: )
6610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6611 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6613 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6614 ac_header_preproc=yes
6616 no:yes:* )
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6618 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6620 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6622 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6624 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6626 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6628 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6631 esac
6632 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6633 $as_echo_n "checking for $ac_header... " >&6; }
6634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6635 $as_echo_n "(cached) " >&6
6636 else
6637 eval "$as_ac_Header=\$ac_header_preproc"
6639 ac_res=`eval 'as_val=${'$as_ac_Header'}
6640 $as_echo "$as_val"'`
6641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6642 $as_echo "$ac_res" >&6; }
6645 if test `eval 'as_val=${'$as_ac_Header'}
6646 $as_echo "$as_val"'` = yes; then
6647 cat >>confdefs.h <<_ACEOF
6648 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6649 _ACEOF
6653 done
6655 # Emulation library used on NetBSD.
6656 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6657 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6658 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6659 $as_echo_n "(cached) " >&6
6660 else
6661 ac_check_lib_save_LIBS=$LIBS
6662 LIBS="-lossaudio $LIBS"
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6670 /* Override any GCC internal prototype to avoid an error.
6671 Use char because int might match the return type of a GCC
6672 builtin and then its argument prototype would still apply. */
6673 #ifdef __cplusplus
6674 extern "C"
6675 #endif
6676 char _oss_ioctl ();
6678 main ()
6680 return _oss_ioctl ();
6682 return 0;
6684 _ACEOF
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 if { (ac_try="$ac_link"
6687 case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6690 esac
6691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6692 $as_echo "$ac_try_echo") >&5
6693 (eval "$ac_link") 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest$ac_exeext && {
6703 test "$cross_compiling" = yes ||
6704 $as_test_x conftest$ac_exeext
6705 }; then
6706 ac_cv_lib_ossaudio__oss_ioctl=yes
6707 else
6708 $as_echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6711 ac_cv_lib_ossaudio__oss_ioctl=no
6714 rm -rf conftest.dSYM
6715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6716 conftest$ac_exeext conftest.$ac_ext
6717 LIBS=$ac_check_lib_save_LIBS
6719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6720 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6721 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6722 LIBSOUND=-lossaudio
6723 else
6724 LIBSOUND=
6729 ALSA_REQUIRED=1.0.0
6730 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6732 succeeded=no
6734 # Extract the first word of "pkg-config", so it can be a program name with args.
6735 set dummy pkg-config; ac_word=$2
6736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6739 $as_echo_n "(cached) " >&6
6740 else
6741 case $PKG_CONFIG in
6742 [\\/]* | ?:[\\/]*)
6743 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6757 done
6758 done
6759 IFS=$as_save_IFS
6761 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6763 esac
6765 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6766 if test -n "$PKG_CONFIG"; then
6767 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6768 $as_echo "$PKG_CONFIG" >&6; }
6769 else
6770 { $as_echo "$as_me:$LINENO: result: no" >&5
6771 $as_echo "no" >&6; }
6776 if test "$PKG_CONFIG" = "no" ; then
6777 HAVE_ALSA=no
6778 else
6779 PKG_CONFIG_MIN_VERSION=0.9.0
6780 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6781 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6782 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6784 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6785 { $as_echo "$as_me:$LINENO: result: yes" >&5
6786 $as_echo "yes" >&6; }
6787 succeeded=yes
6789 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6790 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6791 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6792 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6793 $as_echo "$ALSA_CFLAGS" >&6; }
6795 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6796 $as_echo_n "checking ALSA_LIBS... " >&6; }
6797 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6798 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6799 $as_echo "$ALSA_LIBS" >&6; }
6800 else
6801 { $as_echo "$as_me:$LINENO: result: no" >&5
6802 $as_echo "no" >&6; }
6803 ALSA_CFLAGS=""
6804 ALSA_LIBS=""
6805 ## If we have a custom action on failure, don't print errors, but
6806 ## do set a variable so people can do so.
6807 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6813 else
6814 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6815 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6819 if test $succeeded = yes; then
6820 HAVE_ALSA=yes
6821 else
6822 HAVE_ALSA=no
6825 if test $HAVE_ALSA = yes; then
6826 SAVE_CFLAGS="$CFLAGS"
6827 SAVE_LDFLAGS="$LDFLAGS"
6828 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6829 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #include <asoundlib.h>
6838 main ()
6840 snd_lib_error_set_handler (0);
6842 return 0;
6844 _ACEOF
6845 rm -f conftest.$ac_objext
6846 if { (ac_try="$ac_compile"
6847 case "(($ac_try" in
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6850 esac
6851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6852 $as_echo "$ac_try_echo") >&5
6853 (eval "$ac_compile") 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest.$ac_objext; then
6863 emacs_alsa_normal=yes
6864 else
6865 $as_echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 emacs_alsa_normal=no
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 if test "$emacs_alsa_normal" != yes; then
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h. */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 #include <alsa/asoundlib.h>
6881 main ()
6883 snd_lib_error_set_handler (0);
6885 return 0;
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (ac_try="$ac_compile"
6890 case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893 esac
6894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896 (eval "$ac_compile") 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 } && test -s conftest.$ac_objext; then
6906 emacs_alsa_subdir=yes
6907 else
6908 $as_echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6911 emacs_alsa_subdir=no
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 if test "$emacs_alsa_subdir" != yes; then
6916 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6917 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6918 { (exit 1); exit 1; }; }
6920 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6923 CFLAGS="$SAVE_CFLAGS"
6924 LDFLAGS="$SAVE_LDFLAGS"
6925 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6926 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6928 cat >>confdefs.h <<\_ACEOF
6929 #define HAVE_ALSA 1
6930 _ACEOF
6961 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6962 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6963 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6964 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6965 sys/utsname.h pwd.h utmp.h
6967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6969 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 $as_echo_n "checking for $ac_header... " >&6; }
6971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6972 $as_echo_n "(cached) " >&6
6974 ac_res=`eval 'as_val=${'$as_ac_Header'}
6975 $as_echo "$as_val"'`
6976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6977 $as_echo "$ac_res" >&6; }
6978 else
6979 # Is the header compilable?
6980 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6981 $as_echo_n "checking $ac_header usability... " >&6; }
6982 cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h. */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 $ac_includes_default
6989 #include <$ac_header>
6990 _ACEOF
6991 rm -f conftest.$ac_objext
6992 if { (ac_try="$ac_compile"
6993 case "(($ac_try" in
6994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995 *) ac_try_echo=$ac_try;;
6996 esac
6997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6998 $as_echo "$ac_try_echo") >&5
6999 (eval "$ac_compile") 2>conftest.er1
7000 ac_status=$?
7001 grep -v '^ *+' conftest.er1 >conftest.err
7002 rm -f conftest.er1
7003 cat conftest.err >&5
7004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } && {
7006 test -z "$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7008 } && test -s conftest.$ac_objext; then
7009 ac_header_compiler=yes
7010 else
7011 $as_echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7014 ac_header_compiler=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7019 $as_echo "$ac_header_compiler" >&6; }
7021 # Is the header present?
7022 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7023 $as_echo_n "checking $ac_header presence... " >&6; }
7024 cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h. */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 #include <$ac_header>
7031 _ACEOF
7032 if { (ac_try="$ac_cpp conftest.$ac_ext"
7033 case "(($ac_try" in
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7036 esac
7037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7038 $as_echo "$ac_try_echo") >&5
7039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } >/dev/null && {
7046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7048 }; then
7049 ac_header_preproc=yes
7050 else
7051 $as_echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7054 ac_header_preproc=no
7057 rm -f conftest.err conftest.$ac_ext
7058 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7059 $as_echo "$ac_header_preproc" >&6; }
7061 # So? What about this header?
7062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7063 yes:no: )
7064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7065 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7067 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7068 ac_header_preproc=yes
7070 no:yes:* )
7071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7072 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7074 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7076 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7078 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7080 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7082 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7085 esac
7086 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7087 $as_echo_n "checking for $ac_header... " >&6; }
7088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7089 $as_echo_n "(cached) " >&6
7090 else
7091 eval "$as_ac_Header=\$ac_header_preproc"
7093 ac_res=`eval 'as_val=${'$as_ac_Header'}
7094 $as_echo "$as_val"'`
7095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7096 $as_echo "$ac_res" >&6; }
7099 if test `eval 'as_val=${'$as_ac_Header'}
7100 $as_echo "$as_val"'` = yes; then
7101 cat >>confdefs.h <<_ACEOF
7102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7103 _ACEOF
7107 done
7110 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7111 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 #include <sys/personality.h>
7120 main ()
7122 personality (PER_LINUX32)
7124 return 0;
7126 _ACEOF
7127 rm -f conftest.$ac_objext
7128 if { (ac_try="$ac_compile"
7129 case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132 esac
7133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7134 $as_echo "$ac_try_echo") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
7145 emacs_cv_personality_linux32=yes
7146 else
7147 $as_echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 emacs_cv_personality_linux32=no
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7155 $as_echo "$emacs_cv_personality_linux32" >&6; }
7157 if test $emacs_cv_personality_linux32 = yes; then
7159 cat >>confdefs.h <<\_ACEOF
7160 #define HAVE_PERSONALITY_LINUX32 1
7161 _ACEOF
7166 for ac_header in term.h
7168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7169 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7170 $as_echo_n "checking for $ac_header... " >&6; }
7171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7172 $as_echo_n "(cached) " >&6
7173 else
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h. */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 #include <$ac_header>
7181 _ACEOF
7182 if { (ac_try="$ac_cpp conftest.$ac_ext"
7183 case "(($ac_try" in
7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7186 esac
7187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7188 $as_echo "$ac_try_echo") >&5
7189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } >/dev/null && {
7196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 }; then
7199 eval "$as_ac_Header=yes"
7200 else
7201 $as_echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 eval "$as_ac_Header=no"
7207 rm -f conftest.err conftest.$ac_ext
7209 ac_res=`eval 'as_val=${'$as_ac_Header'}
7210 $as_echo "$as_val"'`
7211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7212 $as_echo "$ac_res" >&6; }
7213 if test `eval 'as_val=${'$as_ac_Header'}
7214 $as_echo "$as_val"'` = yes; then
7215 cat >>confdefs.h <<_ACEOF
7216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7217 _ACEOF
7221 done
7223 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7224 $as_echo_n "checking for ANSI C header files... " >&6; }
7225 if test "${ac_cv_header_stdc+set}" = set; then
7226 $as_echo_n "(cached) " >&6
7227 else
7228 cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h. */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 #include <stdlib.h>
7235 #include <stdarg.h>
7236 #include <string.h>
7237 #include <float.h>
7240 main ()
7244 return 0;
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7249 case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252 esac
7253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7254 $as_echo "$ac_try_echo") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.$ac_objext; then
7265 ac_cv_header_stdc=yes
7266 else
7267 $as_echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7270 ac_cv_header_stdc=no
7273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 if test $ac_cv_header_stdc = yes; then
7276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7277 cat >conftest.$ac_ext <<_ACEOF
7278 /* confdefs.h. */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 #include <string.h>
7285 _ACEOF
7286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7287 $EGREP "memchr" >/dev/null 2>&1; then
7289 else
7290 ac_cv_header_stdc=no
7292 rm -f conftest*
7296 if test $ac_cv_header_stdc = yes; then
7297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 #include <stdlib.h>
7306 _ACEOF
7307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7308 $EGREP "free" >/dev/null 2>&1; then
7310 else
7311 ac_cv_header_stdc=no
7313 rm -f conftest*
7317 if test $ac_cv_header_stdc = yes; then
7318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7319 if test "$cross_compiling" = yes; then
7321 else
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 #include <ctype.h>
7329 #include <stdlib.h>
7330 #if ((' ' & 0x0FF) == 0x020)
7331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7333 #else
7334 # define ISLOWER(c) \
7335 (('a' <= (c) && (c) <= 'i') \
7336 || ('j' <= (c) && (c) <= 'r') \
7337 || ('s' <= (c) && (c) <= 'z'))
7338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7339 #endif
7341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7343 main ()
7345 int i;
7346 for (i = 0; i < 256; i++)
7347 if (XOR (islower (i), ISLOWER (i))
7348 || toupper (i) != TOUPPER (i))
7349 return 2;
7350 return 0;
7352 _ACEOF
7353 rm -f conftest$ac_exeext
7354 if { (ac_try="$ac_link"
7355 case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358 esac
7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361 (eval "$ac_link") 2>&5
7362 ac_status=$?
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7365 { (case "(($ac_try" in
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7368 esac
7369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7370 $as_echo "$ac_try_echo") >&5
7371 (eval "$ac_try") 2>&5
7372 ac_status=$?
7373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7376 else
7377 $as_echo "$as_me: program exited with status $ac_status" >&5
7378 $as_echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7381 ( exit $ac_status )
7382 ac_cv_header_stdc=no
7384 rm -rf conftest.dSYM
7385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7391 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7392 $as_echo "$ac_cv_header_stdc" >&6; }
7393 if test $ac_cv_header_stdc = yes; then
7395 cat >>confdefs.h <<\_ACEOF
7396 #define STDC_HEADERS 1
7397 _ACEOF
7401 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7402 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7403 if test "${ac_cv_header_time+set}" = set; then
7404 $as_echo_n "(cached) " >&6
7405 else
7406 cat >conftest.$ac_ext <<_ACEOF
7407 /* confdefs.h. */
7408 _ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 #include <sys/types.h>
7413 #include <sys/time.h>
7414 #include <time.h>
7417 main ()
7419 if ((struct tm *) 0)
7420 return 0;
7422 return 0;
7424 _ACEOF
7425 rm -f conftest.$ac_objext
7426 if { (ac_try="$ac_compile"
7427 case "(($ac_try" in
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7430 esac
7431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7432 $as_echo "$ac_try_echo") >&5
7433 (eval "$ac_compile") 2>conftest.er1
7434 ac_status=$?
7435 grep -v '^ *+' conftest.er1 >conftest.err
7436 rm -f conftest.er1
7437 cat conftest.err >&5
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest.$ac_objext; then
7443 ac_cv_header_time=yes
7444 else
7445 $as_echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7448 ac_cv_header_time=no
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7454 $as_echo "$ac_cv_header_time" >&6; }
7455 if test $ac_cv_header_time = yes; then
7457 cat >>confdefs.h <<\_ACEOF
7458 #define TIME_WITH_SYS_TIME 1
7459 _ACEOF
7463 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7464 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7465 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7466 $as_echo_n "(cached) " >&6
7467 else
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 $ac_includes_default
7476 main ()
7478 #ifndef sys_siglist
7479 (void) sys_siglist;
7480 #endif
7483 return 0;
7485 _ACEOF
7486 rm -f conftest.$ac_objext
7487 if { (ac_try="$ac_compile"
7488 case "(($ac_try" in
7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7491 esac
7492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7493 $as_echo "$ac_try_echo") >&5
7494 (eval "$ac_compile") 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest.$ac_objext; then
7504 ac_cv_have_decl_sys_siglist=yes
7505 else
7506 $as_echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_cv_have_decl_sys_siglist=no
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7515 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7516 if test $ac_cv_have_decl_sys_siglist = yes; then
7518 cat >>confdefs.h <<_ACEOF
7519 #define HAVE_DECL_SYS_SIGLIST 1
7520 _ACEOF
7523 else
7524 cat >>confdefs.h <<_ACEOF
7525 #define HAVE_DECL_SYS_SIGLIST 0
7526 _ACEOF
7532 if test $ac_cv_have_decl_sys_siglist != yes; then
7533 # For Tru64, at least:
7534 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7535 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7536 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7537 $as_echo_n "(cached) " >&6
7538 else
7539 cat >conftest.$ac_ext <<_ACEOF
7540 /* confdefs.h. */
7541 _ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 $ac_includes_default
7547 main ()
7549 #ifndef __sys_siglist
7550 (void) __sys_siglist;
7551 #endif
7554 return 0;
7556 _ACEOF
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7559 case "(($ac_try" in
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7562 esac
7563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7564 $as_echo "$ac_try_echo") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && {
7572 test -z "$ac_c_werror_flag" ||
7573 test ! -s conftest.err
7574 } && test -s conftest.$ac_objext; then
7575 ac_cv_have_decl___sys_siglist=yes
7576 else
7577 $as_echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7580 ac_cv_have_decl___sys_siglist=no
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7586 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7587 if test $ac_cv_have_decl___sys_siglist = yes; then
7589 cat >>confdefs.h <<_ACEOF
7590 #define HAVE_DECL___SYS_SIGLIST 1
7591 _ACEOF
7594 else
7595 cat >>confdefs.h <<_ACEOF
7596 #define HAVE_DECL___SYS_SIGLIST 0
7597 _ACEOF
7603 if test $ac_cv_have_decl___sys_siglist = yes; then
7605 cat >>confdefs.h <<\_ACEOF
7606 #define sys_siglist __sys_siglist
7607 _ACEOF
7611 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7612 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7613 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7614 $as_echo_n "(cached) " >&6
7615 else
7616 cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h. */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 #include <sys/types.h>
7623 #include <sys/wait.h>
7624 #ifndef WEXITSTATUS
7625 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7626 #endif
7627 #ifndef WIFEXITED
7628 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7629 #endif
7632 main ()
7634 int s;
7635 wait (&s);
7636 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7638 return 0;
7640 _ACEOF
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7643 case "(($ac_try" in
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7646 esac
7647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7648 $as_echo "$ac_try_echo") >&5
7649 (eval "$ac_compile") 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.$ac_objext; then
7659 ac_cv_header_sys_wait_h=yes
7660 else
7661 $as_echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7664 ac_cv_header_sys_wait_h=no
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7670 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7671 if test $ac_cv_header_sys_wait_h = yes; then
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_SYS_WAIT_H 1
7675 _ACEOF
7680 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7681 $as_echo_n "checking for struct utimbuf... " >&6; }
7682 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7683 $as_echo_n "(cached) " >&6
7684 else
7685 cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h. */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 #ifdef TIME_WITH_SYS_TIME
7692 #include <sys/time.h>
7693 #include <time.h>
7694 #else
7695 #ifdef HAVE_SYS_TIME_H
7696 #include <sys/time.h>
7697 #else
7698 #include <time.h>
7699 #endif
7700 #endif
7701 #ifdef HAVE_UTIME_H
7702 #include <utime.h>
7703 #endif
7705 main ()
7707 static struct utimbuf x; x.actime = x.modtime;
7709 return 0;
7711 _ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (ac_try="$ac_compile"
7714 case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7717 esac
7718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7719 $as_echo "$ac_try_echo") >&5
7720 (eval "$ac_compile") 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } && {
7727 test -z "$ac_c_werror_flag" ||
7728 test ! -s conftest.err
7729 } && test -s conftest.$ac_objext; then
7730 emacs_cv_struct_utimbuf=yes
7731 else
7732 $as_echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 emacs_cv_struct_utimbuf=no
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7741 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7742 if test $emacs_cv_struct_utimbuf = yes; then
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_STRUCT_UTIMBUF 1
7746 _ACEOF
7750 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7751 $as_echo_n "checking return type of signal handlers... " >&6; }
7752 if test "${ac_cv_type_signal+set}" = set; then
7753 $as_echo_n "(cached) " >&6
7754 else
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h. */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 #include <sys/types.h>
7762 #include <signal.h>
7765 main ()
7767 return *(signal (0, 0)) (0) == 1;
7769 return 0;
7771 _ACEOF
7772 rm -f conftest.$ac_objext
7773 if { (ac_try="$ac_compile"
7774 case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777 esac
7778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7779 $as_echo "$ac_try_echo") >&5
7780 (eval "$ac_compile") 2>conftest.er1
7781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest.$ac_objext; then
7790 ac_cv_type_signal=int
7791 else
7792 $as_echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7795 ac_cv_type_signal=void
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7801 $as_echo "$ac_cv_type_signal" >&6; }
7803 cat >>confdefs.h <<_ACEOF
7804 #define RETSIGTYPE $ac_cv_type_signal
7805 _ACEOF
7809 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7810 $as_echo_n "checking for speed_t... " >&6; }
7811 if test "${emacs_cv_speed_t+set}" = set; then
7812 $as_echo_n "(cached) " >&6
7813 else
7814 cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h. */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7820 #include <termios.h>
7822 main ()
7824 speed_t x = 1;
7826 return 0;
7828 _ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7831 case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834 esac
7835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7836 $as_echo "$ac_try_echo") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7838 ac_status=$?
7839 grep -v '^ *+' conftest.er1 >conftest.err
7840 rm -f conftest.er1
7841 cat conftest.err >&5
7842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.$ac_objext; then
7847 emacs_cv_speed_t=yes
7848 else
7849 $as_echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7852 emacs_cv_speed_t=no
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7858 $as_echo "$emacs_cv_speed_t" >&6; }
7859 if test $emacs_cv_speed_t = yes; then
7861 cat >>confdefs.h <<\_ACEOF
7862 #define HAVE_SPEED_T 1
7863 _ACEOF
7867 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7868 $as_echo_n "checking for struct timeval... " >&6; }
7869 if test "${emacs_cv_struct_timeval+set}" = set; then
7870 $as_echo_n "(cached) " >&6
7871 else
7872 cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h. */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878 #ifdef TIME_WITH_SYS_TIME
7879 #include <sys/time.h>
7880 #include <time.h>
7881 #else
7882 #ifdef HAVE_SYS_TIME_H
7883 #include <sys/time.h>
7884 #else
7885 #include <time.h>
7886 #endif
7887 #endif
7889 main ()
7891 static struct timeval x; x.tv_sec = x.tv_usec;
7893 return 0;
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7898 case "(($ac_try" in
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7901 esac
7902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7903 $as_echo "$ac_try_echo") >&5
7904 (eval "$ac_compile") 2>conftest.er1
7905 ac_status=$?
7906 grep -v '^ *+' conftest.er1 >conftest.err
7907 rm -f conftest.er1
7908 cat conftest.err >&5
7909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest.$ac_objext; then
7914 emacs_cv_struct_timeval=yes
7915 else
7916 $as_echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7919 emacs_cv_struct_timeval=no
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7925 $as_echo "$emacs_cv_struct_timeval" >&6; }
7926 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7927 if test $emacs_cv_struct_timeval = yes; then
7929 cat >>confdefs.h <<\_ACEOF
7930 #define HAVE_TIMEVAL 1
7931 _ACEOF
7935 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7936 $as_echo_n "checking for struct exception... " >&6; }
7937 if test "${emacs_cv_struct_exception+set}" = set; then
7938 $as_echo_n "(cached) " >&6
7939 else
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <math.h>
7948 main ()
7950 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962 $as_echo "$ac_try_echo") >&5
7963 (eval "$ac_compile") 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest.$ac_objext; then
7973 emacs_cv_struct_exception=yes
7974 else
7975 $as_echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7978 emacs_cv_struct_exception=no
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7984 $as_echo "$emacs_cv_struct_exception" >&6; }
7985 HAVE_EXCEPTION=$emacs_cv_struct_exception
7986 if test $emacs_cv_struct_exception != yes; then
7988 cat >>confdefs.h <<\_ACEOF
7989 #define NO_MATHERR 1
7990 _ACEOF
7995 for ac_header in sys/socket.h
7997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8000 $as_echo_n "checking for $ac_header... " >&6; }
8001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8002 $as_echo_n "(cached) " >&6
8004 ac_res=`eval 'as_val=${'$as_ac_Header'}
8005 $as_echo "$as_val"'`
8006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8007 $as_echo "$ac_res" >&6; }
8008 else
8009 # Is the header compilable?
8010 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8011 $as_echo_n "checking $ac_header usability... " >&6; }
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 $ac_includes_default
8019 #include <$ac_header>
8020 _ACEOF
8021 rm -f conftest.$ac_objext
8022 if { (ac_try="$ac_compile"
8023 case "(($ac_try" in
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8026 esac
8027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8028 $as_echo "$ac_try_echo") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8039 ac_header_compiler=yes
8040 else
8041 $as_echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8044 ac_header_compiler=no
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8049 $as_echo "$ac_header_compiler" >&6; }
8051 # Is the header present?
8052 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8053 $as_echo_n "checking $ac_header presence... " >&6; }
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h. */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 #include <$ac_header>
8061 _ACEOF
8062 if { (ac_try="$ac_cpp conftest.$ac_ext"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8068 $as_echo "$ac_try_echo") >&5
8069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } >/dev/null && {
8076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 }; then
8079 ac_header_preproc=yes
8080 else
8081 $as_echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 ac_header_preproc=no
8087 rm -f conftest.err conftest.$ac_ext
8088 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8089 $as_echo "$ac_header_preproc" >&6; }
8091 # So? What about this header?
8092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8093 yes:no: )
8094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8095 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8097 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8098 ac_header_preproc=yes
8100 no:yes:* )
8101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8102 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8104 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8106 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8108 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8112 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8115 esac
8116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8117 $as_echo_n "checking for $ac_header... " >&6; }
8118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8119 $as_echo_n "(cached) " >&6
8120 else
8121 eval "$as_ac_Header=\$ac_header_preproc"
8123 ac_res=`eval 'as_val=${'$as_ac_Header'}
8124 $as_echo "$as_val"'`
8125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8126 $as_echo "$ac_res" >&6; }
8129 if test `eval 'as_val=${'$as_ac_Header'}
8130 $as_echo "$as_val"'` = yes; then
8131 cat >>confdefs.h <<_ACEOF
8132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8133 _ACEOF
8137 done
8140 for ac_header in net/if.h
8142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8143 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8144 $as_echo_n "checking for $ac_header... " >&6; }
8145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8146 $as_echo_n "(cached) " >&6
8147 else
8148 cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h. */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154 $ac_includes_default
8155 #if HAVE_SYS_SOCKET_H
8156 #include <sys/socket.h>
8157 #endif
8159 #include <$ac_header>
8160 _ACEOF
8161 rm -f conftest.$ac_objext
8162 if { (ac_try="$ac_compile"
8163 case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166 esac
8167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8168 $as_echo "$ac_try_echo") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 eval "$as_ac_Header=yes"
8180 else
8181 $as_echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 eval "$as_ac_Header=no"
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 ac_res=`eval 'as_val=${'$as_ac_Header'}
8190 $as_echo "$as_val"'`
8191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8192 $as_echo "$ac_res" >&6; }
8193 if test `eval 'as_val=${'$as_ac_Header'}
8194 $as_echo "$as_val"'` = yes; then
8195 cat >>confdefs.h <<_ACEOF
8196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8197 _ACEOF
8201 done
8204 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8205 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8206 if test "${ac_cv_struct_tm+set}" = set; then
8207 $as_echo_n "(cached) " >&6
8208 else
8209 cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h. */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8215 #include <sys/types.h>
8216 #include <time.h>
8219 main ()
8221 struct tm tm;
8222 int *p = &tm.tm_sec;
8223 return !p;
8225 return 0;
8227 _ACEOF
8228 rm -f conftest.$ac_objext
8229 if { (ac_try="$ac_compile"
8230 case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233 esac
8234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8235 $as_echo "$ac_try_echo") >&5
8236 (eval "$ac_compile") 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest.$ac_objext; then
8246 ac_cv_struct_tm=time.h
8247 else
8248 $as_echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 ac_cv_struct_tm=sys/time.h
8254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8257 $as_echo "$ac_cv_struct_tm" >&6; }
8258 if test $ac_cv_struct_tm = sys/time.h; then
8260 cat >>confdefs.h <<\_ACEOF
8261 #define TM_IN_SYS_TIME 1
8262 _ACEOF
8266 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8267 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8268 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8269 $as_echo_n "(cached) " >&6
8270 else
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h. */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 #include <sys/types.h>
8278 #include <$ac_cv_struct_tm>
8282 main ()
8284 static struct tm ac_aggr;
8285 if (ac_aggr.tm_zone)
8286 return 0;
8288 return 0;
8290 _ACEOF
8291 rm -f conftest.$ac_objext
8292 if { (ac_try="$ac_compile"
8293 case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8296 esac
8297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8298 $as_echo "$ac_try_echo") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 ac_cv_member_struct_tm_tm_zone=yes
8310 else
8311 $as_echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 #include <sys/types.h>
8321 #include <$ac_cv_struct_tm>
8325 main ()
8327 static struct tm ac_aggr;
8328 if (sizeof ac_aggr.tm_zone)
8329 return 0;
8331 return 0;
8333 _ACEOF
8334 rm -f conftest.$ac_objext
8335 if { (ac_try="$ac_compile"
8336 case "(($ac_try" in
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8339 esac
8340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8341 $as_echo "$ac_try_echo") >&5
8342 (eval "$ac_compile") 2>conftest.er1
8343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } && {
8349 test -z "$ac_c_werror_flag" ||
8350 test ! -s conftest.err
8351 } && test -s conftest.$ac_objext; then
8352 ac_cv_member_struct_tm_tm_zone=yes
8353 else
8354 $as_echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8357 ac_cv_member_struct_tm_tm_zone=no
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8366 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8367 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8369 cat >>confdefs.h <<_ACEOF
8370 #define HAVE_STRUCT_TM_TM_ZONE 1
8371 _ACEOF
8376 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8378 cat >>confdefs.h <<\_ACEOF
8379 #define HAVE_TM_ZONE 1
8380 _ACEOF
8382 else
8383 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8384 $as_echo_n "checking whether tzname is declared... " >&6; }
8385 if test "${ac_cv_have_decl_tzname+set}" = set; then
8386 $as_echo_n "(cached) " >&6
8387 else
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h. */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 #include <time.h>
8397 main ()
8399 #ifndef tzname
8400 (void) tzname;
8401 #endif
8404 return 0;
8406 _ACEOF
8407 rm -f conftest.$ac_objext
8408 if { (ac_try="$ac_compile"
8409 case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8412 esac
8413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8414 $as_echo "$ac_try_echo") >&5
8415 (eval "$ac_compile") 2>conftest.er1
8416 ac_status=$?
8417 grep -v '^ *+' conftest.er1 >conftest.err
8418 rm -f conftest.er1
8419 cat conftest.err >&5
8420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest.$ac_objext; then
8425 ac_cv_have_decl_tzname=yes
8426 else
8427 $as_echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_cv_have_decl_tzname=no
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8436 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8437 if test $ac_cv_have_decl_tzname = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_TZNAME 1
8441 _ACEOF
8444 else
8445 cat >>confdefs.h <<_ACEOF
8446 #define HAVE_DECL_TZNAME 0
8447 _ACEOF
8453 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8454 $as_echo_n "checking for tzname... " >&6; }
8455 if test "${ac_cv_var_tzname+set}" = set; then
8456 $as_echo_n "(cached) " >&6
8457 else
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 #include <time.h>
8465 #if !HAVE_DECL_TZNAME
8466 extern char *tzname[];
8467 #endif
8470 main ()
8472 return tzname[0][0];
8474 return 0;
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8479 case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482 esac
8483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8484 $as_echo "$ac_try_echo") >&5
8485 (eval "$ac_link") 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } && {
8492 test -z "$ac_c_werror_flag" ||
8493 test ! -s conftest.err
8494 } && test -s conftest$ac_exeext && {
8495 test "$cross_compiling" = yes ||
8496 $as_test_x conftest$ac_exeext
8497 }; then
8498 ac_cv_var_tzname=yes
8499 else
8500 $as_echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_cv_var_tzname=no
8506 rm -rf conftest.dSYM
8507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8508 conftest$ac_exeext conftest.$ac_ext
8510 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8511 $as_echo "$ac_cv_var_tzname" >&6; }
8512 if test $ac_cv_var_tzname = yes; then
8514 cat >>confdefs.h <<\_ACEOF
8515 #define HAVE_TZNAME 1
8516 _ACEOF
8521 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8522 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8523 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8524 $as_echo_n "(cached) " >&6
8525 else
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h. */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 #include <time.h>
8535 main ()
8537 static struct tm ac_aggr;
8538 if (ac_aggr.tm_gmtoff)
8539 return 0;
8541 return 0;
8543 _ACEOF
8544 rm -f conftest.$ac_objext
8545 if { (ac_try="$ac_compile"
8546 case "(($ac_try" in
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8549 esac
8550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551 $as_echo "$ac_try_echo") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_cv_member_struct_tm_tm_gmtoff=yes
8563 else
8564 $as_echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h. */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 #include <time.h>
8576 main ()
8578 static struct tm ac_aggr;
8579 if (sizeof ac_aggr.tm_gmtoff)
8580 return 0;
8582 return 0;
8584 _ACEOF
8585 rm -f conftest.$ac_objext
8586 if { (ac_try="$ac_compile"
8587 case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590 esac
8591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8592 $as_echo "$ac_try_echo") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.$ac_objext; then
8603 ac_cv_member_struct_tm_tm_gmtoff=yes
8604 else
8605 $as_echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_cv_member_struct_tm_tm_gmtoff=no
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8617 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8618 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8620 cat >>confdefs.h <<\_ACEOF
8621 #define HAVE_TM_GMTOFF 1
8622 _ACEOF
8626 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8627 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8628 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8629 $as_echo_n "(cached) " >&6
8630 else
8631 cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h. */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 $ac_includes_default
8638 #if HAVE_SYS_SOCKET_H
8639 #include <sys/socket.h>
8640 #endif
8641 #if HAVE_NET_IF_H
8642 #include <net/if.h>
8643 #endif
8646 main ()
8648 static struct ifreq ac_aggr;
8649 if (ac_aggr.ifr_flags)
8650 return 0;
8652 return 0;
8654 _ACEOF
8655 rm -f conftest.$ac_objext
8656 if { (ac_try="$ac_compile"
8657 case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8660 esac
8661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8662 $as_echo "$ac_try_echo") >&5
8663 (eval "$ac_compile") 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } && {
8670 test -z "$ac_c_werror_flag" ||
8671 test ! -s conftest.err
8672 } && test -s conftest.$ac_objext; then
8673 ac_cv_member_struct_ifreq_ifr_flags=yes
8674 else
8675 $as_echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h. */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 $ac_includes_default
8685 #if HAVE_SYS_SOCKET_H
8686 #include <sys/socket.h>
8687 #endif
8688 #if HAVE_NET_IF_H
8689 #include <net/if.h>
8690 #endif
8693 main ()
8695 static struct ifreq ac_aggr;
8696 if (sizeof ac_aggr.ifr_flags)
8697 return 0;
8699 return 0;
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8704 case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707 esac
8708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8709 $as_echo "$ac_try_echo") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.$ac_objext; then
8720 ac_cv_member_struct_ifreq_ifr_flags=yes
8721 else
8722 $as_echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 ac_cv_member_struct_ifreq_ifr_flags=no
8728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8734 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8735 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8737 cat >>confdefs.h <<_ACEOF
8738 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8739 _ACEOF
8743 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8744 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8745 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8746 $as_echo_n "(cached) " >&6
8747 else
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h. */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 $ac_includes_default
8755 #if HAVE_SYS_SOCKET_H
8756 #include <sys/socket.h>
8757 #endif
8758 #if HAVE_NET_IF_H
8759 #include <net/if.h>
8760 #endif
8763 main ()
8765 static struct ifreq ac_aggr;
8766 if (ac_aggr.ifr_hwaddr)
8767 return 0;
8769 return 0;
8771 _ACEOF
8772 rm -f conftest.$ac_objext
8773 if { (ac_try="$ac_compile"
8774 case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8777 esac
8778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8779 $as_echo "$ac_try_echo") >&5
8780 (eval "$ac_compile") 2>conftest.er1
8781 ac_status=$?
8782 grep -v '^ *+' conftest.er1 >conftest.err
8783 rm -f conftest.er1
8784 cat conftest.err >&5
8785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } && {
8787 test -z "$ac_c_werror_flag" ||
8788 test ! -s conftest.err
8789 } && test -s conftest.$ac_objext; then
8790 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8791 else
8792 $as_echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h. */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 $ac_includes_default
8802 #if HAVE_SYS_SOCKET_H
8803 #include <sys/socket.h>
8804 #endif
8805 #if HAVE_NET_IF_H
8806 #include <net/if.h>
8807 #endif
8810 main ()
8812 static struct ifreq ac_aggr;
8813 if (sizeof ac_aggr.ifr_hwaddr)
8814 return 0;
8816 return 0;
8818 _ACEOF
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8821 case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8824 esac
8825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8826 $as_echo "$ac_try_echo") >&5
8827 (eval "$ac_compile") 2>conftest.er1
8828 ac_status=$?
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
8832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest.$ac_objext; then
8837 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8838 else
8839 $as_echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8842 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8851 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8852 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8854 cat >>confdefs.h <<_ACEOF
8855 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8856 _ACEOF
8860 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8861 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8862 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8863 $as_echo_n "(cached) " >&6
8864 else
8865 cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h. */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8871 $ac_includes_default
8872 #if HAVE_SYS_SOCKET_H
8873 #include <sys/socket.h>
8874 #endif
8875 #if HAVE_NET_IF_H
8876 #include <net/if.h>
8877 #endif
8880 main ()
8882 static struct ifreq ac_aggr;
8883 if (ac_aggr.ifr_netmask)
8884 return 0;
8886 return 0;
8888 _ACEOF
8889 rm -f conftest.$ac_objext
8890 if { (ac_try="$ac_compile"
8891 case "(($ac_try" in
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8894 esac
8895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8896 $as_echo "$ac_try_echo") >&5
8897 (eval "$ac_compile") 2>conftest.er1
8898 ac_status=$?
8899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
8902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && {
8904 test -z "$ac_c_werror_flag" ||
8905 test ! -s conftest.err
8906 } && test -s conftest.$ac_objext; then
8907 ac_cv_member_struct_ifreq_ifr_netmask=yes
8908 else
8909 $as_echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h. */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918 $ac_includes_default
8919 #if HAVE_SYS_SOCKET_H
8920 #include <sys/socket.h>
8921 #endif
8922 #if HAVE_NET_IF_H
8923 #include <net/if.h>
8924 #endif
8927 main ()
8929 static struct ifreq ac_aggr;
8930 if (sizeof ac_aggr.ifr_netmask)
8931 return 0;
8933 return 0;
8935 _ACEOF
8936 rm -f conftest.$ac_objext
8937 if { (ac_try="$ac_compile"
8938 case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941 esac
8942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8943 $as_echo "$ac_try_echo") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_c_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest.$ac_objext; then
8954 ac_cv_member_struct_ifreq_ifr_netmask=yes
8955 else
8956 $as_echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 ac_cv_member_struct_ifreq_ifr_netmask=no
8962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8968 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8969 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8971 cat >>confdefs.h <<_ACEOF
8972 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8973 _ACEOF
8977 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8978 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8979 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8980 $as_echo_n "(cached) " >&6
8981 else
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h. */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 $ac_includes_default
8989 #if HAVE_SYS_SOCKET_H
8990 #include <sys/socket.h>
8991 #endif
8992 #if HAVE_NET_IF_H
8993 #include <net/if.h>
8994 #endif
8997 main ()
8999 static struct ifreq ac_aggr;
9000 if (ac_aggr.ifr_broadaddr)
9001 return 0;
9003 return 0;
9005 _ACEOF
9006 rm -f conftest.$ac_objext
9007 if { (ac_try="$ac_compile"
9008 case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011 esac
9012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9013 $as_echo "$ac_try_echo") >&5
9014 (eval "$ac_compile") 2>conftest.er1
9015 ac_status=$?
9016 grep -v '^ *+' conftest.er1 >conftest.err
9017 rm -f conftest.er1
9018 cat conftest.err >&5
9019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } && {
9021 test -z "$ac_c_werror_flag" ||
9022 test ! -s conftest.err
9023 } && test -s conftest.$ac_objext; then
9024 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9025 else
9026 $as_echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 $ac_includes_default
9036 #if HAVE_SYS_SOCKET_H
9037 #include <sys/socket.h>
9038 #endif
9039 #if HAVE_NET_IF_H
9040 #include <net/if.h>
9041 #endif
9044 main ()
9046 static struct ifreq ac_aggr;
9047 if (sizeof ac_aggr.ifr_broadaddr)
9048 return 0;
9050 return 0;
9052 _ACEOF
9053 rm -f conftest.$ac_objext
9054 if { (ac_try="$ac_compile"
9055 case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9058 esac
9059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9060 $as_echo "$ac_try_echo") >&5
9061 (eval "$ac_compile") 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest.$ac_objext; then
9071 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9072 else
9073 $as_echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9085 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9086 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9088 cat >>confdefs.h <<_ACEOF
9089 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9090 _ACEOF
9094 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9095 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9096 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9097 $as_echo_n "(cached) " >&6
9098 else
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 #if HAVE_SYS_SOCKET_H
9107 #include <sys/socket.h>
9108 #endif
9109 #if HAVE_NET_IF_H
9110 #include <net/if.h>
9111 #endif
9114 main ()
9116 static struct ifreq ac_aggr;
9117 if (ac_aggr.ifr_addr)
9118 return 0;
9120 return 0;
9122 _ACEOF
9123 rm -f conftest.$ac_objext
9124 if { (ac_try="$ac_compile"
9125 case "(($ac_try" in
9126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9128 esac
9129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9130 $as_echo "$ac_try_echo") >&5
9131 (eval "$ac_compile") 2>conftest.er1
9132 ac_status=$?
9133 grep -v '^ *+' conftest.er1 >conftest.err
9134 rm -f conftest.er1
9135 cat conftest.err >&5
9136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && {
9138 test -z "$ac_c_werror_flag" ||
9139 test ! -s conftest.err
9140 } && test -s conftest.$ac_objext; then
9141 ac_cv_member_struct_ifreq_ifr_addr=yes
9142 else
9143 $as_echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 $ac_includes_default
9153 #if HAVE_SYS_SOCKET_H
9154 #include <sys/socket.h>
9155 #endif
9156 #if HAVE_NET_IF_H
9157 #include <net/if.h>
9158 #endif
9161 main ()
9163 static struct ifreq ac_aggr;
9164 if (sizeof ac_aggr.ifr_addr)
9165 return 0;
9167 return 0;
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (ac_try="$ac_compile"
9172 case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175 esac
9176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9177 $as_echo "$ac_try_echo") >&5
9178 (eval "$ac_compile") 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && {
9185 test -z "$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 } && test -s conftest.$ac_objext; then
9188 ac_cv_member_struct_ifreq_ifr_addr=yes
9189 else
9190 $as_echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9193 ac_cv_member_struct_ifreq_ifr_addr=no
9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9202 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9203 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9205 cat >>confdefs.h <<_ACEOF
9206 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9207 _ACEOF
9214 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9215 $as_echo_n "checking for function prototypes... " >&6; }
9216 if test "$ac_cv_prog_cc_c89" != no; then
9217 { $as_echo "$as_me:$LINENO: result: yes" >&5
9218 $as_echo "yes" >&6; }
9220 cat >>confdefs.h <<\_ACEOF
9221 #define PROTOTYPES 1
9222 _ACEOF
9225 cat >>confdefs.h <<\_ACEOF
9226 #define __PROTOTYPES 1
9227 _ACEOF
9229 else
9230 { $as_echo "$as_me:$LINENO: result: no" >&5
9231 $as_echo "no" >&6; }
9234 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9235 $as_echo_n "checking for working volatile... " >&6; }
9236 if test "${ac_cv_c_volatile+set}" = set; then
9237 $as_echo_n "(cached) " >&6
9238 else
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h. */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9247 main ()
9250 volatile int x;
9251 int * volatile y = (int *) 0;
9252 return !x && !y;
9254 return 0;
9256 _ACEOF
9257 rm -f conftest.$ac_objext
9258 if { (ac_try="$ac_compile"
9259 case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9262 esac
9263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9264 $as_echo "$ac_try_echo") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.$ac_objext; then
9275 ac_cv_c_volatile=yes
9276 else
9277 $as_echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9280 ac_cv_c_volatile=no
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9286 $as_echo "$ac_cv_c_volatile" >&6; }
9287 if test $ac_cv_c_volatile = no; then
9289 cat >>confdefs.h <<\_ACEOF
9290 #define volatile /**/
9291 _ACEOF
9295 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9296 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9297 if test "${ac_cv_c_const+set}" = set; then
9298 $as_echo_n "(cached) " >&6
9299 else
9300 cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h. */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9308 main ()
9310 /* FIXME: Include the comments suggested by Paul. */
9311 #ifndef __cplusplus
9312 /* Ultrix mips cc rejects this. */
9313 typedef int charset[2];
9314 const charset cs;
9315 /* SunOS 4.1.1 cc rejects this. */
9316 char const *const *pcpcc;
9317 char **ppc;
9318 /* NEC SVR4.0.2 mips cc rejects this. */
9319 struct point {int x, y;};
9320 static struct point const zero = {0,0};
9321 /* AIX XL C 1.02.0.0 rejects this.
9322 It does not let you subtract one const X* pointer from another in
9323 an arm of an if-expression whose if-part is not a constant
9324 expression */
9325 const char *g = "string";
9326 pcpcc = &g + (g ? g-g : 0);
9327 /* HPUX 7.0 cc rejects these. */
9328 ++pcpcc;
9329 ppc = (char**) pcpcc;
9330 pcpcc = (char const *const *) ppc;
9331 { /* SCO 3.2v4 cc rejects this. */
9332 char *t;
9333 char const *s = 0 ? (char *) 0 : (char const *) 0;
9335 *t++ = 0;
9336 if (s) return 0;
9338 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9339 int x[] = {25, 17};
9340 const int *foo = &x[0];
9341 ++foo;
9343 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9344 typedef const int *iptr;
9345 iptr p = 0;
9346 ++p;
9348 { /* AIX XL C 1.02.0.0 rejects this saying
9349 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9350 struct s { int j; const int *ap[3]; };
9351 struct s *b; b->j = 5;
9353 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9354 const int foo = 10;
9355 if (!foo) return 0;
9357 return !cs[0] && !zero.x;
9358 #endif
9361 return 0;
9363 _ACEOF
9364 rm -f conftest.$ac_objext
9365 if { (ac_try="$ac_compile"
9366 case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369 esac
9370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9371 $as_echo "$ac_try_echo") >&5
9372 (eval "$ac_compile") 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest.$ac_objext; then
9382 ac_cv_c_const=yes
9383 else
9384 $as_echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9387 ac_cv_c_const=no
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9393 $as_echo "$ac_cv_c_const" >&6; }
9394 if test $ac_cv_c_const = no; then
9396 cat >>confdefs.h <<\_ACEOF
9397 #define const /**/
9398 _ACEOF
9402 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9403 $as_echo_n "checking for void * support... " >&6; }
9404 if test "${emacs_cv_void_star+set}" = set; then
9405 $as_echo_n "(cached) " >&6
9406 else
9407 cat >conftest.$ac_ext <<_ACEOF
9408 /* confdefs.h. */
9409 _ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9415 main ()
9417 void * foo;
9419 return 0;
9421 _ACEOF
9422 rm -f conftest.$ac_objext
9423 if { (ac_try="$ac_compile"
9424 case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427 esac
9428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9429 $as_echo "$ac_try_echo") >&5
9430 (eval "$ac_compile") 2>conftest.er1
9431 ac_status=$?
9432 grep -v '^ *+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
9435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest.$ac_objext; then
9440 emacs_cv_void_star=yes
9441 else
9442 $as_echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9445 emacs_cv_void_star=no
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9451 $as_echo "$emacs_cv_void_star" >&6; }
9452 if test $emacs_cv_void_star = yes; then
9453 cat >>confdefs.h <<\_ACEOF
9454 #define POINTER_TYPE void
9455 _ACEOF
9457 else
9458 cat >>confdefs.h <<\_ACEOF
9459 #define POINTER_TYPE char
9460 _ACEOF
9468 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9469 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9470 set x ${MAKE-make}
9471 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9472 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9473 $as_echo_n "(cached) " >&6
9474 else
9475 cat >conftest.make <<\_ACEOF
9476 SHELL = /bin/sh
9477 all:
9478 @echo '@@@%%%=$(MAKE)=@@@%%%'
9479 _ACEOF
9480 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9481 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9482 *@@@%%%=?*=@@@%%%*)
9483 eval ac_cv_prog_make_${ac_make}_set=yes;;
9485 eval ac_cv_prog_make_${ac_make}_set=no;;
9486 esac
9487 rm -f conftest.make
9489 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9490 { $as_echo "$as_me:$LINENO: result: yes" >&5
9491 $as_echo "yes" >&6; }
9492 SET_MAKE=
9493 else
9494 { $as_echo "$as_me:$LINENO: result: no" >&5
9495 $as_echo "no" >&6; }
9496 SET_MAKE="MAKE=${MAKE-make}"
9500 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9501 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9502 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9503 HAVE_GNU_MAKE=no
9504 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9505 if test "x$testval" != x; then
9506 HAVE_GNU_MAKE=yes
9507 else
9508 ac_enable_autodepend=no
9510 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9511 $as_echo "$HAVE_GNU_MAKE" >&6; }
9512 if test $HAVE_GNU_MAKE = yes; then
9513 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9514 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9515 SAVE_CFLAGS="$CFLAGS"
9516 CFLAGS="$CFLAGS -MMD -MF deps.d"
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9525 main ()
9529 return 0;
9531 _ACEOF
9532 rm -f conftest.$ac_objext
9533 if { (ac_try="$ac_compile"
9534 case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537 esac
9538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9539 $as_echo "$ac_try_echo") >&5
9540 (eval "$ac_compile") 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest.$ac_objext; then
9551 else
9552 $as_echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 ac_enable_autodepend=no
9558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559 CFLAGS="$SAVE_CFLAGS"
9560 test -f deps.d || ac_enable_autodepend=no
9561 rm -rf deps.d
9562 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9563 $as_echo "$ac_enable_autodepend" >&6; }
9565 if test $ac_enable_autodepend = yes; then
9567 cat >>confdefs.h <<\_ACEOF
9568 #define AUTO_DEPEND 1
9569 _ACEOF
9574 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9575 $as_echo_n "checking for long file names... " >&6; }
9576 if test "${ac_cv_sys_long_file_names+set}" = set; then
9577 $as_echo_n "(cached) " >&6
9578 else
9579 ac_cv_sys_long_file_names=yes
9580 # Test for long file names in all the places we know might matter:
9581 # . the current directory, where building will happen
9582 # $prefix/lib where we will be installing things
9583 # $exec_prefix/lib likewise
9584 # $TMPDIR if set, where it might want to write temporary files
9585 # /tmp where it might want to write temporary files
9586 # /var/tmp likewise
9587 # /usr/tmp likewise
9588 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9589 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9590 # in the usual case where exec_prefix is '${prefix}'.
9591 case $ac_dir in #(
9592 . | /* | ?:[\\/]*) ;; #(
9593 *) continue;;
9594 esac
9595 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9596 ac_xdir=$ac_dir/cf$$
9597 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9598 ac_tf1=$ac_xdir/conftest9012345
9599 ac_tf2=$ac_xdir/conftest9012346
9600 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9601 ac_cv_sys_long_file_names=no
9602 rm -f -r "$ac_xdir" 2>/dev/null
9603 test $ac_cv_sys_long_file_names = no && break
9604 done
9606 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9607 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9608 if test $ac_cv_sys_long_file_names = yes; then
9610 cat >>confdefs.h <<\_ACEOF
9611 #define HAVE_LONG_FILE_NAMES 1
9612 _ACEOF
9617 #### Choose a window system.
9619 { $as_echo "$as_me:$LINENO: checking for X" >&5
9620 $as_echo_n "checking for X... " >&6; }
9623 # Check whether --with-x was given.
9624 if test "${with_x+set}" = set; then
9625 withval=$with_x;
9628 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9629 if test "x$with_x" = xno; then
9630 # The user explicitly disabled X.
9631 have_x=disabled
9632 else
9633 case $x_includes,$x_libraries in #(
9634 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9635 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9636 { (exit 1); exit 1; }; };; #(
9637 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9638 $as_echo_n "(cached) " >&6
9639 else
9640 # One or both of the vars are not set, and there is no cached value.
9641 ac_x_includes=no ac_x_libraries=no
9642 rm -f -r conftest.dir
9643 if mkdir conftest.dir; then
9644 cd conftest.dir
9645 cat >Imakefile <<'_ACEOF'
9646 incroot:
9647 @echo incroot='${INCROOT}'
9648 usrlibdir:
9649 @echo usrlibdir='${USRLIBDIR}'
9650 libdir:
9651 @echo libdir='${LIBDIR}'
9652 _ACEOF
9653 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9655 for ac_var in incroot usrlibdir libdir; do
9656 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9657 done
9658 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9659 for ac_extension in a so sl dylib la dll; do
9660 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9661 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9662 ac_im_usrlibdir=$ac_im_libdir; break
9664 done
9665 # Screen out bogus values from the imake configuration. They are
9666 # bogus both because they are the default anyway, and because
9667 # using them would break gcc on systems where it needs fixed includes.
9668 case $ac_im_incroot in
9669 /usr/include) ac_x_includes= ;;
9670 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9671 esac
9672 case $ac_im_usrlibdir in
9673 /usr/lib | /lib) ;;
9674 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9675 esac
9677 cd ..
9678 rm -f -r conftest.dir
9681 # Standard set of common directories for X headers.
9682 # Check X11 before X11Rn because it is often a symlink to the current release.
9683 ac_x_header_dirs='
9684 /usr/X11/include
9685 /usr/X11R6/include
9686 /usr/X11R5/include
9687 /usr/X11R4/include
9689 /usr/include/X11
9690 /usr/include/X11R6
9691 /usr/include/X11R5
9692 /usr/include/X11R4
9694 /usr/local/X11/include
9695 /usr/local/X11R6/include
9696 /usr/local/X11R5/include
9697 /usr/local/X11R4/include
9699 /usr/local/include/X11
9700 /usr/local/include/X11R6
9701 /usr/local/include/X11R5
9702 /usr/local/include/X11R4
9704 /usr/X386/include
9705 /usr/x386/include
9706 /usr/XFree86/include/X11
9708 /usr/include
9709 /usr/local/include
9710 /usr/unsupported/include
9711 /usr/athena/include
9712 /usr/local/x11r5/include
9713 /usr/lpp/Xamples/include
9715 /usr/openwin/include
9716 /usr/openwin/share/include'
9718 if test "$ac_x_includes" = no; then
9719 # Guess where to find include files, by looking for Xlib.h.
9720 # First, try using that file with no special directory specified.
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h. */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 #include <X11/Xlib.h>
9728 _ACEOF
9729 if { (ac_try="$ac_cpp conftest.$ac_ext"
9730 case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9733 esac
9734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9735 $as_echo "$ac_try_echo") >&5
9736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } >/dev/null && {
9743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 }; then
9746 # We can compile using X headers with no special include directory.
9747 ac_x_includes=
9748 else
9749 $as_echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 for ac_dir in $ac_x_header_dirs; do
9753 if test -r "$ac_dir/X11/Xlib.h"; then
9754 ac_x_includes=$ac_dir
9755 break
9757 done
9760 rm -f conftest.err conftest.$ac_ext
9761 fi # $ac_x_includes = no
9763 if test "$ac_x_libraries" = no; then
9764 # Check for the libraries.
9765 # See if we find them without any special options.
9766 # Don't add to $LIBS permanently.
9767 ac_save_LIBS=$LIBS
9768 LIBS="-lX11 $LIBS"
9769 cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h. */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 #include <X11/Xlib.h>
9777 main ()
9779 XrmInitialize ()
9781 return 0;
9783 _ACEOF
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (ac_try="$ac_link"
9786 case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789 esac
9790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792 (eval "$ac_link") 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest$ac_exeext && {
9802 test "$cross_compiling" = yes ||
9803 $as_test_x conftest$ac_exeext
9804 }; then
9805 LIBS=$ac_save_LIBS
9806 # We can link X programs with no special library path.
9807 ac_x_libraries=
9808 else
9809 $as_echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 LIBS=$ac_save_LIBS
9813 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9815 # Don't even attempt the hair of trying to link an X program!
9816 for ac_extension in a so sl dylib la dll; do
9817 if test -r "$ac_dir/libX11.$ac_extension"; then
9818 ac_x_libraries=$ac_dir
9819 break 2
9821 done
9822 done
9825 rm -rf conftest.dSYM
9826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9827 conftest$ac_exeext conftest.$ac_ext
9828 fi # $ac_x_libraries = no
9830 case $ac_x_includes,$ac_x_libraries in #(
9831 no,* | *,no | *\'*)
9832 # Didn't find X, or a directory has "'" in its name.
9833 ac_cv_have_x="have_x=no";; #(
9835 # Record where we found X for the cache.
9836 ac_cv_have_x="have_x=yes\
9837 ac_x_includes='$ac_x_includes'\
9838 ac_x_libraries='$ac_x_libraries'"
9839 esac
9841 ;; #(
9842 *) have_x=yes;;
9843 esac
9844 eval "$ac_cv_have_x"
9845 fi # $with_x != no
9847 if test "$have_x" != yes; then
9848 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9849 $as_echo "$have_x" >&6; }
9850 no_x=yes
9851 else
9852 # If each of the values was on the command line, it overrides each guess.
9853 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9854 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9855 # Update the cache value to reflect the command line values.
9856 ac_cv_have_x="have_x=yes\
9857 ac_x_includes='$x_includes'\
9858 ac_x_libraries='$x_libraries'"
9859 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9860 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9863 if test "$no_x" = yes; then
9864 window_system=none
9865 else
9866 window_system=x11
9869 ## Workaround for bug in autoconf <= 2.62.
9870 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9871 ## No need to do anything special for these standard directories.
9872 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9874 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9878 LD_SWITCH_X_SITE_AUX=
9879 LD_SWITCH_X_SITE_AUX_RPATH=
9880 if test "${x_libraries}" != NONE; then
9881 if test -n "${x_libraries}"; then
9882 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9883 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9884 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9886 x_default_search_path=""
9887 x_search_path=${x_libraries}
9888 if test -z "${x_search_path}"; then
9889 x_search_path=/usr/lib
9891 for x_library in `echo ${x_search_path}: | \
9892 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9893 x_search_path="\
9894 ${x_library}/X11/%L/%T/%N%C%S:\
9895 ${x_library}/X11/%l/%T/%N%C%S:\
9896 ${x_library}/X11/%T/%N%C%S:\
9897 ${x_library}/X11/%L/%T/%N%S:\
9898 ${x_library}/X11/%l/%T/%N%S:\
9899 ${x_library}/X11/%T/%N%S"
9900 if test x"${x_default_search_path}" = x; then
9901 x_default_search_path=${x_search_path}
9902 else
9903 x_default_search_path="${x_search_path}:${x_default_search_path}"
9905 done
9910 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9911 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9914 if test x"${x_includes}" = x; then
9915 bitmapdir=/usr/include/X11/bitmaps
9916 else
9917 # accumulate include directories that have X11 bitmap subdirectories
9918 bmd_acc="dummyval"
9919 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9920 if test -d "${bmd}/X11/bitmaps"; then
9921 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9923 if test -d "${bmd}/bitmaps"; then
9924 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9926 done
9927 if test ${bmd_acc} != "dummyval"; then
9928 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9932 HAVE_NS=no
9933 NS_IMPL_COCOA=no
9934 NS_IMPL_GNUSTEP=no
9935 NS_IMPL_GNUSTEP_INC=
9936 tmp_CPPFLAGS="$CPPFLAGS"
9937 tmp_CFLAGS="$CFLAGS"
9938 CPPFLAGS="$CPPFLAGS -x objective-c"
9939 CFLAGS="$CFLAGS -x objective-c"
9940 if test "${with_ns}" != no; then
9941 if test "${opsys}" = darwin; then
9942 NS_IMPL_COCOA=yes
9943 ns_appdir=`pwd`/nextstep/Emacs.app
9944 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9945 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9946 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9947 elif test -f $GNUSTEP_CONFIG_FILE; then
9948 NS_IMPL_GNUSTEP=yes
9949 ns_appdir=`pwd`/nextstep/Emacs.app
9950 ns_appbindir=`pwd`/nextstep/Emacs.app
9951 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9952 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9953 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9954 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9955 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9956 ## Pull in stuff from GNUstep-make.
9957 NS_IMPL_GNUSTEP_INC="FOUNDATION_LIB=gnu
9958 GUI_LIB=gnu
9959 include $GNUSTEP_MAKEFILES/Additional/base.make
9960 include $GNUSTEP_MAKEFILES/Additional/gui.make
9961 shared=no
9963 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9964 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9965 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9966 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9967 LIB_STANDARD=
9969 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9970 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9971 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9972 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9973 $as_echo_n "(cached) " >&6
9975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9976 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9977 else
9978 # Is the header compilable?
9979 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9980 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987 $ac_includes_default
9988 #include <AppKit/AppKit.h>
9989 _ACEOF
9990 rm -f conftest.$ac_objext
9991 if { (ac_try="$ac_compile"
9992 case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995 esac
9996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9997 $as_echo "$ac_try_echo") >&5
9998 (eval "$ac_compile") 2>conftest.er1
9999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest.$ac_objext; then
10008 ac_header_compiler=yes
10009 else
10010 $as_echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_header_compiler=no
10016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10018 $as_echo "$ac_header_compiler" >&6; }
10020 # Is the header present?
10021 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10022 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10023 cat >conftest.$ac_ext <<_ACEOF
10024 /* confdefs.h. */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 #include <AppKit/AppKit.h>
10030 _ACEOF
10031 if { (ac_try="$ac_cpp conftest.$ac_ext"
10032 case "(($ac_try" in
10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10035 esac
10036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10037 $as_echo "$ac_try_echo") >&5
10038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } >/dev/null && {
10045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10046 test ! -s conftest.err
10047 }; then
10048 ac_header_preproc=yes
10049 else
10050 $as_echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10053 ac_header_preproc=no
10056 rm -f conftest.err conftest.$ac_ext
10057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10058 $as_echo "$ac_header_preproc" >&6; }
10060 # So? What about this header?
10061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10062 yes:no: )
10063 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10064 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10065 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10066 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10067 ac_header_preproc=yes
10069 no:yes:* )
10070 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10071 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10072 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10073 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10074 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10075 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10076 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10077 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10078 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10079 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10080 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10081 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10084 esac
10085 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10086 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10087 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10088 $as_echo_n "(cached) " >&6
10089 else
10090 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10093 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10096 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10097 HAVE_NS=yes
10098 else
10099 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10100 files are missing or cannot be compiled." >&5
10101 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10102 files are missing or cannot be compiled." >&2;}
10103 { (exit 1); exit 1; }; }
10107 NS_HAVE_NSINTEGER=yes
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h. */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 #include <Foundation/NSObjCRuntime.h>
10116 main ()
10118 NSInteger i;
10120 return 0;
10122 _ACEOF
10123 rm -f conftest.$ac_objext
10124 if { (ac_try="$ac_compile"
10125 case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10128 esac
10129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10130 $as_echo "$ac_try_echo") >&5
10131 (eval "$ac_compile") 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && {
10138 test -z "$ac_c_werror_flag" ||
10139 test ! -s conftest.err
10140 } && test -s conftest.$ac_objext; then
10141 ns_have_nsinteger=yes
10142 else
10143 $as_echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ns_have_nsinteger=no
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 if test $ns_have_nsinteger = no; then
10151 NS_HAVE_NSINTEGER=no
10156 NS_OBJ=
10157 NS_SUPPORT=
10158 if test "${HAVE_NS}" = yes; then
10159 window_system=nextstep
10160 with_xft=no
10161 # set up packaging dirs
10162 exec_prefix=${ns_appbindir}
10163 libexecdir=${ns_appbindir}/libexec
10164 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10165 prefix=${ns_appresdir}
10167 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10168 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10170 CFLAGS="$tmp_CFLAGS"
10171 CPPFLAGS="$tmp_CPPFLAGS"
10176 case "${window_system}" in
10177 x11 )
10178 HAVE_X_WINDOWS=yes
10179 HAVE_X11=yes
10180 case "${with_x_toolkit}" in
10181 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10182 motif ) USE_X_TOOLKIT=MOTIF ;;
10183 gtk ) with_gtk=yes
10184 USE_X_TOOLKIT=none ;;
10185 no ) USE_X_TOOLKIT=none ;;
10186 * ) USE_X_TOOLKIT=maybe ;;
10187 esac
10189 nextstep | none )
10190 HAVE_X_WINDOWS=no
10191 HAVE_X11=no
10192 USE_X_TOOLKIT=none
10194 esac
10196 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10197 # Extract the first word of "X", so it can be a program name with args.
10198 set dummy X; ac_word=$2
10199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10202 $as_echo_n "(cached) " >&6
10203 else
10204 if test -n "$HAVE_XSERVER"; then
10205 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10206 else
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_prog_HAVE_XSERVER="true"
10215 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10218 done
10219 done
10220 IFS=$as_save_IFS
10222 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10225 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10226 if test -n "$HAVE_XSERVER"; then
10227 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10228 $as_echo "$HAVE_XSERVER" >&6; }
10229 else
10230 { $as_echo "$as_me:$LINENO: result: no" >&5
10231 $as_echo "no" >&6; }
10235 if test "$HAVE_XSERVER" = true ||
10236 test -n "$DISPLAY" ||
10237 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10238 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10239 were found. You should install the relevant development files for X
10240 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10241 sure you have development files for image handling, i.e.
10242 tiff, gif, jpeg, png and xpm.
10243 If you are sure you want Emacs compiled without X window support, pass
10244 --without-x
10245 to configure." >&5
10246 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10247 were found. You should install the relevant development files for X
10248 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10249 sure you have development files for image handling, i.e.
10250 tiff, gif, jpeg, png and xpm.
10251 If you are sure you want Emacs compiled without X window support, pass
10252 --without-x
10253 to configure." >&2;}
10254 { (exit 1); exit 1; }; }
10258 ### If we're using X11, we should use the X menu package.
10259 HAVE_MENUS=no
10260 case ${HAVE_X11} in
10261 yes ) HAVE_MENUS=yes ;;
10262 esac
10264 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10265 # Assume not, until told otherwise.
10266 GNU_MALLOC=yes
10267 doug_lea_malloc=yes
10268 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10269 $as_echo_n "checking for malloc_get_state... " >&6; }
10270 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10271 $as_echo_n "(cached) " >&6
10272 else
10273 cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h. */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10281 #define malloc_get_state innocuous_malloc_get_state
10283 /* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char malloc_get_state (); below.
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286 <limits.h> exists even on freestanding compilers. */
10288 #ifdef __STDC__
10289 # include <limits.h>
10290 #else
10291 # include <assert.h>
10292 #endif
10294 #undef malloc_get_state
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10299 #ifdef __cplusplus
10300 extern "C"
10301 #endif
10302 char malloc_get_state ();
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10307 choke me
10308 #endif
10311 main ()
10313 return malloc_get_state ();
10315 return 0;
10317 _ACEOF
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (ac_try="$ac_link"
10320 case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323 esac
10324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10325 $as_echo "$ac_try_echo") >&5
10326 (eval "$ac_link") 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest$ac_exeext && {
10336 test "$cross_compiling" = yes ||
10337 $as_test_x conftest$ac_exeext
10338 }; then
10339 ac_cv_func_malloc_get_state=yes
10340 else
10341 $as_echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10344 ac_cv_func_malloc_get_state=no
10347 rm -rf conftest.dSYM
10348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10349 conftest$ac_exeext conftest.$ac_ext
10351 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10352 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10353 if test $ac_cv_func_malloc_get_state = yes; then
10355 else
10356 doug_lea_malloc=no
10359 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10360 $as_echo_n "checking for malloc_set_state... " >&6; }
10361 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10362 $as_echo_n "(cached) " >&6
10363 else
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h. */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10372 #define malloc_set_state innocuous_malloc_set_state
10374 /* System header to define __stub macros and hopefully few prototypes,
10375 which can conflict with char malloc_set_state (); below.
10376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10377 <limits.h> exists even on freestanding compilers. */
10379 #ifdef __STDC__
10380 # include <limits.h>
10381 #else
10382 # include <assert.h>
10383 #endif
10385 #undef malloc_set_state
10387 /* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10390 #ifdef __cplusplus
10391 extern "C"
10392 #endif
10393 char malloc_set_state ();
10394 /* The GNU C library defines this for functions which it implements
10395 to always fail with ENOSYS. Some functions are actually named
10396 something starting with __ and the normal name is an alias. */
10397 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10398 choke me
10399 #endif
10402 main ()
10404 return malloc_set_state ();
10406 return 0;
10408 _ACEOF
10409 rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (ac_try="$ac_link"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10414 esac
10415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10416 $as_echo "$ac_try_echo") >&5
10417 (eval "$ac_link") 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && {
10424 test -z "$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 } && test -s conftest$ac_exeext && {
10427 test "$cross_compiling" = yes ||
10428 $as_test_x conftest$ac_exeext
10429 }; then
10430 ac_cv_func_malloc_set_state=yes
10431 else
10432 $as_echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10435 ac_cv_func_malloc_set_state=no
10438 rm -rf conftest.dSYM
10439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10440 conftest$ac_exeext conftest.$ac_ext
10442 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10443 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10444 if test $ac_cv_func_malloc_set_state = yes; then
10446 else
10447 doug_lea_malloc=no
10450 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10451 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10452 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10453 $as_echo_n "(cached) " >&6
10454 else
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 extern void (* __after_morecore_hook)();
10463 main ()
10465 __after_morecore_hook = 0
10467 return 0;
10469 _ACEOF
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (ac_try="$ac_link"
10472 case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10475 esac
10476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10477 $as_echo "$ac_try_echo") >&5
10478 (eval "$ac_link") 2>conftest.er1
10479 ac_status=$?
10480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
10483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } && {
10485 test -z "$ac_c_werror_flag" ||
10486 test ! -s conftest.err
10487 } && test -s conftest$ac_exeext && {
10488 test "$cross_compiling" = yes ||
10489 $as_test_x conftest$ac_exeext
10490 }; then
10491 emacs_cv_var___after_morecore_hook=yes
10492 else
10493 $as_echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 emacs_cv_var___after_morecore_hook=no
10499 rm -rf conftest.dSYM
10500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10501 conftest$ac_exeext conftest.$ac_ext
10503 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10504 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10505 if test $emacs_cv_var___after_morecore_hook = no; then
10506 doug_lea_malloc=no
10508 if test "${system_malloc}" = "yes"; then
10509 GNU_MALLOC=no
10510 GNU_MALLOC_reason="
10511 (The GNU allocators don't work with this system configuration.)"
10513 if test "$doug_lea_malloc" = "yes" ; then
10514 if test "$GNU_MALLOC" = yes ; then
10515 GNU_MALLOC_reason="
10516 (Using Doug Lea's new malloc from the GNU C Library.)"
10519 cat >>confdefs.h <<\_ACEOF
10520 #define DOUG_LEA_MALLOC 1
10521 _ACEOF
10525 if test x"${REL_ALLOC}" = x; then
10526 REL_ALLOC=${GNU_MALLOC}
10532 for ac_header in stdlib.h unistd.h
10534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10536 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10537 $as_echo_n "checking for $ac_header... " >&6; }
10538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10539 $as_echo_n "(cached) " >&6
10541 ac_res=`eval 'as_val=${'$as_ac_Header'}
10542 $as_echo "$as_val"'`
10543 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10544 $as_echo "$ac_res" >&6; }
10545 else
10546 # Is the header compilable?
10547 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10548 $as_echo_n "checking $ac_header usability... " >&6; }
10549 cat >conftest.$ac_ext <<_ACEOF
10550 /* confdefs.h. */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 $ac_includes_default
10556 #include <$ac_header>
10557 _ACEOF
10558 rm -f conftest.$ac_objext
10559 if { (ac_try="$ac_compile"
10560 case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10563 esac
10564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10565 $as_echo "$ac_try_echo") >&5
10566 (eval "$ac_compile") 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && {
10573 test -z "$ac_c_werror_flag" ||
10574 test ! -s conftest.err
10575 } && test -s conftest.$ac_objext; then
10576 ac_header_compiler=yes
10577 else
10578 $as_echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 ac_header_compiler=no
10584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10585 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10586 $as_echo "$ac_header_compiler" >&6; }
10588 # Is the header present?
10589 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10590 $as_echo_n "checking $ac_header presence... " >&6; }
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 #include <$ac_header>
10598 _ACEOF
10599 if { (ac_try="$ac_cpp conftest.$ac_ext"
10600 case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10603 esac
10604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10605 $as_echo "$ac_try_echo") >&5
10606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } >/dev/null && {
10613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10614 test ! -s conftest.err
10615 }; then
10616 ac_header_preproc=yes
10617 else
10618 $as_echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10621 ac_header_preproc=no
10624 rm -f conftest.err conftest.$ac_ext
10625 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10626 $as_echo "$ac_header_preproc" >&6; }
10628 # So? What about this header?
10629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10630 yes:no: )
10631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10632 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10634 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10635 ac_header_preproc=yes
10637 no:yes:* )
10638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10639 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10641 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10643 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10645 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10647 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10649 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10652 esac
10653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 $as_echo_n "checking for $ac_header... " >&6; }
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 $as_echo_n "(cached) " >&6
10657 else
10658 eval "$as_ac_Header=\$ac_header_preproc"
10660 ac_res=`eval 'as_val=${'$as_ac_Header'}
10661 $as_echo "$as_val"'`
10662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10663 $as_echo "$ac_res" >&6; }
10666 if test `eval 'as_val=${'$as_ac_Header'}
10667 $as_echo "$as_val"'` = yes; then
10668 cat >>confdefs.h <<_ACEOF
10669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10670 _ACEOF
10674 done
10677 for ac_func in getpagesize
10679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10680 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10681 $as_echo_n "checking for $ac_func... " >&6; }
10682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10683 $as_echo_n "(cached) " >&6
10684 else
10685 cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h. */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10693 #define $ac_func innocuous_$ac_func
10695 /* System header to define __stub macros and hopefully few prototypes,
10696 which can conflict with char $ac_func (); below.
10697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10698 <limits.h> exists even on freestanding compilers. */
10700 #ifdef __STDC__
10701 # include <limits.h>
10702 #else
10703 # include <assert.h>
10704 #endif
10706 #undef $ac_func
10708 /* Override any GCC internal prototype to avoid an error.
10709 Use char because int might match the return type of a GCC
10710 builtin and then its argument prototype would still apply. */
10711 #ifdef __cplusplus
10712 extern "C"
10713 #endif
10714 char $ac_func ();
10715 /* The GNU C library defines this for functions which it implements
10716 to always fail with ENOSYS. Some functions are actually named
10717 something starting with __ and the normal name is an alias. */
10718 #if defined __stub_$ac_func || defined __stub___$ac_func
10719 choke me
10720 #endif
10723 main ()
10725 return $ac_func ();
10727 return 0;
10729 _ACEOF
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (ac_try="$ac_link"
10732 case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735 esac
10736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10737 $as_echo "$ac_try_echo") >&5
10738 (eval "$ac_link") 2>conftest.er1
10739 ac_status=$?
10740 grep -v '^ *+' conftest.er1 >conftest.err
10741 rm -f conftest.er1
10742 cat conftest.err >&5
10743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } && {
10745 test -z "$ac_c_werror_flag" ||
10746 test ! -s conftest.err
10747 } && test -s conftest$ac_exeext && {
10748 test "$cross_compiling" = yes ||
10749 $as_test_x conftest$ac_exeext
10750 }; then
10751 eval "$as_ac_var=yes"
10752 else
10753 $as_echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10756 eval "$as_ac_var=no"
10759 rm -rf conftest.dSYM
10760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10761 conftest$ac_exeext conftest.$ac_ext
10763 ac_res=`eval 'as_val=${'$as_ac_var'}
10764 $as_echo "$as_val"'`
10765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10766 $as_echo "$ac_res" >&6; }
10767 if test `eval 'as_val=${'$as_ac_var'}
10768 $as_echo "$as_val"'` = yes; then
10769 cat >>confdefs.h <<_ACEOF
10770 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10771 _ACEOF
10774 done
10776 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10777 $as_echo_n "checking for working mmap... " >&6; }
10778 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10779 $as_echo_n "(cached) " >&6
10780 else
10781 if test "$cross_compiling" = yes; then
10782 ac_cv_func_mmap_fixed_mapped=no
10783 else
10784 cat >conftest.$ac_ext <<_ACEOF
10785 /* confdefs.h. */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790 $ac_includes_default
10791 /* malloc might have been renamed as rpl_malloc. */
10792 #undef malloc
10794 /* Thanks to Mike Haertel and Jim Avera for this test.
10795 Here is a matrix of mmap possibilities:
10796 mmap private not fixed
10797 mmap private fixed at somewhere currently unmapped
10798 mmap private fixed at somewhere already mapped
10799 mmap shared not fixed
10800 mmap shared fixed at somewhere currently unmapped
10801 mmap shared fixed at somewhere already mapped
10802 For private mappings, we should verify that changes cannot be read()
10803 back from the file, nor mmap's back from the file at a different
10804 address. (There have been systems where private was not correctly
10805 implemented like the infamous i386 svr4.0, and systems where the
10806 VM page cache was not coherent with the file system buffer cache
10807 like early versions of FreeBSD and possibly contemporary NetBSD.)
10808 For shared mappings, we should conversely verify that changes get
10809 propagated back to all the places they're supposed to be.
10811 Grep wants private fixed already mapped.
10812 The main things grep needs to know about mmap are:
10813 * does it exist and is it safe to write into the mmap'd area
10814 * how to use it (BSD variants) */
10816 #include <fcntl.h>
10817 #include <sys/mman.h>
10819 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10820 char *malloc ();
10821 #endif
10823 /* This mess was copied from the GNU getpagesize.h. */
10824 #ifndef HAVE_GETPAGESIZE
10825 /* Assume that all systems that can run configure have sys/param.h. */
10826 # ifndef HAVE_SYS_PARAM_H
10827 # define HAVE_SYS_PARAM_H 1
10828 # endif
10830 # ifdef _SC_PAGESIZE
10831 # define getpagesize() sysconf(_SC_PAGESIZE)
10832 # else /* no _SC_PAGESIZE */
10833 # ifdef HAVE_SYS_PARAM_H
10834 # include <sys/param.h>
10835 # ifdef EXEC_PAGESIZE
10836 # define getpagesize() EXEC_PAGESIZE
10837 # else /* no EXEC_PAGESIZE */
10838 # ifdef NBPG
10839 # define getpagesize() NBPG * CLSIZE
10840 # ifndef CLSIZE
10841 # define CLSIZE 1
10842 # endif /* no CLSIZE */
10843 # else /* no NBPG */
10844 # ifdef NBPC
10845 # define getpagesize() NBPC
10846 # else /* no NBPC */
10847 # ifdef PAGESIZE
10848 # define getpagesize() PAGESIZE
10849 # endif /* PAGESIZE */
10850 # endif /* no NBPC */
10851 # endif /* no NBPG */
10852 # endif /* no EXEC_PAGESIZE */
10853 # else /* no HAVE_SYS_PARAM_H */
10854 # define getpagesize() 8192 /* punt totally */
10855 # endif /* no HAVE_SYS_PARAM_H */
10856 # endif /* no _SC_PAGESIZE */
10858 #endif /* no HAVE_GETPAGESIZE */
10861 main ()
10863 char *data, *data2, *data3;
10864 int i, pagesize;
10865 int fd;
10867 pagesize = getpagesize ();
10869 /* First, make a file with some known garbage in it. */
10870 data = (char *) malloc (pagesize);
10871 if (!data)
10872 return 1;
10873 for (i = 0; i < pagesize; ++i)
10874 *(data + i) = rand ();
10875 umask (0);
10876 fd = creat ("conftest.mmap", 0600);
10877 if (fd < 0)
10878 return 1;
10879 if (write (fd, data, pagesize) != pagesize)
10880 return 1;
10881 close (fd);
10883 /* Next, try to mmap the file at a fixed address which already has
10884 something else allocated at it. If we can, also make sure that
10885 we see the same garbage. */
10886 fd = open ("conftest.mmap", O_RDWR);
10887 if (fd < 0)
10888 return 1;
10889 data2 = (char *) malloc (2 * pagesize);
10890 if (!data2)
10891 return 1;
10892 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10893 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10894 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10895 return 1;
10896 for (i = 0; i < pagesize; ++i)
10897 if (*(data + i) != *(data2 + i))
10898 return 1;
10900 /* Finally, make sure that changes to the mapped area do not
10901 percolate back to the file as seen by read(). (This is a bug on
10902 some variants of i386 svr4.0.) */
10903 for (i = 0; i < pagesize; ++i)
10904 *(data2 + i) = *(data2 + i) + 1;
10905 data3 = (char *) malloc (pagesize);
10906 if (!data3)
10907 return 1;
10908 if (read (fd, data3, pagesize) != pagesize)
10909 return 1;
10910 for (i = 0; i < pagesize; ++i)
10911 if (*(data + i) != *(data3 + i))
10912 return 1;
10913 close (fd);
10914 return 0;
10916 _ACEOF
10917 rm -f conftest$ac_exeext
10918 if { (ac_try="$ac_link"
10919 case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10922 esac
10923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10924 $as_echo "$ac_try_echo") >&5
10925 (eval "$ac_link") 2>&5
10926 ac_status=$?
10927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10929 { (case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932 esac
10933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10934 $as_echo "$ac_try_echo") >&5
10935 (eval "$ac_try") 2>&5
10936 ac_status=$?
10937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 ac_cv_func_mmap_fixed_mapped=yes
10940 else
10941 $as_echo "$as_me: program exited with status $ac_status" >&5
10942 $as_echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 ( exit $ac_status )
10946 ac_cv_func_mmap_fixed_mapped=no
10948 rm -rf conftest.dSYM
10949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10954 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10955 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10956 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10958 cat >>confdefs.h <<\_ACEOF
10959 #define HAVE_MMAP 1
10960 _ACEOF
10963 rm -f conftest.mmap
10965 if test $use_mmap_for_buffers = yes; then
10966 REL_ALLOC=no
10969 LIBS="$LIBS_SYSTEM $LIBS"
10972 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10973 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10974 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10975 $as_echo_n "(cached) " >&6
10976 else
10977 ac_check_lib_save_LIBS=$LIBS
10978 LIBS="-ldnet $LIBS"
10979 cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h. */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char dnet_ntoa ();
10994 main ()
10996 return dnet_ntoa ();
10998 return 0;
11000 _ACEOF
11001 rm -f conftest.$ac_objext conftest$ac_exeext
11002 if { (ac_try="$ac_link"
11003 case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11006 esac
11007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11008 $as_echo "$ac_try_echo") >&5
11009 (eval "$ac_link") 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && {
11016 test -z "$ac_c_werror_flag" ||
11017 test ! -s conftest.err
11018 } && test -s conftest$ac_exeext && {
11019 test "$cross_compiling" = yes ||
11020 $as_test_x conftest$ac_exeext
11021 }; then
11022 ac_cv_lib_dnet_dnet_ntoa=yes
11023 else
11024 $as_echo "$as_me: failed program was:" >&5
11025 sed 's/^/| /' conftest.$ac_ext >&5
11027 ac_cv_lib_dnet_dnet_ntoa=no
11030 rm -rf conftest.dSYM
11031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032 conftest$ac_exeext conftest.$ac_ext
11033 LIBS=$ac_check_lib_save_LIBS
11035 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11036 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11037 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11038 cat >>confdefs.h <<_ACEOF
11039 #define HAVE_LIBDNET 1
11040 _ACEOF
11042 LIBS="-ldnet $LIBS"
11047 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11048 $as_echo_n "checking for main in -lXbsd... " >&6; }
11049 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11050 $as_echo_n "(cached) " >&6
11051 else
11052 ac_check_lib_save_LIBS=$LIBS
11053 LIBS="-lXbsd $LIBS"
11054 cat >conftest.$ac_ext <<_ACEOF
11055 /* confdefs.h. */
11056 _ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11063 main ()
11065 return main ();
11067 return 0;
11069 _ACEOF
11070 rm -f conftest.$ac_objext conftest$ac_exeext
11071 if { (ac_try="$ac_link"
11072 case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11075 esac
11076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11077 $as_echo "$ac_try_echo") >&5
11078 (eval "$ac_link") 2>conftest.er1
11079 ac_status=$?
11080 grep -v '^ *+' conftest.er1 >conftest.err
11081 rm -f conftest.er1
11082 cat conftest.err >&5
11083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } && {
11085 test -z "$ac_c_werror_flag" ||
11086 test ! -s conftest.err
11087 } && test -s conftest$ac_exeext && {
11088 test "$cross_compiling" = yes ||
11089 $as_test_x conftest$ac_exeext
11090 }; then
11091 ac_cv_lib_Xbsd_main=yes
11092 else
11093 $as_echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11096 ac_cv_lib_Xbsd_main=no
11099 rm -rf conftest.dSYM
11100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11104 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11105 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11106 if test $ac_cv_lib_Xbsd_main = yes; then
11107 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11112 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11113 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11114 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11115 $as_echo_n "(cached) " >&6
11116 else
11117 ac_check_lib_save_LIBS=$LIBS
11118 LIBS="-lpthreads $LIBS"
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11126 /* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 char cma_open ();
11134 main ()
11136 return cma_open ();
11138 return 0;
11140 _ACEOF
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (ac_try="$ac_link"
11143 case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146 esac
11147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11148 $as_echo "$ac_try_echo") >&5
11149 (eval "$ac_link") 2>conftest.er1
11150 ac_status=$?
11151 grep -v '^ *+' conftest.er1 >conftest.err
11152 rm -f conftest.er1
11153 cat conftest.err >&5
11154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && {
11156 test -z "$ac_c_werror_flag" ||
11157 test ! -s conftest.err
11158 } && test -s conftest$ac_exeext && {
11159 test "$cross_compiling" = yes ||
11160 $as_test_x conftest$ac_exeext
11161 }; then
11162 ac_cv_lib_pthreads_cma_open=yes
11163 else
11164 $as_echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11167 ac_cv_lib_pthreads_cma_open=no
11170 rm -rf conftest.dSYM
11171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11175 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11176 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11177 if test $ac_cv_lib_pthreads_cma_open = yes; then
11178 cat >>confdefs.h <<_ACEOF
11179 #define HAVE_LIBPTHREADS 1
11180 _ACEOF
11182 LIBS="-lpthreads $LIBS"
11187 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11188 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11189 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11190 ## added to LIBS in configure would never contain the pthreads part,
11191 ## but the value used in Makefiles might. FIXME?
11193 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11194 ## be harmless on older versions of X where it happens to exist.
11195 test "$opsys" = "aix4-2" && \
11196 test $ac_cv_lib_pthreads_cma_open = yes && \
11197 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11200 case ${host_os} in
11201 aix*)
11202 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11203 $as_echo_n "checking for -bbigtoc option... " >&6; }
11204 if test "${gdb_cv_bigtoc+set}" = set; then
11205 $as_echo_n "(cached) " >&6
11206 else
11208 case $GCC in
11209 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11210 *) gdb_cv_bigtoc=-bbigtoc ;;
11211 esac
11213 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h. */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11222 main ()
11224 int i;
11226 return 0;
11228 _ACEOF
11229 rm -f conftest.$ac_objext conftest$ac_exeext
11230 if { (ac_try="$ac_link"
11231 case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11234 esac
11235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11236 $as_echo "$ac_try_echo") >&5
11237 (eval "$ac_link") 2>conftest.er1
11238 ac_status=$?
11239 grep -v '^ *+' conftest.er1 >conftest.err
11240 rm -f conftest.er1
11241 cat conftest.err >&5
11242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } && {
11244 test -z "$ac_c_werror_flag" ||
11245 test ! -s conftest.err
11246 } && test -s conftest$ac_exeext && {
11247 test "$cross_compiling" = yes ||
11248 $as_test_x conftest$ac_exeext
11249 }; then
11251 else
11252 $as_echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11255 gdb_cv_bigtoc=
11258 rm -rf conftest.dSYM
11259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11260 conftest$ac_exeext conftest.$ac_ext
11263 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11264 $as_echo "$gdb_cv_bigtoc" >&6; }
11266 esac
11268 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11269 # used for the tests that follow. We set them back to REAL_CFLAGS and
11270 # REAL_CPPFLAGS later on.
11272 REAL_CPPFLAGS="$CPPFLAGS"
11274 if test "${HAVE_X11}" = "yes"; then
11275 DEFS="$C_SWITCH_X_SITE $DEFS"
11276 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11277 LIBS="$LIBX $LIBS"
11278 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11279 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11281 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11282 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11283 # but it's more convenient here to set LD_RUN_PATH
11284 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11285 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11286 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11287 export LD_RUN_PATH
11290 if test "${opsys}" = "gnu-linux"; then
11291 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11292 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11301 main ()
11303 XOpenDisplay ("foo");
11305 return 0;
11307 _ACEOF
11308 rm -f conftest.$ac_objext conftest$ac_exeext
11309 if { (ac_try="$ac_link"
11310 case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11313 esac
11314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11315 $as_echo "$ac_try_echo") >&5
11316 (eval "$ac_link") 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } && {
11323 test -z "$ac_c_werror_flag" ||
11324 test ! -s conftest.err
11325 } && test -s conftest$ac_exeext && {
11326 test "$cross_compiling" = yes ||
11327 $as_test_x conftest$ac_exeext
11328 }; then
11329 xlinux_first_failure=no
11330 else
11331 $as_echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11334 xlinux_first_failure=yes
11337 rm -rf conftest.dSYM
11338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11339 conftest$ac_exeext conftest.$ac_ext
11340 if test "${xlinux_first_failure}" = "yes"; then
11341 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11342 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11343 OLD_CPPFLAGS="$CPPFLAGS"
11344 OLD_LIBS="$LIBS"
11345 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11346 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11347 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11348 LIBS="$LIBS -b i486-linuxaout"
11349 cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h. */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11357 main ()
11359 XOpenDisplay ("foo");
11361 return 0;
11363 _ACEOF
11364 rm -f conftest.$ac_objext conftest$ac_exeext
11365 if { (ac_try="$ac_link"
11366 case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11369 esac
11370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11371 $as_echo "$ac_try_echo") >&5
11372 (eval "$ac_link") 2>conftest.er1
11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
11377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } && {
11379 test -z "$ac_c_werror_flag" ||
11380 test ! -s conftest.err
11381 } && test -s conftest$ac_exeext && {
11382 test "$cross_compiling" = yes ||
11383 $as_test_x conftest$ac_exeext
11384 }; then
11385 xlinux_second_failure=no
11386 else
11387 $as_echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 xlinux_second_failure=yes
11393 rm -rf conftest.dSYM
11394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11395 conftest$ac_exeext conftest.$ac_ext
11396 if test "${xlinux_second_failure}" = "yes"; then
11397 # If we get the same failure with -b, there is no use adding -b.
11398 # So take it out. This plays safe.
11399 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11400 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11401 CPPFLAGS="$OLD_CPPFLAGS"
11402 LIBS="$OLD_LIBS"
11403 { $as_echo "$as_me:$LINENO: result: no" >&5
11404 $as_echo "no" >&6; }
11405 else
11406 { $as_echo "$as_me:$LINENO: result: yes" >&5
11407 $as_echo "yes" >&6; }
11409 else
11410 { $as_echo "$as_me:$LINENO: result: no" >&5
11411 $as_echo "no" >&6; }
11415 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11416 # header files included from there.
11417 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11418 $as_echo_n "checking for Xkb... " >&6; }
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h. */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 #include <X11/Xlib.h>
11426 #include <X11/XKBlib.h>
11428 main ()
11430 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11432 return 0;
11434 _ACEOF
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (ac_try="$ac_link"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440 esac
11441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11442 $as_echo "$ac_try_echo") >&5
11443 (eval "$ac_link") 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } && {
11450 test -z "$ac_c_werror_flag" ||
11451 test ! -s conftest.err
11452 } && test -s conftest$ac_exeext && {
11453 test "$cross_compiling" = yes ||
11454 $as_test_x conftest$ac_exeext
11455 }; then
11456 emacs_xkb=yes
11457 else
11458 $as_echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11461 emacs_xkb=no
11464 rm -rf conftest.dSYM
11465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11466 conftest$ac_exeext conftest.$ac_ext
11467 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11468 $as_echo "$emacs_xkb" >&6; }
11469 if test $emacs_xkb = yes; then
11471 cat >>confdefs.h <<\_ACEOF
11472 #define HAVE_XKBGETKEYBOARD 1
11473 _ACEOF
11481 for ac_func in XrmSetDatabase XScreenResourceString \
11482 XScreenNumberOfScreen XSetWMProtocols
11484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11485 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11486 $as_echo_n "checking for $ac_func... " >&6; }
11487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11488 $as_echo_n "(cached) " >&6
11489 else
11490 cat >conftest.$ac_ext <<_ACEOF
11491 /* confdefs.h. */
11492 _ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11498 #define $ac_func innocuous_$ac_func
11500 /* System header to define __stub macros and hopefully few prototypes,
11501 which can conflict with char $ac_func (); below.
11502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11503 <limits.h> exists even on freestanding compilers. */
11505 #ifdef __STDC__
11506 # include <limits.h>
11507 #else
11508 # include <assert.h>
11509 #endif
11511 #undef $ac_func
11513 /* Override any GCC internal prototype to avoid an error.
11514 Use char because int might match the return type of a GCC
11515 builtin and then its argument prototype would still apply. */
11516 #ifdef __cplusplus
11517 extern "C"
11518 #endif
11519 char $ac_func ();
11520 /* The GNU C library defines this for functions which it implements
11521 to always fail with ENOSYS. Some functions are actually named
11522 something starting with __ and the normal name is an alias. */
11523 #if defined __stub_$ac_func || defined __stub___$ac_func
11524 choke me
11525 #endif
11528 main ()
11530 return $ac_func ();
11532 return 0;
11534 _ACEOF
11535 rm -f conftest.$ac_objext conftest$ac_exeext
11536 if { (ac_try="$ac_link"
11537 case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11540 esac
11541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11542 $as_echo "$ac_try_echo") >&5
11543 (eval "$ac_link") 2>conftest.er1
11544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest$ac_exeext && {
11553 test "$cross_compiling" = yes ||
11554 $as_test_x conftest$ac_exeext
11555 }; then
11556 eval "$as_ac_var=yes"
11557 else
11558 $as_echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11561 eval "$as_ac_var=no"
11564 rm -rf conftest.dSYM
11565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11566 conftest$ac_exeext conftest.$ac_ext
11568 ac_res=`eval 'as_val=${'$as_ac_var'}
11569 $as_echo "$as_val"'`
11570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11571 $as_echo "$ac_res" >&6; }
11572 if test `eval 'as_val=${'$as_ac_var'}
11573 $as_echo "$as_val"'` = yes; then
11574 cat >>confdefs.h <<_ACEOF
11575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11576 _ACEOF
11579 done
11583 if test "${window_system}" = "x11"; then
11584 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11585 $as_echo_n "checking X11 version 6... " >&6; }
11586 if test "${emacs_cv_x11_version_6+set}" = set; then
11587 $as_echo_n "(cached) " >&6
11588 else
11589 cat >conftest.$ac_ext <<_ACEOF
11590 /* confdefs.h. */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11595 #include <X11/Xlib.h>
11597 main ()
11599 #if XlibSpecificationRelease < 6
11600 fail;
11601 #endif
11604 return 0;
11606 _ACEOF
11607 rm -f conftest.$ac_objext conftest$ac_exeext
11608 if { (ac_try="$ac_link"
11609 case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612 esac
11613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11614 $as_echo "$ac_try_echo") >&5
11615 (eval "$ac_link") 2>conftest.er1
11616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
11620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } && {
11622 test -z "$ac_c_werror_flag" ||
11623 test ! -s conftest.err
11624 } && test -s conftest$ac_exeext && {
11625 test "$cross_compiling" = yes ||
11626 $as_test_x conftest$ac_exeext
11627 }; then
11628 emacs_cv_x11_version_6=yes
11629 else
11630 $as_echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11633 emacs_cv_x11_version_6=no
11636 rm -rf conftest.dSYM
11637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11638 conftest$ac_exeext conftest.$ac_ext
11641 if test $emacs_cv_x11_version_6 = yes; then
11642 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11643 $as_echo "6 or newer" >&6; }
11645 cat >>confdefs.h <<\_ACEOF
11646 #define HAVE_X11R6 1
11647 _ACEOF
11649 else
11650 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11651 $as_echo "before 6" >&6; }
11656 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11657 HAVE_RSVG=no
11658 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11659 if test "${with_rsvg}" != "no"; then
11660 RSVG_REQUIRED=2.11.0
11661 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11664 succeeded=no
11666 # Extract the first word of "pkg-config", so it can be a program name with args.
11667 set dummy pkg-config; ac_word=$2
11668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11669 $as_echo_n "checking for $ac_word... " >&6; }
11670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11671 $as_echo_n "(cached) " >&6
11672 else
11673 case $PKG_CONFIG in
11674 [\\/]* | ?:[\\/]*)
11675 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679 for as_dir in $PATH
11681 IFS=$as_save_IFS
11682 test -z "$as_dir" && as_dir=.
11683 for ac_exec_ext in '' $ac_executable_extensions; do
11684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11685 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11687 break 2
11689 done
11690 done
11691 IFS=$as_save_IFS
11693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11695 esac
11697 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11698 if test -n "$PKG_CONFIG"; then
11699 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11700 $as_echo "$PKG_CONFIG" >&6; }
11701 else
11702 { $as_echo "$as_me:$LINENO: result: no" >&5
11703 $as_echo "no" >&6; }
11708 if test "$PKG_CONFIG" = "no" ; then
11710 else
11711 PKG_CONFIG_MIN_VERSION=0.9.0
11712 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11713 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11714 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11716 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11717 { $as_echo "$as_me:$LINENO: result: yes" >&5
11718 $as_echo "yes" >&6; }
11719 succeeded=yes
11721 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11722 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11723 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11724 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11725 $as_echo "$RSVG_CFLAGS" >&6; }
11727 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11728 $as_echo_n "checking RSVG_LIBS... " >&6; }
11729 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11730 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11731 $as_echo "$RSVG_LIBS" >&6; }
11732 else
11733 { $as_echo "$as_me:$LINENO: result: no" >&5
11734 $as_echo "no" >&6; }
11735 RSVG_CFLAGS=""
11736 RSVG_LIBS=""
11737 ## If we have a custom action on failure, don't print errors, but
11738 ## do set a variable so people can do so.
11739 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11745 else
11746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11751 if test $succeeded = yes; then
11753 else
11760 if test ".${RSVG_CFLAGS}" != "."; then
11761 HAVE_RSVG=yes
11763 cat >>confdefs.h <<\_ACEOF
11764 #define HAVE_RSVG 1
11765 _ACEOF
11767 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11768 LIBS="$RSVG_LIBS $LIBS"
11774 HAVE_GTK=no
11775 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11776 GLIB_REQUIRED=2.6
11777 GTK_REQUIRED=2.6
11778 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11781 succeeded=no
11783 # Extract the first word of "pkg-config", so it can be a program name with args.
11784 set dummy pkg-config; ac_word=$2
11785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11786 $as_echo_n "checking for $ac_word... " >&6; }
11787 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11788 $as_echo_n "(cached) " >&6
11789 else
11790 case $PKG_CONFIG in
11791 [\\/]* | ?:[\\/]*)
11792 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796 for as_dir in $PATH
11798 IFS=$as_save_IFS
11799 test -z "$as_dir" && as_dir=.
11800 for ac_exec_ext in '' $ac_executable_extensions; do
11801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11802 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 break 2
11806 done
11807 done
11808 IFS=$as_save_IFS
11810 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11812 esac
11814 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11815 if test -n "$PKG_CONFIG"; then
11816 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11817 $as_echo "$PKG_CONFIG" >&6; }
11818 else
11819 { $as_echo "$as_me:$LINENO: result: no" >&5
11820 $as_echo "no" >&6; }
11825 if test "$PKG_CONFIG" = "no" ; then
11826 pkg_check_gtk=no
11827 else
11828 PKG_CONFIG_MIN_VERSION=0.9.0
11829 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11830 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11831 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11833 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11834 { $as_echo "$as_me:$LINENO: result: yes" >&5
11835 $as_echo "yes" >&6; }
11836 succeeded=yes
11838 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11839 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11840 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11841 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11842 $as_echo "$GTK_CFLAGS" >&6; }
11844 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11845 $as_echo_n "checking GTK_LIBS... " >&6; }
11846 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11847 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11848 $as_echo "$GTK_LIBS" >&6; }
11849 else
11850 { $as_echo "$as_me:$LINENO: result: no" >&5
11851 $as_echo "no" >&6; }
11852 GTK_CFLAGS=""
11853 GTK_LIBS=""
11854 ## If we have a custom action on failure, don't print errors, but
11855 ## do set a variable so people can do so.
11856 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11862 else
11863 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11864 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11868 if test $succeeded = yes; then
11869 pkg_check_gtk=yes
11870 else
11871 pkg_check_gtk=no
11874 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11875 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11876 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11877 { (exit 1); exit 1; }; }
11882 GTK_OBJ=
11883 if test x"$pkg_check_gtk" = xyes; then
11887 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11888 CFLAGS="$CFLAGS $GTK_CFLAGS"
11889 LIBS="$GTK_LIBS $LIBS"
11890 GTK_COMPILES=no
11892 for ac_func in gtk_main
11894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11895 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11896 $as_echo_n "checking for $ac_func... " >&6; }
11897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11898 $as_echo_n "(cached) " >&6
11899 else
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11908 #define $ac_func innocuous_$ac_func
11910 /* System header to define __stub macros and hopefully few prototypes,
11911 which can conflict with char $ac_func (); below.
11912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913 <limits.h> exists even on freestanding compilers. */
11915 #ifdef __STDC__
11916 # include <limits.h>
11917 #else
11918 # include <assert.h>
11919 #endif
11921 #undef $ac_func
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 char $ac_func ();
11930 /* The GNU C library defines this for functions which it implements
11931 to always fail with ENOSYS. Some functions are actually named
11932 something starting with __ and the normal name is an alias. */
11933 #if defined __stub_$ac_func || defined __stub___$ac_func
11934 choke me
11935 #endif
11938 main ()
11940 return $ac_func ();
11942 return 0;
11944 _ACEOF
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (ac_try="$ac_link"
11947 case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11950 esac
11951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11952 $as_echo "$ac_try_echo") >&5
11953 (eval "$ac_link") 2>conftest.er1
11954 ac_status=$?
11955 grep -v '^ *+' conftest.er1 >conftest.err
11956 rm -f conftest.er1
11957 cat conftest.err >&5
11958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } && {
11960 test -z "$ac_c_werror_flag" ||
11961 test ! -s conftest.err
11962 } && test -s conftest$ac_exeext && {
11963 test "$cross_compiling" = yes ||
11964 $as_test_x conftest$ac_exeext
11965 }; then
11966 eval "$as_ac_var=yes"
11967 else
11968 $as_echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 eval "$as_ac_var=no"
11974 rm -rf conftest.dSYM
11975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11976 conftest$ac_exeext conftest.$ac_ext
11978 ac_res=`eval 'as_val=${'$as_ac_var'}
11979 $as_echo "$as_val"'`
11980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11981 $as_echo "$ac_res" >&6; }
11982 if test `eval 'as_val=${'$as_ac_var'}
11983 $as_echo "$as_val"'` = yes; then
11984 cat >>confdefs.h <<_ACEOF
11985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11986 _ACEOF
11987 GTK_COMPILES=yes
11989 done
11991 if test "${GTK_COMPILES}" != "yes"; then
11992 if test "$USE_X_TOOLKIT" != "maybe"; then
11993 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11994 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11995 { (exit 1); exit 1; }; };
11997 else
11998 HAVE_GTK=yes
12000 cat >>confdefs.h <<\_ACEOF
12001 #define USE_GTK 1
12002 _ACEOF
12004 GTK_OBJ=gtkutil.o
12005 USE_X_TOOLKIT=none
12006 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12008 else
12009 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12010 closing open displays. This is no problem if you just use
12011 one display, but if you use more than one and close one of them
12012 Emacs may crash." >&5
12013 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12014 closing open displays. This is no problem if you just use
12015 one display, but if you use more than one and close one of them
12016 Emacs may crash." >&2;}
12017 sleep 3
12025 if test "${HAVE_GTK}" = "yes"; then
12027 if test "$with_toolkit_scroll_bars" != no; then
12028 with_toolkit_scroll_bars=yes
12031 HAVE_GTK_MULTIDISPLAY=no
12033 for ac_func in gdk_display_open
12035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12036 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12037 $as_echo_n "checking for $ac_func... " >&6; }
12038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12039 $as_echo_n "(cached) " >&6
12040 else
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h. */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12049 #define $ac_func innocuous_$ac_func
12051 /* System header to define __stub macros and hopefully few prototypes,
12052 which can conflict with char $ac_func (); below.
12053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12054 <limits.h> exists even on freestanding compilers. */
12056 #ifdef __STDC__
12057 # include <limits.h>
12058 #else
12059 # include <assert.h>
12060 #endif
12062 #undef $ac_func
12064 /* Override any GCC internal prototype to avoid an error.
12065 Use char because int might match the return type of a GCC
12066 builtin and then its argument prototype would still apply. */
12067 #ifdef __cplusplus
12068 extern "C"
12069 #endif
12070 char $ac_func ();
12071 /* The GNU C library defines this for functions which it implements
12072 to always fail with ENOSYS. Some functions are actually named
12073 something starting with __ and the normal name is an alias. */
12074 #if defined __stub_$ac_func || defined __stub___$ac_func
12075 choke me
12076 #endif
12079 main ()
12081 return $ac_func ();
12083 return 0;
12085 _ACEOF
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (ac_try="$ac_link"
12088 case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091 esac
12092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12093 $as_echo "$ac_try_echo") >&5
12094 (eval "$ac_link") 2>conftest.er1
12095 ac_status=$?
12096 grep -v '^ *+' conftest.er1 >conftest.err
12097 rm -f conftest.er1
12098 cat conftest.err >&5
12099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } && {
12101 test -z "$ac_c_werror_flag" ||
12102 test ! -s conftest.err
12103 } && test -s conftest$ac_exeext && {
12104 test "$cross_compiling" = yes ||
12105 $as_test_x conftest$ac_exeext
12106 }; then
12107 eval "$as_ac_var=yes"
12108 else
12109 $as_echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 eval "$as_ac_var=no"
12115 rm -rf conftest.dSYM
12116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12117 conftest$ac_exeext conftest.$ac_ext
12119 ac_res=`eval 'as_val=${'$as_ac_var'}
12120 $as_echo "$as_val"'`
12121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12122 $as_echo "$ac_res" >&6; }
12123 if test `eval 'as_val=${'$as_ac_var'}
12124 $as_echo "$as_val"'` = yes; then
12125 cat >>confdefs.h <<_ACEOF
12126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12127 _ACEOF
12128 HAVE_GTK_MULTIDISPLAY=yes
12130 done
12132 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12134 cat >>confdefs.h <<\_ACEOF
12135 #define HAVE_GTK_MULTIDISPLAY 1
12136 _ACEOF
12140 HAVE_GTK_FILE_SELECTION=no
12141 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12142 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12143 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12144 $as_echo_n "(cached) " >&6
12145 else
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h. */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 $ac_includes_default
12153 #include <gtk/gtk.h>
12156 main ()
12158 #ifndef GTK_TYPE_FILE_SELECTION
12159 (void) GTK_TYPE_FILE_SELECTION;
12160 #endif
12163 return 0;
12165 _ACEOF
12166 rm -f conftest.$ac_objext
12167 if { (ac_try="$ac_compile"
12168 case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12171 esac
12172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12173 $as_echo "$ac_try_echo") >&5
12174 (eval "$ac_compile") 2>conftest.er1
12175 ac_status=$?
12176 grep -v '^ *+' conftest.er1 >conftest.err
12177 rm -f conftest.er1
12178 cat conftest.err >&5
12179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } && {
12181 test -z "$ac_c_werror_flag" ||
12182 test ! -s conftest.err
12183 } && test -s conftest.$ac_objext; then
12184 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12185 else
12186 $as_echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12189 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12195 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12196 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12197 HAVE_GTK_FILE_SELECTION=yes
12198 else
12199 HAVE_GTK_FILE_SELECTION=no
12202 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12204 for ac_func in gtk_file_selection_new
12206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12207 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12208 $as_echo_n "checking for $ac_func... " >&6; }
12209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12210 $as_echo_n "(cached) " >&6
12211 else
12212 cat >conftest.$ac_ext <<_ACEOF
12213 /* confdefs.h. */
12214 _ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12220 #define $ac_func innocuous_$ac_func
12222 /* System header to define __stub macros and hopefully few prototypes,
12223 which can conflict with char $ac_func (); below.
12224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12225 <limits.h> exists even on freestanding compilers. */
12227 #ifdef __STDC__
12228 # include <limits.h>
12229 #else
12230 # include <assert.h>
12231 #endif
12233 #undef $ac_func
12235 /* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12238 #ifdef __cplusplus
12239 extern "C"
12240 #endif
12241 char $ac_func ();
12242 /* The GNU C library defines this for functions which it implements
12243 to always fail with ENOSYS. Some functions are actually named
12244 something starting with __ and the normal name is an alias. */
12245 #if defined __stub_$ac_func || defined __stub___$ac_func
12246 choke me
12247 #endif
12250 main ()
12252 return $ac_func ();
12254 return 0;
12256 _ACEOF
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (ac_try="$ac_link"
12259 case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12262 esac
12263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12264 $as_echo "$ac_try_echo") >&5
12265 (eval "$ac_link") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest$ac_exeext && {
12275 test "$cross_compiling" = yes ||
12276 $as_test_x conftest$ac_exeext
12277 }; then
12278 eval "$as_ac_var=yes"
12279 else
12280 $as_echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 eval "$as_ac_var=no"
12286 rm -rf conftest.dSYM
12287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12288 conftest$ac_exeext conftest.$ac_ext
12290 ac_res=`eval 'as_val=${'$as_ac_var'}
12291 $as_echo "$as_val"'`
12292 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12293 $as_echo "$ac_res" >&6; }
12294 if test `eval 'as_val=${'$as_ac_var'}
12295 $as_echo "$as_val"'` = yes; then
12296 cat >>confdefs.h <<_ACEOF
12297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12298 _ACEOF
12299 HAVE_GTK_FILE_SELECTION=yes
12300 else
12301 HAVE_GTK_FILE_SELECTION=no
12303 done
12307 HAVE_GTK_FILE_CHOOSER=no
12308 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12309 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12310 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12311 $as_echo_n "(cached) " >&6
12312 else
12313 cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h. */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 $ac_includes_default
12320 #include <gtk/gtk.h>
12323 main ()
12325 #ifndef GTK_TYPE_FILE_CHOOSER
12326 (void) GTK_TYPE_FILE_CHOOSER;
12327 #endif
12330 return 0;
12332 _ACEOF
12333 rm -f conftest.$ac_objext
12334 if { (ac_try="$ac_compile"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338 esac
12339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12340 $as_echo "$ac_try_echo") >&5
12341 (eval "$ac_compile") 2>conftest.er1
12342 ac_status=$?
12343 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1
12345 cat conftest.err >&5
12346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && {
12348 test -z "$ac_c_werror_flag" ||
12349 test ! -s conftest.err
12350 } && test -s conftest.$ac_objext; then
12351 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12352 else
12353 $as_echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12356 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12362 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12363 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12364 HAVE_GTK_FILE_CHOOSER=yes
12365 else
12366 HAVE_GTK_FILE_CHOOSER=no
12369 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12371 for ac_func in gtk_file_chooser_dialog_new
12373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12374 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12375 $as_echo_n "checking for $ac_func... " >&6; }
12376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12377 $as_echo_n "(cached) " >&6
12378 else
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h. */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12387 #define $ac_func innocuous_$ac_func
12389 /* System header to define __stub macros and hopefully few prototypes,
12390 which can conflict with char $ac_func (); below.
12391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12392 <limits.h> exists even on freestanding compilers. */
12394 #ifdef __STDC__
12395 # include <limits.h>
12396 #else
12397 # include <assert.h>
12398 #endif
12400 #undef $ac_func
12402 /* Override any GCC internal prototype to avoid an error.
12403 Use char because int might match the return type of a GCC
12404 builtin and then its argument prototype would still apply. */
12405 #ifdef __cplusplus
12406 extern "C"
12407 #endif
12408 char $ac_func ();
12409 /* The GNU C library defines this for functions which it implements
12410 to always fail with ENOSYS. Some functions are actually named
12411 something starting with __ and the normal name is an alias. */
12412 #if defined __stub_$ac_func || defined __stub___$ac_func
12413 choke me
12414 #endif
12417 main ()
12419 return $ac_func ();
12421 return 0;
12423 _ACEOF
12424 rm -f conftest.$ac_objext conftest$ac_exeext
12425 if { (ac_try="$ac_link"
12426 case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429 esac
12430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12431 $as_echo "$ac_try_echo") >&5
12432 (eval "$ac_link") 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest$ac_exeext && {
12442 test "$cross_compiling" = yes ||
12443 $as_test_x conftest$ac_exeext
12444 }; then
12445 eval "$as_ac_var=yes"
12446 else
12447 $as_echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12450 eval "$as_ac_var=no"
12453 rm -rf conftest.dSYM
12454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12455 conftest$ac_exeext conftest.$ac_ext
12457 ac_res=`eval 'as_val=${'$as_ac_var'}
12458 $as_echo "$as_val"'`
12459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12460 $as_echo "$ac_res" >&6; }
12461 if test `eval 'as_val=${'$as_ac_var'}
12462 $as_echo "$as_val"'` = yes; then
12463 cat >>confdefs.h <<_ACEOF
12464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12465 _ACEOF
12466 HAVE_GTK_FILE_CHOOSER=yes
12467 else
12468 HAVE_GTK_FILE_CHOOSER=no
12470 done
12474 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12475 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12477 cat >>confdefs.h <<\_ACEOF
12478 #define HAVE_GTK_FILE_BOTH 1
12479 _ACEOF
12483 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12484 HAVE_GTK_AND_PTHREAD=no
12486 for ac_header in pthread.h
12488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12490 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12491 $as_echo_n "checking for $ac_header... " >&6; }
12492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12493 $as_echo_n "(cached) " >&6
12495 ac_res=`eval 'as_val=${'$as_ac_Header'}
12496 $as_echo "$as_val"'`
12497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12498 $as_echo "$ac_res" >&6; }
12499 else
12500 # Is the header compilable?
12501 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12502 $as_echo_n "checking $ac_header usability... " >&6; }
12503 cat >conftest.$ac_ext <<_ACEOF
12504 /* confdefs.h. */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 $ac_includes_default
12510 #include <$ac_header>
12511 _ACEOF
12512 rm -f conftest.$ac_objext
12513 if { (ac_try="$ac_compile"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12519 $as_echo "$ac_try_echo") >&5
12520 (eval "$ac_compile") 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } && {
12527 test -z "$ac_c_werror_flag" ||
12528 test ! -s conftest.err
12529 } && test -s conftest.$ac_objext; then
12530 ac_header_compiler=yes
12531 else
12532 $as_echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 ac_header_compiler=no
12538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12540 $as_echo "$ac_header_compiler" >&6; }
12542 # Is the header present?
12543 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12544 $as_echo_n "checking $ac_header presence... " >&6; }
12545 cat >conftest.$ac_ext <<_ACEOF
12546 /* confdefs.h. */
12547 _ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h. */
12551 #include <$ac_header>
12552 _ACEOF
12553 if { (ac_try="$ac_cpp conftest.$ac_ext"
12554 case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12557 esac
12558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12559 $as_echo "$ac_try_echo") >&5
12560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12561 ac_status=$?
12562 grep -v '^ *+' conftest.er1 >conftest.err
12563 rm -f conftest.er1
12564 cat conftest.err >&5
12565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } >/dev/null && {
12567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12568 test ! -s conftest.err
12569 }; then
12570 ac_header_preproc=yes
12571 else
12572 $as_echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575 ac_header_preproc=no
12578 rm -f conftest.err conftest.$ac_ext
12579 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12580 $as_echo "$ac_header_preproc" >&6; }
12582 # So? What about this header?
12583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12584 yes:no: )
12585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12586 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12588 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12589 ac_header_preproc=yes
12591 no:yes:* )
12592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12593 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12595 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12597 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12599 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12603 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12606 esac
12607 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12608 $as_echo_n "checking for $ac_header... " >&6; }
12609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12610 $as_echo_n "(cached) " >&6
12611 else
12612 eval "$as_ac_Header=\$ac_header_preproc"
12614 ac_res=`eval 'as_val=${'$as_ac_Header'}
12615 $as_echo "$as_val"'`
12616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12617 $as_echo "$ac_res" >&6; }
12620 if test `eval 'as_val=${'$as_ac_Header'}
12621 $as_echo "$as_val"'` = yes; then
12622 cat >>confdefs.h <<_ACEOF
12623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12624 _ACEOF
12628 done
12630 if test "$ac_cv_header_pthread_h"; then
12631 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12632 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12633 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12634 $as_echo_n "(cached) " >&6
12635 else
12636 ac_check_lib_save_LIBS=$LIBS
12637 LIBS="-lpthread $LIBS"
12638 cat >conftest.$ac_ext <<_ACEOF
12639 /* confdefs.h. */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12645 /* Override any GCC internal prototype to avoid an error.
12646 Use char because int might match the return type of a GCC
12647 builtin and then its argument prototype would still apply. */
12648 #ifdef __cplusplus
12649 extern "C"
12650 #endif
12651 char pthread_self ();
12653 main ()
12655 return pthread_self ();
12657 return 0;
12659 _ACEOF
12660 rm -f conftest.$ac_objext conftest$ac_exeext
12661 if { (ac_try="$ac_link"
12662 case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12665 esac
12666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12667 $as_echo "$ac_try_echo") >&5
12668 (eval "$ac_link") 2>conftest.er1
12669 ac_status=$?
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -f conftest.er1
12672 cat conftest.err >&5
12673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } && {
12675 test -z "$ac_c_werror_flag" ||
12676 test ! -s conftest.err
12677 } && test -s conftest$ac_exeext && {
12678 test "$cross_compiling" = yes ||
12679 $as_test_x conftest$ac_exeext
12680 }; then
12681 ac_cv_lib_pthread_pthread_self=yes
12682 else
12683 $as_echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12686 ac_cv_lib_pthread_pthread_self=no
12689 rm -rf conftest.dSYM
12690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12691 conftest$ac_exeext conftest.$ac_ext
12692 LIBS=$ac_check_lib_save_LIBS
12694 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12695 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12696 if test $ac_cv_lib_pthread_pthread_self = yes; then
12697 HAVE_GTK_AND_PTHREAD=yes
12701 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12702 case "${canonical}" in
12703 *-hpux*) ;;
12704 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12705 esac
12707 cat >>confdefs.h <<\_ACEOF
12708 #define HAVE_GTK_AND_PTHREAD 1
12709 _ACEOF
12715 HAVE_DBUS=no
12716 DBUS_OBJ=
12717 if test "${with_dbus}" = "yes"; then
12719 succeeded=no
12721 # Extract the first word of "pkg-config", so it can be a program name with args.
12722 set dummy pkg-config; ac_word=$2
12723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12724 $as_echo_n "checking for $ac_word... " >&6; }
12725 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12726 $as_echo_n "(cached) " >&6
12727 else
12728 case $PKG_CONFIG in
12729 [\\/]* | ?:[\\/]*)
12730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12734 for as_dir in $PATH
12736 IFS=$as_save_IFS
12737 test -z "$as_dir" && as_dir=.
12738 for ac_exec_ext in '' $ac_executable_extensions; do
12739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12742 break 2
12744 done
12745 done
12746 IFS=$as_save_IFS
12748 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12750 esac
12752 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12753 if test -n "$PKG_CONFIG"; then
12754 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12755 $as_echo "$PKG_CONFIG" >&6; }
12756 else
12757 { $as_echo "$as_me:$LINENO: result: no" >&5
12758 $as_echo "no" >&6; }
12763 if test "$PKG_CONFIG" = "no" ; then
12764 HAVE_DBUS=no
12765 else
12766 PKG_CONFIG_MIN_VERSION=0.9.0
12767 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12768 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12769 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12771 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12772 { $as_echo "$as_me:$LINENO: result: yes" >&5
12773 $as_echo "yes" >&6; }
12774 succeeded=yes
12776 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12777 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12778 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12779 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12780 $as_echo "$DBUS_CFLAGS" >&6; }
12782 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12783 $as_echo_n "checking DBUS_LIBS... " >&6; }
12784 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12785 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12786 $as_echo "$DBUS_LIBS" >&6; }
12787 else
12788 { $as_echo "$as_me:$LINENO: result: no" >&5
12789 $as_echo "no" >&6; }
12790 DBUS_CFLAGS=""
12791 DBUS_LIBS=""
12792 ## If we have a custom action on failure, don't print errors, but
12793 ## do set a variable so people can do so.
12794 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12800 else
12801 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12802 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12806 if test $succeeded = yes; then
12807 HAVE_DBUS=yes
12808 else
12809 HAVE_DBUS=no
12812 if test "$HAVE_DBUS" = yes; then
12813 LIBS="$LIBS $DBUS_LIBS"
12815 cat >>confdefs.h <<\_ACEOF
12816 #define HAVE_DBUS 1
12817 _ACEOF
12820 for ac_func in dbus_watch_get_unix_fd
12822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12823 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12824 $as_echo_n "checking for $ac_func... " >&6; }
12825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12826 $as_echo_n "(cached) " >&6
12827 else
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h. */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12836 #define $ac_func innocuous_$ac_func
12838 /* System header to define __stub macros and hopefully few prototypes,
12839 which can conflict with char $ac_func (); below.
12840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12841 <limits.h> exists even on freestanding compilers. */
12843 #ifdef __STDC__
12844 # include <limits.h>
12845 #else
12846 # include <assert.h>
12847 #endif
12849 #undef $ac_func
12851 /* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12854 #ifdef __cplusplus
12855 extern "C"
12856 #endif
12857 char $ac_func ();
12858 /* The GNU C library defines this for functions which it implements
12859 to always fail with ENOSYS. Some functions are actually named
12860 something starting with __ and the normal name is an alias. */
12861 #if defined __stub_$ac_func || defined __stub___$ac_func
12862 choke me
12863 #endif
12866 main ()
12868 return $ac_func ();
12870 return 0;
12872 _ACEOF
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (ac_try="$ac_link"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878 esac
12879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12880 $as_echo "$ac_try_echo") >&5
12881 (eval "$ac_link") 2>conftest.er1
12882 ac_status=$?
12883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest$ac_exeext && {
12891 test "$cross_compiling" = yes ||
12892 $as_test_x conftest$ac_exeext
12893 }; then
12894 eval "$as_ac_var=yes"
12895 else
12896 $as_echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 eval "$as_ac_var=no"
12902 rm -rf conftest.dSYM
12903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12904 conftest$ac_exeext conftest.$ac_ext
12906 ac_res=`eval 'as_val=${'$as_ac_var'}
12907 $as_echo "$as_val"'`
12908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12909 $as_echo "$ac_res" >&6; }
12910 if test `eval 'as_val=${'$as_ac_var'}
12911 $as_echo "$as_val"'` = yes; then
12912 cat >>confdefs.h <<_ACEOF
12913 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12914 _ACEOF
12917 done
12919 DBUS_OBJ=dbusbind.o
12924 HAVE_GCONF=no
12925 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12927 succeeded=no
12929 # Extract the first word of "pkg-config", so it can be a program name with args.
12930 set dummy pkg-config; ac_word=$2
12931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12932 $as_echo_n "checking for $ac_word... " >&6; }
12933 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12934 $as_echo_n "(cached) " >&6
12935 else
12936 case $PKG_CONFIG in
12937 [\\/]* | ?:[\\/]*)
12938 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12942 for as_dir in $PATH
12944 IFS=$as_save_IFS
12945 test -z "$as_dir" && as_dir=.
12946 for ac_exec_ext in '' $ac_executable_extensions; do
12947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12948 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12950 break 2
12952 done
12953 done
12954 IFS=$as_save_IFS
12956 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12958 esac
12960 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12961 if test -n "$PKG_CONFIG"; then
12962 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12963 $as_echo "$PKG_CONFIG" >&6; }
12964 else
12965 { $as_echo "$as_me:$LINENO: result: no" >&5
12966 $as_echo "no" >&6; }
12971 if test "$PKG_CONFIG" = "no" ; then
12972 HAVE_GCONF=no
12973 else
12974 PKG_CONFIG_MIN_VERSION=0.9.0
12975 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12976 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12977 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12979 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12980 { $as_echo "$as_me:$LINENO: result: yes" >&5
12981 $as_echo "yes" >&6; }
12982 succeeded=yes
12984 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12985 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12986 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12987 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12988 $as_echo "$GCONF_CFLAGS" >&6; }
12990 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12991 $as_echo_n "checking GCONF_LIBS... " >&6; }
12992 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12993 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12994 $as_echo "$GCONF_LIBS" >&6; }
12995 else
12996 { $as_echo "$as_me:$LINENO: result: no" >&5
12997 $as_echo "no" >&6; }
12998 GCONF_CFLAGS=""
12999 GCONF_LIBS=""
13000 ## If we have a custom action on failure, don't print errors, but
13001 ## do set a variable so people can do so.
13002 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13008 else
13009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13014 if test $succeeded = yes; then
13015 HAVE_GCONF=yes
13016 else
13017 HAVE_GCONF=no
13020 if test "$HAVE_GCONF" = yes; then
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_GCONF 1
13024 _ACEOF
13029 HAVE_LIBSELINUX=no
13030 LIBSELINUX_LIBS=
13031 if test "${with_selinux}" = "yes"; then
13032 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13033 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13034 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13035 $as_echo_n "(cached) " >&6
13036 else
13037 ac_check_lib_save_LIBS=$LIBS
13038 LIBS="-lselinux $LIBS"
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13046 /* Override any GCC internal prototype to avoid an error.
13047 Use char because int might match the return type of a GCC
13048 builtin and then its argument prototype would still apply. */
13049 #ifdef __cplusplus
13050 extern "C"
13051 #endif
13052 char lgetfilecon ();
13054 main ()
13056 return lgetfilecon ();
13058 return 0;
13060 _ACEOF
13061 rm -f conftest.$ac_objext conftest$ac_exeext
13062 if { (ac_try="$ac_link"
13063 case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13066 esac
13067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13068 $as_echo "$ac_try_echo") >&5
13069 (eval "$ac_link") 2>conftest.er1
13070 ac_status=$?
13071 grep -v '^ *+' conftest.er1 >conftest.err
13072 rm -f conftest.er1
13073 cat conftest.err >&5
13074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } && {
13076 test -z "$ac_c_werror_flag" ||
13077 test ! -s conftest.err
13078 } && test -s conftest$ac_exeext && {
13079 test "$cross_compiling" = yes ||
13080 $as_test_x conftest$ac_exeext
13081 }; then
13082 ac_cv_lib_selinux_lgetfilecon=yes
13083 else
13084 $as_echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13087 ac_cv_lib_selinux_lgetfilecon=no
13090 rm -rf conftest.dSYM
13091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13092 conftest$ac_exeext conftest.$ac_ext
13093 LIBS=$ac_check_lib_save_LIBS
13095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13096 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13097 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13098 HAVE_LIBSELINUX=yes
13099 else
13100 HAVE_LIBSELINUX=no
13103 if test "$HAVE_LIBSELINUX" = yes; then
13105 cat >>confdefs.h <<\_ACEOF
13106 #define HAVE_LIBSELINUX 1
13107 _ACEOF
13109 LIBSELINUX_LIBS=-lselinux
13114 HAVE_XAW3D=no
13115 LUCID_LIBW=
13116 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13117 if test "$with_xaw3d" != no; then
13118 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13119 $as_echo_n "checking for xaw3d... " >&6; }
13120 if test "${emacs_cv_xaw3d+set}" = set; then
13121 $as_echo_n "(cached) " >&6
13122 else
13123 cat >conftest.$ac_ext <<_ACEOF
13124 /* confdefs.h. */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13130 #include <X11/Intrinsic.h>
13131 #include <X11/Xaw3d/Simple.h>
13133 main ()
13137 return 0;
13139 _ACEOF
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (ac_try="$ac_link"
13142 case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145 esac
13146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13147 $as_echo "$ac_try_echo") >&5
13148 (eval "$ac_link") 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } && {
13155 test -z "$ac_c_werror_flag" ||
13156 test ! -s conftest.err
13157 } && test -s conftest$ac_exeext && {
13158 test "$cross_compiling" = yes ||
13159 $as_test_x conftest$ac_exeext
13160 }; then
13161 emacs_cv_xaw3d=yes
13162 else
13163 $as_echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 emacs_cv_xaw3d=no
13169 rm -rf conftest.dSYM
13170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13171 conftest$ac_exeext conftest.$ac_ext
13174 else
13175 emacs_cv_xaw3d=no
13177 if test $emacs_cv_xaw3d = yes; then
13178 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13179 $as_echo "yes; using Lucid toolkit" >&6; }
13180 USE_X_TOOLKIT=LUCID
13181 HAVE_XAW3D=yes
13182 LUCID_LIBW=-lXaw3d
13184 cat >>confdefs.h <<\_ACEOF
13185 #define HAVE_XAW3D 1
13186 _ACEOF
13188 else
13189 { $as_echo "$as_me:$LINENO: result: no" >&5
13190 $as_echo "no" >&6; }
13191 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13192 $as_echo_n "checking for libXaw... " >&6; }
13193 if test "${emacs_cv_xaw+set}" = set; then
13194 $as_echo_n "(cached) " >&6
13195 else
13196 cat >conftest.$ac_ext <<_ACEOF
13197 /* confdefs.h. */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13203 #include <X11/Intrinsic.h>
13204 #include <X11/Xaw/Simple.h>
13206 main ()
13210 return 0;
13212 _ACEOF
13213 rm -f conftest.$ac_objext conftest$ac_exeext
13214 if { (ac_try="$ac_link"
13215 case "(($ac_try" in
13216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13218 esac
13219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13220 $as_echo "$ac_try_echo") >&5
13221 (eval "$ac_link") 2>conftest.er1
13222 ac_status=$?
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } && {
13228 test -z "$ac_c_werror_flag" ||
13229 test ! -s conftest.err
13230 } && test -s conftest$ac_exeext && {
13231 test "$cross_compiling" = yes ||
13232 $as_test_x conftest$ac_exeext
13233 }; then
13234 emacs_cv_xaw=yes
13235 else
13236 $as_echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13239 emacs_cv_xaw=no
13242 rm -rf conftest.dSYM
13243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13244 conftest$ac_exeext conftest.$ac_ext
13247 if test $emacs_cv_xaw = yes; then
13248 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13249 $as_echo "yes; using Lucid toolkit" >&6; }
13250 USE_X_TOOLKIT=LUCID
13251 LUCID_LIBW=-lXaw
13252 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13253 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13254 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13255 { (exit 1); exit 1; }; }
13256 else
13257 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13258 $as_echo "no; do not use toolkit by default" >&6; }
13259 USE_X_TOOLKIT=none
13264 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13266 LIBXTR6=
13267 if test "${USE_X_TOOLKIT}" != "none"; then
13268 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13269 $as_echo_n "checking X11 toolkit version... " >&6; }
13270 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13271 $as_echo_n "(cached) " >&6
13272 else
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h. */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 #include <X11/Intrinsic.h>
13281 main ()
13283 #if XtSpecificationRelease < 6
13284 fail;
13285 #endif
13288 return 0;
13290 _ACEOF
13291 rm -f conftest.$ac_objext conftest$ac_exeext
13292 if { (ac_try="$ac_link"
13293 case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296 esac
13297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13298 $as_echo "$ac_try_echo") >&5
13299 (eval "$ac_link") 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } && {
13306 test -z "$ac_c_werror_flag" ||
13307 test ! -s conftest.err
13308 } && test -s conftest$ac_exeext && {
13309 test "$cross_compiling" = yes ||
13310 $as_test_x conftest$ac_exeext
13311 }; then
13312 emacs_cv_x11_toolkit_version_6=yes
13313 else
13314 $as_echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 emacs_cv_x11_toolkit_version_6=no
13320 rm -rf conftest.dSYM
13321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13322 conftest$ac_exeext conftest.$ac_ext
13325 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13326 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13327 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13328 $as_echo "6 or newer" >&6; }
13330 cat >>confdefs.h <<\_ACEOF
13331 #define HAVE_X11XTR6 1
13332 _ACEOF
13334 LIBXTR6="-lSM -lICE"
13335 case "$opsys" in
13336 ## Use libw.a along with X11R6 Xt.
13337 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13338 esac
13339 else
13340 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13341 $as_echo "before 6" >&6; }
13344 OLDLIBS="$LIBS"
13345 if test x$HAVE_X11XTR6 = xyes; then
13346 LIBS="-lXt -lSM -lICE $LIBS"
13347 else
13348 LIBS="-lXt $LIBS"
13351 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13352 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13353 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13354 $as_echo_n "(cached) " >&6
13355 else
13356 ac_check_lib_save_LIBS=$LIBS
13357 LIBS="-lXmu $LIBS"
13358 cat >conftest.$ac_ext <<_ACEOF
13359 /* confdefs.h. */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13365 /* Override any GCC internal prototype to avoid an error.
13366 Use char because int might match the return type of a GCC
13367 builtin and then its argument prototype would still apply. */
13368 #ifdef __cplusplus
13369 extern "C"
13370 #endif
13371 char XmuConvertStandardSelection ();
13373 main ()
13375 return XmuConvertStandardSelection ();
13377 return 0;
13379 _ACEOF
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (ac_try="$ac_link"
13382 case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13385 esac
13386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13387 $as_echo "$ac_try_echo") >&5
13388 (eval "$ac_link") 2>conftest.er1
13389 ac_status=$?
13390 grep -v '^ *+' conftest.er1 >conftest.err
13391 rm -f conftest.er1
13392 cat conftest.err >&5
13393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } && {
13395 test -z "$ac_c_werror_flag" ||
13396 test ! -s conftest.err
13397 } && test -s conftest$ac_exeext && {
13398 test "$cross_compiling" = yes ||
13399 $as_test_x conftest$ac_exeext
13400 }; then
13401 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13402 else
13403 $as_echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13409 rm -rf conftest.dSYM
13410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13411 conftest$ac_exeext conftest.$ac_ext
13412 LIBS=$ac_check_lib_save_LIBS
13414 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13415 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13416 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13417 cat >>confdefs.h <<_ACEOF
13418 #define HAVE_LIBXMU 1
13419 _ACEOF
13421 LIBS="-lXmu $LIBS"
13425 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13429 LIBXMU=-lXmu
13430 case "$machine" in
13431 ## These machines don't supply Xmu.
13432 hpux* | aix4-2 )
13433 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13435 esac
13438 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13439 if test "${HAVE_X11}" = "yes"; then
13440 if test "${USE_X_TOOLKIT}" != "none"; then
13442 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13443 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13444 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13445 $as_echo_n "(cached) " >&6
13446 else
13447 ac_check_lib_save_LIBS=$LIBS
13448 LIBS="-lXext $LIBS"
13449 cat >conftest.$ac_ext <<_ACEOF
13450 /* confdefs.h. */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13456 /* Override any GCC internal prototype to avoid an error.
13457 Use char because int might match the return type of a GCC
13458 builtin and then its argument prototype would still apply. */
13459 #ifdef __cplusplus
13460 extern "C"
13461 #endif
13462 char XShapeQueryExtension ();
13464 main ()
13466 return XShapeQueryExtension ();
13468 return 0;
13470 _ACEOF
13471 rm -f conftest.$ac_objext conftest$ac_exeext
13472 if { (ac_try="$ac_link"
13473 case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13476 esac
13477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13478 $as_echo "$ac_try_echo") >&5
13479 (eval "$ac_link") 2>conftest.er1
13480 ac_status=$?
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
13484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } && {
13486 test -z "$ac_c_werror_flag" ||
13487 test ! -s conftest.err
13488 } && test -s conftest$ac_exeext && {
13489 test "$cross_compiling" = yes ||
13490 $as_test_x conftest$ac_exeext
13491 }; then
13492 ac_cv_lib_Xext_XShapeQueryExtension=yes
13493 else
13494 $as_echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_cv_lib_Xext_XShapeQueryExtension=no
13500 rm -rf conftest.dSYM
13501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13502 conftest$ac_exeext conftest.$ac_ext
13503 LIBS=$ac_check_lib_save_LIBS
13505 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13506 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13507 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13508 cat >>confdefs.h <<_ACEOF
13509 #define HAVE_LIBXEXT 1
13510 _ACEOF
13512 LIBS="-lXext $LIBS"
13519 LIBXP=
13520 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13521 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13522 $as_echo_n "checking for Motif version 2.1... " >&6; }
13523 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13524 $as_echo_n "(cached) " >&6
13525 else
13526 cat >conftest.$ac_ext <<_ACEOF
13527 /* confdefs.h. */
13528 _ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13532 #include <Xm/Xm.h>
13534 main ()
13536 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13537 int x = 5;
13538 #else
13539 Motif version prior to 2.1.
13540 #endif
13542 return 0;
13544 _ACEOF
13545 rm -f conftest.$ac_objext
13546 if { (ac_try="$ac_compile"
13547 case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550 esac
13551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13552 $as_echo "$ac_try_echo") >&5
13553 (eval "$ac_compile") 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } && {
13560 test -z "$ac_c_werror_flag" ||
13561 test ! -s conftest.err
13562 } && test -s conftest.$ac_objext; then
13563 emacs_cv_motif_version_2_1=yes
13564 else
13565 $as_echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 emacs_cv_motif_version_2_1=no
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13574 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13575 if test $emacs_cv_motif_version_2_1 = yes; then
13576 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13577 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13578 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13579 $as_echo_n "(cached) " >&6
13580 else
13581 ac_check_lib_save_LIBS=$LIBS
13582 LIBS="-lXp $LIBS"
13583 cat >conftest.$ac_ext <<_ACEOF
13584 /* confdefs.h. */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13590 /* Override any GCC internal prototype to avoid an error.
13591 Use char because int might match the return type of a GCC
13592 builtin and then its argument prototype would still apply. */
13593 #ifdef __cplusplus
13594 extern "C"
13595 #endif
13596 char XpCreateContext ();
13598 main ()
13600 return XpCreateContext ();
13602 return 0;
13604 _ACEOF
13605 rm -f conftest.$ac_objext conftest$ac_exeext
13606 if { (ac_try="$ac_link"
13607 case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610 esac
13611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13612 $as_echo "$ac_try_echo") >&5
13613 (eval "$ac_link") 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } && {
13620 test -z "$ac_c_werror_flag" ||
13621 test ! -s conftest.err
13622 } && test -s conftest$ac_exeext && {
13623 test "$cross_compiling" = yes ||
13624 $as_test_x conftest$ac_exeext
13625 }; then
13626 ac_cv_lib_Xp_XpCreateContext=yes
13627 else
13628 $as_echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 ac_cv_lib_Xp_XpCreateContext=no
13634 rm -rf conftest.dSYM
13635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13636 conftest$ac_exeext conftest.$ac_ext
13637 LIBS=$ac_check_lib_save_LIBS
13639 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13640 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13641 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13642 LIBXP=-lXp
13645 else
13646 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13647 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13648 if test "${emacs_cv_lesstif+set}" = set; then
13649 $as_echo_n "(cached) " >&6
13650 else
13651 # We put this in CFLAGS temporarily to precede other -I options
13652 # that might be in CFLAGS temporarily.
13653 # We put this in CPPFLAGS where it precedes the other -I options.
13654 OLD_CPPFLAGS=$CPPFLAGS
13655 OLD_CFLAGS=$CFLAGS
13656 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13657 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13666 main ()
13668 int x = 5;
13670 return 0;
13672 _ACEOF
13673 rm -f conftest.$ac_objext
13674 if { (ac_try="$ac_compile"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678 esac
13679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13680 $as_echo "$ac_try_echo") >&5
13681 (eval "$ac_compile") 2>conftest.er1
13682 ac_status=$?
13683 grep -v '^ *+' conftest.er1 >conftest.err
13684 rm -f conftest.er1
13685 cat conftest.err >&5
13686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } && {
13688 test -z "$ac_c_werror_flag" ||
13689 test ! -s conftest.err
13690 } && test -s conftest.$ac_objext; then
13691 emacs_cv_lesstif=yes
13692 else
13693 $as_echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 emacs_cv_lesstif=no
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13702 $as_echo "$emacs_cv_lesstif" >&6; }
13703 if test $emacs_cv_lesstif = yes; then
13704 # Make sure this -I option remains in CPPFLAGS after it is set
13705 # back to REAL_CPPFLAGS.
13706 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13707 # have those other -I options anyway. Ultimately, having this
13708 # directory ultimately in CPPFLAGS will be enough.
13709 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13710 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13711 else
13712 CFLAGS=$OLD_CFLAGS
13713 CPPFLAGS=$OLD_CPPFLAGS
13720 USE_TOOLKIT_SCROLL_BARS=no
13721 if test "${with_toolkit_scroll_bars}" != "no"; then
13722 if test "${USE_X_TOOLKIT}" != "none"; then
13723 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13724 cat >>confdefs.h <<\_ACEOF
13725 #define USE_TOOLKIT_SCROLL_BARS 1
13726 _ACEOF
13728 HAVE_XAW3D=no
13729 USE_TOOLKIT_SCROLL_BARS=yes
13730 elif test "${HAVE_XAW3D}" = "yes"; then
13731 cat >>confdefs.h <<\_ACEOF
13732 #define USE_TOOLKIT_SCROLL_BARS 1
13733 _ACEOF
13735 USE_TOOLKIT_SCROLL_BARS=yes
13737 elif test "${HAVE_GTK}" = "yes"; then
13738 cat >>confdefs.h <<\_ACEOF
13739 #define USE_TOOLKIT_SCROLL_BARS 1
13740 _ACEOF
13742 USE_TOOLKIT_SCROLL_BARS=yes
13743 elif test "${HAVE_NS}" = "yes"; then
13744 cat >>confdefs.h <<\_ACEOF
13745 #define USE_TOOLKIT_SCROLL_BARS 1
13746 _ACEOF
13748 USE_TOOLKIT_SCROLL_BARS=yes
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13759 #include <X11/Xlib.h>
13760 #include <X11/Xresource.h>
13762 main ()
13764 XIMProc callback;
13766 return 0;
13768 _ACEOF
13769 rm -f conftest.$ac_objext
13770 if { (ac_try="$ac_compile"
13771 case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13774 esac
13775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13776 $as_echo "$ac_try_echo") >&5
13777 (eval "$ac_compile") 2>conftest.er1
13778 ac_status=$?
13779 grep -v '^ *+' conftest.er1 >conftest.err
13780 rm -f conftest.er1
13781 cat conftest.err >&5
13782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } && {
13784 test -z "$ac_c_werror_flag" ||
13785 test ! -s conftest.err
13786 } && test -s conftest.$ac_objext; then
13787 HAVE_XIM=yes
13789 cat >>confdefs.h <<\_ACEOF
13790 #define HAVE_XIM 1
13791 _ACEOF
13793 else
13794 $as_echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13797 HAVE_XIM=no
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13803 if test "${with_xim}" != "no"; then
13805 cat >>confdefs.h <<\_ACEOF
13806 #define USE_XIM 1
13807 _ACEOF
13812 if test "${HAVE_XIM}" != "no"; then
13813 late_CFLAGS=$CFLAGS
13814 if test "$GCC" = yes; then
13815 CFLAGS="$CFLAGS --pedantic-errors"
13817 cat >conftest.$ac_ext <<_ACEOF
13818 /* confdefs.h. */
13819 _ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13824 #include <X11/Xlib.h>
13825 #include <X11/Xresource.h>
13827 main ()
13829 Display *display;
13830 XrmDatabase db;
13831 char *res_name;
13832 char *res_class;
13833 XIMProc callback;
13834 XPointer *client_data;
13835 #ifndef __GNUC__
13836 /* If we're not using GCC, it's probably not XFree86, and this is
13837 probably right, but we can't use something like --pedantic-errors. */
13838 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13839 char*, XIMProc, XPointer*);
13840 #endif
13841 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13842 client_data);
13844 return 0;
13846 _ACEOF
13847 rm -f conftest.$ac_objext
13848 if { (ac_try="$ac_compile"
13849 case "(($ac_try" in
13850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13852 esac
13853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13854 $as_echo "$ac_try_echo") >&5
13855 (eval "$ac_compile") 2>conftest.er1
13856 ac_status=$?
13857 grep -v '^ *+' conftest.er1 >conftest.err
13858 rm -f conftest.er1
13859 cat conftest.err >&5
13860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } && {
13862 test -z "$ac_c_werror_flag" ||
13863 test ! -s conftest.err
13864 } && test -s conftest.$ac_objext; then
13865 emacs_cv_arg6_star=yes
13866 else
13867 $as_echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 if test "$emacs_cv_arg6_star" = yes; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13878 _ACEOF
13880 else
13881 cat >>confdefs.h <<\_ACEOF
13882 #define XRegisterIMInstantiateCallback_arg6 XPointer
13883 _ACEOF
13886 CFLAGS=$late_CFLAGS
13889 ### Start of font-backend (under any platform) section.
13890 # (nothing here yet -- this is a placeholder)
13891 ### End of font-backend (under any platform) section.
13893 ### Start of font-backend (under X11) section.
13894 if test "${HAVE_X11}" = "yes"; then
13896 succeeded=no
13898 # Extract the first word of "pkg-config", so it can be a program name with args.
13899 set dummy pkg-config; ac_word=$2
13900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13901 $as_echo_n "checking for $ac_word... " >&6; }
13902 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13903 $as_echo_n "(cached) " >&6
13904 else
13905 case $PKG_CONFIG in
13906 [\\/]* | ?:[\\/]*)
13907 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13911 for as_dir in $PATH
13913 IFS=$as_save_IFS
13914 test -z "$as_dir" && as_dir=.
13915 for ac_exec_ext in '' $ac_executable_extensions; do
13916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13917 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13919 break 2
13921 done
13922 done
13923 IFS=$as_save_IFS
13925 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13927 esac
13929 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13930 if test -n "$PKG_CONFIG"; then
13931 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13932 $as_echo "$PKG_CONFIG" >&6; }
13933 else
13934 { $as_echo "$as_me:$LINENO: result: no" >&5
13935 $as_echo "no" >&6; }
13940 if test "$PKG_CONFIG" = "no" ; then
13941 HAVE_FC=no
13942 else
13943 PKG_CONFIG_MIN_VERSION=0.9.0
13944 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13945 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13946 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13948 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13949 { $as_echo "$as_me:$LINENO: result: yes" >&5
13950 $as_echo "yes" >&6; }
13951 succeeded=yes
13953 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13954 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13955 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13956 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13957 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13959 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13960 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13961 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13962 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13963 $as_echo "$FONTCONFIG_LIBS" >&6; }
13964 else
13965 { $as_echo "$as_me:$LINENO: result: no" >&5
13966 $as_echo "no" >&6; }
13967 FONTCONFIG_CFLAGS=""
13968 FONTCONFIG_LIBS=""
13969 ## If we have a custom action on failure, don't print errors, but
13970 ## do set a variable so people can do so.
13971 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13977 else
13978 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13979 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13983 if test $succeeded = yes; then
13984 HAVE_FC=yes
13985 else
13986 HAVE_FC=no
13990 ## Use -lXft if available, unless `--with-xft=no'.
13991 HAVE_XFT=maybe
13992 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13993 with_xft="no";
13995 if test "x${with_xft}" != "xno"; then
13998 succeeded=no
14000 # Extract the first word of "pkg-config", so it can be a program name with args.
14001 set dummy pkg-config; ac_word=$2
14002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14003 $as_echo_n "checking for $ac_word... " >&6; }
14004 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14005 $as_echo_n "(cached) " >&6
14006 else
14007 case $PKG_CONFIG in
14008 [\\/]* | ?:[\\/]*)
14009 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14015 IFS=$as_save_IFS
14016 test -z "$as_dir" && as_dir=.
14017 for ac_exec_ext in '' $ac_executable_extensions; do
14018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14019 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14021 break 2
14023 done
14024 done
14025 IFS=$as_save_IFS
14027 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14029 esac
14031 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14032 if test -n "$PKG_CONFIG"; then
14033 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14034 $as_echo "$PKG_CONFIG" >&6; }
14035 else
14036 { $as_echo "$as_me:$LINENO: result: no" >&5
14037 $as_echo "no" >&6; }
14042 if test "$PKG_CONFIG" = "no" ; then
14043 HAVE_XFT=no
14044 else
14045 PKG_CONFIG_MIN_VERSION=0.9.0
14046 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14047 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14048 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14050 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14051 { $as_echo "$as_me:$LINENO: result: yes" >&5
14052 $as_echo "yes" >&6; }
14053 succeeded=yes
14055 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14056 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14057 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14058 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14059 $as_echo "$XFT_CFLAGS" >&6; }
14061 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14062 $as_echo_n "checking XFT_LIBS... " >&6; }
14063 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14064 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14065 $as_echo "$XFT_LIBS" >&6; }
14066 else
14067 { $as_echo "$as_me:$LINENO: result: no" >&5
14068 $as_echo "no" >&6; }
14069 XFT_CFLAGS=""
14070 XFT_LIBS=""
14071 ## If we have a custom action on failure, don't print errors, but
14072 ## do set a variable so people can do so.
14073 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14079 else
14080 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14081 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14085 if test $succeeded = yes; then
14087 else
14088 HAVE_XFT=no
14091 ## Because xftfont.c uses XRenderQueryExtension, we also
14092 ## need to link to -lXrender.
14093 HAVE_XRENDER=no
14094 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14095 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14096 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14097 $as_echo_n "(cached) " >&6
14098 else
14099 ac_check_lib_save_LIBS=$LIBS
14100 LIBS="-lXrender $LIBS"
14101 cat >conftest.$ac_ext <<_ACEOF
14102 /* confdefs.h. */
14103 _ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14108 /* Override any GCC internal prototype to avoid an error.
14109 Use char because int might match the return type of a GCC
14110 builtin and then its argument prototype would still apply. */
14111 #ifdef __cplusplus
14112 extern "C"
14113 #endif
14114 char XRenderQueryExtension ();
14116 main ()
14118 return XRenderQueryExtension ();
14120 return 0;
14122 _ACEOF
14123 rm -f conftest.$ac_objext conftest$ac_exeext
14124 if { (ac_try="$ac_link"
14125 case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128 esac
14129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14130 $as_echo "$ac_try_echo") >&5
14131 (eval "$ac_link") 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest$ac_exeext && {
14141 test "$cross_compiling" = yes ||
14142 $as_test_x conftest$ac_exeext
14143 }; then
14144 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14145 else
14146 $as_echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14149 ac_cv_lib_Xrender_XRenderQueryExtension=no
14152 rm -rf conftest.dSYM
14153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14154 conftest$ac_exeext conftest.$ac_ext
14155 LIBS=$ac_check_lib_save_LIBS
14157 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14158 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14159 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14160 HAVE_XRENDER=yes
14163 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14164 OLD_CPPFLAGS="$CPPFLAGS"
14165 OLD_CFLAGS="$CFLAGS"
14166 OLD_LIBS="$LIBS"
14167 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14168 CFLAGS="$CFLAGS $XFT_CFLAGS"
14169 XFT_LIBS="-lXrender $XFT_LIBS"
14170 LIBS="$XFT_LIBS $LIBS"
14171 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14172 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14173 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14174 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14175 $as_echo_n "(cached) " >&6
14177 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14178 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14179 else
14180 # Is the header compilable?
14181 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14182 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14183 cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h. */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189 $ac_includes_default
14190 #include <X11/Xft/Xft.h>
14191 _ACEOF
14192 rm -f conftest.$ac_objext
14193 if { (ac_try="$ac_compile"
14194 case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197 esac
14198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14199 $as_echo "$ac_try_echo") >&5
14200 (eval "$ac_compile") 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } && {
14207 test -z "$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 } && test -s conftest.$ac_objext; then
14210 ac_header_compiler=yes
14211 else
14212 $as_echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14215 ac_header_compiler=no
14218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14219 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14220 $as_echo "$ac_header_compiler" >&6; }
14222 # Is the header present?
14223 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14224 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14225 cat >conftest.$ac_ext <<_ACEOF
14226 /* confdefs.h. */
14227 _ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 #include <X11/Xft/Xft.h>
14232 _ACEOF
14233 if { (ac_try="$ac_cpp conftest.$ac_ext"
14234 case "(($ac_try" in
14235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236 *) ac_try_echo=$ac_try;;
14237 esac
14238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14239 $as_echo "$ac_try_echo") >&5
14240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14241 ac_status=$?
14242 grep -v '^ *+' conftest.er1 >conftest.err
14243 rm -f conftest.er1
14244 cat conftest.err >&5
14245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } >/dev/null && {
14247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14248 test ! -s conftest.err
14249 }; then
14250 ac_header_preproc=yes
14251 else
14252 $as_echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14255 ac_header_preproc=no
14258 rm -f conftest.err conftest.$ac_ext
14259 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14260 $as_echo "$ac_header_preproc" >&6; }
14262 # So? What about this header?
14263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14264 yes:no: )
14265 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14266 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14267 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14268 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14269 ac_header_preproc=yes
14271 no:yes:* )
14272 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14273 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14274 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14275 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14276 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14277 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14278 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14279 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14280 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14281 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14282 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14283 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14286 esac
14287 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14288 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14289 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14290 $as_echo_n "(cached) " >&6
14291 else
14292 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14294 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14295 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14298 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14299 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14300 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14301 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14302 $as_echo_n "(cached) " >&6
14303 else
14304 ac_check_lib_save_LIBS=$LIBS
14305 LIBS="-lXft $XFT_LIBS $LIBS"
14306 cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h. */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14313 /* Override any GCC internal prototype to avoid an error.
14314 Use char because int might match the return type of a GCC
14315 builtin and then its argument prototype would still apply. */
14316 #ifdef __cplusplus
14317 extern "C"
14318 #endif
14319 char XftFontOpen ();
14321 main ()
14323 return XftFontOpen ();
14325 return 0;
14327 _ACEOF
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (ac_try="$ac_link"
14330 case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14333 esac
14334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14335 $as_echo "$ac_try_echo") >&5
14336 (eval "$ac_link") 2>conftest.er1
14337 ac_status=$?
14338 grep -v '^ *+' conftest.er1 >conftest.err
14339 rm -f conftest.er1
14340 cat conftest.err >&5
14341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } && {
14343 test -z "$ac_c_werror_flag" ||
14344 test ! -s conftest.err
14345 } && test -s conftest$ac_exeext && {
14346 test "$cross_compiling" = yes ||
14347 $as_test_x conftest$ac_exeext
14348 }; then
14349 ac_cv_lib_Xft_XftFontOpen=yes
14350 else
14351 $as_echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 ac_cv_lib_Xft_XftFontOpen=no
14357 rm -rf conftest.dSYM
14358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LIBS=$ac_check_lib_save_LIBS
14362 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14363 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14364 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14365 HAVE_XFT=yes
14372 if test "${HAVE_XFT}" = "yes"; then
14374 cat >>confdefs.h <<\_ACEOF
14375 #define HAVE_XFT 1
14376 _ACEOF
14379 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14380 else
14381 CPPFLAGS="$OLD_CPPFLAGS"
14382 CFLAGS="$OLD_CFLAGS"
14383 LIBS="$OLD_LIBS"
14384 fi # "${HAVE_XFT}" = "yes"
14385 fi # "$HAVE_XFT" != no
14386 fi # "x${with_xft}" != "xno"
14388 if test "$HAVE_XFT" != "yes"; then
14389 HAVE_XFT=no
14393 HAVE_FREETYPE=no
14394 ## We used to allow building with FreeType and without Xft.
14395 ## However, the ftx font backend driver is not in good shape.
14396 if test "${HAVE_XFT}" = "yes"; then
14397 HAVE_FREETYPE=yes
14398 FONTCONFIG_CFLAGS=
14399 FONTCONFIG_LIBS=
14402 HAVE_LIBOTF=no
14403 if test "${HAVE_FREETYPE}" = "yes"; then
14405 cat >>confdefs.h <<\_ACEOF
14406 #define HAVE_FREETYPE 1
14407 _ACEOF
14409 if test "${with_libotf}" != "no"; then
14411 succeeded=no
14413 # Extract the first word of "pkg-config", so it can be a program name with args.
14414 set dummy pkg-config; ac_word=$2
14415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14416 $as_echo_n "checking for $ac_word... " >&6; }
14417 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14418 $as_echo_n "(cached) " >&6
14419 else
14420 case $PKG_CONFIG in
14421 [\\/]* | ?:[\\/]*)
14422 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14426 for as_dir in $PATH
14428 IFS=$as_save_IFS
14429 test -z "$as_dir" && as_dir=.
14430 for ac_exec_ext in '' $ac_executable_extensions; do
14431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14432 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14434 break 2
14436 done
14437 done
14438 IFS=$as_save_IFS
14440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14442 esac
14444 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14445 if test -n "$PKG_CONFIG"; then
14446 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14447 $as_echo "$PKG_CONFIG" >&6; }
14448 else
14449 { $as_echo "$as_me:$LINENO: result: no" >&5
14450 $as_echo "no" >&6; }
14455 if test "$PKG_CONFIG" = "no" ; then
14456 HAVE_LIBOTF=no
14457 else
14458 PKG_CONFIG_MIN_VERSION=0.9.0
14459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14460 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14461 $as_echo_n "checking for libotf... " >&6; }
14463 if $PKG_CONFIG --exists "libotf" 2>&5; then
14464 { $as_echo "$as_me:$LINENO: result: yes" >&5
14465 $as_echo "yes" >&6; }
14466 succeeded=yes
14468 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14469 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14470 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14471 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14472 $as_echo "$LIBOTF_CFLAGS" >&6; }
14474 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14475 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14476 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14477 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14478 $as_echo "$LIBOTF_LIBS" >&6; }
14479 else
14480 { $as_echo "$as_me:$LINENO: result: no" >&5
14481 $as_echo "no" >&6; }
14482 LIBOTF_CFLAGS=""
14483 LIBOTF_LIBS=""
14484 ## If we have a custom action on failure, don't print errors, but
14485 ## do set a variable so people can do so.
14486 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14492 else
14493 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14494 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14498 if test $succeeded = yes; then
14499 HAVE_LIBOTF=yes
14500 else
14501 HAVE_LIBOTF=no
14504 if test "$HAVE_LIBOTF" = "yes"; then
14506 cat >>confdefs.h <<\_ACEOF
14507 #define HAVE_LIBOTF 1
14508 _ACEOF
14510 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14511 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14512 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14513 $as_echo_n "(cached) " >&6
14514 else
14515 ac_check_lib_save_LIBS=$LIBS
14516 LIBS="-lotf $LIBS"
14517 cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h. */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14524 /* Override any GCC internal prototype to avoid an error.
14525 Use char because int might match the return type of a GCC
14526 builtin and then its argument prototype would still apply. */
14527 #ifdef __cplusplus
14528 extern "C"
14529 #endif
14530 char OTF_get_variation_glyphs ();
14532 main ()
14534 return OTF_get_variation_glyphs ();
14536 return 0;
14538 _ACEOF
14539 rm -f conftest.$ac_objext conftest$ac_exeext
14540 if { (ac_try="$ac_link"
14541 case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14544 esac
14545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14546 $as_echo "$ac_try_echo") >&5
14547 (eval "$ac_link") 2>conftest.er1
14548 ac_status=$?
14549 grep -v '^ *+' conftest.er1 >conftest.err
14550 rm -f conftest.er1
14551 cat conftest.err >&5
14552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } && {
14554 test -z "$ac_c_werror_flag" ||
14555 test ! -s conftest.err
14556 } && test -s conftest$ac_exeext && {
14557 test "$cross_compiling" = yes ||
14558 $as_test_x conftest$ac_exeext
14559 }; then
14560 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14561 else
14562 $as_echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14565 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14568 rm -rf conftest.dSYM
14569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14570 conftest$ac_exeext conftest.$ac_ext
14571 LIBS=$ac_check_lib_save_LIBS
14573 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14574 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14575 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14576 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14577 else
14578 HAVE_OTF_GET_VARIATION_GLYPHS=no
14581 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14583 cat >>confdefs.h <<\_ACEOF
14584 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14585 _ACEOF
14592 HAVE_M17N_FLT=no
14593 if test "${HAVE_LIBOTF}" = yes; then
14594 if test "${with_m17n_flt}" != "no"; then
14596 succeeded=no
14598 # Extract the first word of "pkg-config", so it can be a program name with args.
14599 set dummy pkg-config; ac_word=$2
14600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14601 $as_echo_n "checking for $ac_word... " >&6; }
14602 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14603 $as_echo_n "(cached) " >&6
14604 else
14605 case $PKG_CONFIG in
14606 [\\/]* | ?:[\\/]*)
14607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14611 for as_dir in $PATH
14613 IFS=$as_save_IFS
14614 test -z "$as_dir" && as_dir=.
14615 for ac_exec_ext in '' $ac_executable_extensions; do
14616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14619 break 2
14621 done
14622 done
14623 IFS=$as_save_IFS
14625 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14627 esac
14629 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14630 if test -n "$PKG_CONFIG"; then
14631 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14632 $as_echo "$PKG_CONFIG" >&6; }
14633 else
14634 { $as_echo "$as_me:$LINENO: result: no" >&5
14635 $as_echo "no" >&6; }
14640 if test "$PKG_CONFIG" = "no" ; then
14641 HAVE_M17N_FLT=no
14642 else
14643 PKG_CONFIG_MIN_VERSION=0.9.0
14644 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14645 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14646 $as_echo_n "checking for m17n-flt... " >&6; }
14648 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14649 { $as_echo "$as_me:$LINENO: result: yes" >&5
14650 $as_echo "yes" >&6; }
14651 succeeded=yes
14653 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14654 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14655 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14656 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14657 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14659 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14660 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14661 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14662 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14663 $as_echo "$M17N_FLT_LIBS" >&6; }
14664 else
14665 { $as_echo "$as_me:$LINENO: result: no" >&5
14666 $as_echo "no" >&6; }
14667 M17N_FLT_CFLAGS=""
14668 M17N_FLT_LIBS=""
14669 ## If we have a custom action on failure, don't print errors, but
14670 ## do set a variable so people can do so.
14671 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14677 else
14678 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14679 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14683 if test $succeeded = yes; then
14684 HAVE_M17N_FLT=yes
14685 else
14686 HAVE_M17N_FLT=no
14689 if test "$HAVE_M17N_FLT" = "yes"; then
14691 cat >>confdefs.h <<\_ACEOF
14692 #define HAVE_M17N_FLT 1
14693 _ACEOF
14698 else
14699 HAVE_XFT=no
14700 HAVE_FREETYPE=no
14701 HAVE_LIBOTF=no
14702 HAVE_M17N_FLT=no
14705 ### End of font-backend (under X11) section.
14716 ### Use -lXpm if available, unless `--with-xpm=no'.
14717 HAVE_XPM=no
14718 LIBXPM=
14719 if test "${HAVE_X11}" = "yes"; then
14720 if test "${with_xpm}" != "no"; then
14721 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14722 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14723 $as_echo_n "checking for X11/xpm.h... " >&6; }
14724 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14725 $as_echo_n "(cached) " >&6
14727 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14728 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14729 else
14730 # Is the header compilable?
14731 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14732 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14733 cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h. */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 $ac_includes_default
14740 #include <X11/xpm.h>
14741 _ACEOF
14742 rm -f conftest.$ac_objext
14743 if { (ac_try="$ac_compile"
14744 case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14747 esac
14748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14749 $as_echo "$ac_try_echo") >&5
14750 (eval "$ac_compile") 2>conftest.er1
14751 ac_status=$?
14752 grep -v '^ *+' conftest.er1 >conftest.err
14753 rm -f conftest.er1
14754 cat conftest.err >&5
14755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } && {
14757 test -z "$ac_c_werror_flag" ||
14758 test ! -s conftest.err
14759 } && test -s conftest.$ac_objext; then
14760 ac_header_compiler=yes
14761 else
14762 $as_echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14765 ac_header_compiler=no
14768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14769 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14770 $as_echo "$ac_header_compiler" >&6; }
14772 # Is the header present?
14773 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14774 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14775 cat >conftest.$ac_ext <<_ACEOF
14776 /* confdefs.h. */
14777 _ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14781 #include <X11/xpm.h>
14782 _ACEOF
14783 if { (ac_try="$ac_cpp conftest.$ac_ext"
14784 case "(($ac_try" in
14785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786 *) ac_try_echo=$ac_try;;
14787 esac
14788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14789 $as_echo "$ac_try_echo") >&5
14790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14791 ac_status=$?
14792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
14795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } >/dev/null && {
14797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14798 test ! -s conftest.err
14799 }; then
14800 ac_header_preproc=yes
14801 else
14802 $as_echo "$as_me: failed program was:" >&5
14803 sed 's/^/| /' conftest.$ac_ext >&5
14805 ac_header_preproc=no
14808 rm -f conftest.err conftest.$ac_ext
14809 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14810 $as_echo "$ac_header_preproc" >&6; }
14812 # So? What about this header?
14813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14814 yes:no: )
14815 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14816 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14817 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14818 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14819 ac_header_preproc=yes
14821 no:yes:* )
14822 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14823 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14824 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14825 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14826 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14827 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14828 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14829 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14830 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14831 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14832 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14833 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14836 esac
14837 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14838 $as_echo_n "checking for X11/xpm.h... " >&6; }
14839 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14840 $as_echo_n "(cached) " >&6
14841 else
14842 ac_cv_header_X11_xpm_h=$ac_header_preproc
14844 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14845 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14848 if test $ac_cv_header_X11_xpm_h = yes; then
14849 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14850 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14851 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14852 $as_echo_n "(cached) " >&6
14853 else
14854 ac_check_lib_save_LIBS=$LIBS
14855 LIBS="-lXpm -lX11 $LIBS"
14856 cat >conftest.$ac_ext <<_ACEOF
14857 /* confdefs.h. */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14863 /* Override any GCC internal prototype to avoid an error.
14864 Use char because int might match the return type of a GCC
14865 builtin and then its argument prototype would still apply. */
14866 #ifdef __cplusplus
14867 extern "C"
14868 #endif
14869 char XpmReadFileToPixmap ();
14871 main ()
14873 return XpmReadFileToPixmap ();
14875 return 0;
14877 _ACEOF
14878 rm -f conftest.$ac_objext conftest$ac_exeext
14879 if { (ac_try="$ac_link"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883 esac
14884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14885 $as_echo "$ac_try_echo") >&5
14886 (eval "$ac_link") 2>conftest.er1
14887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } && {
14893 test -z "$ac_c_werror_flag" ||
14894 test ! -s conftest.err
14895 } && test -s conftest$ac_exeext && {
14896 test "$cross_compiling" = yes ||
14897 $as_test_x conftest$ac_exeext
14898 }; then
14899 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14900 else
14901 $as_echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14907 rm -rf conftest.dSYM
14908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14909 conftest$ac_exeext conftest.$ac_ext
14910 LIBS=$ac_check_lib_save_LIBS
14912 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14913 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14914 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14915 HAVE_XPM=yes
14921 if test "${HAVE_XPM}" = "yes"; then
14922 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14923 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14924 cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h. */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 #include "X11/xpm.h"
14931 #ifndef XpmReturnAllocPixels
14932 no_return_alloc_pixels
14933 #endif
14935 _ACEOF
14936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14937 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14938 HAVE_XPM=no
14939 else
14940 HAVE_XPM=yes
14942 rm -f conftest*
14945 if test "${HAVE_XPM}" = "yes"; then
14946 { $as_echo "$as_me:$LINENO: result: yes" >&5
14947 $as_echo "yes" >&6; }
14948 else
14949 { $as_echo "$as_me:$LINENO: result: no" >&5
14950 $as_echo "no" >&6; }
14955 if test "${HAVE_XPM}" = "yes"; then
14957 cat >>confdefs.h <<\_ACEOF
14958 #define HAVE_XPM 1
14959 _ACEOF
14961 LIBXPM=-lXpm
14966 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14967 HAVE_JPEG=no
14968 LIBJPEG=
14969 if test "${HAVE_X11}" = "yes"; then
14970 if test "${with_jpeg}" != "no"; then
14971 if test "${ac_cv_header_jerror_h+set}" = set; then
14972 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14973 $as_echo_n "checking for jerror.h... " >&6; }
14974 if test "${ac_cv_header_jerror_h+set}" = set; then
14975 $as_echo_n "(cached) " >&6
14977 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14978 $as_echo "$ac_cv_header_jerror_h" >&6; }
14979 else
14980 # Is the header compilable?
14981 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14982 $as_echo_n "checking jerror.h usability... " >&6; }
14983 cat >conftest.$ac_ext <<_ACEOF
14984 /* confdefs.h. */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h. */
14989 $ac_includes_default
14990 #include <jerror.h>
14991 _ACEOF
14992 rm -f conftest.$ac_objext
14993 if { (ac_try="$ac_compile"
14994 case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14997 esac
14998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14999 $as_echo "$ac_try_echo") >&5
15000 (eval "$ac_compile") 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } && {
15007 test -z "$ac_c_werror_flag" ||
15008 test ! -s conftest.err
15009 } && test -s conftest.$ac_objext; then
15010 ac_header_compiler=yes
15011 else
15012 $as_echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15015 ac_header_compiler=no
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15020 $as_echo "$ac_header_compiler" >&6; }
15022 # Is the header present?
15023 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15024 $as_echo_n "checking jerror.h presence... " >&6; }
15025 cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h. */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15031 #include <jerror.h>
15032 _ACEOF
15033 if { (ac_try="$ac_cpp conftest.$ac_ext"
15034 case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037 esac
15038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15039 $as_echo "$ac_try_echo") >&5
15040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15041 ac_status=$?
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
15045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } >/dev/null && {
15047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15048 test ! -s conftest.err
15049 }; then
15050 ac_header_preproc=yes
15051 else
15052 $as_echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15055 ac_header_preproc=no
15058 rm -f conftest.err conftest.$ac_ext
15059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15060 $as_echo "$ac_header_preproc" >&6; }
15062 # So? What about this header?
15063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15064 yes:no: )
15065 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15066 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15067 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15068 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15069 ac_header_preproc=yes
15071 no:yes:* )
15072 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15073 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15074 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15075 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15076 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15077 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15078 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15079 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15080 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15081 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15082 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15083 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15086 esac
15087 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15088 $as_echo_n "checking for jerror.h... " >&6; }
15089 if test "${ac_cv_header_jerror_h+set}" = set; then
15090 $as_echo_n "(cached) " >&6
15091 else
15092 ac_cv_header_jerror_h=$ac_header_preproc
15094 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15095 $as_echo "$ac_cv_header_jerror_h" >&6; }
15098 if test $ac_cv_header_jerror_h = yes; then
15099 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15100 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15101 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15102 $as_echo_n "(cached) " >&6
15103 else
15104 ac_check_lib_save_LIBS=$LIBS
15105 LIBS="-ljpeg $LIBS"
15106 cat >conftest.$ac_ext <<_ACEOF
15107 /* confdefs.h. */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15113 /* Override any GCC internal prototype to avoid an error.
15114 Use char because int might match the return type of a GCC
15115 builtin and then its argument prototype would still apply. */
15116 #ifdef __cplusplus
15117 extern "C"
15118 #endif
15119 char jpeg_destroy_compress ();
15121 main ()
15123 return jpeg_destroy_compress ();
15125 return 0;
15127 _ACEOF
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (ac_try="$ac_link"
15130 case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133 esac
15134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15135 $as_echo "$ac_try_echo") >&5
15136 (eval "$ac_link") 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } && {
15143 test -z "$ac_c_werror_flag" ||
15144 test ! -s conftest.err
15145 } && test -s conftest$ac_exeext && {
15146 test "$cross_compiling" = yes ||
15147 $as_test_x conftest$ac_exeext
15148 }; then
15149 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15150 else
15151 $as_echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15157 rm -rf conftest.dSYM
15158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15159 conftest$ac_exeext conftest.$ac_ext
15160 LIBS=$ac_check_lib_save_LIBS
15162 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15163 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15164 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15165 HAVE_JPEG=yes
15174 if test "${HAVE_JPEG}" = "yes"; then
15175 cat >>confdefs.h <<\_ACEOF
15176 #define HAVE_JPEG 1
15177 _ACEOF
15179 cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h. */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15185 #include <jpeglib.h>
15186 version=JPEG_LIB_VERSION
15188 _ACEOF
15189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15190 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15191 cat >>confdefs.h <<\_ACEOF
15192 #define HAVE_JPEG 1
15193 _ACEOF
15195 else
15196 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15197 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15198 HAVE_JPEG=no
15200 rm -f conftest*
15203 if test "${HAVE_JPEG}" = "yes"; then
15204 LIBJPEG=-ljpeg
15209 ### Use -lpng if available, unless `--with-png=no'.
15210 HAVE_PNG=no
15211 LIBPNG=
15212 if test "${HAVE_X11}" = "yes"; then
15213 if test "${with_png}" != "no"; then
15214 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15215 # in /usr/include/libpng.
15218 for ac_header in png.h libpng/png.h
15220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15223 $as_echo_n "checking for $ac_header... " >&6; }
15224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15225 $as_echo_n "(cached) " >&6
15227 ac_res=`eval 'as_val=${'$as_ac_Header'}
15228 $as_echo "$as_val"'`
15229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15230 $as_echo "$ac_res" >&6; }
15231 else
15232 # Is the header compilable?
15233 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15234 $as_echo_n "checking $ac_header usability... " >&6; }
15235 cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h. */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 $ac_includes_default
15242 #include <$ac_header>
15243 _ACEOF
15244 rm -f conftest.$ac_objext
15245 if { (ac_try="$ac_compile"
15246 case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15249 esac
15250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15251 $as_echo "$ac_try_echo") >&5
15252 (eval "$ac_compile") 2>conftest.er1
15253 ac_status=$?
15254 grep -v '^ *+' conftest.er1 >conftest.err
15255 rm -f conftest.er1
15256 cat conftest.err >&5
15257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } && {
15259 test -z "$ac_c_werror_flag" ||
15260 test ! -s conftest.err
15261 } && test -s conftest.$ac_objext; then
15262 ac_header_compiler=yes
15263 else
15264 $as_echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15267 ac_header_compiler=no
15270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15272 $as_echo "$ac_header_compiler" >&6; }
15274 # Is the header present?
15275 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15276 $as_echo_n "checking $ac_header presence... " >&6; }
15277 cat >conftest.$ac_ext <<_ACEOF
15278 /* confdefs.h. */
15279 _ACEOF
15280 cat confdefs.h >>conftest.$ac_ext
15281 cat >>conftest.$ac_ext <<_ACEOF
15282 /* end confdefs.h. */
15283 #include <$ac_header>
15284 _ACEOF
15285 if { (ac_try="$ac_cpp conftest.$ac_ext"
15286 case "(($ac_try" in
15287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288 *) ac_try_echo=$ac_try;;
15289 esac
15290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15291 $as_echo "$ac_try_echo") >&5
15292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15293 ac_status=$?
15294 grep -v '^ *+' conftest.er1 >conftest.err
15295 rm -f conftest.er1
15296 cat conftest.err >&5
15297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } >/dev/null && {
15299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15300 test ! -s conftest.err
15301 }; then
15302 ac_header_preproc=yes
15303 else
15304 $as_echo "$as_me: failed program was:" >&5
15305 sed 's/^/| /' conftest.$ac_ext >&5
15307 ac_header_preproc=no
15310 rm -f conftest.err conftest.$ac_ext
15311 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15312 $as_echo "$ac_header_preproc" >&6; }
15314 # So? What about this header?
15315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15316 yes:no: )
15317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15318 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15321 ac_header_preproc=yes
15323 no:yes:* )
15324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15325 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15327 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15329 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15331 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15335 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15338 esac
15339 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15340 $as_echo_n "checking for $ac_header... " >&6; }
15341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15342 $as_echo_n "(cached) " >&6
15343 else
15344 eval "$as_ac_Header=\$ac_header_preproc"
15346 ac_res=`eval 'as_val=${'$as_ac_Header'}
15347 $as_echo "$as_val"'`
15348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15349 $as_echo "$ac_res" >&6; }
15352 if test `eval 'as_val=${'$as_ac_Header'}
15353 $as_echo "$as_val"'` = yes; then
15354 cat >>confdefs.h <<_ACEOF
15355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15356 _ACEOF
15360 done
15362 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15363 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15364 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15365 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15366 $as_echo_n "(cached) " >&6
15367 else
15368 ac_check_lib_save_LIBS=$LIBS
15369 LIBS="-lpng -lz -lm $LIBS"
15370 cat >conftest.$ac_ext <<_ACEOF
15371 /* confdefs.h. */
15372 _ACEOF
15373 cat confdefs.h >>conftest.$ac_ext
15374 cat >>conftest.$ac_ext <<_ACEOF
15375 /* end confdefs.h. */
15377 /* Override any GCC internal prototype to avoid an error.
15378 Use char because int might match the return type of a GCC
15379 builtin and then its argument prototype would still apply. */
15380 #ifdef __cplusplus
15381 extern "C"
15382 #endif
15383 char png_get_channels ();
15385 main ()
15387 return png_get_channels ();
15389 return 0;
15391 _ACEOF
15392 rm -f conftest.$ac_objext conftest$ac_exeext
15393 if { (ac_try="$ac_link"
15394 case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15397 esac
15398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15399 $as_echo "$ac_try_echo") >&5
15400 (eval "$ac_link") 2>conftest.er1
15401 ac_status=$?
15402 grep -v '^ *+' conftest.er1 >conftest.err
15403 rm -f conftest.er1
15404 cat conftest.err >&5
15405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } && {
15407 test -z "$ac_c_werror_flag" ||
15408 test ! -s conftest.err
15409 } && test -s conftest$ac_exeext && {
15410 test "$cross_compiling" = yes ||
15411 $as_test_x conftest$ac_exeext
15412 }; then
15413 ac_cv_lib_png_png_get_channels=yes
15414 else
15415 $as_echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 ac_cv_lib_png_png_get_channels=no
15421 rm -rf conftest.dSYM
15422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15423 conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_check_lib_save_LIBS
15426 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15427 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15428 if test $ac_cv_lib_png_png_get_channels = yes; then
15429 HAVE_PNG=yes
15435 if test "${HAVE_PNG}" = "yes"; then
15437 cat >>confdefs.h <<\_ACEOF
15438 #define HAVE_PNG 1
15439 _ACEOF
15441 LIBPNG="-lpng -lz -lm"
15446 ### Use -ltiff if available, unless `--with-tiff=no'.
15447 HAVE_TIFF=no
15448 LIBTIFF=
15449 if test "${HAVE_X11}" = "yes"; then
15450 if test "${with_tiff}" != "no"; then
15451 if test "${ac_cv_header_tiffio_h+set}" = set; then
15452 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15453 $as_echo_n "checking for tiffio.h... " >&6; }
15454 if test "${ac_cv_header_tiffio_h+set}" = set; then
15455 $as_echo_n "(cached) " >&6
15457 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15458 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15459 else
15460 # Is the header compilable?
15461 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15462 $as_echo_n "checking tiffio.h usability... " >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h. */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 $ac_includes_default
15470 #include <tiffio.h>
15471 _ACEOF
15472 rm -f conftest.$ac_objext
15473 if { (ac_try="$ac_compile"
15474 case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15477 esac
15478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15479 $as_echo "$ac_try_echo") >&5
15480 (eval "$ac_compile") 2>conftest.er1
15481 ac_status=$?
15482 grep -v '^ *+' conftest.er1 >conftest.err
15483 rm -f conftest.er1
15484 cat conftest.err >&5
15485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } && {
15487 test -z "$ac_c_werror_flag" ||
15488 test ! -s conftest.err
15489 } && test -s conftest.$ac_objext; then
15490 ac_header_compiler=yes
15491 else
15492 $as_echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15495 ac_header_compiler=no
15498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15499 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15500 $as_echo "$ac_header_compiler" >&6; }
15502 # Is the header present?
15503 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15504 $as_echo_n "checking tiffio.h presence... " >&6; }
15505 cat >conftest.$ac_ext <<_ACEOF
15506 /* confdefs.h. */
15507 _ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15511 #include <tiffio.h>
15512 _ACEOF
15513 if { (ac_try="$ac_cpp conftest.$ac_ext"
15514 case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15517 esac
15518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519 $as_echo "$ac_try_echo") >&5
15520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15521 ac_status=$?
15522 grep -v '^ *+' conftest.er1 >conftest.err
15523 rm -f conftest.er1
15524 cat conftest.err >&5
15525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } >/dev/null && {
15527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 }; then
15530 ac_header_preproc=yes
15531 else
15532 $as_echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15535 ac_header_preproc=no
15538 rm -f conftest.err conftest.$ac_ext
15539 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15540 $as_echo "$ac_header_preproc" >&6; }
15542 # So? What about this header?
15543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15544 yes:no: )
15545 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15546 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15547 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15548 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15549 ac_header_preproc=yes
15551 no:yes:* )
15552 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15553 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15554 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15555 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15556 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15557 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15558 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15559 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15560 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15561 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15562 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15563 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15566 esac
15567 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15568 $as_echo_n "checking for tiffio.h... " >&6; }
15569 if test "${ac_cv_header_tiffio_h+set}" = set; then
15570 $as_echo_n "(cached) " >&6
15571 else
15572 ac_cv_header_tiffio_h=$ac_header_preproc
15574 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15575 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15578 if test $ac_cv_header_tiffio_h = yes; then
15579 tifflibs="-lz -lm"
15580 # At least one tiff package requires the jpeg library.
15581 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15582 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15583 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15584 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15585 $as_echo_n "(cached) " >&6
15586 else
15587 ac_check_lib_save_LIBS=$LIBS
15588 LIBS="-ltiff $tifflibs $LIBS"
15589 cat >conftest.$ac_ext <<_ACEOF
15590 /* confdefs.h. */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h. */
15596 /* Override any GCC internal prototype to avoid an error.
15597 Use char because int might match the return type of a GCC
15598 builtin and then its argument prototype would still apply. */
15599 #ifdef __cplusplus
15600 extern "C"
15601 #endif
15602 char TIFFGetVersion ();
15604 main ()
15606 return TIFFGetVersion ();
15608 return 0;
15610 _ACEOF
15611 rm -f conftest.$ac_objext conftest$ac_exeext
15612 if { (ac_try="$ac_link"
15613 case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616 esac
15617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15618 $as_echo "$ac_try_echo") >&5
15619 (eval "$ac_link") 2>conftest.er1
15620 ac_status=$?
15621 grep -v '^ *+' conftest.er1 >conftest.err
15622 rm -f conftest.er1
15623 cat conftest.err >&5
15624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } && {
15626 test -z "$ac_c_werror_flag" ||
15627 test ! -s conftest.err
15628 } && test -s conftest$ac_exeext && {
15629 test "$cross_compiling" = yes ||
15630 $as_test_x conftest$ac_exeext
15631 }; then
15632 ac_cv_lib_tiff_TIFFGetVersion=yes
15633 else
15634 $as_echo "$as_me: failed program was:" >&5
15635 sed 's/^/| /' conftest.$ac_ext >&5
15637 ac_cv_lib_tiff_TIFFGetVersion=no
15640 rm -rf conftest.dSYM
15641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15642 conftest$ac_exeext conftest.$ac_ext
15643 LIBS=$ac_check_lib_save_LIBS
15645 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15646 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15647 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15648 HAVE_TIFF=yes
15656 if test "${HAVE_TIFF}" = "yes"; then
15658 cat >>confdefs.h <<\_ACEOF
15659 #define HAVE_TIFF 1
15660 _ACEOF
15662 LIBTIFF=-ltiff
15667 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15668 HAVE_GIF=no
15669 LIBGIF=
15670 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15671 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15672 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15673 $as_echo_n "checking for gif_lib.h... " >&6; }
15674 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15675 $as_echo_n "(cached) " >&6
15677 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15678 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15679 else
15680 # Is the header compilable?
15681 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15682 $as_echo_n "checking gif_lib.h usability... " >&6; }
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h. */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 $ac_includes_default
15690 #include <gif_lib.h>
15691 _ACEOF
15692 rm -f conftest.$ac_objext
15693 if { (ac_try="$ac_compile"
15694 case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697 esac
15698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15699 $as_echo "$ac_try_echo") >&5
15700 (eval "$ac_compile") 2>conftest.er1
15701 ac_status=$?
15702 grep -v '^ *+' conftest.er1 >conftest.err
15703 rm -f conftest.er1
15704 cat conftest.err >&5
15705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } && {
15707 test -z "$ac_c_werror_flag" ||
15708 test ! -s conftest.err
15709 } && test -s conftest.$ac_objext; then
15710 ac_header_compiler=yes
15711 else
15712 $as_echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15715 ac_header_compiler=no
15718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15719 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15720 $as_echo "$ac_header_compiler" >&6; }
15722 # Is the header present?
15723 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15724 $as_echo_n "checking gif_lib.h presence... " >&6; }
15725 cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h. */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15731 #include <gif_lib.h>
15732 _ACEOF
15733 if { (ac_try="$ac_cpp conftest.$ac_ext"
15734 case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15737 esac
15738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15739 $as_echo "$ac_try_echo") >&5
15740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15741 ac_status=$?
15742 grep -v '^ *+' conftest.er1 >conftest.err
15743 rm -f conftest.er1
15744 cat conftest.err >&5
15745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } >/dev/null && {
15747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15748 test ! -s conftest.err
15749 }; then
15750 ac_header_preproc=yes
15751 else
15752 $as_echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ac_header_preproc=no
15758 rm -f conftest.err conftest.$ac_ext
15759 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15760 $as_echo "$ac_header_preproc" >&6; }
15762 # So? What about this header?
15763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15764 yes:no: )
15765 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15766 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15767 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15768 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15769 ac_header_preproc=yes
15771 no:yes:* )
15772 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15773 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15774 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15775 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15776 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15777 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15778 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15779 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15780 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15781 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15782 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15783 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15786 esac
15787 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15788 $as_echo_n "checking for gif_lib.h... " >&6; }
15789 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15790 $as_echo_n "(cached) " >&6
15791 else
15792 ac_cv_header_gif_lib_h=$ac_header_preproc
15794 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15795 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15798 if test $ac_cv_header_gif_lib_h = yes; then
15799 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15800 # Earlier versions can crash Emacs.
15801 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15802 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15803 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15804 $as_echo_n "(cached) " >&6
15805 else
15806 ac_check_lib_save_LIBS=$LIBS
15807 LIBS="-lgif $LIBS"
15808 cat >conftest.$ac_ext <<_ACEOF
15809 /* confdefs.h. */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15815 /* Override any GCC internal prototype to avoid an error.
15816 Use char because int might match the return type of a GCC
15817 builtin and then its argument prototype would still apply. */
15818 #ifdef __cplusplus
15819 extern "C"
15820 #endif
15821 char EGifPutExtensionLast ();
15823 main ()
15825 return EGifPutExtensionLast ();
15827 return 0;
15829 _ACEOF
15830 rm -f conftest.$ac_objext conftest$ac_exeext
15831 if { (ac_try="$ac_link"
15832 case "(($ac_try" in
15833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834 *) ac_try_echo=$ac_try;;
15835 esac
15836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15837 $as_echo "$ac_try_echo") >&5
15838 (eval "$ac_link") 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } && {
15845 test -z "$ac_c_werror_flag" ||
15846 test ! -s conftest.err
15847 } && test -s conftest$ac_exeext && {
15848 test "$cross_compiling" = yes ||
15849 $as_test_x conftest$ac_exeext
15850 }; then
15851 ac_cv_lib_gif_EGifPutExtensionLast=yes
15852 else
15853 $as_echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15856 ac_cv_lib_gif_EGifPutExtensionLast=no
15859 rm -rf conftest.dSYM
15860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15861 conftest$ac_exeext conftest.$ac_ext
15862 LIBS=$ac_check_lib_save_LIBS
15864 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15865 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15866 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15867 HAVE_GIF=yes
15868 else
15869 HAVE_GIF=maybe
15876 if test "$HAVE_GIF" = yes; then
15877 LIBGIF=-lgif
15878 elif test "$HAVE_GIF" = maybe; then
15879 # If gif_lib.h but no libgif, try libungif.
15880 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15881 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15882 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15883 $as_echo_n "(cached) " >&6
15884 else
15885 ac_check_lib_save_LIBS=$LIBS
15886 LIBS="-lungif $LIBS"
15887 cat >conftest.$ac_ext <<_ACEOF
15888 /* confdefs.h. */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15894 /* Override any GCC internal prototype to avoid an error.
15895 Use char because int might match the return type of a GCC
15896 builtin and then its argument prototype would still apply. */
15897 #ifdef __cplusplus
15898 extern "C"
15899 #endif
15900 char EGifPutExtensionLast ();
15902 main ()
15904 return EGifPutExtensionLast ();
15906 return 0;
15908 _ACEOF
15909 rm -f conftest.$ac_objext conftest$ac_exeext
15910 if { (ac_try="$ac_link"
15911 case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15914 esac
15915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15916 $as_echo "$ac_try_echo") >&5
15917 (eval "$ac_link") 2>conftest.er1
15918 ac_status=$?
15919 grep -v '^ *+' conftest.er1 >conftest.err
15920 rm -f conftest.er1
15921 cat conftest.err >&5
15922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } && {
15924 test -z "$ac_c_werror_flag" ||
15925 test ! -s conftest.err
15926 } && test -s conftest$ac_exeext && {
15927 test "$cross_compiling" = yes ||
15928 $as_test_x conftest$ac_exeext
15929 }; then
15930 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15931 else
15932 $as_echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15935 ac_cv_lib_ungif_EGifPutExtensionLast=no
15938 rm -rf conftest.dSYM
15939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15940 conftest$ac_exeext conftest.$ac_ext
15941 LIBS=$ac_check_lib_save_LIBS
15943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15944 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15945 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15946 HAVE_GIF=yes
15947 else
15948 HAVE_GIF=no
15951 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15954 if test "${HAVE_GIF}" = "yes"; then
15956 cat >>confdefs.h <<\_ACEOF
15957 #define HAVE_GIF 1
15958 _ACEOF
15964 if test "${HAVE_X11}" = "yes"; then
15965 MISSING=""
15966 WITH_NO=""
15967 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15968 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15969 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15970 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15971 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15972 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15973 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15974 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15975 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15976 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15978 if test "X${MISSING}" != X; then
15979 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15980 $MISSING
15981 Maybe some development libraries/packages are missing?
15982 If you don't want to link with them give
15983 $WITH_NO
15984 as options to configure" >&5
15985 $as_echo "$as_me: error: The following required libraries were not found:
15986 $MISSING
15987 Maybe some development libraries/packages are missing?
15988 If you don't want to link with them give
15989 $WITH_NO
15990 as options to configure" >&2;}
15991 { (exit 1); exit 1; }; }
15995 ### Use -lgpm if available, unless `--with-gpm=no'.
15996 HAVE_GPM=no
15997 LIBGPM=
15998 MOUSE_SUPPORT=
15999 if test "${with_gpm}" != "no"; then
16000 if test "${ac_cv_header_gpm_h+set}" = set; then
16001 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16002 $as_echo_n "checking for gpm.h... " >&6; }
16003 if test "${ac_cv_header_gpm_h+set}" = set; then
16004 $as_echo_n "(cached) " >&6
16006 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16007 $as_echo "$ac_cv_header_gpm_h" >&6; }
16008 else
16009 # Is the header compilable?
16010 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16011 $as_echo_n "checking gpm.h usability... " >&6; }
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h. */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 $ac_includes_default
16019 #include <gpm.h>
16020 _ACEOF
16021 rm -f conftest.$ac_objext
16022 if { (ac_try="$ac_compile"
16023 case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16026 esac
16027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16028 $as_echo "$ac_try_echo") >&5
16029 (eval "$ac_compile") 2>conftest.er1
16030 ac_status=$?
16031 grep -v '^ *+' conftest.er1 >conftest.err
16032 rm -f conftest.er1
16033 cat conftest.err >&5
16034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } && {
16036 test -z "$ac_c_werror_flag" ||
16037 test ! -s conftest.err
16038 } && test -s conftest.$ac_objext; then
16039 ac_header_compiler=yes
16040 else
16041 $as_echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 ac_header_compiler=no
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 $as_echo "$ac_header_compiler" >&6; }
16051 # Is the header present?
16052 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16053 $as_echo_n "checking gpm.h presence... " >&6; }
16054 cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h. */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 #include <gpm.h>
16061 _ACEOF
16062 if { (ac_try="$ac_cpp conftest.$ac_ext"
16063 case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16066 esac
16067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16068 $as_echo "$ac_try_echo") >&5
16069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
16074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } >/dev/null && {
16076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16077 test ! -s conftest.err
16078 }; then
16079 ac_header_preproc=yes
16080 else
16081 $as_echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_header_preproc=no
16087 rm -f conftest.err conftest.$ac_ext
16088 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16089 $as_echo "$ac_header_preproc" >&6; }
16091 # So? What about this header?
16092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16093 yes:no: )
16094 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16095 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16096 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16097 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16098 ac_header_preproc=yes
16100 no:yes:* )
16101 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16102 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16103 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16104 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16105 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16106 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16107 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16108 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16109 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16110 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16111 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16112 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16115 esac
16116 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16117 $as_echo_n "checking for gpm.h... " >&6; }
16118 if test "${ac_cv_header_gpm_h+set}" = set; then
16119 $as_echo_n "(cached) " >&6
16120 else
16121 ac_cv_header_gpm_h=$ac_header_preproc
16123 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16124 $as_echo "$ac_cv_header_gpm_h" >&6; }
16127 if test $ac_cv_header_gpm_h = yes; then
16128 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16129 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16130 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16131 $as_echo_n "(cached) " >&6
16132 else
16133 ac_check_lib_save_LIBS=$LIBS
16134 LIBS="-lgpm $LIBS"
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h. */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16142 /* Override any GCC internal prototype to avoid an error.
16143 Use char because int might match the return type of a GCC
16144 builtin and then its argument prototype would still apply. */
16145 #ifdef __cplusplus
16146 extern "C"
16147 #endif
16148 char Gpm_Open ();
16150 main ()
16152 return Gpm_Open ();
16154 return 0;
16156 _ACEOF
16157 rm -f conftest.$ac_objext conftest$ac_exeext
16158 if { (ac_try="$ac_link"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162 esac
16163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16164 $as_echo "$ac_try_echo") >&5
16165 (eval "$ac_link") 2>conftest.er1
16166 ac_status=$?
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
16170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } && {
16172 test -z "$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16174 } && test -s conftest$ac_exeext && {
16175 test "$cross_compiling" = yes ||
16176 $as_test_x conftest$ac_exeext
16177 }; then
16178 ac_cv_lib_gpm_Gpm_Open=yes
16179 else
16180 $as_echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 ac_cv_lib_gpm_Gpm_Open=no
16186 rm -rf conftest.dSYM
16187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16188 conftest$ac_exeext conftest.$ac_ext
16189 LIBS=$ac_check_lib_save_LIBS
16191 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16192 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16193 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16194 HAVE_GPM=yes
16201 if test "${HAVE_GPM}" = "yes"; then
16203 cat >>confdefs.h <<\_ACEOF
16204 #define HAVE_GPM 1
16205 _ACEOF
16207 LIBGPM=-lgpm
16208 ## May be reset below.
16209 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16214 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16215 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16216 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16217 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16218 $as_echo_n "(cached) " >&6
16220 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16221 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16222 else
16223 # Is the header compilable?
16224 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16225 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16226 cat >conftest.$ac_ext <<_ACEOF
16227 /* confdefs.h. */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 $ac_includes_default
16233 #include <malloc/malloc.h>
16234 _ACEOF
16235 rm -f conftest.$ac_objext
16236 if { (ac_try="$ac_compile"
16237 case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16240 esac
16241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16242 $as_echo "$ac_try_echo") >&5
16243 (eval "$ac_compile") 2>conftest.er1
16244 ac_status=$?
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
16248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } && {
16250 test -z "$ac_c_werror_flag" ||
16251 test ! -s conftest.err
16252 } && test -s conftest.$ac_objext; then
16253 ac_header_compiler=yes
16254 else
16255 $as_echo "$as_me: failed program was:" >&5
16256 sed 's/^/| /' conftest.$ac_ext >&5
16258 ac_header_compiler=no
16261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16263 $as_echo "$ac_header_compiler" >&6; }
16265 # Is the header present?
16266 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16267 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16268 cat >conftest.$ac_ext <<_ACEOF
16269 /* confdefs.h. */
16270 _ACEOF
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h. */
16274 #include <malloc/malloc.h>
16275 _ACEOF
16276 if { (ac_try="$ac_cpp conftest.$ac_ext"
16277 case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16280 esac
16281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16282 $as_echo "$ac_try_echo") >&5
16283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16284 ac_status=$?
16285 grep -v '^ *+' conftest.er1 >conftest.err
16286 rm -f conftest.er1
16287 cat conftest.err >&5
16288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } >/dev/null && {
16290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16291 test ! -s conftest.err
16292 }; then
16293 ac_header_preproc=yes
16294 else
16295 $as_echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 ac_header_preproc=no
16301 rm -f conftest.err conftest.$ac_ext
16302 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16303 $as_echo "$ac_header_preproc" >&6; }
16305 # So? What about this header?
16306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16307 yes:no: )
16308 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16309 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16310 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16311 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16312 ac_header_preproc=yes
16314 no:yes:* )
16315 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16316 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16317 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16318 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16319 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16320 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16321 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16322 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16323 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16324 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16325 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16326 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16329 esac
16330 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16331 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16332 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16333 $as_echo_n "(cached) " >&6
16334 else
16335 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16337 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16338 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16341 if test $ac_cv_header_malloc_malloc_h = yes; then
16343 cat >>confdefs.h <<\_ACEOF
16344 #define HAVE_MALLOC_MALLOC_H 1
16345 _ACEOF
16351 C_SWITCH_X_SYSTEM=
16352 ### Use NeXTstep API to implement GUI.
16353 if test "${HAVE_NS}" = "yes"; then
16355 cat >>confdefs.h <<\_ACEOF
16356 #define HAVE_NS 1
16357 _ACEOF
16359 if test "${NS_IMPL_COCOA}" = "yes"; then
16361 cat >>confdefs.h <<\_ACEOF
16362 #define NS_IMPL_COCOA 1
16363 _ACEOF
16365 GNU_OBJC_CFLAGS=
16367 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16369 cat >>confdefs.h <<\_ACEOF
16370 #define NS_IMPL_GNUSTEP 1
16371 _ACEOF
16373 # See also .m.o rule in Makefile.in */
16374 # FIXME: are all these flags really needed? Document here why. */
16375 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16376 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16378 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16380 cat >>confdefs.h <<\_ACEOF
16381 #define NS_HAVE_NSINTEGER 1
16382 _ACEOF
16385 # We also have mouse menus.
16386 HAVE_MENUS=yes
16387 OTHER_FILES=ns-app
16391 ### Use session management (-lSM -lICE) if available
16392 HAVE_X_SM=no
16393 LIBXSM=
16394 if test "${HAVE_X11}" = "yes"; then
16395 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16396 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16397 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16398 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16399 $as_echo_n "(cached) " >&6
16401 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16402 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16403 else
16404 # Is the header compilable?
16405 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16406 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16407 cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h. */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 $ac_includes_default
16414 #include <X11/SM/SMlib.h>
16415 _ACEOF
16416 rm -f conftest.$ac_objext
16417 if { (ac_try="$ac_compile"
16418 case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16421 esac
16422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16423 $as_echo "$ac_try_echo") >&5
16424 (eval "$ac_compile") 2>conftest.er1
16425 ac_status=$?
16426 grep -v '^ *+' conftest.er1 >conftest.err
16427 rm -f conftest.er1
16428 cat conftest.err >&5
16429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } && {
16431 test -z "$ac_c_werror_flag" ||
16432 test ! -s conftest.err
16433 } && test -s conftest.$ac_objext; then
16434 ac_header_compiler=yes
16435 else
16436 $as_echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ac_header_compiler=no
16442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16444 $as_echo "$ac_header_compiler" >&6; }
16446 # Is the header present?
16447 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16448 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16449 cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h. */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 #include <X11/SM/SMlib.h>
16456 _ACEOF
16457 if { (ac_try="$ac_cpp conftest.$ac_ext"
16458 case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16461 esac
16462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16463 $as_echo "$ac_try_echo") >&5
16464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16465 ac_status=$?
16466 grep -v '^ *+' conftest.er1 >conftest.err
16467 rm -f conftest.er1
16468 cat conftest.err >&5
16469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } >/dev/null && {
16471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16472 test ! -s conftest.err
16473 }; then
16474 ac_header_preproc=yes
16475 else
16476 $as_echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_header_preproc=no
16482 rm -f conftest.err conftest.$ac_ext
16483 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16484 $as_echo "$ac_header_preproc" >&6; }
16486 # So? What about this header?
16487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16488 yes:no: )
16489 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16490 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16491 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16492 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16493 ac_header_preproc=yes
16495 no:yes:* )
16496 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16497 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16498 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16499 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16500 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16501 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16502 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16503 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16504 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16505 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16506 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16507 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16510 esac
16511 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16512 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16513 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16514 $as_echo_n "(cached) " >&6
16515 else
16516 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16518 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16519 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16522 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16523 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16524 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16525 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16526 $as_echo_n "(cached) " >&6
16527 else
16528 ac_check_lib_save_LIBS=$LIBS
16529 LIBS="-lSM -lICE $LIBS"
16530 cat >conftest.$ac_ext <<_ACEOF
16531 /* confdefs.h. */
16532 _ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16537 /* Override any GCC internal prototype to avoid an error.
16538 Use char because int might match the return type of a GCC
16539 builtin and then its argument prototype would still apply. */
16540 #ifdef __cplusplus
16541 extern "C"
16542 #endif
16543 char SmcOpenConnection ();
16545 main ()
16547 return SmcOpenConnection ();
16549 return 0;
16551 _ACEOF
16552 rm -f conftest.$ac_objext conftest$ac_exeext
16553 if { (ac_try="$ac_link"
16554 case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16557 esac
16558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16559 $as_echo "$ac_try_echo") >&5
16560 (eval "$ac_link") 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } && {
16567 test -z "$ac_c_werror_flag" ||
16568 test ! -s conftest.err
16569 } && test -s conftest$ac_exeext && {
16570 test "$cross_compiling" = yes ||
16571 $as_test_x conftest$ac_exeext
16572 }; then
16573 ac_cv_lib_SM_SmcOpenConnection=yes
16574 else
16575 $as_echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_cv_lib_SM_SmcOpenConnection=no
16581 rm -rf conftest.dSYM
16582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16583 conftest$ac_exeext conftest.$ac_ext
16584 LIBS=$ac_check_lib_save_LIBS
16586 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16587 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16588 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16589 HAVE_X_SM=yes
16596 if test "${HAVE_X_SM}" = "yes"; then
16598 cat >>confdefs.h <<\_ACEOF
16599 #define HAVE_X_SM 1
16600 _ACEOF
16602 LIBXSM="-lSM -lICE"
16603 case "$LIBS" in
16604 *-lSM*) ;;
16605 *) LIBS="$LIBXSM $LIBS" ;;
16606 esac
16611 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16612 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16613 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16614 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16615 $as_echo_n "(cached) " >&6
16616 else
16617 cat >conftest.$ac_ext <<_ACEOF
16618 /* confdefs.h. */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16623 #include <netdb.h>
16625 main ()
16627 return h_errno;
16629 return 0;
16631 _ACEOF
16632 rm -f conftest.$ac_objext 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>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } && {
16647 test -z "$ac_c_werror_flag" ||
16648 test ! -s conftest.err
16649 } && test -s conftest$ac_exeext && {
16650 test "$cross_compiling" = yes ||
16651 $as_test_x conftest$ac_exeext
16652 }; then
16653 emacs_cv_netdb_declares_h_errno=yes
16654 else
16655 $as_echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 emacs_cv_netdb_declares_h_errno=no
16661 rm -rf conftest.dSYM
16662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16663 conftest$ac_exeext conftest.$ac_ext
16665 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16666 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16667 if test $emacs_cv_netdb_declares_h_errno = yes; then
16669 cat >>confdefs.h <<\_ACEOF
16670 #define HAVE_H_ERRNO 1
16671 _ACEOF
16675 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16676 # for constant arguments. Useless!
16677 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16678 $as_echo_n "checking for working alloca.h... " >&6; }
16679 if test "${ac_cv_working_alloca_h+set}" = set; then
16680 $as_echo_n "(cached) " >&6
16681 else
16682 cat >conftest.$ac_ext <<_ACEOF
16683 /* confdefs.h. */
16684 _ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 #include <alloca.h>
16690 main ()
16692 char *p = (char *) alloca (2 * sizeof (int));
16693 if (p) return 0;
16695 return 0;
16697 _ACEOF
16698 rm -f conftest.$ac_objext conftest$ac_exeext
16699 if { (ac_try="$ac_link"
16700 case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16703 esac
16704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16705 $as_echo "$ac_try_echo") >&5
16706 (eval "$ac_link") 2>conftest.er1
16707 ac_status=$?
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
16711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } && {
16713 test -z "$ac_c_werror_flag" ||
16714 test ! -s conftest.err
16715 } && test -s conftest$ac_exeext && {
16716 test "$cross_compiling" = yes ||
16717 $as_test_x conftest$ac_exeext
16718 }; then
16719 ac_cv_working_alloca_h=yes
16720 else
16721 $as_echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ac_cv_working_alloca_h=no
16727 rm -rf conftest.dSYM
16728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16729 conftest$ac_exeext conftest.$ac_ext
16731 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16732 $as_echo "$ac_cv_working_alloca_h" >&6; }
16733 if test $ac_cv_working_alloca_h = yes; then
16735 cat >>confdefs.h <<\_ACEOF
16736 #define HAVE_ALLOCA_H 1
16737 _ACEOF
16741 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16742 $as_echo_n "checking for alloca... " >&6; }
16743 if test "${ac_cv_func_alloca_works+set}" = set; then
16744 $as_echo_n "(cached) " >&6
16745 else
16746 cat >conftest.$ac_ext <<_ACEOF
16747 /* confdefs.h. */
16748 _ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752 #ifdef __GNUC__
16753 # define alloca __builtin_alloca
16754 #else
16755 # ifdef _MSC_VER
16756 # include <malloc.h>
16757 # define alloca _alloca
16758 # else
16759 # ifdef HAVE_ALLOCA_H
16760 # include <alloca.h>
16761 # else
16762 # ifdef _AIX
16763 #pragma alloca
16764 # else
16765 # ifndef alloca /* predefined by HP cc +Olibcalls */
16766 char *alloca ();
16767 # endif
16768 # endif
16769 # endif
16770 # endif
16771 #endif
16774 main ()
16776 char *p = (char *) alloca (1);
16777 if (p) return 0;
16779 return 0;
16781 _ACEOF
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (ac_try="$ac_link"
16784 case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16787 esac
16788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16789 $as_echo "$ac_try_echo") >&5
16790 (eval "$ac_link") 2>conftest.er1
16791 ac_status=$?
16792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
16795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } && {
16797 test -z "$ac_c_werror_flag" ||
16798 test ! -s conftest.err
16799 } && test -s conftest$ac_exeext && {
16800 test "$cross_compiling" = yes ||
16801 $as_test_x conftest$ac_exeext
16802 }; then
16803 ac_cv_func_alloca_works=yes
16804 else
16805 $as_echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16808 ac_cv_func_alloca_works=no
16811 rm -rf conftest.dSYM
16812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16813 conftest$ac_exeext conftest.$ac_ext
16815 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16816 $as_echo "$ac_cv_func_alloca_works" >&6; }
16818 if test $ac_cv_func_alloca_works = yes; then
16820 cat >>confdefs.h <<\_ACEOF
16821 #define HAVE_ALLOCA 1
16822 _ACEOF
16824 else
16825 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16826 # that cause trouble. Some versions do not even contain alloca or
16827 # contain a buggy version. If you still want to use their alloca,
16828 # use ar to extract alloca.o from them instead of compiling alloca.c.
16830 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16832 cat >>confdefs.h <<\_ACEOF
16833 #define C_ALLOCA 1
16834 _ACEOF
16837 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16838 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16839 if test "${ac_cv_os_cray+set}" = set; then
16840 $as_echo_n "(cached) " >&6
16841 else
16842 cat >conftest.$ac_ext <<_ACEOF
16843 /* confdefs.h. */
16844 _ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16848 #if defined CRAY && ! defined CRAY2
16849 webecray
16850 #else
16851 wenotbecray
16852 #endif
16854 _ACEOF
16855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16856 $EGREP "webecray" >/dev/null 2>&1; then
16857 ac_cv_os_cray=yes
16858 else
16859 ac_cv_os_cray=no
16861 rm -f conftest*
16864 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16865 $as_echo "$ac_cv_os_cray" >&6; }
16866 if test $ac_cv_os_cray = yes; then
16867 for ac_func in _getb67 GETB67 getb67; do
16868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16869 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16870 $as_echo_n "checking for $ac_func... " >&6; }
16871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16872 $as_echo_n "(cached) " >&6
16873 else
16874 cat >conftest.$ac_ext <<_ACEOF
16875 /* confdefs.h. */
16876 _ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h. */
16880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16882 #define $ac_func innocuous_$ac_func
16884 /* System header to define __stub macros and hopefully few prototypes,
16885 which can conflict with char $ac_func (); below.
16886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16887 <limits.h> exists even on freestanding compilers. */
16889 #ifdef __STDC__
16890 # include <limits.h>
16891 #else
16892 # include <assert.h>
16893 #endif
16895 #undef $ac_func
16897 /* Override any GCC internal prototype to avoid an error.
16898 Use char because int might match the return type of a GCC
16899 builtin and then its argument prototype would still apply. */
16900 #ifdef __cplusplus
16901 extern "C"
16902 #endif
16903 char $ac_func ();
16904 /* The GNU C library defines this for functions which it implements
16905 to always fail with ENOSYS. Some functions are actually named
16906 something starting with __ and the normal name is an alias. */
16907 #if defined __stub_$ac_func || defined __stub___$ac_func
16908 choke me
16909 #endif
16912 main ()
16914 return $ac_func ();
16916 return 0;
16918 _ACEOF
16919 rm -f conftest.$ac_objext conftest$ac_exeext
16920 if { (ac_try="$ac_link"
16921 case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924 esac
16925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16926 $as_echo "$ac_try_echo") >&5
16927 (eval "$ac_link") 2>conftest.er1
16928 ac_status=$?
16929 grep -v '^ *+' conftest.er1 >conftest.err
16930 rm -f conftest.er1
16931 cat conftest.err >&5
16932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } && {
16934 test -z "$ac_c_werror_flag" ||
16935 test ! -s conftest.err
16936 } && test -s conftest$ac_exeext && {
16937 test "$cross_compiling" = yes ||
16938 $as_test_x conftest$ac_exeext
16939 }; then
16940 eval "$as_ac_var=yes"
16941 else
16942 $as_echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 eval "$as_ac_var=no"
16948 rm -rf conftest.dSYM
16949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16950 conftest$ac_exeext conftest.$ac_ext
16952 ac_res=`eval 'as_val=${'$as_ac_var'}
16953 $as_echo "$as_val"'`
16954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16955 $as_echo "$ac_res" >&6; }
16956 if test `eval 'as_val=${'$as_ac_var'}
16957 $as_echo "$as_val"'` = yes; then
16959 cat >>confdefs.h <<_ACEOF
16960 #define CRAY_STACKSEG_END $ac_func
16961 _ACEOF
16963 break
16966 done
16969 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16970 $as_echo_n "checking stack direction for C alloca... " >&6; }
16971 if test "${ac_cv_c_stack_direction+set}" = set; then
16972 $as_echo_n "(cached) " >&6
16973 else
16974 if test "$cross_compiling" = yes; then
16975 ac_cv_c_stack_direction=0
16976 else
16977 cat >conftest.$ac_ext <<_ACEOF
16978 /* confdefs.h. */
16979 _ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16983 $ac_includes_default
16985 find_stack_direction ()
16987 static char *addr = 0;
16988 auto char dummy;
16989 if (addr == 0)
16991 addr = &dummy;
16992 return find_stack_direction ();
16994 else
16995 return (&dummy > addr) ? 1 : -1;
16999 main ()
17001 return find_stack_direction () < 0;
17003 _ACEOF
17004 rm -f conftest$ac_exeext
17005 if { (ac_try="$ac_link"
17006 case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009 esac
17010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17011 $as_echo "$ac_try_echo") >&5
17012 (eval "$ac_link") 2>&5
17013 ac_status=$?
17014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17019 esac
17020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17021 $as_echo "$ac_try_echo") >&5
17022 (eval "$ac_try") 2>&5
17023 ac_status=$?
17024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_cv_c_stack_direction=1
17027 else
17028 $as_echo "$as_me: program exited with status $ac_status" >&5
17029 $as_echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17032 ( exit $ac_status )
17033 ac_cv_c_stack_direction=-1
17035 rm -rf conftest.dSYM
17036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17041 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17042 $as_echo "$ac_cv_c_stack_direction" >&6; }
17044 cat >>confdefs.h <<_ACEOF
17045 #define STACK_DIRECTION $ac_cv_c_stack_direction
17046 _ACEOF
17052 if test x"$ac_cv_func_alloca_works" != xyes; then
17053 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17054 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17055 { (exit 1); exit 1; }; }
17058 # fmod, logb, and frexp are found in -lm on most systems.
17059 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17061 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
17062 $as_echo_n "checking for sqrt in -lm... " >&6; }
17063 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17064 $as_echo_n "(cached) " >&6
17065 else
17066 ac_check_lib_save_LIBS=$LIBS
17067 LIBS="-lm $LIBS"
17068 cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h. */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17075 /* Override any GCC internal prototype to avoid an error.
17076 Use char because int might match the return type of a GCC
17077 builtin and then its argument prototype would still apply. */
17078 #ifdef __cplusplus
17079 extern "C"
17080 #endif
17081 char sqrt ();
17083 main ()
17085 return sqrt ();
17087 return 0;
17089 _ACEOF
17090 rm -f conftest.$ac_objext conftest$ac_exeext
17091 if { (ac_try="$ac_link"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095 esac
17096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17097 $as_echo "$ac_try_echo") >&5
17098 (eval "$ac_link") 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } && {
17105 test -z "$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 } && test -s conftest$ac_exeext && {
17108 test "$cross_compiling" = yes ||
17109 $as_test_x conftest$ac_exeext
17110 }; then
17111 ac_cv_lib_m_sqrt=yes
17112 else
17113 $as_echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 ac_cv_lib_m_sqrt=no
17119 rm -rf conftest.dSYM
17120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17121 conftest$ac_exeext conftest.$ac_ext
17122 LIBS=$ac_check_lib_save_LIBS
17124 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
17125 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17126 if test $ac_cv_lib_m_sqrt = yes; then
17127 cat >>confdefs.h <<_ACEOF
17128 #define HAVE_LIBM 1
17129 _ACEOF
17131 LIBS="-lm $LIBS"
17136 # Check for mail-locking functions in a "mail" library. Probably this should
17137 # have the same check as for liblockfile below.
17138 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
17139 $as_echo_n "checking for maillock in -lmail... " >&6; }
17140 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17141 $as_echo_n "(cached) " >&6
17142 else
17143 ac_check_lib_save_LIBS=$LIBS
17144 LIBS="-lmail $LIBS"
17145 cat >conftest.$ac_ext <<_ACEOF
17146 /* confdefs.h. */
17147 _ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17152 /* Override any GCC internal prototype to avoid an error.
17153 Use char because int might match the return type of a GCC
17154 builtin and then its argument prototype would still apply. */
17155 #ifdef __cplusplus
17156 extern "C"
17157 #endif
17158 char maillock ();
17160 main ()
17162 return maillock ();
17164 return 0;
17166 _ACEOF
17167 rm -f conftest.$ac_objext conftest$ac_exeext
17168 if { (ac_try="$ac_link"
17169 case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172 esac
17173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17174 $as_echo "$ac_try_echo") >&5
17175 (eval "$ac_link") 2>conftest.er1
17176 ac_status=$?
17177 grep -v '^ *+' conftest.er1 >conftest.err
17178 rm -f conftest.er1
17179 cat conftest.err >&5
17180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } && {
17182 test -z "$ac_c_werror_flag" ||
17183 test ! -s conftest.err
17184 } && test -s conftest$ac_exeext && {
17185 test "$cross_compiling" = yes ||
17186 $as_test_x conftest$ac_exeext
17187 }; then
17188 ac_cv_lib_mail_maillock=yes
17189 else
17190 $as_echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 ac_cv_lib_mail_maillock=no
17196 rm -rf conftest.dSYM
17197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17198 conftest$ac_exeext conftest.$ac_ext
17199 LIBS=$ac_check_lib_save_LIBS
17201 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17202 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17203 if test $ac_cv_lib_mail_maillock = yes; then
17204 have_mail=yes
17205 else
17206 have_mail=no
17209 if test $have_mail = yes; then
17210 LIBS_MAIL=-lmail
17211 LIBS="$LIBS_MAIL $LIBS"
17213 cat >>confdefs.h <<\_ACEOF
17214 #define HAVE_LIBMAIL 1
17215 _ACEOF
17217 else
17218 LIBS_MAIL=
17220 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17221 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17222 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17223 $as_echo_n "(cached) " >&6
17224 else
17225 ac_check_lib_save_LIBS=$LIBS
17226 LIBS="-llockfile $LIBS"
17227 cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h. */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17234 /* Override any GCC internal prototype to avoid an error.
17235 Use char because int might match the return type of a GCC
17236 builtin and then its argument prototype would still apply. */
17237 #ifdef __cplusplus
17238 extern "C"
17239 #endif
17240 char maillock ();
17242 main ()
17244 return maillock ();
17246 return 0;
17248 _ACEOF
17249 rm -f conftest.$ac_objext conftest$ac_exeext
17250 if { (ac_try="$ac_link"
17251 case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17254 esac
17255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17256 $as_echo "$ac_try_echo") >&5
17257 (eval "$ac_link") 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } && {
17264 test -z "$ac_c_werror_flag" ||
17265 test ! -s conftest.err
17266 } && test -s conftest$ac_exeext && {
17267 test "$cross_compiling" = yes ||
17268 $as_test_x conftest$ac_exeext
17269 }; then
17270 ac_cv_lib_lockfile_maillock=yes
17271 else
17272 $as_echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17275 ac_cv_lib_lockfile_maillock=no
17278 rm -rf conftest.dSYM
17279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17280 conftest$ac_exeext conftest.$ac_ext
17281 LIBS=$ac_check_lib_save_LIBS
17283 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17284 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17285 if test $ac_cv_lib_lockfile_maillock = yes; then
17286 have_lockfile=yes
17287 else
17288 have_lockfile=no
17291 if test $have_lockfile = yes; then
17292 LIBS_MAIL=-llockfile
17293 LIBS="$LIBS_MAIL $LIBS"
17295 cat >>confdefs.h <<\_ACEOF
17296 #define HAVE_LIBLOCKFILE 1
17297 _ACEOF
17299 else
17300 # If we have the shared liblockfile, assume we must use it for mail
17301 # locking (e.g. Debian). If we couldn't link against liblockfile
17302 # (no liblockfile.a installed), ensure that we don't need to.
17303 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17304 set dummy liblockfile.so; ac_word=$2
17305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17306 $as_echo_n "checking for $ac_word... " >&6; }
17307 if test "${ac_cv_prog_liblockfile+set}" = set; then
17308 $as_echo_n "(cached) " >&6
17309 else
17310 if test -n "$liblockfile"; then
17311 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17312 else
17313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17314 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17315 for as_dir in $as_dummy
17317 IFS=$as_save_IFS
17318 test -z "$as_dir" && as_dir=.
17319 for ac_exec_ext in '' $ac_executable_extensions; do
17320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17321 ac_cv_prog_liblockfile="yes"
17322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17323 break 2
17325 done
17326 done
17327 IFS=$as_save_IFS
17329 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17332 liblockfile=$ac_cv_prog_liblockfile
17333 if test -n "$liblockfile"; then
17334 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17335 $as_echo "$liblockfile" >&6; }
17336 else
17337 { $as_echo "$as_me:$LINENO: result: no" >&5
17338 $as_echo "no" >&6; }
17342 if test $ac_cv_prog_liblockfile = yes; then
17343 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17344 This probably means that movemail could lose mail.
17345 There may be a \`development' package to install containing liblockfile." >&5
17346 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17347 This probably means that movemail could lose mail.
17348 There may be a \`development' package to install containing liblockfile." >&2;}
17349 { (exit 1); exit 1; }; }
17353 for ac_func in touchlock
17355 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17356 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17357 $as_echo_n "checking for $ac_func... " >&6; }
17358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17359 $as_echo_n "(cached) " >&6
17360 else
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h. */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17369 #define $ac_func innocuous_$ac_func
17371 /* System header to define __stub macros and hopefully few prototypes,
17372 which can conflict with char $ac_func (); below.
17373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17374 <limits.h> exists even on freestanding compilers. */
17376 #ifdef __STDC__
17377 # include <limits.h>
17378 #else
17379 # include <assert.h>
17380 #endif
17382 #undef $ac_func
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17387 #ifdef __cplusplus
17388 extern "C"
17389 #endif
17390 char $ac_func ();
17391 /* The GNU C library defines this for functions which it implements
17392 to always fail with ENOSYS. Some functions are actually named
17393 something starting with __ and the normal name is an alias. */
17394 #if defined __stub_$ac_func || defined __stub___$ac_func
17395 choke me
17396 #endif
17399 main ()
17401 return $ac_func ();
17403 return 0;
17405 _ACEOF
17406 rm -f conftest.$ac_objext conftest$ac_exeext
17407 if { (ac_try="$ac_link"
17408 case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17411 esac
17412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17413 $as_echo "$ac_try_echo") >&5
17414 (eval "$ac_link") 2>conftest.er1
17415 ac_status=$?
17416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
17419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } && {
17421 test -z "$ac_c_werror_flag" ||
17422 test ! -s conftest.err
17423 } && test -s conftest$ac_exeext && {
17424 test "$cross_compiling" = yes ||
17425 $as_test_x conftest$ac_exeext
17426 }; then
17427 eval "$as_ac_var=yes"
17428 else
17429 $as_echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 eval "$as_ac_var=no"
17435 rm -rf conftest.dSYM
17436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17437 conftest$ac_exeext conftest.$ac_ext
17439 ac_res=`eval 'as_val=${'$as_ac_var'}
17440 $as_echo "$as_val"'`
17441 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17442 $as_echo "$ac_res" >&6; }
17443 if test `eval 'as_val=${'$as_ac_var'}
17444 $as_echo "$as_val"'` = yes; then
17445 cat >>confdefs.h <<_ACEOF
17446 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17447 _ACEOF
17450 done
17453 for ac_header in maillock.h
17455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17457 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17458 $as_echo_n "checking for $ac_header... " >&6; }
17459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17460 $as_echo_n "(cached) " >&6
17462 ac_res=`eval 'as_val=${'$as_ac_Header'}
17463 $as_echo "$as_val"'`
17464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17465 $as_echo "$ac_res" >&6; }
17466 else
17467 # Is the header compilable?
17468 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17469 $as_echo_n "checking $ac_header usability... " >&6; }
17470 cat >conftest.$ac_ext <<_ACEOF
17471 /* confdefs.h. */
17472 _ACEOF
17473 cat confdefs.h >>conftest.$ac_ext
17474 cat >>conftest.$ac_ext <<_ACEOF
17475 /* end confdefs.h. */
17476 $ac_includes_default
17477 #include <$ac_header>
17478 _ACEOF
17479 rm -f conftest.$ac_objext
17480 if { (ac_try="$ac_compile"
17481 case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484 esac
17485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17486 $as_echo "$ac_try_echo") >&5
17487 (eval "$ac_compile") 2>conftest.er1
17488 ac_status=$?
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
17492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } && {
17494 test -z "$ac_c_werror_flag" ||
17495 test ! -s conftest.err
17496 } && test -s conftest.$ac_objext; then
17497 ac_header_compiler=yes
17498 else
17499 $as_echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 ac_header_compiler=no
17505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17506 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17507 $as_echo "$ac_header_compiler" >&6; }
17509 # Is the header present?
17510 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17511 $as_echo_n "checking $ac_header presence... " >&6; }
17512 cat >conftest.$ac_ext <<_ACEOF
17513 /* confdefs.h. */
17514 _ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h. */
17518 #include <$ac_header>
17519 _ACEOF
17520 if { (ac_try="$ac_cpp conftest.$ac_ext"
17521 case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17524 esac
17525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17526 $as_echo "$ac_try_echo") >&5
17527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17528 ac_status=$?
17529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
17532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } >/dev/null && {
17534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17535 test ! -s conftest.err
17536 }; then
17537 ac_header_preproc=yes
17538 else
17539 $as_echo "$as_me: failed program was:" >&5
17540 sed 's/^/| /' conftest.$ac_ext >&5
17542 ac_header_preproc=no
17545 rm -f conftest.err conftest.$ac_ext
17546 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17547 $as_echo "$ac_header_preproc" >&6; }
17549 # So? What about this header?
17550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17551 yes:no: )
17552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17553 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17555 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17556 ac_header_preproc=yes
17558 no:yes:* )
17559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17560 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17562 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17564 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17566 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17568 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17570 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17573 esac
17574 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17575 $as_echo_n "checking for $ac_header... " >&6; }
17576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17577 $as_echo_n "(cached) " >&6
17578 else
17579 eval "$as_ac_Header=\$ac_header_preproc"
17581 ac_res=`eval 'as_val=${'$as_ac_Header'}
17582 $as_echo "$as_val"'`
17583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17584 $as_echo "$ac_res" >&6; }
17587 if test `eval 'as_val=${'$as_ac_Header'}
17588 $as_echo "$as_val"'` = yes; then
17589 cat >>confdefs.h <<_ACEOF
17590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17591 _ACEOF
17595 done
17599 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17600 ## interlock access to the mail spool. The alternative is a lock file named
17601 ## /usr/spool/mail/$USER.lock.
17602 mail_lock=no
17603 case "$opsys" in
17604 aix4-2) mail_lock="lockf" ;;
17606 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
17608 ## On GNU/Linux systems, both methods are used by various mail programs.
17609 ## I assume most people are using newer mailers that have heard of flock.
17610 ## Change this if you need to.
17611 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17612 ## configure gets the right answers, and that means *NOT* using flock.
17613 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17614 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17615 ## Debian maintainer hasn't provided a clean fix for Emacs.
17616 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17617 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17618 ## correct logic. -- fx
17619 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17620 ## liblockfile is a Free Software replacement for libmail, used on
17621 ## Debian systems and elsewhere. -rfr.
17622 gnu-*)
17623 mail_lock="flock"
17624 if test $have_mail = yes || test $have_lockfile = yes; then
17625 test $ac_cv_header_maillock_h = yes && mail_lock=no
17628 esac
17630 BLESSMAIL_TARGET=
17631 case "$mail_lock" in
17632 flock)
17633 cat >>confdefs.h <<\_ACEOF
17634 #define MAIL_USE_FLOCK 1
17635 _ACEOF
17638 lockf)
17639 cat >>confdefs.h <<\_ACEOF
17640 #define MAIL_USE_LOCKF 1
17641 _ACEOF
17644 *) BLESSMAIL_TARGET="need-blessmail" ;;
17645 esac
17722 for ac_func in gethostname getdomainname dup2 \
17723 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17724 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17725 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17726 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17727 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17728 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17729 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17730 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17731 cfmakeraw cfsetspeed isnan copysign
17733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17734 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17735 $as_echo_n "checking for $ac_func... " >&6; }
17736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17737 $as_echo_n "(cached) " >&6
17738 else
17739 cat >conftest.$ac_ext <<_ACEOF
17740 /* confdefs.h. */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17747 #define $ac_func innocuous_$ac_func
17749 /* System header to define __stub macros and hopefully few prototypes,
17750 which can conflict with char $ac_func (); below.
17751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17752 <limits.h> exists even on freestanding compilers. */
17754 #ifdef __STDC__
17755 # include <limits.h>
17756 #else
17757 # include <assert.h>
17758 #endif
17760 #undef $ac_func
17762 /* Override any GCC internal prototype to avoid an error.
17763 Use char because int might match the return type of a GCC
17764 builtin and then its argument prototype would still apply. */
17765 #ifdef __cplusplus
17766 extern "C"
17767 #endif
17768 char $ac_func ();
17769 /* The GNU C library defines this for functions which it implements
17770 to always fail with ENOSYS. Some functions are actually named
17771 something starting with __ and the normal name is an alias. */
17772 #if defined __stub_$ac_func || defined __stub___$ac_func
17773 choke me
17774 #endif
17777 main ()
17779 return $ac_func ();
17781 return 0;
17783 _ACEOF
17784 rm -f conftest.$ac_objext conftest$ac_exeext
17785 if { (ac_try="$ac_link"
17786 case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17789 esac
17790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17791 $as_echo "$ac_try_echo") >&5
17792 (eval "$ac_link") 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } && {
17799 test -z "$ac_c_werror_flag" ||
17800 test ! -s conftest.err
17801 } && test -s conftest$ac_exeext && {
17802 test "$cross_compiling" = yes ||
17803 $as_test_x conftest$ac_exeext
17804 }; then
17805 eval "$as_ac_var=yes"
17806 else
17807 $as_echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17810 eval "$as_ac_var=no"
17813 rm -rf conftest.dSYM
17814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17815 conftest$ac_exeext conftest.$ac_ext
17817 ac_res=`eval 'as_val=${'$as_ac_var'}
17818 $as_echo "$as_val"'`
17819 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17820 $as_echo "$ac_res" >&6; }
17821 if test `eval 'as_val=${'$as_ac_var'}
17822 $as_echo "$as_val"'` = yes; then
17823 cat >>confdefs.h <<_ACEOF
17824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17825 _ACEOF
17828 done
17832 for ac_header in sys/un.h
17834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17837 $as_echo_n "checking for $ac_header... " >&6; }
17838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17839 $as_echo_n "(cached) " >&6
17841 ac_res=`eval 'as_val=${'$as_ac_Header'}
17842 $as_echo "$as_val"'`
17843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17844 $as_echo "$ac_res" >&6; }
17845 else
17846 # Is the header compilable?
17847 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17848 $as_echo_n "checking $ac_header usability... " >&6; }
17849 cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h. */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 $ac_includes_default
17856 #include <$ac_header>
17857 _ACEOF
17858 rm -f conftest.$ac_objext
17859 if { (ac_try="$ac_compile"
17860 case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863 esac
17864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17865 $as_echo "$ac_try_echo") >&5
17866 (eval "$ac_compile") 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } && {
17873 test -z "$ac_c_werror_flag" ||
17874 test ! -s conftest.err
17875 } && test -s conftest.$ac_objext; then
17876 ac_header_compiler=yes
17877 else
17878 $as_echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 ac_header_compiler=no
17884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17885 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17886 $as_echo "$ac_header_compiler" >&6; }
17888 # Is the header present?
17889 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17890 $as_echo_n "checking $ac_header presence... " >&6; }
17891 cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h. */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 #include <$ac_header>
17898 _ACEOF
17899 if { (ac_try="$ac_cpp conftest.$ac_ext"
17900 case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903 esac
17904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17905 $as_echo "$ac_try_echo") >&5
17906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17907 ac_status=$?
17908 grep -v '^ *+' conftest.er1 >conftest.err
17909 rm -f conftest.er1
17910 cat conftest.err >&5
17911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } >/dev/null && {
17913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17914 test ! -s conftest.err
17915 }; then
17916 ac_header_preproc=yes
17917 else
17918 $as_echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17921 ac_header_preproc=no
17924 rm -f conftest.err conftest.$ac_ext
17925 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17926 $as_echo "$ac_header_preproc" >&6; }
17928 # So? What about this header?
17929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17930 yes:no: )
17931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17932 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17934 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17935 ac_header_preproc=yes
17937 no:yes:* )
17938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17939 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17941 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17943 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17945 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17947 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17949 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17952 esac
17953 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17954 $as_echo_n "checking for $ac_header... " >&6; }
17955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17956 $as_echo_n "(cached) " >&6
17957 else
17958 eval "$as_ac_Header=\$ac_header_preproc"
17960 ac_res=`eval 'as_val=${'$as_ac_Header'}
17961 $as_echo "$as_val"'`
17962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17963 $as_echo "$ac_res" >&6; }
17966 if test `eval 'as_val=${'$as_ac_Header'}
17967 $as_echo "$as_val"'` = yes; then
17968 cat >>confdefs.h <<_ACEOF
17969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17970 _ACEOF
17974 done
17981 for ac_header in $ac_header_list
17983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17986 $as_echo_n "checking for $ac_header... " >&6; }
17987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17988 $as_echo_n "(cached) " >&6
17990 ac_res=`eval 'as_val=${'$as_ac_Header'}
17991 $as_echo "$as_val"'`
17992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17993 $as_echo "$ac_res" >&6; }
17994 else
17995 # Is the header compilable?
17996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17997 $as_echo_n "checking $ac_header usability... " >&6; }
17998 cat >conftest.$ac_ext <<_ACEOF
17999 /* confdefs.h. */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18004 $ac_includes_default
18005 #include <$ac_header>
18006 _ACEOF
18007 rm -f conftest.$ac_objext
18008 if { (ac_try="$ac_compile"
18009 case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18012 esac
18013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18014 $as_echo "$ac_try_echo") >&5
18015 (eval "$ac_compile") 2>conftest.er1
18016 ac_status=$?
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
18020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } && {
18022 test -z "$ac_c_werror_flag" ||
18023 test ! -s conftest.err
18024 } && test -s conftest.$ac_objext; then
18025 ac_header_compiler=yes
18026 else
18027 $as_echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18030 ac_header_compiler=no
18033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18035 $as_echo "$ac_header_compiler" >&6; }
18037 # Is the header present?
18038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18039 $as_echo_n "checking $ac_header presence... " >&6; }
18040 cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h. */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 #include <$ac_header>
18047 _ACEOF
18048 if { (ac_try="$ac_cpp conftest.$ac_ext"
18049 case "(($ac_try" in
18050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18051 *) ac_try_echo=$ac_try;;
18052 esac
18053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18054 $as_echo "$ac_try_echo") >&5
18055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18056 ac_status=$?
18057 grep -v '^ *+' conftest.er1 >conftest.err
18058 rm -f conftest.er1
18059 cat conftest.err >&5
18060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } >/dev/null && {
18062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18063 test ! -s conftest.err
18064 }; then
18065 ac_header_preproc=yes
18066 else
18067 $as_echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 ac_header_preproc=no
18073 rm -f conftest.err conftest.$ac_ext
18074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18075 $as_echo "$ac_header_preproc" >&6; }
18077 # So? What about this header?
18078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18079 yes:no: )
18080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18084 ac_header_preproc=yes
18086 no:yes:* )
18087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18090 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18094 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18101 esac
18102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18103 $as_echo_n "checking for $ac_header... " >&6; }
18104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18105 $as_echo_n "(cached) " >&6
18106 else
18107 eval "$as_ac_Header=\$ac_header_preproc"
18109 ac_res=`eval 'as_val=${'$as_ac_Header'}
18110 $as_echo "$as_val"'`
18111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18112 $as_echo "$ac_res" >&6; }
18115 if test `eval 'as_val=${'$as_ac_Header'}
18116 $as_echo "$as_val"'` = yes; then
18117 cat >>confdefs.h <<_ACEOF
18118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18119 _ACEOF
18123 done
18133 for ac_func in $ac_func_list
18135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18136 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18137 $as_echo_n "checking for $ac_func... " >&6; }
18138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18139 $as_echo_n "(cached) " >&6
18140 else
18141 cat >conftest.$ac_ext <<_ACEOF
18142 /* confdefs.h. */
18143 _ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h. */
18147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18149 #define $ac_func innocuous_$ac_func
18151 /* System header to define __stub macros and hopefully few prototypes,
18152 which can conflict with char $ac_func (); below.
18153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18154 <limits.h> exists even on freestanding compilers. */
18156 #ifdef __STDC__
18157 # include <limits.h>
18158 #else
18159 # include <assert.h>
18160 #endif
18162 #undef $ac_func
18164 /* Override any GCC internal prototype to avoid an error.
18165 Use char because int might match the return type of a GCC
18166 builtin and then its argument prototype would still apply. */
18167 #ifdef __cplusplus
18168 extern "C"
18169 #endif
18170 char $ac_func ();
18171 /* The GNU C library defines this for functions which it implements
18172 to always fail with ENOSYS. Some functions are actually named
18173 something starting with __ and the normal name is an alias. */
18174 #if defined __stub_$ac_func || defined __stub___$ac_func
18175 choke me
18176 #endif
18179 main ()
18181 return $ac_func ();
18183 return 0;
18185 _ACEOF
18186 rm -f conftest.$ac_objext conftest$ac_exeext
18187 if { (ac_try="$ac_link"
18188 case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18191 esac
18192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18193 $as_echo "$ac_try_echo") >&5
18194 (eval "$ac_link") 2>conftest.er1
18195 ac_status=$?
18196 grep -v '^ *+' conftest.er1 >conftest.err
18197 rm -f conftest.er1
18198 cat conftest.err >&5
18199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } && {
18201 test -z "$ac_c_werror_flag" ||
18202 test ! -s conftest.err
18203 } && test -s conftest$ac_exeext && {
18204 test "$cross_compiling" = yes ||
18205 $as_test_x conftest$ac_exeext
18206 }; then
18207 eval "$as_ac_var=yes"
18208 else
18209 $as_echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18212 eval "$as_ac_var=no"
18215 rm -rf conftest.dSYM
18216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18217 conftest$ac_exeext conftest.$ac_ext
18219 ac_res=`eval 'as_val=${'$as_ac_var'}
18220 $as_echo "$as_val"'`
18221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18222 $as_echo "$ac_res" >&6; }
18223 if test `eval 'as_val=${'$as_ac_var'}
18224 $as_echo "$as_val"'` = yes; then
18225 cat >>confdefs.h <<_ACEOF
18226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18227 _ACEOF
18230 done
18248 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18249 $as_echo_n "checking for working mktime... " >&6; }
18250 if test "${ac_cv_func_working_mktime+set}" = set; then
18251 $as_echo_n "(cached) " >&6
18252 else
18253 if test "$cross_compiling" = yes; then
18254 ac_cv_func_working_mktime=no
18255 else
18256 cat >conftest.$ac_ext <<_ACEOF
18257 /* confdefs.h. */
18258 _ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18262 /* Test program from Paul Eggert and Tony Leneis. */
18263 #ifdef TIME_WITH_SYS_TIME
18264 # include <sys/time.h>
18265 # include <time.h>
18266 #else
18267 # ifdef HAVE_SYS_TIME_H
18268 # include <sys/time.h>
18269 # else
18270 # include <time.h>
18271 # endif
18272 #endif
18274 #include <limits.h>
18275 #include <stdlib.h>
18277 #ifdef HAVE_UNISTD_H
18278 # include <unistd.h>
18279 #endif
18281 #ifndef HAVE_ALARM
18282 # define alarm(X) /* empty */
18283 #endif
18285 /* Work around redefinition to rpl_putenv by other config tests. */
18286 #undef putenv
18288 static time_t time_t_max;
18289 static time_t time_t_min;
18291 /* Values we'll use to set the TZ environment variable. */
18292 static char *tz_strings[] = {
18293 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18294 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18296 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18298 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18299 Based on a problem report from Andreas Jaeger. */
18300 static int
18301 spring_forward_gap ()
18303 /* glibc (up to about 1998-10-07) failed this test. */
18304 struct tm tm;
18306 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18307 instead of "TZ=America/Vancouver" in order to detect the bug even
18308 on systems that don't support the Olson extension, or don't have the
18309 full zoneinfo tables installed. */
18310 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18312 tm.tm_year = 98;
18313 tm.tm_mon = 3;
18314 tm.tm_mday = 5;
18315 tm.tm_hour = 2;
18316 tm.tm_min = 0;
18317 tm.tm_sec = 0;
18318 tm.tm_isdst = -1;
18319 return mktime (&tm) != (time_t) -1;
18322 static int
18323 mktime_test1 (now)
18324 time_t now;
18326 struct tm *lt;
18327 return ! (lt = localtime (&now)) || mktime (lt) == now;
18330 static int
18331 mktime_test (now)
18332 time_t now;
18334 return (mktime_test1 (now)
18335 && mktime_test1 ((time_t) (time_t_max - now))
18336 && mktime_test1 ((time_t) (time_t_min + now)));
18339 static int
18340 irix_6_4_bug ()
18342 /* Based on code from Ariel Faigon. */
18343 struct tm tm;
18344 tm.tm_year = 96;
18345 tm.tm_mon = 3;
18346 tm.tm_mday = 0;
18347 tm.tm_hour = 0;
18348 tm.tm_min = 0;
18349 tm.tm_sec = 0;
18350 tm.tm_isdst = -1;
18351 mktime (&tm);
18352 return tm.tm_mon == 2 && tm.tm_mday == 31;
18355 static int
18356 bigtime_test (j)
18357 int j;
18359 struct tm tm;
18360 time_t now;
18361 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18362 now = mktime (&tm);
18363 if (now != (time_t) -1)
18365 struct tm *lt = localtime (&now);
18366 if (! (lt
18367 && lt->tm_year == tm.tm_year
18368 && lt->tm_mon == tm.tm_mon
18369 && lt->tm_mday == tm.tm_mday
18370 && lt->tm_hour == tm.tm_hour
18371 && lt->tm_min == tm.tm_min
18372 && lt->tm_sec == tm.tm_sec
18373 && lt->tm_yday == tm.tm_yday
18374 && lt->tm_wday == tm.tm_wday
18375 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18376 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18377 return 0;
18379 return 1;
18382 static int
18383 year_2050_test ()
18385 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18386 ignoring leap seconds. */
18387 unsigned long int answer = 2527315200UL;
18389 struct tm tm;
18390 time_t t;
18391 tm.tm_year = 2050 - 1900;
18392 tm.tm_mon = 2 - 1;
18393 tm.tm_mday = 1;
18394 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18395 tm.tm_isdst = -1;
18397 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18398 instead of "TZ=America/Vancouver" in order to detect the bug even
18399 on systems that don't support the Olson extension, or don't have the
18400 full zoneinfo tables installed. */
18401 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18403 t = mktime (&tm);
18405 /* Check that the result is either a failure, or close enough
18406 to the correct answer that we can assume the discrepancy is
18407 due to leap seconds. */
18408 return (t == (time_t) -1
18409 || (0 < t && answer - 120 <= t && t <= answer + 120));
18413 main ()
18415 time_t t, delta;
18416 int i, j;
18418 /* This test makes some buggy mktime implementations loop.
18419 Give up after 60 seconds; a mktime slower than that
18420 isn't worth using anyway. */
18421 alarm (60);
18423 for (;;)
18425 t = (time_t_max << 1) + 1;
18426 if (t <= time_t_max)
18427 break;
18428 time_t_max = t;
18430 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18432 delta = time_t_max / 997; /* a suitable prime number */
18433 for (i = 0; i < N_STRINGS; i++)
18435 if (tz_strings[i])
18436 putenv (tz_strings[i]);
18438 for (t = 0; t <= time_t_max - delta; t += delta)
18439 if (! mktime_test (t))
18440 return 1;
18441 if (! (mktime_test ((time_t) 1)
18442 && mktime_test ((time_t) (60 * 60))
18443 && mktime_test ((time_t) (60 * 60 * 24))))
18444 return 1;
18446 for (j = 1; ; j <<= 1)
18447 if (! bigtime_test (j))
18448 return 1;
18449 else if (INT_MAX / 2 < j)
18450 break;
18451 if (! bigtime_test (INT_MAX))
18452 return 1;
18454 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18456 _ACEOF
18457 rm -f conftest$ac_exeext
18458 if { (ac_try="$ac_link"
18459 case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18462 esac
18463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18464 $as_echo "$ac_try_echo") >&5
18465 (eval "$ac_link") 2>&5
18466 ac_status=$?
18467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18469 { (case "(($ac_try" in
18470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471 *) ac_try_echo=$ac_try;;
18472 esac
18473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18474 $as_echo "$ac_try_echo") >&5
18475 (eval "$ac_try") 2>&5
18476 ac_status=$?
18477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 ac_cv_func_working_mktime=yes
18480 else
18481 $as_echo "$as_me: program exited with status $ac_status" >&5
18482 $as_echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ( exit $ac_status )
18486 ac_cv_func_working_mktime=no
18488 rm -rf conftest.dSYM
18489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18494 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18495 $as_echo "$ac_cv_func_working_mktime" >&6; }
18496 if test $ac_cv_func_working_mktime = no; then
18497 case " $LIBOBJS " in
18498 *" mktime.$ac_objext "* ) ;;
18499 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18501 esac
18505 if test "$ac_cv_func_working_mktime" = no; then
18507 cat >>confdefs.h <<\_ACEOF
18508 #define BROKEN_MKTIME 1
18509 _ACEOF
18513 ac_have_func=no # yes means we've found a way to get the load average.
18515 # Make sure getloadavg.c is where it belongs, at configure-time.
18516 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18517 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18518 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18519 { (exit 1); exit 1; }; }
18521 ac_save_LIBS=$LIBS
18523 # Check for getloadavg, but be sure not to touch the cache variable.
18524 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18525 $as_echo_n "checking for getloadavg... " >&6; }
18526 if test "${ac_cv_func_getloadavg+set}" = set; then
18527 $as_echo_n "(cached) " >&6
18528 else
18529 cat >conftest.$ac_ext <<_ACEOF
18530 /* confdefs.h. */
18531 _ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18535 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18537 #define getloadavg innocuous_getloadavg
18539 /* System header to define __stub macros and hopefully few prototypes,
18540 which can conflict with char getloadavg (); below.
18541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18542 <limits.h> exists even on freestanding compilers. */
18544 #ifdef __STDC__
18545 # include <limits.h>
18546 #else
18547 # include <assert.h>
18548 #endif
18550 #undef getloadavg
18552 /* Override any GCC internal prototype to avoid an error.
18553 Use char because int might match the return type of a GCC
18554 builtin and then its argument prototype would still apply. */
18555 #ifdef __cplusplus
18556 extern "C"
18557 #endif
18558 char getloadavg ();
18559 /* The GNU C library defines this for functions which it implements
18560 to always fail with ENOSYS. Some functions are actually named
18561 something starting with __ and the normal name is an alias. */
18562 #if defined __stub_getloadavg || defined __stub___getloadavg
18563 choke me
18564 #endif
18567 main ()
18569 return getloadavg ();
18571 return 0;
18573 _ACEOF
18574 rm -f conftest.$ac_objext conftest$ac_exeext
18575 if { (ac_try="$ac_link"
18576 case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18579 esac
18580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18581 $as_echo "$ac_try_echo") >&5
18582 (eval "$ac_link") 2>conftest.er1
18583 ac_status=$?
18584 grep -v '^ *+' conftest.er1 >conftest.err
18585 rm -f conftest.er1
18586 cat conftest.err >&5
18587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } && {
18589 test -z "$ac_c_werror_flag" ||
18590 test ! -s conftest.err
18591 } && test -s conftest$ac_exeext && {
18592 test "$cross_compiling" = yes ||
18593 $as_test_x conftest$ac_exeext
18594 }; then
18595 ac_cv_func_getloadavg=yes
18596 else
18597 $as_echo "$as_me: failed program was:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18600 ac_cv_func_getloadavg=no
18603 rm -rf conftest.dSYM
18604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18605 conftest$ac_exeext conftest.$ac_ext
18607 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18608 $as_echo "$ac_cv_func_getloadavg" >&6; }
18609 if test $ac_cv_func_getloadavg = yes; then
18610 exit 0
18611 else
18612 exit 1
18614 ) && ac_have_func=yes
18616 # On HPUX9, an unprivileged user can get load averages through this function.
18618 for ac_func in pstat_getdynamic
18620 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18621 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18622 $as_echo_n "checking for $ac_func... " >&6; }
18623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18624 $as_echo_n "(cached) " >&6
18625 else
18626 cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h. */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18634 #define $ac_func innocuous_$ac_func
18636 /* System header to define __stub macros and hopefully few prototypes,
18637 which can conflict with char $ac_func (); below.
18638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18639 <limits.h> exists even on freestanding compilers. */
18641 #ifdef __STDC__
18642 # include <limits.h>
18643 #else
18644 # include <assert.h>
18645 #endif
18647 #undef $ac_func
18649 /* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18652 #ifdef __cplusplus
18653 extern "C"
18654 #endif
18655 char $ac_func ();
18656 /* The GNU C library defines this for functions which it implements
18657 to always fail with ENOSYS. Some functions are actually named
18658 something starting with __ and the normal name is an alias. */
18659 #if defined __stub_$ac_func || defined __stub___$ac_func
18660 choke me
18661 #endif
18664 main ()
18666 return $ac_func ();
18668 return 0;
18670 _ACEOF
18671 rm -f conftest.$ac_objext conftest$ac_exeext
18672 if { (ac_try="$ac_link"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676 esac
18677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18678 $as_echo "$ac_try_echo") >&5
18679 (eval "$ac_link") 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } && {
18686 test -z "$ac_c_werror_flag" ||
18687 test ! -s conftest.err
18688 } && test -s conftest$ac_exeext && {
18689 test "$cross_compiling" = yes ||
18690 $as_test_x conftest$ac_exeext
18691 }; then
18692 eval "$as_ac_var=yes"
18693 else
18694 $as_echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18697 eval "$as_ac_var=no"
18700 rm -rf conftest.dSYM
18701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18702 conftest$ac_exeext conftest.$ac_ext
18704 ac_res=`eval 'as_val=${'$as_ac_var'}
18705 $as_echo "$as_val"'`
18706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18707 $as_echo "$ac_res" >&6; }
18708 if test `eval 'as_val=${'$as_ac_var'}
18709 $as_echo "$as_val"'` = yes; then
18710 cat >>confdefs.h <<_ACEOF
18711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18712 _ACEOF
18715 done
18718 # Solaris has libkstat which does not require root.
18720 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18721 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18722 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18723 $as_echo_n "(cached) " >&6
18724 else
18725 ac_check_lib_save_LIBS=$LIBS
18726 LIBS="-lkstat $LIBS"
18727 cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h. */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18734 /* Override any GCC internal prototype to avoid an error.
18735 Use char because int might match the return type of a GCC
18736 builtin and then its argument prototype would still apply. */
18737 #ifdef __cplusplus
18738 extern "C"
18739 #endif
18740 char kstat_open ();
18742 main ()
18744 return kstat_open ();
18746 return 0;
18748 _ACEOF
18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (ac_try="$ac_link"
18751 case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754 esac
18755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18756 $as_echo "$ac_try_echo") >&5
18757 (eval "$ac_link") 2>conftest.er1
18758 ac_status=$?
18759 grep -v '^ *+' conftest.er1 >conftest.err
18760 rm -f conftest.er1
18761 cat conftest.err >&5
18762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } && {
18764 test -z "$ac_c_werror_flag" ||
18765 test ! -s conftest.err
18766 } && test -s conftest$ac_exeext && {
18767 test "$cross_compiling" = yes ||
18768 $as_test_x conftest$ac_exeext
18769 }; then
18770 ac_cv_lib_kstat_kstat_open=yes
18771 else
18772 $as_echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18775 ac_cv_lib_kstat_kstat_open=no
18778 rm -rf conftest.dSYM
18779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18780 conftest$ac_exeext conftest.$ac_ext
18781 LIBS=$ac_check_lib_save_LIBS
18783 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18784 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18785 if test $ac_cv_lib_kstat_kstat_open = yes; then
18786 cat >>confdefs.h <<_ACEOF
18787 #define HAVE_LIBKSTAT 1
18788 _ACEOF
18790 LIBS="-lkstat $LIBS"
18794 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18796 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18797 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18798 # to get the right answer into the cache.
18799 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18800 if test $ac_have_func = no; then
18801 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18802 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18803 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18804 $as_echo_n "(cached) " >&6
18805 else
18806 ac_check_lib_save_LIBS=$LIBS
18807 LIBS="-lelf $LIBS"
18808 cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h. */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18815 /* Override any GCC internal prototype to avoid an error.
18816 Use char because int might match the return type of a GCC
18817 builtin and then its argument prototype would still apply. */
18818 #ifdef __cplusplus
18819 extern "C"
18820 #endif
18821 char elf_begin ();
18823 main ()
18825 return elf_begin ();
18827 return 0;
18829 _ACEOF
18830 rm -f conftest.$ac_objext conftest$ac_exeext
18831 if { (ac_try="$ac_link"
18832 case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835 esac
18836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18837 $as_echo "$ac_try_echo") >&5
18838 (eval "$ac_link") 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } && {
18845 test -z "$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18847 } && test -s conftest$ac_exeext && {
18848 test "$cross_compiling" = yes ||
18849 $as_test_x conftest$ac_exeext
18850 }; then
18851 ac_cv_lib_elf_elf_begin=yes
18852 else
18853 $as_echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18856 ac_cv_lib_elf_elf_begin=no
18859 rm -rf conftest.dSYM
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
18862 LIBS=$ac_check_lib_save_LIBS
18864 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18865 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18866 if test $ac_cv_lib_elf_elf_begin = yes; then
18867 LIBS="-lelf $LIBS"
18871 if test $ac_have_func = no; then
18872 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18873 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18874 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18875 $as_echo_n "(cached) " >&6
18876 else
18877 ac_check_lib_save_LIBS=$LIBS
18878 LIBS="-lkvm $LIBS"
18879 cat >conftest.$ac_ext <<_ACEOF
18880 /* confdefs.h. */
18881 _ACEOF
18882 cat confdefs.h >>conftest.$ac_ext
18883 cat >>conftest.$ac_ext <<_ACEOF
18884 /* end confdefs.h. */
18886 /* Override any GCC internal prototype to avoid an error.
18887 Use char because int might match the return type of a GCC
18888 builtin and then its argument prototype would still apply. */
18889 #ifdef __cplusplus
18890 extern "C"
18891 #endif
18892 char kvm_open ();
18894 main ()
18896 return kvm_open ();
18898 return 0;
18900 _ACEOF
18901 rm -f conftest.$ac_objext conftest$ac_exeext
18902 if { (ac_try="$ac_link"
18903 case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18906 esac
18907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18908 $as_echo "$ac_try_echo") >&5
18909 (eval "$ac_link") 2>conftest.er1
18910 ac_status=$?
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
18914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } && {
18916 test -z "$ac_c_werror_flag" ||
18917 test ! -s conftest.err
18918 } && test -s conftest$ac_exeext && {
18919 test "$cross_compiling" = yes ||
18920 $as_test_x conftest$ac_exeext
18921 }; then
18922 ac_cv_lib_kvm_kvm_open=yes
18923 else
18924 $as_echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18927 ac_cv_lib_kvm_kvm_open=no
18930 rm -rf conftest.dSYM
18931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18932 conftest$ac_exeext conftest.$ac_ext
18933 LIBS=$ac_check_lib_save_LIBS
18935 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18936 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18937 if test $ac_cv_lib_kvm_kvm_open = yes; then
18938 LIBS="-lkvm $LIBS"
18941 # Check for the 4.4BSD definition of getloadavg.
18942 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18943 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18944 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18945 $as_echo_n "(cached) " >&6
18946 else
18947 ac_check_lib_save_LIBS=$LIBS
18948 LIBS="-lutil $LIBS"
18949 cat >conftest.$ac_ext <<_ACEOF
18950 /* confdefs.h. */
18951 _ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h. */
18956 /* Override any GCC internal prototype to avoid an error.
18957 Use char because int might match the return type of a GCC
18958 builtin and then its argument prototype would still apply. */
18959 #ifdef __cplusplus
18960 extern "C"
18961 #endif
18962 char getloadavg ();
18964 main ()
18966 return getloadavg ();
18968 return 0;
18970 _ACEOF
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (ac_try="$ac_link"
18973 case "(($ac_try" in
18974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975 *) ac_try_echo=$ac_try;;
18976 esac
18977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18978 $as_echo "$ac_try_echo") >&5
18979 (eval "$ac_link") 2>conftest.er1
18980 ac_status=$?
18981 grep -v '^ *+' conftest.er1 >conftest.err
18982 rm -f conftest.er1
18983 cat conftest.err >&5
18984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } && {
18986 test -z "$ac_c_werror_flag" ||
18987 test ! -s conftest.err
18988 } && test -s conftest$ac_exeext && {
18989 test "$cross_compiling" = yes ||
18990 $as_test_x conftest$ac_exeext
18991 }; then
18992 ac_cv_lib_util_getloadavg=yes
18993 else
18994 $as_echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18997 ac_cv_lib_util_getloadavg=no
19000 rm -rf conftest.dSYM
19001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19002 conftest$ac_exeext conftest.$ac_ext
19003 LIBS=$ac_check_lib_save_LIBS
19005 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
19006 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19007 if test $ac_cv_lib_util_getloadavg = yes; then
19008 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19013 if test $ac_have_func = no; then
19014 # There is a commonly available library for RS/6000 AIX.
19015 # Since it is not a standard part of AIX, it might be installed locally.
19016 ac_getloadavg_LIBS=$LIBS
19017 LIBS="-L/usr/local/lib $LIBS"
19018 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
19019 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19020 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19021 $as_echo_n "(cached) " >&6
19022 else
19023 ac_check_lib_save_LIBS=$LIBS
19024 LIBS="-lgetloadavg $LIBS"
19025 cat >conftest.$ac_ext <<_ACEOF
19026 /* confdefs.h. */
19027 _ACEOF
19028 cat confdefs.h >>conftest.$ac_ext
19029 cat >>conftest.$ac_ext <<_ACEOF
19030 /* end confdefs.h. */
19032 /* Override any GCC internal prototype to avoid an error.
19033 Use char because int might match the return type of a GCC
19034 builtin and then its argument prototype would still apply. */
19035 #ifdef __cplusplus
19036 extern "C"
19037 #endif
19038 char getloadavg ();
19040 main ()
19042 return getloadavg ();
19044 return 0;
19046 _ACEOF
19047 rm -f conftest.$ac_objext conftest$ac_exeext
19048 if { (ac_try="$ac_link"
19049 case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19052 esac
19053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19054 $as_echo "$ac_try_echo") >&5
19055 (eval "$ac_link") 2>conftest.er1
19056 ac_status=$?
19057 grep -v '^ *+' conftest.er1 >conftest.err
19058 rm -f conftest.er1
19059 cat conftest.err >&5
19060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } && {
19062 test -z "$ac_c_werror_flag" ||
19063 test ! -s conftest.err
19064 } && test -s conftest$ac_exeext && {
19065 test "$cross_compiling" = yes ||
19066 $as_test_x conftest$ac_exeext
19067 }; then
19068 ac_cv_lib_getloadavg_getloadavg=yes
19069 else
19070 $as_echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19073 ac_cv_lib_getloadavg_getloadavg=no
19076 rm -rf conftest.dSYM
19077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19078 conftest$ac_exeext conftest.$ac_ext
19079 LIBS=$ac_check_lib_save_LIBS
19081 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19082 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19083 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19084 LIBS="-lgetloadavg $LIBS"
19085 else
19086 LIBS=$ac_getloadavg_LIBS
19091 # Make sure it is really in the library, if we think we found it,
19092 # otherwise set up the replacement function.
19094 for ac_func in getloadavg
19096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19097 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19098 $as_echo_n "checking for $ac_func... " >&6; }
19099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19100 $as_echo_n "(cached) " >&6
19101 else
19102 cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h. */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19110 #define $ac_func innocuous_$ac_func
19112 /* System header to define __stub macros and hopefully few prototypes,
19113 which can conflict with char $ac_func (); below.
19114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19115 <limits.h> exists even on freestanding compilers. */
19117 #ifdef __STDC__
19118 # include <limits.h>
19119 #else
19120 # include <assert.h>
19121 #endif
19123 #undef $ac_func
19125 /* Override any GCC internal prototype to avoid an error.
19126 Use char because int might match the return type of a GCC
19127 builtin and then its argument prototype would still apply. */
19128 #ifdef __cplusplus
19129 extern "C"
19130 #endif
19131 char $ac_func ();
19132 /* The GNU C library defines this for functions which it implements
19133 to always fail with ENOSYS. Some functions are actually named
19134 something starting with __ and the normal name is an alias. */
19135 #if defined __stub_$ac_func || defined __stub___$ac_func
19136 choke me
19137 #endif
19140 main ()
19142 return $ac_func ();
19144 return 0;
19146 _ACEOF
19147 rm -f conftest.$ac_objext conftest$ac_exeext
19148 if { (ac_try="$ac_link"
19149 case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19152 esac
19153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19154 $as_echo "$ac_try_echo") >&5
19155 (eval "$ac_link") 2>conftest.er1
19156 ac_status=$?
19157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
19160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } && {
19162 test -z "$ac_c_werror_flag" ||
19163 test ! -s conftest.err
19164 } && test -s conftest$ac_exeext && {
19165 test "$cross_compiling" = yes ||
19166 $as_test_x conftest$ac_exeext
19167 }; then
19168 eval "$as_ac_var=yes"
19169 else
19170 $as_echo "$as_me: failed program was:" >&5
19171 sed 's/^/| /' conftest.$ac_ext >&5
19173 eval "$as_ac_var=no"
19176 rm -rf conftest.dSYM
19177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19178 conftest$ac_exeext conftest.$ac_ext
19180 ac_res=`eval 'as_val=${'$as_ac_var'}
19181 $as_echo "$as_val"'`
19182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19183 $as_echo "$ac_res" >&6; }
19184 if test `eval 'as_val=${'$as_ac_var'}
19185 $as_echo "$as_val"'` = yes; then
19186 cat >>confdefs.h <<_ACEOF
19187 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19188 _ACEOF
19190 else
19191 case " $LIBOBJS " in
19192 *" getloadavg.$ac_objext "* ) ;;
19193 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19195 esac
19198 cat >>confdefs.h <<\_ACEOF
19199 #define C_GETLOADAVG 1
19200 _ACEOF
19202 # Figure out what our getloadavg.c needs.
19203 ac_have_func=no
19204 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19205 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19206 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19207 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19208 $as_echo_n "(cached) " >&6
19210 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19211 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19212 else
19213 # Is the header compilable?
19214 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19215 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19216 cat >conftest.$ac_ext <<_ACEOF
19217 /* confdefs.h. */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19222 $ac_includes_default
19223 #include <sys/dg_sys_info.h>
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19230 esac
19231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19232 $as_echo "$ac_try_echo") >&5
19233 (eval "$ac_compile") 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest.$ac_objext; then
19243 ac_header_compiler=yes
19244 else
19245 $as_echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19248 ac_header_compiler=no
19251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19253 $as_echo "$ac_header_compiler" >&6; }
19255 # Is the header present?
19256 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19257 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19258 cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h. */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19264 #include <sys/dg_sys_info.h>
19265 _ACEOF
19266 if { (ac_try="$ac_cpp conftest.$ac_ext"
19267 case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270 esac
19271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19272 $as_echo "$ac_try_echo") >&5
19273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19274 ac_status=$?
19275 grep -v '^ *+' conftest.er1 >conftest.err
19276 rm -f conftest.er1
19277 cat conftest.err >&5
19278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } >/dev/null && {
19280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19281 test ! -s conftest.err
19282 }; then
19283 ac_header_preproc=yes
19284 else
19285 $as_echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19288 ac_header_preproc=no
19291 rm -f conftest.err conftest.$ac_ext
19292 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19293 $as_echo "$ac_header_preproc" >&6; }
19295 # So? What about this header?
19296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19297 yes:no: )
19298 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19299 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19300 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19301 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19302 ac_header_preproc=yes
19304 no:yes:* )
19305 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19306 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19307 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19308 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19309 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19310 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19311 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19312 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19313 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19314 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19315 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19316 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19319 esac
19320 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19321 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19322 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19323 $as_echo_n "(cached) " >&6
19324 else
19325 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19327 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19328 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19331 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19332 ac_have_func=yes
19334 cat >>confdefs.h <<\_ACEOF
19335 #define DGUX 1
19336 _ACEOF
19339 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19340 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19341 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19342 $as_echo_n "(cached) " >&6
19343 else
19344 ac_check_lib_save_LIBS=$LIBS
19345 LIBS="-ldgc $LIBS"
19346 cat >conftest.$ac_ext <<_ACEOF
19347 /* confdefs.h. */
19348 _ACEOF
19349 cat confdefs.h >>conftest.$ac_ext
19350 cat >>conftest.$ac_ext <<_ACEOF
19351 /* end confdefs.h. */
19353 /* Override any GCC internal prototype to avoid an error.
19354 Use char because int might match the return type of a GCC
19355 builtin and then its argument prototype would still apply. */
19356 #ifdef __cplusplus
19357 extern "C"
19358 #endif
19359 char dg_sys_info ();
19361 main ()
19363 return dg_sys_info ();
19365 return 0;
19367 _ACEOF
19368 rm -f conftest.$ac_objext conftest$ac_exeext
19369 if { (ac_try="$ac_link"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373 esac
19374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19375 $as_echo "$ac_try_echo") >&5
19376 (eval "$ac_link") 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } && {
19383 test -z "$ac_c_werror_flag" ||
19384 test ! -s conftest.err
19385 } && test -s conftest$ac_exeext && {
19386 test "$cross_compiling" = yes ||
19387 $as_test_x conftest$ac_exeext
19388 }; then
19389 ac_cv_lib_dgc_dg_sys_info=yes
19390 else
19391 $as_echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19394 ac_cv_lib_dgc_dg_sys_info=no
19397 rm -rf conftest.dSYM
19398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19399 conftest$ac_exeext conftest.$ac_ext
19400 LIBS=$ac_check_lib_save_LIBS
19402 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19403 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19404 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19405 cat >>confdefs.h <<_ACEOF
19406 #define HAVE_LIBDGC 1
19407 _ACEOF
19409 LIBS="-ldgc $LIBS"
19417 if test "${ac_cv_header_locale_h+set}" = set; then
19418 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19419 $as_echo_n "checking for locale.h... " >&6; }
19420 if test "${ac_cv_header_locale_h+set}" = set; then
19421 $as_echo_n "(cached) " >&6
19423 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19424 $as_echo "$ac_cv_header_locale_h" >&6; }
19425 else
19426 # Is the header compilable?
19427 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19428 $as_echo_n "checking locale.h usability... " >&6; }
19429 cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h. */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435 $ac_includes_default
19436 #include <locale.h>
19437 _ACEOF
19438 rm -f conftest.$ac_objext
19439 if { (ac_try="$ac_compile"
19440 case "(($ac_try" in
19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19443 esac
19444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19445 $as_echo "$ac_try_echo") >&5
19446 (eval "$ac_compile") 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } && {
19453 test -z "$ac_c_werror_flag" ||
19454 test ! -s conftest.err
19455 } && test -s conftest.$ac_objext; then
19456 ac_header_compiler=yes
19457 else
19458 $as_echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19461 ac_header_compiler=no
19464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19465 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19466 $as_echo "$ac_header_compiler" >&6; }
19468 # Is the header present?
19469 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19470 $as_echo_n "checking locale.h presence... " >&6; }
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h. */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19477 #include <locale.h>
19478 _ACEOF
19479 if { (ac_try="$ac_cpp conftest.$ac_ext"
19480 case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19483 esac
19484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19485 $as_echo "$ac_try_echo") >&5
19486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19487 ac_status=$?
19488 grep -v '^ *+' conftest.er1 >conftest.err
19489 rm -f conftest.er1
19490 cat conftest.err >&5
19491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } >/dev/null && {
19493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19494 test ! -s conftest.err
19495 }; then
19496 ac_header_preproc=yes
19497 else
19498 $as_echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 ac_header_preproc=no
19504 rm -f conftest.err conftest.$ac_ext
19505 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19506 $as_echo "$ac_header_preproc" >&6; }
19508 # So? What about this header?
19509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19510 yes:no: )
19511 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19512 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19513 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19514 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19515 ac_header_preproc=yes
19517 no:yes:* )
19518 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19519 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19520 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19521 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19522 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19523 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19524 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19525 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19526 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19527 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19528 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19529 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19532 esac
19533 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19534 $as_echo_n "checking for locale.h... " >&6; }
19535 if test "${ac_cv_header_locale_h+set}" = set; then
19536 $as_echo_n "(cached) " >&6
19537 else
19538 ac_cv_header_locale_h=$ac_header_preproc
19540 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19541 $as_echo "$ac_cv_header_locale_h" >&6; }
19547 for ac_func in setlocale
19549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19550 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19551 $as_echo_n "checking for $ac_func... " >&6; }
19552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19553 $as_echo_n "(cached) " >&6
19554 else
19555 cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h. */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19563 #define $ac_func innocuous_$ac_func
19565 /* System header to define __stub macros and hopefully few prototypes,
19566 which can conflict with char $ac_func (); below.
19567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19568 <limits.h> exists even on freestanding compilers. */
19570 #ifdef __STDC__
19571 # include <limits.h>
19572 #else
19573 # include <assert.h>
19574 #endif
19576 #undef $ac_func
19578 /* Override any GCC internal prototype to avoid an error.
19579 Use char because int might match the return type of a GCC
19580 builtin and then its argument prototype would still apply. */
19581 #ifdef __cplusplus
19582 extern "C"
19583 #endif
19584 char $ac_func ();
19585 /* The GNU C library defines this for functions which it implements
19586 to always fail with ENOSYS. Some functions are actually named
19587 something starting with __ and the normal name is an alias. */
19588 #if defined __stub_$ac_func || defined __stub___$ac_func
19589 choke me
19590 #endif
19593 main ()
19595 return $ac_func ();
19597 return 0;
19599 _ACEOF
19600 rm -f conftest.$ac_objext conftest$ac_exeext
19601 if { (ac_try="$ac_link"
19602 case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605 esac
19606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19607 $as_echo "$ac_try_echo") >&5
19608 (eval "$ac_link") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest$ac_exeext && {
19618 test "$cross_compiling" = yes ||
19619 $as_test_x conftest$ac_exeext
19620 }; then
19621 eval "$as_ac_var=yes"
19622 else
19623 $as_echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 eval "$as_ac_var=no"
19629 rm -rf conftest.dSYM
19630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19631 conftest$ac_exeext conftest.$ac_ext
19633 ac_res=`eval 'as_val=${'$as_ac_var'}
19634 $as_echo "$as_val"'`
19635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19636 $as_echo "$ac_res" >&6; }
19637 if test `eval 'as_val=${'$as_ac_var'}
19638 $as_echo "$as_val"'` = yes; then
19639 cat >>confdefs.h <<_ACEOF
19640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19641 _ACEOF
19644 done
19647 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19648 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19649 # Irix 4.0.5F has the header but not the library.
19650 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19651 ac_have_func=yes
19653 cat >>confdefs.h <<\_ACEOF
19654 #define SVR4 1
19655 _ACEOF
19659 if test $ac_have_func = no; then
19660 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19661 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19662 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19663 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19664 $as_echo_n "(cached) " >&6
19666 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19667 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19668 else
19669 # Is the header compilable?
19670 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19671 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19672 cat >conftest.$ac_ext <<_ACEOF
19673 /* confdefs.h. */
19674 _ACEOF
19675 cat confdefs.h >>conftest.$ac_ext
19676 cat >>conftest.$ac_ext <<_ACEOF
19677 /* end confdefs.h. */
19678 $ac_includes_default
19679 #include <inq_stats/cpustats.h>
19680 _ACEOF
19681 rm -f conftest.$ac_objext
19682 if { (ac_try="$ac_compile"
19683 case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19686 esac
19687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19688 $as_echo "$ac_try_echo") >&5
19689 (eval "$ac_compile") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest.$ac_objext; then
19699 ac_header_compiler=yes
19700 else
19701 $as_echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19704 ac_header_compiler=no
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19709 $as_echo "$ac_header_compiler" >&6; }
19711 # Is the header present?
19712 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19713 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19714 cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h. */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 #include <inq_stats/cpustats.h>
19721 _ACEOF
19722 if { (ac_try="$ac_cpp conftest.$ac_ext"
19723 case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19726 esac
19727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19728 $as_echo "$ac_try_echo") >&5
19729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19730 ac_status=$?
19731 grep -v '^ *+' conftest.er1 >conftest.err
19732 rm -f conftest.er1
19733 cat conftest.err >&5
19734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } >/dev/null && {
19736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19737 test ! -s conftest.err
19738 }; then
19739 ac_header_preproc=yes
19740 else
19741 $as_echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 ac_header_preproc=no
19747 rm -f conftest.err conftest.$ac_ext
19748 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19749 $as_echo "$ac_header_preproc" >&6; }
19751 # So? What about this header?
19752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19753 yes:no: )
19754 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19755 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19756 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19757 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19758 ac_header_preproc=yes
19760 no:yes:* )
19761 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19762 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19763 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19764 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19765 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19766 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19767 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19768 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19769 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19770 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19771 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19772 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19775 esac
19776 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19777 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19778 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19779 $as_echo_n "(cached) " >&6
19780 else
19781 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19783 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19784 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19787 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19788 ac_have_func=yes
19790 cat >>confdefs.h <<\_ACEOF
19791 #define UMAX 1
19792 _ACEOF
19795 cat >>confdefs.h <<\_ACEOF
19796 #define UMAX4_3 1
19797 _ACEOF
19804 if test $ac_have_func = no; then
19805 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19806 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19807 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19808 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19809 $as_echo_n "(cached) " >&6
19811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19812 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19813 else
19814 # Is the header compilable?
19815 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19816 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19817 cat >conftest.$ac_ext <<_ACEOF
19818 /* confdefs.h. */
19819 _ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h. */
19823 $ac_includes_default
19824 #include <sys/cpustats.h>
19825 _ACEOF
19826 rm -f conftest.$ac_objext
19827 if { (ac_try="$ac_compile"
19828 case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19831 esac
19832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19833 $as_echo "$ac_try_echo") >&5
19834 (eval "$ac_compile") 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest.$ac_objext; then
19844 ac_header_compiler=yes
19845 else
19846 $as_echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 ac_header_compiler=no
19852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19853 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19854 $as_echo "$ac_header_compiler" >&6; }
19856 # Is the header present?
19857 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19858 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19859 cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h. */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19865 #include <sys/cpustats.h>
19866 _ACEOF
19867 if { (ac_try="$ac_cpp conftest.$ac_ext"
19868 case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871 esac
19872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19873 $as_echo "$ac_try_echo") >&5
19874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19875 ac_status=$?
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
19879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } >/dev/null && {
19881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 }; then
19884 ac_header_preproc=yes
19885 else
19886 $as_echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_header_preproc=no
19892 rm -f conftest.err conftest.$ac_ext
19893 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19894 $as_echo "$ac_header_preproc" >&6; }
19896 # So? What about this header?
19897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19898 yes:no: )
19899 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19900 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19901 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19902 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19903 ac_header_preproc=yes
19905 no:yes:* )
19906 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19907 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19908 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19909 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19910 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19911 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19912 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19913 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19914 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19915 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19916 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19917 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19920 esac
19921 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19922 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19923 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19924 $as_echo_n "(cached) " >&6
19925 else
19926 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19928 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19929 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19932 if test $ac_cv_header_sys_cpustats_h = yes; then
19933 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19934 #define UMAX 1
19935 _ACEOF
19942 if test $ac_have_func = no; then
19944 for ac_header in mach/mach.h
19946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19948 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19949 $as_echo_n "checking for $ac_header... " >&6; }
19950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19951 $as_echo_n "(cached) " >&6
19953 ac_res=`eval 'as_val=${'$as_ac_Header'}
19954 $as_echo "$as_val"'`
19955 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19956 $as_echo "$ac_res" >&6; }
19957 else
19958 # Is the header compilable?
19959 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19960 $as_echo_n "checking $ac_header usability... " >&6; }
19961 cat >conftest.$ac_ext <<_ACEOF
19962 /* confdefs.h. */
19963 _ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19967 $ac_includes_default
19968 #include <$ac_header>
19969 _ACEOF
19970 rm -f conftest.$ac_objext
19971 if { (ac_try="$ac_compile"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975 esac
19976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19977 $as_echo "$ac_try_echo") >&5
19978 (eval "$ac_compile") 2>conftest.er1
19979 ac_status=$?
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
19983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } && {
19985 test -z "$ac_c_werror_flag" ||
19986 test ! -s conftest.err
19987 } && test -s conftest.$ac_objext; then
19988 ac_header_compiler=yes
19989 else
19990 $as_echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19993 ac_header_compiler=no
19996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19997 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19998 $as_echo "$ac_header_compiler" >&6; }
20000 # Is the header present?
20001 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20002 $as_echo_n "checking $ac_header presence... " >&6; }
20003 cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h. */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20009 #include <$ac_header>
20010 _ACEOF
20011 if { (ac_try="$ac_cpp conftest.$ac_ext"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20015 esac
20016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20017 $as_echo "$ac_try_echo") >&5
20018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20019 ac_status=$?
20020 grep -v '^ *+' conftest.er1 >conftest.err
20021 rm -f conftest.er1
20022 cat conftest.err >&5
20023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } >/dev/null && {
20025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20026 test ! -s conftest.err
20027 }; then
20028 ac_header_preproc=yes
20029 else
20030 $as_echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_header_preproc=no
20036 rm -f conftest.err conftest.$ac_ext
20037 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20038 $as_echo "$ac_header_preproc" >&6; }
20040 # So? What about this header?
20041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20042 yes:no: )
20043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20044 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20046 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20047 ac_header_preproc=yes
20049 no:yes:* )
20050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20051 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20053 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20055 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20057 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20059 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20061 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20064 esac
20065 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20066 $as_echo_n "checking for $ac_header... " >&6; }
20067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20068 $as_echo_n "(cached) " >&6
20069 else
20070 eval "$as_ac_Header=\$ac_header_preproc"
20072 ac_res=`eval 'as_val=${'$as_ac_Header'}
20073 $as_echo "$as_val"'`
20074 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20075 $as_echo "$ac_res" >&6; }
20078 if test `eval 'as_val=${'$as_ac_Header'}
20079 $as_echo "$as_val"'` = yes; then
20080 cat >>confdefs.h <<_ACEOF
20081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20082 _ACEOF
20086 done
20091 for ac_header in nlist.h
20093 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20095 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20096 $as_echo_n "checking for $ac_header... " >&6; }
20097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20098 $as_echo_n "(cached) " >&6
20100 ac_res=`eval 'as_val=${'$as_ac_Header'}
20101 $as_echo "$as_val"'`
20102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20103 $as_echo "$ac_res" >&6; }
20104 else
20105 # Is the header compilable?
20106 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20107 $as_echo_n "checking $ac_header usability... " >&6; }
20108 cat >conftest.$ac_ext <<_ACEOF
20109 /* confdefs.h. */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h. */
20114 $ac_includes_default
20115 #include <$ac_header>
20116 _ACEOF
20117 rm -f conftest.$ac_objext
20118 if { (ac_try="$ac_compile"
20119 case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122 esac
20123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20124 $as_echo "$ac_try_echo") >&5
20125 (eval "$ac_compile") 2>conftest.er1
20126 ac_status=$?
20127 grep -v '^ *+' conftest.er1 >conftest.err
20128 rm -f conftest.er1
20129 cat conftest.err >&5
20130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } && {
20132 test -z "$ac_c_werror_flag" ||
20133 test ! -s conftest.err
20134 } && test -s conftest.$ac_objext; then
20135 ac_header_compiler=yes
20136 else
20137 $as_echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20140 ac_header_compiler=no
20143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20144 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20145 $as_echo "$ac_header_compiler" >&6; }
20147 # Is the header present?
20148 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20149 $as_echo_n "checking $ac_header presence... " >&6; }
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h. */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 #include <$ac_header>
20157 _ACEOF
20158 if { (ac_try="$ac_cpp conftest.$ac_ext"
20159 case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20162 esac
20163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20164 $as_echo "$ac_try_echo") >&5
20165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20166 ac_status=$?
20167 grep -v '^ *+' conftest.er1 >conftest.err
20168 rm -f conftest.er1
20169 cat conftest.err >&5
20170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } >/dev/null && {
20172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20173 test ! -s conftest.err
20174 }; then
20175 ac_header_preproc=yes
20176 else
20177 $as_echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_header_preproc=no
20183 rm -f conftest.err conftest.$ac_ext
20184 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20185 $as_echo "$ac_header_preproc" >&6; }
20187 # So? What about this header?
20188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20189 yes:no: )
20190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20191 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20194 ac_header_preproc=yes
20196 no:yes:* )
20197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20198 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20200 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20202 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20204 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20206 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20208 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20211 esac
20212 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20213 $as_echo_n "checking for $ac_header... " >&6; }
20214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20215 $as_echo_n "(cached) " >&6
20216 else
20217 eval "$as_ac_Header=\$ac_header_preproc"
20219 ac_res=`eval 'as_val=${'$as_ac_Header'}
20220 $as_echo "$as_val"'`
20221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20222 $as_echo "$ac_res" >&6; }
20225 if test `eval 'as_val=${'$as_ac_Header'}
20226 $as_echo "$as_val"'` = yes; then
20227 cat >>confdefs.h <<_ACEOF
20228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20229 _ACEOF
20230 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20231 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20232 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20233 $as_echo_n "(cached) " >&6
20234 else
20235 cat >conftest.$ac_ext <<_ACEOF
20236 /* confdefs.h. */
20237 _ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20241 #include <nlist.h>
20244 main ()
20246 static struct nlist ac_aggr;
20247 if (ac_aggr.n_un.n_name)
20248 return 0;
20250 return 0;
20252 _ACEOF
20253 rm -f conftest.$ac_objext
20254 if { (ac_try="$ac_compile"
20255 case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20258 esac
20259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20260 $as_echo "$ac_try_echo") >&5
20261 (eval "$ac_compile") 2>conftest.er1
20262 ac_status=$?
20263 grep -v '^ *+' conftest.er1 >conftest.err
20264 rm -f conftest.er1
20265 cat conftest.err >&5
20266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } && {
20268 test -z "$ac_c_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest.$ac_objext; then
20271 ac_cv_member_struct_nlist_n_un_n_name=yes
20272 else
20273 $as_echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h. */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 #include <nlist.h>
20285 main ()
20287 static struct nlist ac_aggr;
20288 if (sizeof ac_aggr.n_un.n_name)
20289 return 0;
20291 return 0;
20293 _ACEOF
20294 rm -f conftest.$ac_objext
20295 if { (ac_try="$ac_compile"
20296 case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20299 esac
20300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20301 $as_echo "$ac_try_echo") >&5
20302 (eval "$ac_compile") 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && {
20309 test -z "$ac_c_werror_flag" ||
20310 test ! -s conftest.err
20311 } && test -s conftest.$ac_objext; then
20312 ac_cv_member_struct_nlist_n_un_n_name=yes
20313 else
20314 $as_echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 ac_cv_member_struct_nlist_n_un_n_name=no
20320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20325 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20326 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20327 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20329 cat >>confdefs.h <<_ACEOF
20330 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20331 _ACEOF
20334 cat >>confdefs.h <<\_ACEOF
20335 #define NLIST_NAME_UNION 1
20336 _ACEOF
20343 done
20346 done
20349 # Some definitions of getloadavg require that the program be installed setgid.
20350 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20351 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20352 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20353 $as_echo_n "(cached) " >&6
20354 else
20355 cat >conftest.$ac_ext <<_ACEOF
20356 /* confdefs.h. */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h. */
20361 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20362 #ifdef LDAV_PRIVILEGED
20363 Yowza Am I SETGID yet
20364 #endif
20365 _ACEOF
20366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20367 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20368 ac_cv_func_getloadavg_setgid=yes
20369 else
20370 ac_cv_func_getloadavg_setgid=no
20372 rm -f conftest*
20375 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20376 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20377 if test $ac_cv_func_getloadavg_setgid = yes; then
20378 NEED_SETGID=true
20380 cat >>confdefs.h <<\_ACEOF
20381 #define GETLOADAVG_PRIVILEGED 1
20382 _ACEOF
20384 else
20385 NEED_SETGID=false
20388 if test $ac_cv_func_getloadavg_setgid = yes; then
20389 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20390 $as_echo_n "checking group of /dev/kmem... " >&6; }
20391 if test "${ac_cv_group_kmem+set}" = set; then
20392 $as_echo_n "(cached) " >&6
20393 else
20394 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20395 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20396 # If we got an error (system does not support symlinks), try without -L.
20397 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20398 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20399 | sed -ne 's/[ ][ ]*/ /g;
20400 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20401 / /s/.* //;p;'`
20404 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20405 $as_echo "$ac_cv_group_kmem" >&6; }
20406 KMEM_GROUP=$ac_cv_group_kmem
20408 if test "x$ac_save_LIBS" = x; then
20409 GETLOADAVG_LIBS=$LIBS
20410 else
20411 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20413 LIBS=$ac_save_LIBS
20417 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20418 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20419 if test "${ac_cv_sys_largefile_source+set}" = set; then
20420 $as_echo_n "(cached) " >&6
20421 else
20422 while :; do
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 #include <sys/types.h> /* for off_t */
20430 #include <stdio.h>
20432 main ()
20434 int (*fp) (FILE *, off_t, int) = fseeko;
20435 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20437 return 0;
20439 _ACEOF
20440 rm -f conftest.$ac_objext conftest$ac_exeext
20441 if { (ac_try="$ac_link"
20442 case "(($ac_try" in
20443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444 *) ac_try_echo=$ac_try;;
20445 esac
20446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20447 $as_echo "$ac_try_echo") >&5
20448 (eval "$ac_link") 2>conftest.er1
20449 ac_status=$?
20450 grep -v '^ *+' conftest.er1 >conftest.err
20451 rm -f conftest.er1
20452 cat conftest.err >&5
20453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } && {
20455 test -z "$ac_c_werror_flag" ||
20456 test ! -s conftest.err
20457 } && test -s conftest$ac_exeext && {
20458 test "$cross_compiling" = yes ||
20459 $as_test_x conftest$ac_exeext
20460 }; then
20461 ac_cv_sys_largefile_source=no; break
20462 else
20463 $as_echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20469 rm -rf conftest.dSYM
20470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20471 conftest$ac_exeext conftest.$ac_ext
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h. */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478 #define _LARGEFILE_SOURCE 1
20479 #include <sys/types.h> /* for off_t */
20480 #include <stdio.h>
20482 main ()
20484 int (*fp) (FILE *, off_t, int) = fseeko;
20485 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20487 return 0;
20489 _ACEOF
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495 esac
20496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20497 $as_echo "$ac_try_echo") >&5
20498 (eval "$ac_link") 2>conftest.er1
20499 ac_status=$?
20500 grep -v '^ *+' conftest.er1 >conftest.err
20501 rm -f conftest.er1
20502 cat conftest.err >&5
20503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest$ac_exeext && {
20508 test "$cross_compiling" = yes ||
20509 $as_test_x conftest$ac_exeext
20510 }; then
20511 ac_cv_sys_largefile_source=1; break
20512 else
20513 $as_echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20519 rm -rf conftest.dSYM
20520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20521 conftest$ac_exeext conftest.$ac_ext
20522 ac_cv_sys_largefile_source=unknown
20523 break
20524 done
20526 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20527 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20528 case $ac_cv_sys_largefile_source in #(
20529 no | unknown) ;;
20531 cat >>confdefs.h <<_ACEOF
20532 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20533 _ACEOF
20535 esac
20536 rm -rf conftest*
20538 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20539 # in glibc 2.1.3, but that breaks too many other things.
20540 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20541 if test $ac_cv_sys_largefile_source != unknown; then
20543 cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_FSEEKO 1
20545 _ACEOF
20550 # Configure getopt.
20551 # getopt.m4 serial 10
20553 # The getopt module assume you want GNU getopt, with getopt_long etc,
20554 # rather than vanilla POSIX getopt. This means your your code should
20555 # always include <getopt.h> for the getopt prototypes.
20567 # Prerequisites of lib/getopt*.
20572 GETOPT_H=
20574 for ac_header in getopt.h
20576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20579 $as_echo_n "checking for $ac_header... " >&6; }
20580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20581 $as_echo_n "(cached) " >&6
20583 ac_res=`eval 'as_val=${'$as_ac_Header'}
20584 $as_echo "$as_val"'`
20585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20586 $as_echo "$ac_res" >&6; }
20587 else
20588 # Is the header compilable?
20589 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20590 $as_echo_n "checking $ac_header usability... " >&6; }
20591 cat >conftest.$ac_ext <<_ACEOF
20592 /* confdefs.h. */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 $ac_includes_default
20598 #include <$ac_header>
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20607 $as_echo "$ac_try_echo") >&5
20608 (eval "$ac_compile") 2>conftest.er1
20609 ac_status=$?
20610 grep -v '^ *+' conftest.er1 >conftest.err
20611 rm -f conftest.er1
20612 cat conftest.err >&5
20613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } && {
20615 test -z "$ac_c_werror_flag" ||
20616 test ! -s conftest.err
20617 } && test -s conftest.$ac_objext; then
20618 ac_header_compiler=yes
20619 else
20620 $as_echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ac_header_compiler=no
20626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20628 $as_echo "$ac_header_compiler" >&6; }
20630 # Is the header present?
20631 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20632 $as_echo_n "checking $ac_header presence... " >&6; }
20633 cat >conftest.$ac_ext <<_ACEOF
20634 /* confdefs.h. */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20639 #include <$ac_header>
20640 _ACEOF
20641 if { (ac_try="$ac_cpp conftest.$ac_ext"
20642 case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20645 esac
20646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20647 $as_echo "$ac_try_echo") >&5
20648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20649 ac_status=$?
20650 grep -v '^ *+' conftest.er1 >conftest.err
20651 rm -f conftest.er1
20652 cat conftest.err >&5
20653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } >/dev/null && {
20655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 }; then
20658 ac_header_preproc=yes
20659 else
20660 $as_echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_header_preproc=no
20666 rm -f conftest.err conftest.$ac_ext
20667 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20668 $as_echo "$ac_header_preproc" >&6; }
20670 # So? What about this header?
20671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20672 yes:no: )
20673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20674 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20676 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20677 ac_header_preproc=yes
20679 no:yes:* )
20680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20681 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20683 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20685 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20687 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20689 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20691 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20694 esac
20695 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20696 $as_echo_n "checking for $ac_header... " >&6; }
20697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20698 $as_echo_n "(cached) " >&6
20699 else
20700 eval "$as_ac_Header=\$ac_header_preproc"
20702 ac_res=`eval 'as_val=${'$as_ac_Header'}
20703 $as_echo "$as_val"'`
20704 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20705 $as_echo "$ac_res" >&6; }
20708 if test `eval 'as_val=${'$as_ac_Header'}
20709 $as_echo "$as_val"'` = yes; then
20710 cat >>confdefs.h <<_ACEOF
20711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20712 _ACEOF
20714 else
20715 GETOPT_H=getopt.h
20718 done
20720 if test -z "$GETOPT_H"; then
20722 for ac_func in getopt_long_only
20724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20725 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20726 $as_echo_n "checking for $ac_func... " >&6; }
20727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20728 $as_echo_n "(cached) " >&6
20729 else
20730 cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h. */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20738 #define $ac_func innocuous_$ac_func
20740 /* System header to define __stub macros and hopefully few prototypes,
20741 which can conflict with char $ac_func (); below.
20742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20743 <limits.h> exists even on freestanding compilers. */
20745 #ifdef __STDC__
20746 # include <limits.h>
20747 #else
20748 # include <assert.h>
20749 #endif
20751 #undef $ac_func
20753 /* Override any GCC internal prototype to avoid an error.
20754 Use char because int might match the return type of a GCC
20755 builtin and then its argument prototype would still apply. */
20756 #ifdef __cplusplus
20757 extern "C"
20758 #endif
20759 char $ac_func ();
20760 /* The GNU C library defines this for functions which it implements
20761 to always fail with ENOSYS. Some functions are actually named
20762 something starting with __ and the normal name is an alias. */
20763 #if defined __stub_$ac_func || defined __stub___$ac_func
20764 choke me
20765 #endif
20768 main ()
20770 return $ac_func ();
20772 return 0;
20774 _ACEOF
20775 rm -f conftest.$ac_objext conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780 esac
20781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20782 $as_echo "$ac_try_echo") >&5
20783 (eval "$ac_link") 2>conftest.er1
20784 ac_status=$?
20785 grep -v '^ *+' conftest.er1 >conftest.err
20786 rm -f conftest.er1
20787 cat conftest.err >&5
20788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } && {
20790 test -z "$ac_c_werror_flag" ||
20791 test ! -s conftest.err
20792 } && test -s conftest$ac_exeext && {
20793 test "$cross_compiling" = yes ||
20794 $as_test_x conftest$ac_exeext
20795 }; then
20796 eval "$as_ac_var=yes"
20797 else
20798 $as_echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20801 eval "$as_ac_var=no"
20804 rm -rf conftest.dSYM
20805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20806 conftest$ac_exeext conftest.$ac_ext
20808 ac_res=`eval 'as_val=${'$as_ac_var'}
20809 $as_echo "$as_val"'`
20810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20811 $as_echo "$ac_res" >&6; }
20812 if test `eval 'as_val=${'$as_ac_var'}
20813 $as_echo "$as_val"'` = yes; then
20814 cat >>confdefs.h <<_ACEOF
20815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20816 _ACEOF
20818 else
20819 GETOPT_H=getopt.h
20821 done
20825 if test -z "$GETOPT_H"; then
20826 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20827 $as_echo_n "checking whether optreset is declared... " >&6; }
20828 if test "${ac_cv_have_decl_optreset+set}" = set; then
20829 $as_echo_n "(cached) " >&6
20830 else
20831 cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h. */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20837 #include <getopt.h>
20840 main ()
20842 #ifndef optreset
20843 (void) optreset;
20844 #endif
20847 return 0;
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20855 esac
20856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20857 $as_echo "$ac_try_echo") >&5
20858 (eval "$ac_compile") 2>conftest.er1
20859 ac_status=$?
20860 grep -v '^ *+' conftest.er1 >conftest.err
20861 rm -f conftest.er1
20862 cat conftest.err >&5
20863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } && {
20865 test -z "$ac_c_werror_flag" ||
20866 test ! -s conftest.err
20867 } && test -s conftest.$ac_objext; then
20868 ac_cv_have_decl_optreset=yes
20869 else
20870 $as_echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ac_cv_have_decl_optreset=no
20876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20878 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20879 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20880 if test $ac_cv_have_decl_optreset = yes; then
20881 GETOPT_H=getopt.h
20886 if test -z "$GETOPT_H"; then
20887 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20888 $as_echo_n "checking for working GNU getopt function... " >&6; }
20889 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20890 $as_echo_n "(cached) " >&6
20891 else
20892 if test "$cross_compiling" = yes; then
20893 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20894 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20895 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20896 $as_echo_n "(cached) " >&6
20897 else
20898 cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h. */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20904 #include <getopt.h>
20907 main ()
20909 #ifndef getopt_clip
20910 (void) getopt_clip;
20911 #endif
20914 return 0;
20916 _ACEOF
20917 rm -f conftest.$ac_objext
20918 if { (ac_try="$ac_compile"
20919 case "(($ac_try" in
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20922 esac
20923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20924 $as_echo "$ac_try_echo") >&5
20925 (eval "$ac_compile") 2>conftest.er1
20926 ac_status=$?
20927 grep -v '^ *+' conftest.er1 >conftest.err
20928 rm -f conftest.er1
20929 cat conftest.err >&5
20930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && {
20932 test -z "$ac_c_werror_flag" ||
20933 test ! -s conftest.err
20934 } && test -s conftest.$ac_objext; then
20935 ac_cv_have_decl_getopt_clip=yes
20936 else
20937 $as_echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_cv_have_decl_getopt_clip=no
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20945 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20946 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20947 if test $ac_cv_have_decl_getopt_clip = yes; then
20948 gl_cv_func_gnu_getopt=no
20949 else
20950 gl_cv_func_gnu_getopt=yes
20953 else
20954 cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h. */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <getopt.h>
20962 main ()
20965 char *myargv[3];
20966 myargv[0] = "conftest";
20967 myargv[1] = "-+";
20968 myargv[2] = 0;
20969 return getopt (2, myargv, "+a") != '?';
20972 return 0;
20974 _ACEOF
20975 rm -f conftest$ac_exeext
20976 if { (ac_try="$ac_link"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980 esac
20981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20982 $as_echo "$ac_try_echo") >&5
20983 (eval "$ac_link") 2>&5
20984 ac_status=$?
20985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20987 { (case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20990 esac
20991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20992 $as_echo "$ac_try_echo") >&5
20993 (eval "$ac_try") 2>&5
20994 ac_status=$?
20995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 gl_cv_func_gnu_getopt=yes
20998 else
20999 $as_echo "$as_me: program exited with status $ac_status" >&5
21000 $as_echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 ( exit $ac_status )
21004 gl_cv_func_gnu_getopt=no
21006 rm -rf conftest.dSYM
21007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21012 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
21013 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21014 if test "$gl_cv_func_gnu_getopt" = "no"; then
21015 GETOPT_H=getopt.h
21021 if test -n "$GETOPT_H"; then
21024 GETOPT_H=getopt.h
21026 cat >>confdefs.h <<\_ACEOF
21027 #define __GETOPT_PREFIX rpl_
21028 _ACEOF
21033 GETOPTOBJS='getopt.o getopt1.o'
21040 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
21041 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21042 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21043 $as_echo_n "(cached) " >&6
21044 else
21045 # Use it with a single arg.
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h. */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 $ac_includes_default
21054 main ()
21056 getpgrp (0);
21058 return 0;
21060 _ACEOF
21061 rm -f conftest.$ac_objext
21062 if { (ac_try="$ac_compile"
21063 case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066 esac
21067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21068 $as_echo "$ac_try_echo") >&5
21069 (eval "$ac_compile") 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } && {
21076 test -z "$ac_c_werror_flag" ||
21077 test ! -s conftest.err
21078 } && test -s conftest.$ac_objext; then
21079 ac_cv_func_getpgrp_void=no
21080 else
21081 $as_echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21084 ac_cv_func_getpgrp_void=yes
21087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21090 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
21091 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21092 if test $ac_cv_func_getpgrp_void = yes; then
21094 cat >>confdefs.h <<\_ACEOF
21095 #define GETPGRP_VOID 1
21096 _ACEOF
21102 for ac_func in strftime
21104 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21105 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21106 $as_echo_n "checking for $ac_func... " >&6; }
21107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21108 $as_echo_n "(cached) " >&6
21109 else
21110 cat >conftest.$ac_ext <<_ACEOF
21111 /* confdefs.h. */
21112 _ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21118 #define $ac_func innocuous_$ac_func
21120 /* System header to define __stub macros and hopefully few prototypes,
21121 which can conflict with char $ac_func (); below.
21122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21123 <limits.h> exists even on freestanding compilers. */
21125 #ifdef __STDC__
21126 # include <limits.h>
21127 #else
21128 # include <assert.h>
21129 #endif
21131 #undef $ac_func
21133 /* Override any GCC internal prototype to avoid an error.
21134 Use char because int might match the return type of a GCC
21135 builtin and then its argument prototype would still apply. */
21136 #ifdef __cplusplus
21137 extern "C"
21138 #endif
21139 char $ac_func ();
21140 /* The GNU C library defines this for functions which it implements
21141 to always fail with ENOSYS. Some functions are actually named
21142 something starting with __ and the normal name is an alias. */
21143 #if defined __stub_$ac_func || defined __stub___$ac_func
21144 choke me
21145 #endif
21148 main ()
21150 return $ac_func ();
21152 return 0;
21154 _ACEOF
21155 rm -f conftest.$ac_objext conftest$ac_exeext
21156 if { (ac_try="$ac_link"
21157 case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21160 esac
21161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21162 $as_echo "$ac_try_echo") >&5
21163 (eval "$ac_link") 2>conftest.er1
21164 ac_status=$?
21165 grep -v '^ *+' conftest.er1 >conftest.err
21166 rm -f conftest.er1
21167 cat conftest.err >&5
21168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } && {
21170 test -z "$ac_c_werror_flag" ||
21171 test ! -s conftest.err
21172 } && test -s conftest$ac_exeext && {
21173 test "$cross_compiling" = yes ||
21174 $as_test_x conftest$ac_exeext
21175 }; then
21176 eval "$as_ac_var=yes"
21177 else
21178 $as_echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 eval "$as_ac_var=no"
21184 rm -rf conftest.dSYM
21185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21186 conftest$ac_exeext conftest.$ac_ext
21188 ac_res=`eval 'as_val=${'$as_ac_var'}
21189 $as_echo "$as_val"'`
21190 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21191 $as_echo "$ac_res" >&6; }
21192 if test `eval 'as_val=${'$as_ac_var'}
21193 $as_echo "$as_val"'` = yes; then
21194 cat >>confdefs.h <<_ACEOF
21195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21196 _ACEOF
21198 else
21199 # strftime is in -lintl on SCO UNIX.
21200 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21201 $as_echo_n "checking for strftime in -lintl... " >&6; }
21202 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21203 $as_echo_n "(cached) " >&6
21204 else
21205 ac_check_lib_save_LIBS=$LIBS
21206 LIBS="-lintl $LIBS"
21207 cat >conftest.$ac_ext <<_ACEOF
21208 /* confdefs.h. */
21209 _ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h. */
21214 /* Override any GCC internal prototype to avoid an error.
21215 Use char because int might match the return type of a GCC
21216 builtin and then its argument prototype would still apply. */
21217 #ifdef __cplusplus
21218 extern "C"
21219 #endif
21220 char strftime ();
21222 main ()
21224 return strftime ();
21226 return 0;
21228 _ACEOF
21229 rm -f conftest.$ac_objext conftest$ac_exeext
21230 if { (ac_try="$ac_link"
21231 case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21234 esac
21235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21236 $as_echo "$ac_try_echo") >&5
21237 (eval "$ac_link") 2>conftest.er1
21238 ac_status=$?
21239 grep -v '^ *+' conftest.er1 >conftest.err
21240 rm -f conftest.er1
21241 cat conftest.err >&5
21242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } && {
21244 test -z "$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21246 } && test -s conftest$ac_exeext && {
21247 test "$cross_compiling" = yes ||
21248 $as_test_x conftest$ac_exeext
21249 }; then
21250 ac_cv_lib_intl_strftime=yes
21251 else
21252 $as_echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 ac_cv_lib_intl_strftime=no
21258 rm -rf conftest.dSYM
21259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21260 conftest$ac_exeext conftest.$ac_ext
21261 LIBS=$ac_check_lib_save_LIBS
21263 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21264 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21265 if test $ac_cv_lib_intl_strftime = yes; then
21266 cat >>confdefs.h <<\_ACEOF
21267 #define HAVE_STRFTIME 1
21268 _ACEOF
21270 LIBS="-lintl $LIBS"
21274 done
21277 # UNIX98 PTYs.
21279 for ac_func in grantpt
21281 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21282 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21283 $as_echo_n "checking for $ac_func... " >&6; }
21284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21285 $as_echo_n "(cached) " >&6
21286 else
21287 cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h. */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21295 #define $ac_func innocuous_$ac_func
21297 /* System header to define __stub macros and hopefully few prototypes,
21298 which can conflict with char $ac_func (); below.
21299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21300 <limits.h> exists even on freestanding compilers. */
21302 #ifdef __STDC__
21303 # include <limits.h>
21304 #else
21305 # include <assert.h>
21306 #endif
21308 #undef $ac_func
21310 /* Override any GCC internal prototype to avoid an error.
21311 Use char because int might match the return type of a GCC
21312 builtin and then its argument prototype would still apply. */
21313 #ifdef __cplusplus
21314 extern "C"
21315 #endif
21316 char $ac_func ();
21317 /* The GNU C library defines this for functions which it implements
21318 to always fail with ENOSYS. Some functions are actually named
21319 something starting with __ and the normal name is an alias. */
21320 #if defined __stub_$ac_func || defined __stub___$ac_func
21321 choke me
21322 #endif
21325 main ()
21327 return $ac_func ();
21329 return 0;
21331 _ACEOF
21332 rm -f conftest.$ac_objext conftest$ac_exeext
21333 if { (ac_try="$ac_link"
21334 case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21337 esac
21338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21339 $as_echo "$ac_try_echo") >&5
21340 (eval "$ac_link") 2>conftest.er1
21341 ac_status=$?
21342 grep -v '^ *+' conftest.er1 >conftest.err
21343 rm -f conftest.er1
21344 cat conftest.err >&5
21345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && {
21347 test -z "$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 } && test -s conftest$ac_exeext && {
21350 test "$cross_compiling" = yes ||
21351 $as_test_x conftest$ac_exeext
21352 }; then
21353 eval "$as_ac_var=yes"
21354 else
21355 $as_echo "$as_me: failed program was:" >&5
21356 sed 's/^/| /' conftest.$ac_ext >&5
21358 eval "$as_ac_var=no"
21361 rm -rf conftest.dSYM
21362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21363 conftest$ac_exeext conftest.$ac_ext
21365 ac_res=`eval 'as_val=${'$as_ac_var'}
21366 $as_echo "$as_val"'`
21367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21368 $as_echo "$ac_res" >&6; }
21369 if test `eval 'as_val=${'$as_ac_var'}
21370 $as_echo "$as_val"'` = yes; then
21371 cat >>confdefs.h <<_ACEOF
21372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21373 _ACEOF
21376 done
21379 # PTY-related GNU extensions.
21381 for ac_func in getpt
21383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21384 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21385 $as_echo_n "checking for $ac_func... " >&6; }
21386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21387 $as_echo_n "(cached) " >&6
21388 else
21389 cat >conftest.$ac_ext <<_ACEOF
21390 /* confdefs.h. */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21397 #define $ac_func innocuous_$ac_func
21399 /* System header to define __stub macros and hopefully few prototypes,
21400 which can conflict with char $ac_func (); below.
21401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21402 <limits.h> exists even on freestanding compilers. */
21404 #ifdef __STDC__
21405 # include <limits.h>
21406 #else
21407 # include <assert.h>
21408 #endif
21410 #undef $ac_func
21412 /* Override any GCC internal prototype to avoid an error.
21413 Use char because int might match the return type of a GCC
21414 builtin and then its argument prototype would still apply. */
21415 #ifdef __cplusplus
21416 extern "C"
21417 #endif
21418 char $ac_func ();
21419 /* The GNU C library defines this for functions which it implements
21420 to always fail with ENOSYS. Some functions are actually named
21421 something starting with __ and the normal name is an alias. */
21422 #if defined __stub_$ac_func || defined __stub___$ac_func
21423 choke me
21424 #endif
21427 main ()
21429 return $ac_func ();
21431 return 0;
21433 _ACEOF
21434 rm -f conftest.$ac_objext conftest$ac_exeext
21435 if { (ac_try="$ac_link"
21436 case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21439 esac
21440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21441 $as_echo "$ac_try_echo") >&5
21442 (eval "$ac_link") 2>conftest.er1
21443 ac_status=$?
21444 grep -v '^ *+' conftest.er1 >conftest.err
21445 rm -f conftest.er1
21446 cat conftest.err >&5
21447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } && {
21449 test -z "$ac_c_werror_flag" ||
21450 test ! -s conftest.err
21451 } && test -s conftest$ac_exeext && {
21452 test "$cross_compiling" = yes ||
21453 $as_test_x conftest$ac_exeext
21454 }; then
21455 eval "$as_ac_var=yes"
21456 else
21457 $as_echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21460 eval "$as_ac_var=no"
21463 rm -rf conftest.dSYM
21464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21465 conftest$ac_exeext conftest.$ac_ext
21467 ac_res=`eval 'as_val=${'$as_ac_var'}
21468 $as_echo "$as_val"'`
21469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21470 $as_echo "$ac_res" >&6; }
21471 if test `eval 'as_val=${'$as_ac_var'}
21472 $as_echo "$as_val"'` = yes; then
21473 cat >>confdefs.h <<_ACEOF
21474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21475 _ACEOF
21478 done
21481 # Check this now, so that we will NOT find the above functions in ncurses.
21482 # That is because we have not set up to link ncurses in lib-src.
21483 # It's better to believe a function is not available
21484 # than to expect to find it in ncurses.
21485 # Also we need tputs and friends to be able to build at all.
21486 have_tputs_et_al=true
21487 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21488 $as_echo_n "checking for library containing tputs... " >&6; }
21489 if test "${ac_cv_search_tputs+set}" = set; then
21490 $as_echo_n "(cached) " >&6
21491 else
21492 ac_func_search_save_LIBS=$LIBS
21493 cat >conftest.$ac_ext <<_ACEOF
21494 /* confdefs.h. */
21495 _ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21500 /* Override any GCC internal prototype to avoid an error.
21501 Use char because int might match the return type of a GCC
21502 builtin and then its argument prototype would still apply. */
21503 #ifdef __cplusplus
21504 extern "C"
21505 #endif
21506 char tputs ();
21508 main ()
21510 return tputs ();
21512 return 0;
21514 _ACEOF
21515 for ac_lib in '' ncurses terminfo termcap; do
21516 if test -z "$ac_lib"; then
21517 ac_res="none required"
21518 else
21519 ac_res=-l$ac_lib
21520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21522 rm -f conftest.$ac_objext conftest$ac_exeext
21523 if { (ac_try="$ac_link"
21524 case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21527 esac
21528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21529 $as_echo "$ac_try_echo") >&5
21530 (eval "$ac_link") 2>conftest.er1
21531 ac_status=$?
21532 grep -v '^ *+' conftest.er1 >conftest.err
21533 rm -f conftest.er1
21534 cat conftest.err >&5
21535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest$ac_exeext && {
21540 test "$cross_compiling" = yes ||
21541 $as_test_x conftest$ac_exeext
21542 }; then
21543 ac_cv_search_tputs=$ac_res
21544 else
21545 $as_echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21551 rm -rf conftest.dSYM
21552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21553 conftest$ac_exeext
21554 if test "${ac_cv_search_tputs+set}" = set; then
21555 break
21557 done
21558 if test "${ac_cv_search_tputs+set}" = set; then
21560 else
21561 ac_cv_search_tputs=no
21563 rm conftest.$ac_ext
21564 LIBS=$ac_func_search_save_LIBS
21566 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21567 $as_echo "$ac_cv_search_tputs" >&6; }
21568 ac_res=$ac_cv_search_tputs
21569 if test "$ac_res" != no; then
21570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21572 else
21573 have_tputs_et_al=false
21576 if test "$have_tputs_et_al" != true; then
21577 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21578 Maybe some development libraries/packages are missing? Try installing
21579 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21580 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21581 Maybe some development libraries/packages are missing? Try installing
21582 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21583 { (exit 1); exit 1; }; }
21585 # Must define this when any termcap library is found.
21587 cat >>confdefs.h <<\_ACEOF
21588 #define HAVE_LIBNCURSES 1
21589 _ACEOF
21591 ## FIXME This was the cpp logic, but I am not sure it is right.
21592 ## The above test has not necessarily found libncurses.
21593 HAVE_LIBNCURSES=yes
21595 ## Use terminfo instead of termcap?
21596 ## Note only system files NOT using terminfo are:
21597 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
21598 ## darwin|gnu without ncurses.
21599 TERMINFO=no
21600 LIBS_TERMCAP=
21601 case "$opsys" in
21602 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21603 ## hpux10-20: Use the system provided termcap(3) library.
21604 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21605 ## is necessary. Otherwise Emacs dumps core when run -nw.
21606 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21608 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21609 ## The ncurses library has been moved out of the System framework in
21610 ## Mac OS X 10.2. So if configure detects it, set the command-line
21611 ## option to use it.
21612 darwin|gnu*)
21613 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21614 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21615 TERMINFO=yes
21616 LIBS_TERMCAP="-lncurses"
21620 freebsd)
21621 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
21622 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21623 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21624 $as_echo_n "(cached) " >&6
21625 else
21626 cat >conftest.$ac_ext <<_ACEOF
21627 /* confdefs.h. */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21632 #include <osreldate.h>
21634 main ()
21636 #if __FreeBSD_version < 400000
21637 fail;
21638 #endif
21641 return 0;
21643 _ACEOF
21644 rm -f conftest.$ac_objext conftest$ac_exeext
21645 if { (ac_try="$ac_link"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649 esac
21650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21651 $as_echo "$ac_try_echo") >&5
21652 (eval "$ac_link") 2>conftest.er1
21653 ac_status=$?
21654 grep -v '^ *+' conftest.er1 >conftest.err
21655 rm -f conftest.er1
21656 cat conftest.err >&5
21657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); } && {
21659 test -z "$ac_c_werror_flag" ||
21660 test ! -s conftest.err
21661 } && test -s conftest$ac_exeext && {
21662 test "$cross_compiling" = yes ||
21663 $as_test_x conftest$ac_exeext
21664 }; then
21665 emacs_cv_freebsd_terminfo=yes
21666 else
21667 $as_echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21670 emacs_cv_freebsd_terminfo=no
21673 rm -rf conftest.dSYM
21674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21675 conftest$ac_exeext conftest.$ac_ext
21679 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
21680 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21682 if test $emacs_cv_freebsd_terminfo = yes; then
21683 TERMINFO=yes
21684 LIBS_TERMCAP="-lncurses"
21685 else
21686 LIBS_TERMCAP="-ltermcap"
21690 esac
21692 case "$opsys" in
21693 ## hpux: Make sure we get select from libc rather than from libcurses
21694 ## because libcurses on HPUX 10.10 has a broken version of select.
21695 ## We used to use -lc -lcurses, but this may be cleaner.
21696 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21698 openbsd) LIBS_TERMCAP="-lncurses" ;;
21700 ## Must use system termcap, if we use any termcap. It does special things.
21701 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21702 esac
21704 TERMCAP_OBJ=tparam.o
21705 if test $TERMINFO = yes; then
21707 cat >>confdefs.h <<\_ACEOF
21708 #define TERMINFO 1
21709 _ACEOF
21712 ## Default used to be -ltermcap. Add a case above if need something else.
21713 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
21715 TERMCAP_OBJ=terminfo.o
21721 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21722 resolv=no
21723 cat >conftest.$ac_ext <<_ACEOF
21724 /* confdefs.h. */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729 #include <netinet/in.h>
21730 #include <arpa/nameser.h>
21731 #include <resolv.h>
21733 main ()
21735 return res_init();
21737 return 0;
21739 _ACEOF
21740 rm -f conftest.$ac_objext conftest$ac_exeext
21741 if { (ac_try="$ac_link"
21742 case "(($ac_try" in
21743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744 *) ac_try_echo=$ac_try;;
21745 esac
21746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21747 $as_echo "$ac_try_echo") >&5
21748 (eval "$ac_link") 2>conftest.er1
21749 ac_status=$?
21750 grep -v '^ *+' conftest.er1 >conftest.err
21751 rm -f conftest.er1
21752 cat conftest.err >&5
21753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } && {
21755 test -z "$ac_c_werror_flag" ||
21756 test ! -s conftest.err
21757 } && test -s conftest$ac_exeext && {
21758 test "$cross_compiling" = yes ||
21759 $as_test_x conftest$ac_exeext
21760 }; then
21761 have_res_init=yes
21762 else
21763 $as_echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 have_res_init=no
21769 rm -rf conftest.dSYM
21770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21771 conftest$ac_exeext conftest.$ac_ext
21772 if test "$have_res_init" = no; then
21773 OLIBS="$LIBS"
21774 LIBS="$LIBS -lresolv"
21775 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21776 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21777 cat >conftest.$ac_ext <<_ACEOF
21778 /* confdefs.h. */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21783 #include <netinet/in.h>
21784 #include <arpa/nameser.h>
21785 #include <resolv.h>
21787 main ()
21789 return res_init();
21791 return 0;
21793 _ACEOF
21794 rm -f conftest.$ac_objext conftest$ac_exeext
21795 if { (ac_try="$ac_link"
21796 case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799 esac
21800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21801 $as_echo "$ac_try_echo") >&5
21802 (eval "$ac_link") 2>conftest.er1
21803 ac_status=$?
21804 grep -v '^ *+' conftest.er1 >conftest.err
21805 rm -f conftest.er1
21806 cat conftest.err >&5
21807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } && {
21809 test -z "$ac_c_werror_flag" ||
21810 test ! -s conftest.err
21811 } && test -s conftest$ac_exeext && {
21812 test "$cross_compiling" = yes ||
21813 $as_test_x conftest$ac_exeext
21814 }; then
21815 have_res_init=yes
21816 else
21817 $as_echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 have_res_init=no
21823 rm -rf conftest.dSYM
21824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21825 conftest$ac_exeext conftest.$ac_ext
21826 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21827 $as_echo "$have_res_init" >&6; }
21828 if test "$have_res_init" = yes ; then
21829 resolv=yes
21831 LIBS="$OLIBS"
21834 if test "$have_res_init" = yes; then
21836 cat >>confdefs.h <<\_ACEOF
21837 #define HAVE_RES_INIT 1
21838 _ACEOF
21842 # Do we need the Hesiod library to provide the support routines?
21843 LIBHESIOD=
21844 if test "$with_hesiod" != no ; then
21845 # Don't set $LIBS here -- see comments above. FIXME which comments?
21846 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21847 $as_echo_n "checking for res_send... " >&6; }
21848 if test "${ac_cv_func_res_send+set}" = set; then
21849 $as_echo_n "(cached) " >&6
21850 else
21851 cat >conftest.$ac_ext <<_ACEOF
21852 /* confdefs.h. */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21857 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21859 #define res_send innocuous_res_send
21861 /* System header to define __stub macros and hopefully few prototypes,
21862 which can conflict with char res_send (); below.
21863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21864 <limits.h> exists even on freestanding compilers. */
21866 #ifdef __STDC__
21867 # include <limits.h>
21868 #else
21869 # include <assert.h>
21870 #endif
21872 #undef res_send
21874 /* Override any GCC internal prototype to avoid an error.
21875 Use char because int might match the return type of a GCC
21876 builtin and then its argument prototype would still apply. */
21877 #ifdef __cplusplus
21878 extern "C"
21879 #endif
21880 char res_send ();
21881 /* The GNU C library defines this for functions which it implements
21882 to always fail with ENOSYS. Some functions are actually named
21883 something starting with __ and the normal name is an alias. */
21884 #if defined __stub_res_send || defined __stub___res_send
21885 choke me
21886 #endif
21889 main ()
21891 return res_send ();
21893 return 0;
21895 _ACEOF
21896 rm -f conftest.$ac_objext conftest$ac_exeext
21897 if { (ac_try="$ac_link"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21901 esac
21902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21903 $as_echo "$ac_try_echo") >&5
21904 (eval "$ac_link") 2>conftest.er1
21905 ac_status=$?
21906 grep -v '^ *+' conftest.er1 >conftest.err
21907 rm -f conftest.er1
21908 cat conftest.err >&5
21909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); } && {
21911 test -z "$ac_c_werror_flag" ||
21912 test ! -s conftest.err
21913 } && test -s conftest$ac_exeext && {
21914 test "$cross_compiling" = yes ||
21915 $as_test_x conftest$ac_exeext
21916 }; then
21917 ac_cv_func_res_send=yes
21918 else
21919 $as_echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21922 ac_cv_func_res_send=no
21925 rm -rf conftest.dSYM
21926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21927 conftest$ac_exeext conftest.$ac_ext
21929 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21930 $as_echo "$ac_cv_func_res_send" >&6; }
21931 if test $ac_cv_func_res_send = yes; then
21933 else
21934 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21935 $as_echo_n "checking for __res_send... " >&6; }
21936 if test "${ac_cv_func___res_send+set}" = set; then
21937 $as_echo_n "(cached) " >&6
21938 else
21939 cat >conftest.$ac_ext <<_ACEOF
21940 /* confdefs.h. */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21945 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21947 #define __res_send innocuous___res_send
21949 /* System header to define __stub macros and hopefully few prototypes,
21950 which can conflict with char __res_send (); below.
21951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21952 <limits.h> exists even on freestanding compilers. */
21954 #ifdef __STDC__
21955 # include <limits.h>
21956 #else
21957 # include <assert.h>
21958 #endif
21960 #undef __res_send
21962 /* Override any GCC internal prototype to avoid an error.
21963 Use char because int might match the return type of a GCC
21964 builtin and then its argument prototype would still apply. */
21965 #ifdef __cplusplus
21966 extern "C"
21967 #endif
21968 char __res_send ();
21969 /* The GNU C library defines this for functions which it implements
21970 to always fail with ENOSYS. Some functions are actually named
21971 something starting with __ and the normal name is an alias. */
21972 #if defined __stub___res_send || defined __stub_____res_send
21973 choke me
21974 #endif
21977 main ()
21979 return __res_send ();
21981 return 0;
21983 _ACEOF
21984 rm -f conftest.$ac_objext conftest$ac_exeext
21985 if { (ac_try="$ac_link"
21986 case "(($ac_try" in
21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988 *) ac_try_echo=$ac_try;;
21989 esac
21990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21991 $as_echo "$ac_try_echo") >&5
21992 (eval "$ac_link") 2>conftest.er1
21993 ac_status=$?
21994 grep -v '^ *+' conftest.er1 >conftest.err
21995 rm -f conftest.er1
21996 cat conftest.err >&5
21997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } && {
21999 test -z "$ac_c_werror_flag" ||
22000 test ! -s conftest.err
22001 } && test -s conftest$ac_exeext && {
22002 test "$cross_compiling" = yes ||
22003 $as_test_x conftest$ac_exeext
22004 }; then
22005 ac_cv_func___res_send=yes
22006 else
22007 $as_echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22010 ac_cv_func___res_send=no
22013 rm -rf conftest.dSYM
22014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22015 conftest$ac_exeext conftest.$ac_ext
22017 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
22018 $as_echo "$ac_cv_func___res_send" >&6; }
22019 if test $ac_cv_func___res_send = yes; then
22021 else
22022 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
22023 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22024 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22025 $as_echo_n "(cached) " >&6
22026 else
22027 ac_check_lib_save_LIBS=$LIBS
22028 LIBS="-lresolv $LIBS"
22029 cat >conftest.$ac_ext <<_ACEOF
22030 /* confdefs.h. */
22031 _ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h. */
22036 /* Override any GCC internal prototype to avoid an error.
22037 Use char because int might match the return type of a GCC
22038 builtin and then its argument prototype would still apply. */
22039 #ifdef __cplusplus
22040 extern "C"
22041 #endif
22042 char res_send ();
22044 main ()
22046 return res_send ();
22048 return 0;
22050 _ACEOF
22051 rm -f conftest.$ac_objext conftest$ac_exeext
22052 if { (ac_try="$ac_link"
22053 case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22056 esac
22057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22058 $as_echo "$ac_try_echo") >&5
22059 (eval "$ac_link") 2>conftest.er1
22060 ac_status=$?
22061 grep -v '^ *+' conftest.er1 >conftest.err
22062 rm -f conftest.er1
22063 cat conftest.err >&5
22064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); } && {
22066 test -z "$ac_c_werror_flag" ||
22067 test ! -s conftest.err
22068 } && test -s conftest$ac_exeext && {
22069 test "$cross_compiling" = yes ||
22070 $as_test_x conftest$ac_exeext
22071 }; then
22072 ac_cv_lib_resolv_res_send=yes
22073 else
22074 $as_echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22077 ac_cv_lib_resolv_res_send=no
22080 rm -rf conftest.dSYM
22081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22082 conftest$ac_exeext conftest.$ac_ext
22083 LIBS=$ac_check_lib_save_LIBS
22085 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
22086 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22087 if test $ac_cv_lib_resolv_res_send = yes; then
22088 resolv=yes
22089 else
22090 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
22091 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22092 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22093 $as_echo_n "(cached) " >&6
22094 else
22095 ac_check_lib_save_LIBS=$LIBS
22096 LIBS="-lresolv $LIBS"
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h. */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22104 /* Override any GCC internal prototype to avoid an error.
22105 Use char because int might match the return type of a GCC
22106 builtin and then its argument prototype would still apply. */
22107 #ifdef __cplusplus
22108 extern "C"
22109 #endif
22110 char __res_send ();
22112 main ()
22114 return __res_send ();
22116 return 0;
22118 _ACEOF
22119 rm -f conftest.$ac_objext conftest$ac_exeext
22120 if { (ac_try="$ac_link"
22121 case "(($ac_try" in
22122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123 *) ac_try_echo=$ac_try;;
22124 esac
22125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22126 $as_echo "$ac_try_echo") >&5
22127 (eval "$ac_link") 2>conftest.er1
22128 ac_status=$?
22129 grep -v '^ *+' conftest.er1 >conftest.err
22130 rm -f conftest.er1
22131 cat conftest.err >&5
22132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } && {
22134 test -z "$ac_c_werror_flag" ||
22135 test ! -s conftest.err
22136 } && test -s conftest$ac_exeext && {
22137 test "$cross_compiling" = yes ||
22138 $as_test_x conftest$ac_exeext
22139 }; then
22140 ac_cv_lib_resolv___res_send=yes
22141 else
22142 $as_echo "$as_me: failed program was:" >&5
22143 sed 's/^/| /' conftest.$ac_ext >&5
22145 ac_cv_lib_resolv___res_send=no
22148 rm -rf conftest.dSYM
22149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22150 conftest$ac_exeext conftest.$ac_ext
22151 LIBS=$ac_check_lib_save_LIBS
22153 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
22154 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22155 if test $ac_cv_lib_resolv___res_send = yes; then
22156 resolv=yes
22165 if test "$resolv" = yes ; then
22166 RESOLVLIB=-lresolv
22167 else
22168 RESOLVLIB=
22170 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
22171 $as_echo_n "checking for hes_getmailhost... " >&6; }
22172 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22173 $as_echo_n "(cached) " >&6
22174 else
22175 cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h. */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22183 #define hes_getmailhost innocuous_hes_getmailhost
22185 /* System header to define __stub macros and hopefully few prototypes,
22186 which can conflict with char hes_getmailhost (); below.
22187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22188 <limits.h> exists even on freestanding compilers. */
22190 #ifdef __STDC__
22191 # include <limits.h>
22192 #else
22193 # include <assert.h>
22194 #endif
22196 #undef hes_getmailhost
22198 /* Override any GCC internal prototype to avoid an error.
22199 Use char because int might match the return type of a GCC
22200 builtin and then its argument prototype would still apply. */
22201 #ifdef __cplusplus
22202 extern "C"
22203 #endif
22204 char hes_getmailhost ();
22205 /* The GNU C library defines this for functions which it implements
22206 to always fail with ENOSYS. Some functions are actually named
22207 something starting with __ and the normal name is an alias. */
22208 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22209 choke me
22210 #endif
22213 main ()
22215 return hes_getmailhost ();
22217 return 0;
22219 _ACEOF
22220 rm -f conftest.$ac_objext conftest$ac_exeext
22221 if { (ac_try="$ac_link"
22222 case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22225 esac
22226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22227 $as_echo "$ac_try_echo") >&5
22228 (eval "$ac_link") 2>conftest.er1
22229 ac_status=$?
22230 grep -v '^ *+' conftest.er1 >conftest.err
22231 rm -f conftest.er1
22232 cat conftest.err >&5
22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest$ac_exeext && {
22238 test "$cross_compiling" = yes ||
22239 $as_test_x conftest$ac_exeext
22240 }; then
22241 ac_cv_func_hes_getmailhost=yes
22242 else
22243 $as_echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22246 ac_cv_func_hes_getmailhost=no
22249 rm -rf conftest.dSYM
22250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22251 conftest$ac_exeext conftest.$ac_ext
22253 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22254 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22255 if test $ac_cv_func_hes_getmailhost = yes; then
22257 else
22258 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
22259 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22260 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22261 $as_echo_n "(cached) " >&6
22262 else
22263 ac_check_lib_save_LIBS=$LIBS
22264 LIBS="-lhesiod $RESOLVLIB $LIBS"
22265 cat >conftest.$ac_ext <<_ACEOF
22266 /* confdefs.h. */
22267 _ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22272 /* Override any GCC internal prototype to avoid an error.
22273 Use char because int might match the return type of a GCC
22274 builtin and then its argument prototype would still apply. */
22275 #ifdef __cplusplus
22276 extern "C"
22277 #endif
22278 char hes_getmailhost ();
22280 main ()
22282 return hes_getmailhost ();
22284 return 0;
22286 _ACEOF
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (ac_try="$ac_link"
22289 case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22292 esac
22293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22294 $as_echo "$ac_try_echo") >&5
22295 (eval "$ac_link") 2>conftest.er1
22296 ac_status=$?
22297 grep -v '^ *+' conftest.er1 >conftest.err
22298 rm -f conftest.er1
22299 cat conftest.err >&5
22300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } && {
22302 test -z "$ac_c_werror_flag" ||
22303 test ! -s conftest.err
22304 } && test -s conftest$ac_exeext && {
22305 test "$cross_compiling" = yes ||
22306 $as_test_x conftest$ac_exeext
22307 }; then
22308 ac_cv_lib_hesiod_hes_getmailhost=yes
22309 else
22310 $as_echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22313 ac_cv_lib_hesiod_hes_getmailhost=no
22316 rm -rf conftest.dSYM
22317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22318 conftest$ac_exeext conftest.$ac_ext
22319 LIBS=$ac_check_lib_save_LIBS
22321 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22322 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22323 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22324 hesiod=yes
22325 else
22332 if test x"$hesiod" = xyes; then
22334 cat >>confdefs.h <<\_ACEOF
22335 #define HAVE_LIBHESIOD 1
22336 _ACEOF
22338 LIBHESIOD=-lhesiod
22343 # Do we need libresolv (due to res_init or Hesiod)?
22344 if test "$resolv" = yes ; then
22346 cat >>confdefs.h <<\_ACEOF
22347 #define HAVE_LIBRESOLV 1
22348 _ACEOF
22350 LIBRESOLV=-lresolv
22351 else
22352 LIBRESOLV=
22356 # These tell us which Kerberos-related libraries to use.
22357 COM_ERRLIB=
22358 CRYPTOLIB=
22359 KRB5LIB=
22360 DESLIB=
22361 KRB4LIB=
22363 if test "${with_kerberos}" != no; then
22364 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22365 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22366 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22367 $as_echo_n "(cached) " >&6
22368 else
22369 ac_check_lib_save_LIBS=$LIBS
22370 LIBS="-lcom_err $LIBS"
22371 cat >conftest.$ac_ext <<_ACEOF
22372 /* confdefs.h. */
22373 _ACEOF
22374 cat confdefs.h >>conftest.$ac_ext
22375 cat >>conftest.$ac_ext <<_ACEOF
22376 /* end confdefs.h. */
22378 /* Override any GCC internal prototype to avoid an error.
22379 Use char because int might match the return type of a GCC
22380 builtin and then its argument prototype would still apply. */
22381 #ifdef __cplusplus
22382 extern "C"
22383 #endif
22384 char com_err ();
22386 main ()
22388 return com_err ();
22390 return 0;
22392 _ACEOF
22393 rm -f conftest.$ac_objext conftest$ac_exeext
22394 if { (ac_try="$ac_link"
22395 case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22398 esac
22399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22400 $as_echo "$ac_try_echo") >&5
22401 (eval "$ac_link") 2>conftest.er1
22402 ac_status=$?
22403 grep -v '^ *+' conftest.er1 >conftest.err
22404 rm -f conftest.er1
22405 cat conftest.err >&5
22406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } && {
22408 test -z "$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22410 } && test -s conftest$ac_exeext && {
22411 test "$cross_compiling" = yes ||
22412 $as_test_x conftest$ac_exeext
22413 }; then
22414 ac_cv_lib_com_err_com_err=yes
22415 else
22416 $as_echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22419 ac_cv_lib_com_err_com_err=no
22422 rm -rf conftest.dSYM
22423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22424 conftest$ac_exeext conftest.$ac_ext
22425 LIBS=$ac_check_lib_save_LIBS
22427 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22428 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22429 if test $ac_cv_lib_com_err_com_err = yes; then
22430 have_com_err=yes
22431 else
22432 have_com_err=no
22435 if test $have_com_err = yes; then
22436 COM_ERRLIB=-lcom_err
22437 LIBS="$COM_ERRLIB $LIBS"
22439 cat >>confdefs.h <<\_ACEOF
22440 #define HAVE_LIBCOM_ERR 1
22441 _ACEOF
22444 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22445 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22446 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22447 $as_echo_n "(cached) " >&6
22448 else
22449 ac_check_lib_save_LIBS=$LIBS
22450 LIBS="-lcrypto $LIBS"
22451 cat >conftest.$ac_ext <<_ACEOF
22452 /* confdefs.h. */
22453 _ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h. */
22458 /* Override any GCC internal prototype to avoid an error.
22459 Use char because int might match the return type of a GCC
22460 builtin and then its argument prototype would still apply. */
22461 #ifdef __cplusplus
22462 extern "C"
22463 #endif
22464 char mit_des_cbc_encrypt ();
22466 main ()
22468 return mit_des_cbc_encrypt ();
22470 return 0;
22472 _ACEOF
22473 rm -f conftest.$ac_objext conftest$ac_exeext
22474 if { (ac_try="$ac_link"
22475 case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22478 esac
22479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22480 $as_echo "$ac_try_echo") >&5
22481 (eval "$ac_link") 2>conftest.er1
22482 ac_status=$?
22483 grep -v '^ *+' conftest.er1 >conftest.err
22484 rm -f conftest.er1
22485 cat conftest.err >&5
22486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } && {
22488 test -z "$ac_c_werror_flag" ||
22489 test ! -s conftest.err
22490 } && test -s conftest$ac_exeext && {
22491 test "$cross_compiling" = yes ||
22492 $as_test_x conftest$ac_exeext
22493 }; then
22494 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22495 else
22496 $as_echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22499 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22502 rm -rf conftest.dSYM
22503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22504 conftest$ac_exeext conftest.$ac_ext
22505 LIBS=$ac_check_lib_save_LIBS
22507 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22508 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22509 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22510 have_crypto=yes
22511 else
22512 have_crypto=no
22515 if test $have_crypto = yes; then
22516 CRYPTOLIB=-lcrypto
22517 LIBS="$CRYPTOLIB $LIBS"
22519 cat >>confdefs.h <<\_ACEOF
22520 #define HAVE_LIBCRYPTO 1
22521 _ACEOF
22524 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22525 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22526 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22527 $as_echo_n "(cached) " >&6
22528 else
22529 ac_check_lib_save_LIBS=$LIBS
22530 LIBS="-lk5crypto $LIBS"
22531 cat >conftest.$ac_ext <<_ACEOF
22532 /* confdefs.h. */
22533 _ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h. */
22538 /* Override any GCC internal prototype to avoid an error.
22539 Use char because int might match the return type of a GCC
22540 builtin and then its argument prototype would still apply. */
22541 #ifdef __cplusplus
22542 extern "C"
22543 #endif
22544 char mit_des_cbc_encrypt ();
22546 main ()
22548 return mit_des_cbc_encrypt ();
22550 return 0;
22552 _ACEOF
22553 rm -f conftest.$ac_objext conftest$ac_exeext
22554 if { (ac_try="$ac_link"
22555 case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22558 esac
22559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22560 $as_echo "$ac_try_echo") >&5
22561 (eval "$ac_link") 2>conftest.er1
22562 ac_status=$?
22563 grep -v '^ *+' conftest.er1 >conftest.err
22564 rm -f conftest.er1
22565 cat conftest.err >&5
22566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } && {
22568 test -z "$ac_c_werror_flag" ||
22569 test ! -s conftest.err
22570 } && test -s conftest$ac_exeext && {
22571 test "$cross_compiling" = yes ||
22572 $as_test_x conftest$ac_exeext
22573 }; then
22574 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22575 else
22576 $as_echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22579 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22582 rm -rf conftest.dSYM
22583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22584 conftest$ac_exeext conftest.$ac_ext
22585 LIBS=$ac_check_lib_save_LIBS
22587 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22588 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22589 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22590 have_k5crypto=yes
22591 else
22592 have_k5crypto=no
22595 if test $have_k5crypto = yes; then
22596 CRYPTOLIB=-lk5crypto
22597 LIBS="$CRYPTOLIB $LIBS"
22599 cat >>confdefs.h <<\_ACEOF
22600 #define HAVE_LIBK5CRYPTO 1
22601 _ACEOF
22604 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22605 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22606 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22607 $as_echo_n "(cached) " >&6
22608 else
22609 ac_check_lib_save_LIBS=$LIBS
22610 LIBS="-lkrb5 $LIBS"
22611 cat >conftest.$ac_ext <<_ACEOF
22612 /* confdefs.h. */
22613 _ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h. */
22618 /* Override any GCC internal prototype to avoid an error.
22619 Use char because int might match the return type of a GCC
22620 builtin and then its argument prototype would still apply. */
22621 #ifdef __cplusplus
22622 extern "C"
22623 #endif
22624 char krb5_init_context ();
22626 main ()
22628 return krb5_init_context ();
22630 return 0;
22632 _ACEOF
22633 rm -f conftest.$ac_objext conftest$ac_exeext
22634 if { (ac_try="$ac_link"
22635 case "(($ac_try" in
22636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637 *) ac_try_echo=$ac_try;;
22638 esac
22639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22640 $as_echo "$ac_try_echo") >&5
22641 (eval "$ac_link") 2>conftest.er1
22642 ac_status=$?
22643 grep -v '^ *+' conftest.er1 >conftest.err
22644 rm -f conftest.er1
22645 cat conftest.err >&5
22646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); } && {
22648 test -z "$ac_c_werror_flag" ||
22649 test ! -s conftest.err
22650 } && test -s conftest$ac_exeext && {
22651 test "$cross_compiling" = yes ||
22652 $as_test_x conftest$ac_exeext
22653 }; then
22654 ac_cv_lib_krb5_krb5_init_context=yes
22655 else
22656 $as_echo "$as_me: failed program was:" >&5
22657 sed 's/^/| /' conftest.$ac_ext >&5
22659 ac_cv_lib_krb5_krb5_init_context=no
22662 rm -rf conftest.dSYM
22663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22664 conftest$ac_exeext conftest.$ac_ext
22665 LIBS=$ac_check_lib_save_LIBS
22667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22668 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22669 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22670 have_krb5=yes
22671 else
22672 have_krb5=no
22675 if test $have_krb5=yes; then
22676 KRB5LIB=-lkrb5
22677 LIBS="$KRB5LIB $LIBS"
22679 cat >>confdefs.h <<\_ACEOF
22680 #define HAVE_LIBKRB5 1
22681 _ACEOF
22684 if test "${with_kerberos5}" = no; then
22685 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22686 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22687 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22688 $as_echo_n "(cached) " >&6
22689 else
22690 ac_check_lib_save_LIBS=$LIBS
22691 LIBS="-ldes425 $LIBS"
22692 cat >conftest.$ac_ext <<_ACEOF
22693 /* confdefs.h. */
22694 _ACEOF
22695 cat confdefs.h >>conftest.$ac_ext
22696 cat >>conftest.$ac_ext <<_ACEOF
22697 /* end confdefs.h. */
22699 /* Override any GCC internal prototype to avoid an error.
22700 Use char because int might match the return type of a GCC
22701 builtin and then its argument prototype would still apply. */
22702 #ifdef __cplusplus
22703 extern "C"
22704 #endif
22705 char des_cbc_encrypt ();
22707 main ()
22709 return des_cbc_encrypt ();
22711 return 0;
22713 _ACEOF
22714 rm -f conftest.$ac_objext conftest$ac_exeext
22715 if { (ac_try="$ac_link"
22716 case "(($ac_try" in
22717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718 *) ac_try_echo=$ac_try;;
22719 esac
22720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22721 $as_echo "$ac_try_echo") >&5
22722 (eval "$ac_link") 2>conftest.er1
22723 ac_status=$?
22724 grep -v '^ *+' conftest.er1 >conftest.err
22725 rm -f conftest.er1
22726 cat conftest.err >&5
22727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728 (exit $ac_status); } && {
22729 test -z "$ac_c_werror_flag" ||
22730 test ! -s conftest.err
22731 } && test -s conftest$ac_exeext && {
22732 test "$cross_compiling" = yes ||
22733 $as_test_x conftest$ac_exeext
22734 }; then
22735 ac_cv_lib_des425_des_cbc_encrypt=yes
22736 else
22737 $as_echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22740 ac_cv_lib_des425_des_cbc_encrypt=no
22743 rm -rf conftest.dSYM
22744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22745 conftest$ac_exeext conftest.$ac_ext
22746 LIBS=$ac_check_lib_save_LIBS
22748 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22749 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22750 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22751 have_des425=yes
22752 else
22753 have_des425=no
22756 if test $have_des425 = yes; then
22757 DESLIB=-ldes425
22758 LIBS="$DESLIB $LIBS"
22760 cat >>confdefs.h <<\_ACEOF
22761 #define HAVE_LIBDES425 1
22762 _ACEOF
22764 else
22765 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22766 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22767 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22768 $as_echo_n "(cached) " >&6
22769 else
22770 ac_check_lib_save_LIBS=$LIBS
22771 LIBS="-ldes $LIBS"
22772 cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h. */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22779 /* Override any GCC internal prototype to avoid an error.
22780 Use char because int might match the return type of a GCC
22781 builtin and then its argument prototype would still apply. */
22782 #ifdef __cplusplus
22783 extern "C"
22784 #endif
22785 char des_cbc_encrypt ();
22787 main ()
22789 return des_cbc_encrypt ();
22791 return 0;
22793 _ACEOF
22794 rm -f conftest.$ac_objext conftest$ac_exeext
22795 if { (ac_try="$ac_link"
22796 case "(($ac_try" in
22797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798 *) ac_try_echo=$ac_try;;
22799 esac
22800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22801 $as_echo "$ac_try_echo") >&5
22802 (eval "$ac_link") 2>conftest.er1
22803 ac_status=$?
22804 grep -v '^ *+' conftest.er1 >conftest.err
22805 rm -f conftest.er1
22806 cat conftest.err >&5
22807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); } && {
22809 test -z "$ac_c_werror_flag" ||
22810 test ! -s conftest.err
22811 } && test -s conftest$ac_exeext && {
22812 test "$cross_compiling" = yes ||
22813 $as_test_x conftest$ac_exeext
22814 }; then
22815 ac_cv_lib_des_des_cbc_encrypt=yes
22816 else
22817 $as_echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22820 ac_cv_lib_des_des_cbc_encrypt=no
22823 rm -rf conftest.dSYM
22824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22825 conftest$ac_exeext conftest.$ac_ext
22826 LIBS=$ac_check_lib_save_LIBS
22828 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22829 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22830 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22831 have_des=yes
22832 else
22833 have_des=no
22836 if test $have_des = yes; then
22837 DESLIB=-ldes
22838 LIBS="$DESLIB $LIBS"
22840 cat >>confdefs.h <<\_ACEOF
22841 #define HAVE_LIBDES 1
22842 _ACEOF
22846 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22847 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22848 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22849 $as_echo_n "(cached) " >&6
22850 else
22851 ac_check_lib_save_LIBS=$LIBS
22852 LIBS="-lkrb4 $LIBS"
22853 cat >conftest.$ac_ext <<_ACEOF
22854 /* confdefs.h. */
22855 _ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h. */
22860 /* Override any GCC internal prototype to avoid an error.
22861 Use char because int might match the return type of a GCC
22862 builtin and then its argument prototype would still apply. */
22863 #ifdef __cplusplus
22864 extern "C"
22865 #endif
22866 char krb_get_cred ();
22868 main ()
22870 return krb_get_cred ();
22872 return 0;
22874 _ACEOF
22875 rm -f conftest.$ac_objext conftest$ac_exeext
22876 if { (ac_try="$ac_link"
22877 case "(($ac_try" in
22878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879 *) ac_try_echo=$ac_try;;
22880 esac
22881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22882 $as_echo "$ac_try_echo") >&5
22883 (eval "$ac_link") 2>conftest.er1
22884 ac_status=$?
22885 grep -v '^ *+' conftest.er1 >conftest.err
22886 rm -f conftest.er1
22887 cat conftest.err >&5
22888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest$ac_exeext && {
22893 test "$cross_compiling" = yes ||
22894 $as_test_x conftest$ac_exeext
22895 }; then
22896 ac_cv_lib_krb4_krb_get_cred=yes
22897 else
22898 $as_echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22901 ac_cv_lib_krb4_krb_get_cred=no
22904 rm -rf conftest.dSYM
22905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22906 conftest$ac_exeext conftest.$ac_ext
22907 LIBS=$ac_check_lib_save_LIBS
22909 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22910 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22911 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22912 have_krb4=yes
22913 else
22914 have_krb4=no
22917 if test $have_krb4 = yes; then
22918 KRB4LIB=-lkrb4
22919 LIBS="$KRB4LIB $LIBS"
22921 cat >>confdefs.h <<\_ACEOF
22922 #define HAVE_LIBKRB4 1
22923 _ACEOF
22925 else
22926 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22927 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22928 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22929 $as_echo_n "(cached) " >&6
22930 else
22931 ac_check_lib_save_LIBS=$LIBS
22932 LIBS="-lkrb $LIBS"
22933 cat >conftest.$ac_ext <<_ACEOF
22934 /* confdefs.h. */
22935 _ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h. */
22940 /* Override any GCC internal prototype to avoid an error.
22941 Use char because int might match the return type of a GCC
22942 builtin and then its argument prototype would still apply. */
22943 #ifdef __cplusplus
22944 extern "C"
22945 #endif
22946 char krb_get_cred ();
22948 main ()
22950 return krb_get_cred ();
22952 return 0;
22954 _ACEOF
22955 rm -f conftest.$ac_objext conftest$ac_exeext
22956 if { (ac_try="$ac_link"
22957 case "(($ac_try" in
22958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959 *) ac_try_echo=$ac_try;;
22960 esac
22961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22962 $as_echo "$ac_try_echo") >&5
22963 (eval "$ac_link") 2>conftest.er1
22964 ac_status=$?
22965 grep -v '^ *+' conftest.er1 >conftest.err
22966 rm -f conftest.er1
22967 cat conftest.err >&5
22968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } && {
22970 test -z "$ac_c_werror_flag" ||
22971 test ! -s conftest.err
22972 } && test -s conftest$ac_exeext && {
22973 test "$cross_compiling" = yes ||
22974 $as_test_x conftest$ac_exeext
22975 }; then
22976 ac_cv_lib_krb_krb_get_cred=yes
22977 else
22978 $as_echo "$as_me: failed program was:" >&5
22979 sed 's/^/| /' conftest.$ac_ext >&5
22981 ac_cv_lib_krb_krb_get_cred=no
22984 rm -rf conftest.dSYM
22985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22986 conftest$ac_exeext conftest.$ac_ext
22987 LIBS=$ac_check_lib_save_LIBS
22989 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22990 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22991 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22992 have_krb=yes
22993 else
22994 have_krb=no
22997 if test $have_krb = yes; then
22998 KRB4LIB=-lkrb
22999 LIBS="$KRB4LIB $LIBS"
23001 cat >>confdefs.h <<\_ACEOF
23002 #define HAVE_LIBKRB 1
23003 _ACEOF
23009 if test "${with_kerberos5}" != no; then
23011 for ac_header in krb5.h
23013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23015 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23016 $as_echo_n "checking for $ac_header... " >&6; }
23017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23018 $as_echo_n "(cached) " >&6
23020 ac_res=`eval 'as_val=${'$as_ac_Header'}
23021 $as_echo "$as_val"'`
23022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23023 $as_echo "$ac_res" >&6; }
23024 else
23025 # Is the header compilable?
23026 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23027 $as_echo_n "checking $ac_header usability... " >&6; }
23028 cat >conftest.$ac_ext <<_ACEOF
23029 /* confdefs.h. */
23030 _ACEOF
23031 cat confdefs.h >>conftest.$ac_ext
23032 cat >>conftest.$ac_ext <<_ACEOF
23033 /* end confdefs.h. */
23034 $ac_includes_default
23035 #include <$ac_header>
23036 _ACEOF
23037 rm -f conftest.$ac_objext
23038 if { (ac_try="$ac_compile"
23039 case "(($ac_try" in
23040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23041 *) ac_try_echo=$ac_try;;
23042 esac
23043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23044 $as_echo "$ac_try_echo") >&5
23045 (eval "$ac_compile") 2>conftest.er1
23046 ac_status=$?
23047 grep -v '^ *+' conftest.er1 >conftest.err
23048 rm -f conftest.er1
23049 cat conftest.err >&5
23050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } && {
23052 test -z "$ac_c_werror_flag" ||
23053 test ! -s conftest.err
23054 } && test -s conftest.$ac_objext; then
23055 ac_header_compiler=yes
23056 else
23057 $as_echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23060 ac_header_compiler=no
23063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23064 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23065 $as_echo "$ac_header_compiler" >&6; }
23067 # Is the header present?
23068 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23069 $as_echo_n "checking $ac_header presence... " >&6; }
23070 cat >conftest.$ac_ext <<_ACEOF
23071 /* confdefs.h. */
23072 _ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h. */
23076 #include <$ac_header>
23077 _ACEOF
23078 if { (ac_try="$ac_cpp conftest.$ac_ext"
23079 case "(($ac_try" in
23080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23081 *) ac_try_echo=$ac_try;;
23082 esac
23083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23084 $as_echo "$ac_try_echo") >&5
23085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23086 ac_status=$?
23087 grep -v '^ *+' conftest.er1 >conftest.err
23088 rm -f conftest.er1
23089 cat conftest.err >&5
23090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } >/dev/null && {
23092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23093 test ! -s conftest.err
23094 }; then
23095 ac_header_preproc=yes
23096 else
23097 $as_echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 ac_header_preproc=no
23103 rm -f conftest.err conftest.$ac_ext
23104 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23105 $as_echo "$ac_header_preproc" >&6; }
23107 # So? What about this header?
23108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23109 yes:no: )
23110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23111 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23113 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23114 ac_header_preproc=yes
23116 no:yes:* )
23117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23118 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23120 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23122 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23124 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23128 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23131 esac
23132 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23133 $as_echo_n "checking for $ac_header... " >&6; }
23134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23135 $as_echo_n "(cached) " >&6
23136 else
23137 eval "$as_ac_Header=\$ac_header_preproc"
23139 ac_res=`eval 'as_val=${'$as_ac_Header'}
23140 $as_echo "$as_val"'`
23141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23142 $as_echo "$ac_res" >&6; }
23145 if test `eval 'as_val=${'$as_ac_Header'}
23146 $as_echo "$as_val"'` = yes; then
23147 cat >>confdefs.h <<_ACEOF
23148 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23149 _ACEOF
23150 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
23151 $as_echo_n "checking for krb5_error.text... " >&6; }
23152 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23153 $as_echo_n "(cached) " >&6
23154 else
23155 cat >conftest.$ac_ext <<_ACEOF
23156 /* confdefs.h. */
23157 _ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h. */
23161 #include <krb5.h>
23164 main ()
23166 static krb5_error ac_aggr;
23167 if (ac_aggr.text)
23168 return 0;
23170 return 0;
23172 _ACEOF
23173 rm -f conftest.$ac_objext
23174 if { (ac_try="$ac_compile"
23175 case "(($ac_try" in
23176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23177 *) ac_try_echo=$ac_try;;
23178 esac
23179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23180 $as_echo "$ac_try_echo") >&5
23181 (eval "$ac_compile") 2>conftest.er1
23182 ac_status=$?
23183 grep -v '^ *+' conftest.er1 >conftest.err
23184 rm -f conftest.er1
23185 cat conftest.err >&5
23186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } && {
23188 test -z "$ac_c_werror_flag" ||
23189 test ! -s conftest.err
23190 } && test -s conftest.$ac_objext; then
23191 ac_cv_member_krb5_error_text=yes
23192 else
23193 $as_echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23196 cat >conftest.$ac_ext <<_ACEOF
23197 /* confdefs.h. */
23198 _ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h. */
23202 #include <krb5.h>
23205 main ()
23207 static krb5_error ac_aggr;
23208 if (sizeof ac_aggr.text)
23209 return 0;
23211 return 0;
23213 _ACEOF
23214 rm -f conftest.$ac_objext
23215 if { (ac_try="$ac_compile"
23216 case "(($ac_try" in
23217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23219 esac
23220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23221 $as_echo "$ac_try_echo") >&5
23222 (eval "$ac_compile") 2>conftest.er1
23223 ac_status=$?
23224 grep -v '^ *+' conftest.er1 >conftest.err
23225 rm -f conftest.er1
23226 cat conftest.err >&5
23227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); } && {
23229 test -z "$ac_c_werror_flag" ||
23230 test ! -s conftest.err
23231 } && test -s conftest.$ac_objext; then
23232 ac_cv_member_krb5_error_text=yes
23233 else
23234 $as_echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23237 ac_cv_member_krb5_error_text=no
23240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23246 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23247 if test $ac_cv_member_krb5_error_text = yes; then
23249 cat >>confdefs.h <<_ACEOF
23250 #define HAVE_KRB5_ERROR_TEXT 1
23251 _ACEOF
23255 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
23256 $as_echo_n "checking for krb5_error.e_text... " >&6; }
23257 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23258 $as_echo_n "(cached) " >&6
23259 else
23260 cat >conftest.$ac_ext <<_ACEOF
23261 /* confdefs.h. */
23262 _ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h. */
23266 #include <krb5.h>
23269 main ()
23271 static krb5_error ac_aggr;
23272 if (ac_aggr.e_text)
23273 return 0;
23275 return 0;
23277 _ACEOF
23278 rm -f conftest.$ac_objext
23279 if { (ac_try="$ac_compile"
23280 case "(($ac_try" in
23281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282 *) ac_try_echo=$ac_try;;
23283 esac
23284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23285 $as_echo "$ac_try_echo") >&5
23286 (eval "$ac_compile") 2>conftest.er1
23287 ac_status=$?
23288 grep -v '^ *+' conftest.er1 >conftest.err
23289 rm -f conftest.er1
23290 cat conftest.err >&5
23291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); } && {
23293 test -z "$ac_c_werror_flag" ||
23294 test ! -s conftest.err
23295 } && test -s conftest.$ac_objext; then
23296 ac_cv_member_krb5_error_e_text=yes
23297 else
23298 $as_echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23301 cat >conftest.$ac_ext <<_ACEOF
23302 /* confdefs.h. */
23303 _ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23307 #include <krb5.h>
23310 main ()
23312 static krb5_error ac_aggr;
23313 if (sizeof ac_aggr.e_text)
23314 return 0;
23316 return 0;
23318 _ACEOF
23319 rm -f conftest.$ac_objext
23320 if { (ac_try="$ac_compile"
23321 case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23324 esac
23325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23326 $as_echo "$ac_try_echo") >&5
23327 (eval "$ac_compile") 2>conftest.er1
23328 ac_status=$?
23329 grep -v '^ *+' conftest.er1 >conftest.err
23330 rm -f conftest.er1
23331 cat conftest.err >&5
23332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } && {
23334 test -z "$ac_c_werror_flag" ||
23335 test ! -s conftest.err
23336 } && test -s conftest.$ac_objext; then
23337 ac_cv_member_krb5_error_e_text=yes
23338 else
23339 $as_echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23342 ac_cv_member_krb5_error_e_text=no
23345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23351 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23352 if test $ac_cv_member_krb5_error_e_text = yes; then
23354 cat >>confdefs.h <<_ACEOF
23355 #define HAVE_KRB5_ERROR_E_TEXT 1
23356 _ACEOF
23363 done
23365 else
23367 for ac_header in des.h
23369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23372 $as_echo_n "checking for $ac_header... " >&6; }
23373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23374 $as_echo_n "(cached) " >&6
23376 ac_res=`eval 'as_val=${'$as_ac_Header'}
23377 $as_echo "$as_val"'`
23378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23379 $as_echo "$ac_res" >&6; }
23380 else
23381 # Is the header compilable?
23382 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23383 $as_echo_n "checking $ac_header usability... " >&6; }
23384 cat >conftest.$ac_ext <<_ACEOF
23385 /* confdefs.h. */
23386 _ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h. */
23390 $ac_includes_default
23391 #include <$ac_header>
23392 _ACEOF
23393 rm -f conftest.$ac_objext
23394 if { (ac_try="$ac_compile"
23395 case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23398 esac
23399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23400 $as_echo "$ac_try_echo") >&5
23401 (eval "$ac_compile") 2>conftest.er1
23402 ac_status=$?
23403 grep -v '^ *+' conftest.er1 >conftest.err
23404 rm -f conftest.er1
23405 cat conftest.err >&5
23406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } && {
23408 test -z "$ac_c_werror_flag" ||
23409 test ! -s conftest.err
23410 } && test -s conftest.$ac_objext; then
23411 ac_header_compiler=yes
23412 else
23413 $as_echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23416 ac_header_compiler=no
23419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23420 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23421 $as_echo "$ac_header_compiler" >&6; }
23423 # Is the header present?
23424 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23425 $as_echo_n "checking $ac_header presence... " >&6; }
23426 cat >conftest.$ac_ext <<_ACEOF
23427 /* confdefs.h. */
23428 _ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h. */
23432 #include <$ac_header>
23433 _ACEOF
23434 if { (ac_try="$ac_cpp conftest.$ac_ext"
23435 case "(($ac_try" in
23436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23437 *) ac_try_echo=$ac_try;;
23438 esac
23439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23440 $as_echo "$ac_try_echo") >&5
23441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23442 ac_status=$?
23443 grep -v '^ *+' conftest.er1 >conftest.err
23444 rm -f conftest.er1
23445 cat conftest.err >&5
23446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } >/dev/null && {
23448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23449 test ! -s conftest.err
23450 }; then
23451 ac_header_preproc=yes
23452 else
23453 $as_echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23456 ac_header_preproc=no
23459 rm -f conftest.err conftest.$ac_ext
23460 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23461 $as_echo "$ac_header_preproc" >&6; }
23463 # So? What about this header?
23464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23465 yes:no: )
23466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23467 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23469 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23470 ac_header_preproc=yes
23472 no:yes:* )
23473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23474 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23476 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23478 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23480 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23482 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23484 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23487 esac
23488 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23489 $as_echo_n "checking for $ac_header... " >&6; }
23490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23491 $as_echo_n "(cached) " >&6
23492 else
23493 eval "$as_ac_Header=\$ac_header_preproc"
23495 ac_res=`eval 'as_val=${'$as_ac_Header'}
23496 $as_echo "$as_val"'`
23497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23498 $as_echo "$ac_res" >&6; }
23501 if test `eval 'as_val=${'$as_ac_Header'}
23502 $as_echo "$as_val"'` = yes; then
23503 cat >>confdefs.h <<_ACEOF
23504 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23505 _ACEOF
23507 else
23509 for ac_header in kerberosIV/des.h
23511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23513 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23514 $as_echo_n "checking for $ac_header... " >&6; }
23515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23516 $as_echo_n "(cached) " >&6
23518 ac_res=`eval 'as_val=${'$as_ac_Header'}
23519 $as_echo "$as_val"'`
23520 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23521 $as_echo "$ac_res" >&6; }
23522 else
23523 # Is the header compilable?
23524 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23525 $as_echo_n "checking $ac_header usability... " >&6; }
23526 cat >conftest.$ac_ext <<_ACEOF
23527 /* confdefs.h. */
23528 _ACEOF
23529 cat confdefs.h >>conftest.$ac_ext
23530 cat >>conftest.$ac_ext <<_ACEOF
23531 /* end confdefs.h. */
23532 $ac_includes_default
23533 #include <$ac_header>
23534 _ACEOF
23535 rm -f conftest.$ac_objext
23536 if { (ac_try="$ac_compile"
23537 case "(($ac_try" in
23538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23539 *) ac_try_echo=$ac_try;;
23540 esac
23541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23542 $as_echo "$ac_try_echo") >&5
23543 (eval "$ac_compile") 2>conftest.er1
23544 ac_status=$?
23545 grep -v '^ *+' conftest.er1 >conftest.err
23546 rm -f conftest.er1
23547 cat conftest.err >&5
23548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); } && {
23550 test -z "$ac_c_werror_flag" ||
23551 test ! -s conftest.err
23552 } && test -s conftest.$ac_objext; then
23553 ac_header_compiler=yes
23554 else
23555 $as_echo "$as_me: failed program was:" >&5
23556 sed 's/^/| /' conftest.$ac_ext >&5
23558 ac_header_compiler=no
23561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23562 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23563 $as_echo "$ac_header_compiler" >&6; }
23565 # Is the header present?
23566 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23567 $as_echo_n "checking $ac_header presence... " >&6; }
23568 cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h. */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h. */
23574 #include <$ac_header>
23575 _ACEOF
23576 if { (ac_try="$ac_cpp conftest.$ac_ext"
23577 case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23580 esac
23581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23582 $as_echo "$ac_try_echo") >&5
23583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23584 ac_status=$?
23585 grep -v '^ *+' conftest.er1 >conftest.err
23586 rm -f conftest.er1
23587 cat conftest.err >&5
23588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); } >/dev/null && {
23590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23591 test ! -s conftest.err
23592 }; then
23593 ac_header_preproc=yes
23594 else
23595 $as_echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23598 ac_header_preproc=no
23601 rm -f conftest.err conftest.$ac_ext
23602 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23603 $as_echo "$ac_header_preproc" >&6; }
23605 # So? What about this header?
23606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23607 yes:no: )
23608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23609 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23612 ac_header_preproc=yes
23614 no:yes:* )
23615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23616 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23618 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23620 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23622 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23624 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23626 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23629 esac
23630 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23631 $as_echo_n "checking for $ac_header... " >&6; }
23632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23633 $as_echo_n "(cached) " >&6
23634 else
23635 eval "$as_ac_Header=\$ac_header_preproc"
23637 ac_res=`eval 'as_val=${'$as_ac_Header'}
23638 $as_echo "$as_val"'`
23639 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23640 $as_echo "$ac_res" >&6; }
23643 if test `eval 'as_val=${'$as_ac_Header'}
23644 $as_echo "$as_val"'` = yes; then
23645 cat >>confdefs.h <<_ACEOF
23646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23647 _ACEOF
23649 else
23651 for ac_header in kerberos/des.h
23653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23656 $as_echo_n "checking for $ac_header... " >&6; }
23657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23658 $as_echo_n "(cached) " >&6
23660 ac_res=`eval 'as_val=${'$as_ac_Header'}
23661 $as_echo "$as_val"'`
23662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23663 $as_echo "$ac_res" >&6; }
23664 else
23665 # Is the header compilable?
23666 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23667 $as_echo_n "checking $ac_header usability... " >&6; }
23668 cat >conftest.$ac_ext <<_ACEOF
23669 /* confdefs.h. */
23670 _ACEOF
23671 cat confdefs.h >>conftest.$ac_ext
23672 cat >>conftest.$ac_ext <<_ACEOF
23673 /* end confdefs.h. */
23674 $ac_includes_default
23675 #include <$ac_header>
23676 _ACEOF
23677 rm -f conftest.$ac_objext
23678 if { (ac_try="$ac_compile"
23679 case "(($ac_try" in
23680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681 *) ac_try_echo=$ac_try;;
23682 esac
23683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23684 $as_echo "$ac_try_echo") >&5
23685 (eval "$ac_compile") 2>conftest.er1
23686 ac_status=$?
23687 grep -v '^ *+' conftest.er1 >conftest.err
23688 rm -f conftest.er1
23689 cat conftest.err >&5
23690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); } && {
23692 test -z "$ac_c_werror_flag" ||
23693 test ! -s conftest.err
23694 } && test -s conftest.$ac_objext; then
23695 ac_header_compiler=yes
23696 else
23697 $as_echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23700 ac_header_compiler=no
23703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23705 $as_echo "$ac_header_compiler" >&6; }
23707 # Is the header present?
23708 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23709 $as_echo_n "checking $ac_header presence... " >&6; }
23710 cat >conftest.$ac_ext <<_ACEOF
23711 /* confdefs.h. */
23712 _ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h. */
23716 #include <$ac_header>
23717 _ACEOF
23718 if { (ac_try="$ac_cpp conftest.$ac_ext"
23719 case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23722 esac
23723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23724 $as_echo "$ac_try_echo") >&5
23725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23726 ac_status=$?
23727 grep -v '^ *+' conftest.er1 >conftest.err
23728 rm -f conftest.er1
23729 cat conftest.err >&5
23730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } >/dev/null && {
23732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23733 test ! -s conftest.err
23734 }; then
23735 ac_header_preproc=yes
23736 else
23737 $as_echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23740 ac_header_preproc=no
23743 rm -f conftest.err conftest.$ac_ext
23744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23745 $as_echo "$ac_header_preproc" >&6; }
23747 # So? What about this header?
23748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23749 yes:no: )
23750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23751 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23753 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23754 ac_header_preproc=yes
23756 no:yes:* )
23757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23758 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23760 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23762 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23764 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23768 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23771 esac
23772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23773 $as_echo_n "checking for $ac_header... " >&6; }
23774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23775 $as_echo_n "(cached) " >&6
23776 else
23777 eval "$as_ac_Header=\$ac_header_preproc"
23779 ac_res=`eval 'as_val=${'$as_ac_Header'}
23780 $as_echo "$as_val"'`
23781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23782 $as_echo "$ac_res" >&6; }
23785 if test `eval 'as_val=${'$as_ac_Header'}
23786 $as_echo "$as_val"'` = yes; then
23787 cat >>confdefs.h <<_ACEOF
23788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23789 _ACEOF
23793 done
23797 done
23801 done
23804 for ac_header in krb.h
23806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23809 $as_echo_n "checking for $ac_header... " >&6; }
23810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23811 $as_echo_n "(cached) " >&6
23813 ac_res=`eval 'as_val=${'$as_ac_Header'}
23814 $as_echo "$as_val"'`
23815 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23816 $as_echo "$ac_res" >&6; }
23817 else
23818 # Is the header compilable?
23819 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23820 $as_echo_n "checking $ac_header usability... " >&6; }
23821 cat >conftest.$ac_ext <<_ACEOF
23822 /* confdefs.h. */
23823 _ACEOF
23824 cat confdefs.h >>conftest.$ac_ext
23825 cat >>conftest.$ac_ext <<_ACEOF
23826 /* end confdefs.h. */
23827 $ac_includes_default
23828 #include <$ac_header>
23829 _ACEOF
23830 rm -f conftest.$ac_objext
23831 if { (ac_try="$ac_compile"
23832 case "(($ac_try" in
23833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834 *) ac_try_echo=$ac_try;;
23835 esac
23836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23837 $as_echo "$ac_try_echo") >&5
23838 (eval "$ac_compile") 2>conftest.er1
23839 ac_status=$?
23840 grep -v '^ *+' conftest.er1 >conftest.err
23841 rm -f conftest.er1
23842 cat conftest.err >&5
23843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); } && {
23845 test -z "$ac_c_werror_flag" ||
23846 test ! -s conftest.err
23847 } && test -s conftest.$ac_objext; then
23848 ac_header_compiler=yes
23849 else
23850 $as_echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23853 ac_header_compiler=no
23856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23857 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23858 $as_echo "$ac_header_compiler" >&6; }
23860 # Is the header present?
23861 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23862 $as_echo_n "checking $ac_header presence... " >&6; }
23863 cat >conftest.$ac_ext <<_ACEOF
23864 /* confdefs.h. */
23865 _ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h. */
23869 #include <$ac_header>
23870 _ACEOF
23871 if { (ac_try="$ac_cpp conftest.$ac_ext"
23872 case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23875 esac
23876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23877 $as_echo "$ac_try_echo") >&5
23878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23879 ac_status=$?
23880 grep -v '^ *+' conftest.er1 >conftest.err
23881 rm -f conftest.er1
23882 cat conftest.err >&5
23883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } >/dev/null && {
23885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 }; then
23888 ac_header_preproc=yes
23889 else
23890 $as_echo "$as_me: failed program was:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23893 ac_header_preproc=no
23896 rm -f conftest.err conftest.$ac_ext
23897 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23898 $as_echo "$ac_header_preproc" >&6; }
23900 # So? What about this header?
23901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23902 yes:no: )
23903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23904 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23906 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23907 ac_header_preproc=yes
23909 no:yes:* )
23910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23911 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23913 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23915 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23917 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23919 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23921 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23924 esac
23925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23926 $as_echo_n "checking for $ac_header... " >&6; }
23927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23928 $as_echo_n "(cached) " >&6
23929 else
23930 eval "$as_ac_Header=\$ac_header_preproc"
23932 ac_res=`eval 'as_val=${'$as_ac_Header'}
23933 $as_echo "$as_val"'`
23934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23935 $as_echo "$ac_res" >&6; }
23938 if test `eval 'as_val=${'$as_ac_Header'}
23939 $as_echo "$as_val"'` = yes; then
23940 cat >>confdefs.h <<_ACEOF
23941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23942 _ACEOF
23944 else
23946 for ac_header in kerberosIV/krb.h
23948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23950 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23951 $as_echo_n "checking for $ac_header... " >&6; }
23952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23953 $as_echo_n "(cached) " >&6
23955 ac_res=`eval 'as_val=${'$as_ac_Header'}
23956 $as_echo "$as_val"'`
23957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23958 $as_echo "$ac_res" >&6; }
23959 else
23960 # Is the header compilable?
23961 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23962 $as_echo_n "checking $ac_header usability... " >&6; }
23963 cat >conftest.$ac_ext <<_ACEOF
23964 /* confdefs.h. */
23965 _ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23969 $ac_includes_default
23970 #include <$ac_header>
23971 _ACEOF
23972 rm -f conftest.$ac_objext
23973 if { (ac_try="$ac_compile"
23974 case "(($ac_try" in
23975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976 *) ac_try_echo=$ac_try;;
23977 esac
23978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23979 $as_echo "$ac_try_echo") >&5
23980 (eval "$ac_compile") 2>conftest.er1
23981 ac_status=$?
23982 grep -v '^ *+' conftest.er1 >conftest.err
23983 rm -f conftest.er1
23984 cat conftest.err >&5
23985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); } && {
23987 test -z "$ac_c_werror_flag" ||
23988 test ! -s conftest.err
23989 } && test -s conftest.$ac_objext; then
23990 ac_header_compiler=yes
23991 else
23992 $as_echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23995 ac_header_compiler=no
23998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23999 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24000 $as_echo "$ac_header_compiler" >&6; }
24002 # Is the header present?
24003 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24004 $as_echo_n "checking $ac_header presence... " >&6; }
24005 cat >conftest.$ac_ext <<_ACEOF
24006 /* confdefs.h. */
24007 _ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h. */
24011 #include <$ac_header>
24012 _ACEOF
24013 if { (ac_try="$ac_cpp conftest.$ac_ext"
24014 case "(($ac_try" in
24015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24016 *) ac_try_echo=$ac_try;;
24017 esac
24018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24019 $as_echo "$ac_try_echo") >&5
24020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24021 ac_status=$?
24022 grep -v '^ *+' conftest.er1 >conftest.err
24023 rm -f conftest.er1
24024 cat conftest.err >&5
24025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); } >/dev/null && {
24027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24028 test ! -s conftest.err
24029 }; then
24030 ac_header_preproc=yes
24031 else
24032 $as_echo "$as_me: failed program was:" >&5
24033 sed 's/^/| /' conftest.$ac_ext >&5
24035 ac_header_preproc=no
24038 rm -f conftest.err conftest.$ac_ext
24039 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24040 $as_echo "$ac_header_preproc" >&6; }
24042 # So? What about this header?
24043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24044 yes:no: )
24045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24046 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24048 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24049 ac_header_preproc=yes
24051 no:yes:* )
24052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24053 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24055 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24057 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24059 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24063 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24066 esac
24067 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24068 $as_echo_n "checking for $ac_header... " >&6; }
24069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24070 $as_echo_n "(cached) " >&6
24071 else
24072 eval "$as_ac_Header=\$ac_header_preproc"
24074 ac_res=`eval 'as_val=${'$as_ac_Header'}
24075 $as_echo "$as_val"'`
24076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24077 $as_echo "$ac_res" >&6; }
24080 if test `eval 'as_val=${'$as_ac_Header'}
24081 $as_echo "$as_val"'` = yes; then
24082 cat >>confdefs.h <<_ACEOF
24083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24084 _ACEOF
24086 else
24088 for ac_header in kerberos/krb.h
24090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24092 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24093 $as_echo_n "checking for $ac_header... " >&6; }
24094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24095 $as_echo_n "(cached) " >&6
24097 ac_res=`eval 'as_val=${'$as_ac_Header'}
24098 $as_echo "$as_val"'`
24099 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24100 $as_echo "$ac_res" >&6; }
24101 else
24102 # Is the header compilable?
24103 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24104 $as_echo_n "checking $ac_header usability... " >&6; }
24105 cat >conftest.$ac_ext <<_ACEOF
24106 /* confdefs.h. */
24107 _ACEOF
24108 cat confdefs.h >>conftest.$ac_ext
24109 cat >>conftest.$ac_ext <<_ACEOF
24110 /* end confdefs.h. */
24111 $ac_includes_default
24112 #include <$ac_header>
24113 _ACEOF
24114 rm -f conftest.$ac_objext
24115 if { (ac_try="$ac_compile"
24116 case "(($ac_try" in
24117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24118 *) ac_try_echo=$ac_try;;
24119 esac
24120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24121 $as_echo "$ac_try_echo") >&5
24122 (eval "$ac_compile") 2>conftest.er1
24123 ac_status=$?
24124 grep -v '^ *+' conftest.er1 >conftest.err
24125 rm -f conftest.er1
24126 cat conftest.err >&5
24127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); } && {
24129 test -z "$ac_c_werror_flag" ||
24130 test ! -s conftest.err
24131 } && test -s conftest.$ac_objext; then
24132 ac_header_compiler=yes
24133 else
24134 $as_echo "$as_me: failed program was:" >&5
24135 sed 's/^/| /' conftest.$ac_ext >&5
24137 ac_header_compiler=no
24140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24141 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24142 $as_echo "$ac_header_compiler" >&6; }
24144 # Is the header present?
24145 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24146 $as_echo_n "checking $ac_header presence... " >&6; }
24147 cat >conftest.$ac_ext <<_ACEOF
24148 /* confdefs.h. */
24149 _ACEOF
24150 cat confdefs.h >>conftest.$ac_ext
24151 cat >>conftest.$ac_ext <<_ACEOF
24152 /* end confdefs.h. */
24153 #include <$ac_header>
24154 _ACEOF
24155 if { (ac_try="$ac_cpp conftest.$ac_ext"
24156 case "(($ac_try" in
24157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158 *) ac_try_echo=$ac_try;;
24159 esac
24160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24161 $as_echo "$ac_try_echo") >&5
24162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24163 ac_status=$?
24164 grep -v '^ *+' conftest.er1 >conftest.err
24165 rm -f conftest.er1
24166 cat conftest.err >&5
24167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } >/dev/null && {
24169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24170 test ! -s conftest.err
24171 }; then
24172 ac_header_preproc=yes
24173 else
24174 $as_echo "$as_me: failed program was:" >&5
24175 sed 's/^/| /' conftest.$ac_ext >&5
24177 ac_header_preproc=no
24180 rm -f conftest.err conftest.$ac_ext
24181 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24182 $as_echo "$ac_header_preproc" >&6; }
24184 # So? What about this header?
24185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24186 yes:no: )
24187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24188 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24190 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24191 ac_header_preproc=yes
24193 no:yes:* )
24194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24195 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24197 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24199 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24201 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24205 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24208 esac
24209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24210 $as_echo_n "checking for $ac_header... " >&6; }
24211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24212 $as_echo_n "(cached) " >&6
24213 else
24214 eval "$as_ac_Header=\$ac_header_preproc"
24216 ac_res=`eval 'as_val=${'$as_ac_Header'}
24217 $as_echo "$as_val"'`
24218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24219 $as_echo "$ac_res" >&6; }
24222 if test `eval 'as_val=${'$as_ac_Header'}
24223 $as_echo "$as_val"'` = yes; then
24224 cat >>confdefs.h <<_ACEOF
24225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24226 _ACEOF
24230 done
24234 done
24238 done
24242 for ac_header in com_err.h
24244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24247 $as_echo_n "checking for $ac_header... " >&6; }
24248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24249 $as_echo_n "(cached) " >&6
24251 ac_res=`eval 'as_val=${'$as_ac_Header'}
24252 $as_echo "$as_val"'`
24253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24254 $as_echo "$ac_res" >&6; }
24255 else
24256 # Is the header compilable?
24257 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24258 $as_echo_n "checking $ac_header usability... " >&6; }
24259 cat >conftest.$ac_ext <<_ACEOF
24260 /* confdefs.h. */
24261 _ACEOF
24262 cat confdefs.h >>conftest.$ac_ext
24263 cat >>conftest.$ac_ext <<_ACEOF
24264 /* end confdefs.h. */
24265 $ac_includes_default
24266 #include <$ac_header>
24267 _ACEOF
24268 rm -f conftest.$ac_objext
24269 if { (ac_try="$ac_compile"
24270 case "(($ac_try" in
24271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24272 *) ac_try_echo=$ac_try;;
24273 esac
24274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24275 $as_echo "$ac_try_echo") >&5
24276 (eval "$ac_compile") 2>conftest.er1
24277 ac_status=$?
24278 grep -v '^ *+' conftest.er1 >conftest.err
24279 rm -f conftest.er1
24280 cat conftest.err >&5
24281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); } && {
24283 test -z "$ac_c_werror_flag" ||
24284 test ! -s conftest.err
24285 } && test -s conftest.$ac_objext; then
24286 ac_header_compiler=yes
24287 else
24288 $as_echo "$as_me: failed program was:" >&5
24289 sed 's/^/| /' conftest.$ac_ext >&5
24291 ac_header_compiler=no
24294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24295 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24296 $as_echo "$ac_header_compiler" >&6; }
24298 # Is the header present?
24299 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24300 $as_echo_n "checking $ac_header presence... " >&6; }
24301 cat >conftest.$ac_ext <<_ACEOF
24302 /* confdefs.h. */
24303 _ACEOF
24304 cat confdefs.h >>conftest.$ac_ext
24305 cat >>conftest.$ac_ext <<_ACEOF
24306 /* end confdefs.h. */
24307 #include <$ac_header>
24308 _ACEOF
24309 if { (ac_try="$ac_cpp conftest.$ac_ext"
24310 case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24313 esac
24314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24315 $as_echo "$ac_try_echo") >&5
24316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24317 ac_status=$?
24318 grep -v '^ *+' conftest.er1 >conftest.err
24319 rm -f conftest.er1
24320 cat conftest.err >&5
24321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); } >/dev/null && {
24323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24324 test ! -s conftest.err
24325 }; then
24326 ac_header_preproc=yes
24327 else
24328 $as_echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24331 ac_header_preproc=no
24334 rm -f conftest.err conftest.$ac_ext
24335 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24336 $as_echo "$ac_header_preproc" >&6; }
24338 # So? What about this header?
24339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24340 yes:no: )
24341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24342 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24345 ac_header_preproc=yes
24347 no:yes:* )
24348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24349 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24351 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24353 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24355 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24357 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24359 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24362 esac
24363 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24364 $as_echo_n "checking for $ac_header... " >&6; }
24365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24366 $as_echo_n "(cached) " >&6
24367 else
24368 eval "$as_ac_Header=\$ac_header_preproc"
24370 ac_res=`eval 'as_val=${'$as_ac_Header'}
24371 $as_echo "$as_val"'`
24372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24373 $as_echo "$ac_res" >&6; }
24376 if test `eval 'as_val=${'$as_ac_Header'}
24377 $as_echo "$as_val"'` = yes; then
24378 cat >>confdefs.h <<_ACEOF
24379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24380 _ACEOF
24384 done
24394 # Solaris requires -lintl if you want strerror (which calls dgettext)
24395 # to return localized messages.
24397 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24398 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24399 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24400 $as_echo_n "(cached) " >&6
24401 else
24402 ac_check_lib_save_LIBS=$LIBS
24403 LIBS="-lintl $LIBS"
24404 cat >conftest.$ac_ext <<_ACEOF
24405 /* confdefs.h. */
24406 _ACEOF
24407 cat confdefs.h >>conftest.$ac_ext
24408 cat >>conftest.$ac_ext <<_ACEOF
24409 /* end confdefs.h. */
24411 /* Override any GCC internal prototype to avoid an error.
24412 Use char because int might match the return type of a GCC
24413 builtin and then its argument prototype would still apply. */
24414 #ifdef __cplusplus
24415 extern "C"
24416 #endif
24417 char dgettext ();
24419 main ()
24421 return dgettext ();
24423 return 0;
24425 _ACEOF
24426 rm -f conftest.$ac_objext conftest$ac_exeext
24427 if { (ac_try="$ac_link"
24428 case "(($ac_try" in
24429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24430 *) ac_try_echo=$ac_try;;
24431 esac
24432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24433 $as_echo "$ac_try_echo") >&5
24434 (eval "$ac_link") 2>conftest.er1
24435 ac_status=$?
24436 grep -v '^ *+' conftest.er1 >conftest.err
24437 rm -f conftest.er1
24438 cat conftest.err >&5
24439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } && {
24441 test -z "$ac_c_werror_flag" ||
24442 test ! -s conftest.err
24443 } && test -s conftest$ac_exeext && {
24444 test "$cross_compiling" = yes ||
24445 $as_test_x conftest$ac_exeext
24446 }; then
24447 ac_cv_lib_intl_dgettext=yes
24448 else
24449 $as_echo "$as_me: failed program was:" >&5
24450 sed 's/^/| /' conftest.$ac_ext >&5
24452 ac_cv_lib_intl_dgettext=no
24455 rm -rf conftest.dSYM
24456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24457 conftest$ac_exeext conftest.$ac_ext
24458 LIBS=$ac_check_lib_save_LIBS
24460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24461 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24462 if test $ac_cv_lib_intl_dgettext = yes; then
24463 cat >>confdefs.h <<_ACEOF
24464 #define HAVE_LIBINTL 1
24465 _ACEOF
24467 LIBS="-lintl $LIBS"
24472 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24473 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24474 if test "${emacs_cv_localtime_cache+set}" = set; then
24475 $as_echo_n "(cached) " >&6
24476 else
24477 if test x$ac_cv_func_tzset = xyes; then
24478 if test "$cross_compiling" = yes; then
24479 # If we have tzset, assume the worst when cross-compiling.
24480 emacs_cv_localtime_cache=yes
24481 else
24482 cat >conftest.$ac_ext <<_ACEOF
24483 /* confdefs.h. */
24484 _ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h. */
24488 #include <time.h>
24489 extern char **environ;
24490 unset_TZ ()
24492 char **from, **to;
24493 for (to = from = environ; (*to = *from); from++)
24494 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24495 to++;
24497 char TZ_GMT0[] = "TZ=GMT0";
24498 char TZ_PST8[] = "TZ=PST8";
24499 main()
24501 time_t now = time ((time_t *) 0);
24502 int hour_GMT0, hour_unset;
24503 if (putenv (TZ_GMT0) != 0)
24504 exit (1);
24505 hour_GMT0 = localtime (&now)->tm_hour;
24506 unset_TZ ();
24507 hour_unset = localtime (&now)->tm_hour;
24508 if (putenv (TZ_PST8) != 0)
24509 exit (1);
24510 if (localtime (&now)->tm_hour == hour_GMT0)
24511 exit (1);
24512 unset_TZ ();
24513 if (localtime (&now)->tm_hour != hour_unset)
24514 exit (1);
24515 exit (0);
24517 _ACEOF
24518 rm -f conftest$ac_exeext
24519 if { (ac_try="$ac_link"
24520 case "(($ac_try" in
24521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24522 *) ac_try_echo=$ac_try;;
24523 esac
24524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24525 $as_echo "$ac_try_echo") >&5
24526 (eval "$ac_link") 2>&5
24527 ac_status=$?
24528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24530 { (case "(($ac_try" in
24531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532 *) ac_try_echo=$ac_try;;
24533 esac
24534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24535 $as_echo "$ac_try_echo") >&5
24536 (eval "$ac_try") 2>&5
24537 ac_status=$?
24538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); }; }; then
24540 emacs_cv_localtime_cache=no
24541 else
24542 $as_echo "$as_me: program exited with status $ac_status" >&5
24543 $as_echo "$as_me: failed program was:" >&5
24544 sed 's/^/| /' conftest.$ac_ext >&5
24546 ( exit $ac_status )
24547 emacs_cv_localtime_cache=yes
24549 rm -rf conftest.dSYM
24550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24554 else
24555 # If we lack tzset, report that localtime does not cache TZ,
24556 # since we can't invalidate the cache if we don't have tzset.
24557 emacs_cv_localtime_cache=no
24560 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24561 $as_echo "$emacs_cv_localtime_cache" >&6; }
24562 if test $emacs_cv_localtime_cache = yes; then
24564 cat >>confdefs.h <<\_ACEOF
24565 #define LOCALTIME_CACHE 1
24566 _ACEOF
24570 if test "x$HAVE_TIMEVAL" = xyes; then
24572 for ac_func in gettimeofday
24574 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24575 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24576 $as_echo_n "checking for $ac_func... " >&6; }
24577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24578 $as_echo_n "(cached) " >&6
24579 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24588 #define $ac_func innocuous_$ac_func
24590 /* System header to define __stub macros and hopefully few prototypes,
24591 which can conflict with char $ac_func (); below.
24592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24593 <limits.h> exists even on freestanding compilers. */
24595 #ifdef __STDC__
24596 # include <limits.h>
24597 #else
24598 # include <assert.h>
24599 #endif
24601 #undef $ac_func
24603 /* Override any GCC internal prototype to avoid an error.
24604 Use char because int might match the return type of a GCC
24605 builtin and then its argument prototype would still apply. */
24606 #ifdef __cplusplus
24607 extern "C"
24608 #endif
24609 char $ac_func ();
24610 /* The GNU C library defines this for functions which it implements
24611 to always fail with ENOSYS. Some functions are actually named
24612 something starting with __ and the normal name is an alias. */
24613 #if defined __stub_$ac_func || defined __stub___$ac_func
24614 choke me
24615 #endif
24618 main ()
24620 return $ac_func ();
24622 return 0;
24624 _ACEOF
24625 rm -f conftest.$ac_objext conftest$ac_exeext
24626 if { (ac_try="$ac_link"
24627 case "(($ac_try" in
24628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24629 *) ac_try_echo=$ac_try;;
24630 esac
24631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24632 $as_echo "$ac_try_echo") >&5
24633 (eval "$ac_link") 2>conftest.er1
24634 ac_status=$?
24635 grep -v '^ *+' conftest.er1 >conftest.err
24636 rm -f conftest.er1
24637 cat conftest.err >&5
24638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); } && {
24640 test -z "$ac_c_werror_flag" ||
24641 test ! -s conftest.err
24642 } && test -s conftest$ac_exeext && {
24643 test "$cross_compiling" = yes ||
24644 $as_test_x conftest$ac_exeext
24645 }; then
24646 eval "$as_ac_var=yes"
24647 else
24648 $as_echo "$as_me: failed program was:" >&5
24649 sed 's/^/| /' conftest.$ac_ext >&5
24651 eval "$as_ac_var=no"
24654 rm -rf conftest.dSYM
24655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24656 conftest$ac_exeext conftest.$ac_ext
24658 ac_res=`eval 'as_val=${'$as_ac_var'}
24659 $as_echo "$as_val"'`
24660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24661 $as_echo "$ac_res" >&6; }
24662 if test `eval 'as_val=${'$as_ac_var'}
24663 $as_echo "$as_val"'` = yes; then
24664 cat >>confdefs.h <<_ACEOF
24665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24666 _ACEOF
24669 done
24671 if test $ac_cv_func_gettimeofday = yes; then
24672 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24673 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24674 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24675 $as_echo_n "(cached) " >&6
24676 else
24677 cat >conftest.$ac_ext <<_ACEOF
24678 /* confdefs.h. */
24679 _ACEOF
24680 cat confdefs.h >>conftest.$ac_ext
24681 cat >>conftest.$ac_ext <<_ACEOF
24682 /* end confdefs.h. */
24684 #ifdef TIME_WITH_SYS_TIME
24685 #include <sys/time.h>
24686 #include <time.h>
24687 #else
24688 #ifdef HAVE_SYS_TIME_H
24689 #include <sys/time.h>
24690 #else
24691 #include <time.h>
24692 #endif
24693 #endif
24695 main ()
24697 struct timeval time;
24698 gettimeofday (&time, 0);
24700 return 0;
24702 _ACEOF
24703 rm -f conftest.$ac_objext
24704 if { (ac_try="$ac_compile"
24705 case "(($ac_try" in
24706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24707 *) ac_try_echo=$ac_try;;
24708 esac
24709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24710 $as_echo "$ac_try_echo") >&5
24711 (eval "$ac_compile") 2>conftest.er1
24712 ac_status=$?
24713 grep -v '^ *+' conftest.er1 >conftest.err
24714 rm -f conftest.er1
24715 cat conftest.err >&5
24716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } && {
24718 test -z "$ac_c_werror_flag" ||
24719 test ! -s conftest.err
24720 } && test -s conftest.$ac_objext; then
24721 emacs_cv_gettimeofday_two_arguments=yes
24722 else
24723 $as_echo "$as_me: failed program was:" >&5
24724 sed 's/^/| /' conftest.$ac_ext >&5
24726 emacs_cv_gettimeofday_two_arguments=no
24729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24731 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24732 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24733 if test $emacs_cv_gettimeofday_two_arguments = no; then
24735 cat >>confdefs.h <<\_ACEOF
24736 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24737 _ACEOF
24743 ok_so_far=yes
24744 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24745 $as_echo_n "checking for socket... " >&6; }
24746 if test "${ac_cv_func_socket+set}" = set; then
24747 $as_echo_n "(cached) " >&6
24748 else
24749 cat >conftest.$ac_ext <<_ACEOF
24750 /* confdefs.h. */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24755 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24757 #define socket innocuous_socket
24759 /* System header to define __stub macros and hopefully few prototypes,
24760 which can conflict with char socket (); below.
24761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24762 <limits.h> exists even on freestanding compilers. */
24764 #ifdef __STDC__
24765 # include <limits.h>
24766 #else
24767 # include <assert.h>
24768 #endif
24770 #undef socket
24772 /* Override any GCC internal prototype to avoid an error.
24773 Use char because int might match the return type of a GCC
24774 builtin and then its argument prototype would still apply. */
24775 #ifdef __cplusplus
24776 extern "C"
24777 #endif
24778 char socket ();
24779 /* The GNU C library defines this for functions which it implements
24780 to always fail with ENOSYS. Some functions are actually named
24781 something starting with __ and the normal name is an alias. */
24782 #if defined __stub_socket || defined __stub___socket
24783 choke me
24784 #endif
24787 main ()
24789 return socket ();
24791 return 0;
24793 _ACEOF
24794 rm -f conftest.$ac_objext conftest$ac_exeext
24795 if { (ac_try="$ac_link"
24796 case "(($ac_try" in
24797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798 *) ac_try_echo=$ac_try;;
24799 esac
24800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24801 $as_echo "$ac_try_echo") >&5
24802 (eval "$ac_link") 2>conftest.er1
24803 ac_status=$?
24804 grep -v '^ *+' conftest.er1 >conftest.err
24805 rm -f conftest.er1
24806 cat conftest.err >&5
24807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } && {
24809 test -z "$ac_c_werror_flag" ||
24810 test ! -s conftest.err
24811 } && test -s conftest$ac_exeext && {
24812 test "$cross_compiling" = yes ||
24813 $as_test_x conftest$ac_exeext
24814 }; then
24815 ac_cv_func_socket=yes
24816 else
24817 $as_echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24820 ac_cv_func_socket=no
24823 rm -rf conftest.dSYM
24824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24825 conftest$ac_exeext conftest.$ac_ext
24827 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24828 $as_echo "$ac_cv_func_socket" >&6; }
24829 if test $ac_cv_func_socket = yes; then
24831 else
24832 ok_so_far=no
24835 if test $ok_so_far = yes; then
24836 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24837 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24838 $as_echo_n "checking for netinet/in.h... " >&6; }
24839 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24840 $as_echo_n "(cached) " >&6
24842 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24843 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24844 else
24845 # Is the header compilable?
24846 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24847 $as_echo_n "checking netinet/in.h usability... " >&6; }
24848 cat >conftest.$ac_ext <<_ACEOF
24849 /* confdefs.h. */
24850 _ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h. */
24854 $ac_includes_default
24855 #include <netinet/in.h>
24856 _ACEOF
24857 rm -f conftest.$ac_objext
24858 if { (ac_try="$ac_compile"
24859 case "(($ac_try" in
24860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24861 *) ac_try_echo=$ac_try;;
24862 esac
24863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24864 $as_echo "$ac_try_echo") >&5
24865 (eval "$ac_compile") 2>conftest.er1
24866 ac_status=$?
24867 grep -v '^ *+' conftest.er1 >conftest.err
24868 rm -f conftest.er1
24869 cat conftest.err >&5
24870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); } && {
24872 test -z "$ac_c_werror_flag" ||
24873 test ! -s conftest.err
24874 } && test -s conftest.$ac_objext; then
24875 ac_header_compiler=yes
24876 else
24877 $as_echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24880 ac_header_compiler=no
24883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24884 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24885 $as_echo "$ac_header_compiler" >&6; }
24887 # Is the header present?
24888 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24889 $as_echo_n "checking netinet/in.h presence... " >&6; }
24890 cat >conftest.$ac_ext <<_ACEOF
24891 /* confdefs.h. */
24892 _ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h. */
24896 #include <netinet/in.h>
24897 _ACEOF
24898 if { (ac_try="$ac_cpp conftest.$ac_ext"
24899 case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24902 esac
24903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24904 $as_echo "$ac_try_echo") >&5
24905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24906 ac_status=$?
24907 grep -v '^ *+' conftest.er1 >conftest.err
24908 rm -f conftest.er1
24909 cat conftest.err >&5
24910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } >/dev/null && {
24912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24913 test ! -s conftest.err
24914 }; then
24915 ac_header_preproc=yes
24916 else
24917 $as_echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24920 ac_header_preproc=no
24923 rm -f conftest.err conftest.$ac_ext
24924 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24925 $as_echo "$ac_header_preproc" >&6; }
24927 # So? What about this header?
24928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24929 yes:no: )
24930 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24931 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24932 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24933 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24934 ac_header_preproc=yes
24936 no:yes:* )
24937 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24938 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24939 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24940 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24941 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24942 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24943 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24944 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24945 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24946 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24947 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24948 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24951 esac
24952 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24953 $as_echo_n "checking for netinet/in.h... " >&6; }
24954 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24955 $as_echo_n "(cached) " >&6
24956 else
24957 ac_cv_header_netinet_in_h=$ac_header_preproc
24959 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24960 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24963 if test $ac_cv_header_netinet_in_h = yes; then
24965 else
24966 ok_so_far=no
24971 if test $ok_so_far = yes; then
24972 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24973 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24974 $as_echo_n "checking for arpa/inet.h... " >&6; }
24975 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24976 $as_echo_n "(cached) " >&6
24978 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24979 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24980 else
24981 # Is the header compilable?
24982 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24983 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24984 cat >conftest.$ac_ext <<_ACEOF
24985 /* confdefs.h. */
24986 _ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h. */
24990 $ac_includes_default
24991 #include <arpa/inet.h>
24992 _ACEOF
24993 rm -f conftest.$ac_objext
24994 if { (ac_try="$ac_compile"
24995 case "(($ac_try" in
24996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997 *) ac_try_echo=$ac_try;;
24998 esac
24999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25000 $as_echo "$ac_try_echo") >&5
25001 (eval "$ac_compile") 2>conftest.er1
25002 ac_status=$?
25003 grep -v '^ *+' conftest.er1 >conftest.err
25004 rm -f conftest.er1
25005 cat conftest.err >&5
25006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } && {
25008 test -z "$ac_c_werror_flag" ||
25009 test ! -s conftest.err
25010 } && test -s conftest.$ac_objext; then
25011 ac_header_compiler=yes
25012 else
25013 $as_echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25016 ac_header_compiler=no
25019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25020 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25021 $as_echo "$ac_header_compiler" >&6; }
25023 # Is the header present?
25024 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
25025 $as_echo_n "checking arpa/inet.h presence... " >&6; }
25026 cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h. */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25032 #include <arpa/inet.h>
25033 _ACEOF
25034 if { (ac_try="$ac_cpp conftest.$ac_ext"
25035 case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25038 esac
25039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25040 $as_echo "$ac_try_echo") >&5
25041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25042 ac_status=$?
25043 grep -v '^ *+' conftest.er1 >conftest.err
25044 rm -f conftest.er1
25045 cat conftest.err >&5
25046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); } >/dev/null && {
25048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25049 test ! -s conftest.err
25050 }; then
25051 ac_header_preproc=yes
25052 else
25053 $as_echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25056 ac_header_preproc=no
25059 rm -f conftest.err conftest.$ac_ext
25060 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25061 $as_echo "$ac_header_preproc" >&6; }
25063 # So? What about this header?
25064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25065 yes:no: )
25066 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
25067 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25068 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
25069 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
25070 ac_header_preproc=yes
25072 no:yes:* )
25073 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
25074 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
25075 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
25076 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
25077 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
25078 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
25079 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
25080 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25081 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25082 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25083 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25084 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25087 esac
25088 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25089 $as_echo_n "checking for arpa/inet.h... " >&6; }
25090 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25091 $as_echo_n "(cached) " >&6
25092 else
25093 ac_cv_header_arpa_inet_h=$ac_header_preproc
25095 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25096 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25099 if test $ac_cv_header_arpa_inet_h = yes; then
25101 else
25102 ok_so_far=no
25107 if test $ok_so_far = yes; then
25109 cat >>confdefs.h <<\_ACEOF
25110 #define HAVE_INET_SOCKETS 1
25111 _ACEOF
25116 for ac_header in sys/ioctl.h
25118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25120 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25121 $as_echo_n "checking for $ac_header... " >&6; }
25122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25123 $as_echo_n "(cached) " >&6
25125 ac_res=`eval 'as_val=${'$as_ac_Header'}
25126 $as_echo "$as_val"'`
25127 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25128 $as_echo "$ac_res" >&6; }
25129 else
25130 # Is the header compilable?
25131 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25132 $as_echo_n "checking $ac_header usability... " >&6; }
25133 cat >conftest.$ac_ext <<_ACEOF
25134 /* confdefs.h. */
25135 _ACEOF
25136 cat confdefs.h >>conftest.$ac_ext
25137 cat >>conftest.$ac_ext <<_ACEOF
25138 /* end confdefs.h. */
25139 $ac_includes_default
25140 #include <$ac_header>
25141 _ACEOF
25142 rm -f conftest.$ac_objext
25143 if { (ac_try="$ac_compile"
25144 case "(($ac_try" in
25145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25146 *) ac_try_echo=$ac_try;;
25147 esac
25148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25149 $as_echo "$ac_try_echo") >&5
25150 (eval "$ac_compile") 2>conftest.er1
25151 ac_status=$?
25152 grep -v '^ *+' conftest.er1 >conftest.err
25153 rm -f conftest.er1
25154 cat conftest.err >&5
25155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); } && {
25157 test -z "$ac_c_werror_flag" ||
25158 test ! -s conftest.err
25159 } && test -s conftest.$ac_objext; then
25160 ac_header_compiler=yes
25161 else
25162 $as_echo "$as_me: failed program was:" >&5
25163 sed 's/^/| /' conftest.$ac_ext >&5
25165 ac_header_compiler=no
25168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25169 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25170 $as_echo "$ac_header_compiler" >&6; }
25172 # Is the header present?
25173 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25174 $as_echo_n "checking $ac_header presence... " >&6; }
25175 cat >conftest.$ac_ext <<_ACEOF
25176 /* confdefs.h. */
25177 _ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h. */
25181 #include <$ac_header>
25182 _ACEOF
25183 if { (ac_try="$ac_cpp conftest.$ac_ext"
25184 case "(($ac_try" in
25185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25186 *) ac_try_echo=$ac_try;;
25187 esac
25188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25189 $as_echo "$ac_try_echo") >&5
25190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25191 ac_status=$?
25192 grep -v '^ *+' conftest.er1 >conftest.err
25193 rm -f conftest.er1
25194 cat conftest.err >&5
25195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); } >/dev/null && {
25197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25198 test ! -s conftest.err
25199 }; then
25200 ac_header_preproc=yes
25201 else
25202 $as_echo "$as_me: failed program was:" >&5
25203 sed 's/^/| /' conftest.$ac_ext >&5
25205 ac_header_preproc=no
25208 rm -f conftest.err conftest.$ac_ext
25209 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25210 $as_echo "$ac_header_preproc" >&6; }
25212 # So? What about this header?
25213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25214 yes:no: )
25215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25216 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25218 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25219 ac_header_preproc=yes
25221 no:yes:* )
25222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25223 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25225 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25227 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25229 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25233 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25236 esac
25237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25238 $as_echo_n "checking for $ac_header... " >&6; }
25239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25240 $as_echo_n "(cached) " >&6
25241 else
25242 eval "$as_ac_Header=\$ac_header_preproc"
25244 ac_res=`eval 'as_val=${'$as_ac_Header'}
25245 $as_echo "$as_val"'`
25246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25247 $as_echo "$ac_res" >&6; }
25250 if test `eval 'as_val=${'$as_ac_Header'}
25251 $as_echo "$as_val"'` = yes; then
25252 cat >>confdefs.h <<_ACEOF
25253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25254 _ACEOF
25258 done
25261 if test -f /usr/lpp/X11/bin/smt.exp; then
25263 cat >>confdefs.h <<\_ACEOF
25264 #define HAVE_AIX_SMT_EXP 1
25265 _ACEOF
25269 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
25270 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
25271 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25272 { $as_echo "$as_me:$LINENO: result: yes" >&5
25273 $as_echo "yes" >&6; }
25275 cat >>confdefs.h <<\_ACEOF
25276 #define HAVE_DEV_PTMX 1
25277 _ACEOF
25279 else
25280 { $as_echo "$as_me:$LINENO: result: no" >&5
25281 $as_echo "no" >&6; }
25284 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
25285 $as_echo_n "checking for pid_t... " >&6; }
25286 if test "${ac_cv_type_pid_t+set}" = set; then
25287 $as_echo_n "(cached) " >&6
25288 else
25289 ac_cv_type_pid_t=no
25290 cat >conftest.$ac_ext <<_ACEOF
25291 /* confdefs.h. */
25292 _ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h. */
25296 $ac_includes_default
25298 main ()
25300 if (sizeof (pid_t))
25301 return 0;
25303 return 0;
25305 _ACEOF
25306 rm -f conftest.$ac_objext
25307 if { (ac_try="$ac_compile"
25308 case "(($ac_try" in
25309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310 *) ac_try_echo=$ac_try;;
25311 esac
25312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25313 $as_echo "$ac_try_echo") >&5
25314 (eval "$ac_compile") 2>conftest.er1
25315 ac_status=$?
25316 grep -v '^ *+' conftest.er1 >conftest.err
25317 rm -f conftest.er1
25318 cat conftest.err >&5
25319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } && {
25321 test -z "$ac_c_werror_flag" ||
25322 test ! -s conftest.err
25323 } && test -s conftest.$ac_objext; then
25324 cat >conftest.$ac_ext <<_ACEOF
25325 /* confdefs.h. */
25326 _ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h. */
25330 $ac_includes_default
25332 main ()
25334 if (sizeof ((pid_t)))
25335 return 0;
25337 return 0;
25339 _ACEOF
25340 rm -f conftest.$ac_objext
25341 if { (ac_try="$ac_compile"
25342 case "(($ac_try" in
25343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25345 esac
25346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25347 $as_echo "$ac_try_echo") >&5
25348 (eval "$ac_compile") 2>conftest.er1
25349 ac_status=$?
25350 grep -v '^ *+' conftest.er1 >conftest.err
25351 rm -f conftest.er1
25352 cat conftest.err >&5
25353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); } && {
25355 test -z "$ac_c_werror_flag" ||
25356 test ! -s conftest.err
25357 } && test -s conftest.$ac_objext; then
25359 else
25360 $as_echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25363 ac_cv_type_pid_t=yes
25366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25367 else
25368 $as_echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25376 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25377 $as_echo "$ac_cv_type_pid_t" >&6; }
25378 if test $ac_cv_type_pid_t = yes; then
25380 else
25382 cat >>confdefs.h <<_ACEOF
25383 #define pid_t int
25384 _ACEOF
25389 for ac_header in vfork.h
25391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25394 $as_echo_n "checking for $ac_header... " >&6; }
25395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25396 $as_echo_n "(cached) " >&6
25398 ac_res=`eval 'as_val=${'$as_ac_Header'}
25399 $as_echo "$as_val"'`
25400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25401 $as_echo "$ac_res" >&6; }
25402 else
25403 # Is the header compilable?
25404 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25405 $as_echo_n "checking $ac_header usability... " >&6; }
25406 cat >conftest.$ac_ext <<_ACEOF
25407 /* confdefs.h. */
25408 _ACEOF
25409 cat confdefs.h >>conftest.$ac_ext
25410 cat >>conftest.$ac_ext <<_ACEOF
25411 /* end confdefs.h. */
25412 $ac_includes_default
25413 #include <$ac_header>
25414 _ACEOF
25415 rm -f conftest.$ac_objext
25416 if { (ac_try="$ac_compile"
25417 case "(($ac_try" in
25418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419 *) ac_try_echo=$ac_try;;
25420 esac
25421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25422 $as_echo "$ac_try_echo") >&5
25423 (eval "$ac_compile") 2>conftest.er1
25424 ac_status=$?
25425 grep -v '^ *+' conftest.er1 >conftest.err
25426 rm -f conftest.er1
25427 cat conftest.err >&5
25428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); } && {
25430 test -z "$ac_c_werror_flag" ||
25431 test ! -s conftest.err
25432 } && test -s conftest.$ac_objext; then
25433 ac_header_compiler=yes
25434 else
25435 $as_echo "$as_me: failed program was:" >&5
25436 sed 's/^/| /' conftest.$ac_ext >&5
25438 ac_header_compiler=no
25441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25442 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25443 $as_echo "$ac_header_compiler" >&6; }
25445 # Is the header present?
25446 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25447 $as_echo_n "checking $ac_header presence... " >&6; }
25448 cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h. */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25454 #include <$ac_header>
25455 _ACEOF
25456 if { (ac_try="$ac_cpp conftest.$ac_ext"
25457 case "(($ac_try" in
25458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459 *) ac_try_echo=$ac_try;;
25460 esac
25461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25462 $as_echo "$ac_try_echo") >&5
25463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25464 ac_status=$?
25465 grep -v '^ *+' conftest.er1 >conftest.err
25466 rm -f conftest.er1
25467 cat conftest.err >&5
25468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } >/dev/null && {
25470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25471 test ! -s conftest.err
25472 }; then
25473 ac_header_preproc=yes
25474 else
25475 $as_echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25478 ac_header_preproc=no
25481 rm -f conftest.err conftest.$ac_ext
25482 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25483 $as_echo "$ac_header_preproc" >&6; }
25485 # So? What about this header?
25486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25487 yes:no: )
25488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25489 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25491 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25492 ac_header_preproc=yes
25494 no:yes:* )
25495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25496 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25498 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25500 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25502 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25504 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25506 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25509 esac
25510 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25511 $as_echo_n "checking for $ac_header... " >&6; }
25512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25513 $as_echo_n "(cached) " >&6
25514 else
25515 eval "$as_ac_Header=\$ac_header_preproc"
25517 ac_res=`eval 'as_val=${'$as_ac_Header'}
25518 $as_echo "$as_val"'`
25519 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25520 $as_echo "$ac_res" >&6; }
25523 if test `eval 'as_val=${'$as_ac_Header'}
25524 $as_echo "$as_val"'` = yes; then
25525 cat >>confdefs.h <<_ACEOF
25526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25527 _ACEOF
25531 done
25535 for ac_func in fork vfork
25537 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25538 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25539 $as_echo_n "checking for $ac_func... " >&6; }
25540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25541 $as_echo_n "(cached) " >&6
25542 else
25543 cat >conftest.$ac_ext <<_ACEOF
25544 /* confdefs.h. */
25545 _ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h. */
25549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25551 #define $ac_func innocuous_$ac_func
25553 /* System header to define __stub macros and hopefully few prototypes,
25554 which can conflict with char $ac_func (); below.
25555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25556 <limits.h> exists even on freestanding compilers. */
25558 #ifdef __STDC__
25559 # include <limits.h>
25560 #else
25561 # include <assert.h>
25562 #endif
25564 #undef $ac_func
25566 /* Override any GCC internal prototype to avoid an error.
25567 Use char because int might match the return type of a GCC
25568 builtin and then its argument prototype would still apply. */
25569 #ifdef __cplusplus
25570 extern "C"
25571 #endif
25572 char $ac_func ();
25573 /* The GNU C library defines this for functions which it implements
25574 to always fail with ENOSYS. Some functions are actually named
25575 something starting with __ and the normal name is an alias. */
25576 #if defined __stub_$ac_func || defined __stub___$ac_func
25577 choke me
25578 #endif
25581 main ()
25583 return $ac_func ();
25585 return 0;
25587 _ACEOF
25588 rm -f conftest.$ac_objext conftest$ac_exeext
25589 if { (ac_try="$ac_link"
25590 case "(($ac_try" in
25591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592 *) ac_try_echo=$ac_try;;
25593 esac
25594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25595 $as_echo "$ac_try_echo") >&5
25596 (eval "$ac_link") 2>conftest.er1
25597 ac_status=$?
25598 grep -v '^ *+' conftest.er1 >conftest.err
25599 rm -f conftest.er1
25600 cat conftest.err >&5
25601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); } && {
25603 test -z "$ac_c_werror_flag" ||
25604 test ! -s conftest.err
25605 } && test -s conftest$ac_exeext && {
25606 test "$cross_compiling" = yes ||
25607 $as_test_x conftest$ac_exeext
25608 }; then
25609 eval "$as_ac_var=yes"
25610 else
25611 $as_echo "$as_me: failed program was:" >&5
25612 sed 's/^/| /' conftest.$ac_ext >&5
25614 eval "$as_ac_var=no"
25617 rm -rf conftest.dSYM
25618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25619 conftest$ac_exeext conftest.$ac_ext
25621 ac_res=`eval 'as_val=${'$as_ac_var'}
25622 $as_echo "$as_val"'`
25623 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25624 $as_echo "$ac_res" >&6; }
25625 if test `eval 'as_val=${'$as_ac_var'}
25626 $as_echo "$as_val"'` = yes; then
25627 cat >>confdefs.h <<_ACEOF
25628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25629 _ACEOF
25632 done
25634 if test "x$ac_cv_func_fork" = xyes; then
25635 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25636 $as_echo_n "checking for working fork... " >&6; }
25637 if test "${ac_cv_func_fork_works+set}" = set; then
25638 $as_echo_n "(cached) " >&6
25639 else
25640 if test "$cross_compiling" = yes; then
25641 ac_cv_func_fork_works=cross
25642 else
25643 cat >conftest.$ac_ext <<_ACEOF
25644 /* confdefs.h. */
25645 _ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h. */
25649 $ac_includes_default
25651 main ()
25654 /* By Ruediger Kuhlmann. */
25655 return fork () < 0;
25658 return 0;
25660 _ACEOF
25661 rm -f conftest$ac_exeext
25662 if { (ac_try="$ac_link"
25663 case "(($ac_try" in
25664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25665 *) ac_try_echo=$ac_try;;
25666 esac
25667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25668 $as_echo "$ac_try_echo") >&5
25669 (eval "$ac_link") 2>&5
25670 ac_status=$?
25671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25673 { (case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25676 esac
25677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25678 $as_echo "$ac_try_echo") >&5
25679 (eval "$ac_try") 2>&5
25680 ac_status=$?
25681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; }; then
25683 ac_cv_func_fork_works=yes
25684 else
25685 $as_echo "$as_me: program exited with status $ac_status" >&5
25686 $as_echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25689 ( exit $ac_status )
25690 ac_cv_func_fork_works=no
25692 rm -rf conftest.dSYM
25693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25698 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25699 $as_echo "$ac_cv_func_fork_works" >&6; }
25701 else
25702 ac_cv_func_fork_works=$ac_cv_func_fork
25704 if test "x$ac_cv_func_fork_works" = xcross; then
25705 case $host in
25706 *-*-amigaos* | *-*-msdosdjgpp*)
25707 # Override, as these systems have only a dummy fork() stub
25708 ac_cv_func_fork_works=no
25711 ac_cv_func_fork_works=yes
25713 esac
25714 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25715 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25717 ac_cv_func_vfork_works=$ac_cv_func_vfork
25718 if test "x$ac_cv_func_vfork" = xyes; then
25719 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25720 $as_echo_n "checking for working vfork... " >&6; }
25721 if test "${ac_cv_func_vfork_works+set}" = set; then
25722 $as_echo_n "(cached) " >&6
25723 else
25724 if test "$cross_compiling" = yes; then
25725 ac_cv_func_vfork_works=cross
25726 else
25727 cat >conftest.$ac_ext <<_ACEOF
25728 /* confdefs.h. */
25729 _ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h. */
25733 /* Thanks to Paul Eggert for this test. */
25734 $ac_includes_default
25735 #include <sys/wait.h>
25736 #ifdef HAVE_VFORK_H
25737 # include <vfork.h>
25738 #endif
25739 /* On some sparc systems, changes by the child to local and incoming
25740 argument registers are propagated back to the parent. The compiler
25741 is told about this with #include <vfork.h>, but some compilers
25742 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25743 static variable whose address is put into a register that is
25744 clobbered by the vfork. */
25745 static void
25746 #ifdef __cplusplus
25747 sparc_address_test (int arg)
25748 # else
25749 sparc_address_test (arg) int arg;
25750 #endif
25752 static pid_t child;
25753 if (!child) {
25754 child = vfork ();
25755 if (child < 0) {
25756 perror ("vfork");
25757 _exit(2);
25759 if (!child) {
25760 arg = getpid();
25761 write(-1, "", 0);
25762 _exit (arg);
25768 main ()
25770 pid_t parent = getpid ();
25771 pid_t child;
25773 sparc_address_test (0);
25775 child = vfork ();
25777 if (child == 0) {
25778 /* Here is another test for sparc vfork register problems. This
25779 test uses lots of local variables, at least as many local
25780 variables as main has allocated so far including compiler
25781 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25782 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25783 reuse the register of parent for one of the local variables,
25784 since it will think that parent can't possibly be used any more
25785 in this routine. Assigning to the local variable will thus
25786 munge parent in the parent process. */
25787 pid_t
25788 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25789 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25790 /* Convince the compiler that p..p7 are live; otherwise, it might
25791 use the same hardware register for all 8 local variables. */
25792 if (p != p1 || p != p2 || p != p3 || p != p4
25793 || p != p5 || p != p6 || p != p7)
25794 _exit(1);
25796 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25797 from child file descriptors. If the child closes a descriptor
25798 before it execs or exits, this munges the parent's descriptor
25799 as well. Test for this by closing stdout in the child. */
25800 _exit(close(fileno(stdout)) != 0);
25801 } else {
25802 int status;
25803 struct stat st;
25805 while (wait(&status) != child)
25807 return (
25808 /* Was there some problem with vforking? */
25809 child < 0
25811 /* Did the child fail? (This shouldn't happen.) */
25812 || status
25814 /* Did the vfork/compiler bug occur? */
25815 || parent != getpid()
25817 /* Did the file descriptor bug occur? */
25818 || fstat(fileno(stdout), &st) != 0
25822 _ACEOF
25823 rm -f conftest$ac_exeext
25824 if { (ac_try="$ac_link"
25825 case "(($ac_try" in
25826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25827 *) ac_try_echo=$ac_try;;
25828 esac
25829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25830 $as_echo "$ac_try_echo") >&5
25831 (eval "$ac_link") 2>&5
25832 ac_status=$?
25833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25835 { (case "(($ac_try" in
25836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25837 *) ac_try_echo=$ac_try;;
25838 esac
25839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25840 $as_echo "$ac_try_echo") >&5
25841 (eval "$ac_try") 2>&5
25842 ac_status=$?
25843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); }; }; then
25845 ac_cv_func_vfork_works=yes
25846 else
25847 $as_echo "$as_me: program exited with status $ac_status" >&5
25848 $as_echo "$as_me: failed program was:" >&5
25849 sed 's/^/| /' conftest.$ac_ext >&5
25851 ( exit $ac_status )
25852 ac_cv_func_vfork_works=no
25854 rm -rf conftest.dSYM
25855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25860 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25861 $as_echo "$ac_cv_func_vfork_works" >&6; }
25864 if test "x$ac_cv_func_fork_works" = xcross; then
25865 ac_cv_func_vfork_works=$ac_cv_func_vfork
25866 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25867 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25870 if test "x$ac_cv_func_vfork_works" = xyes; then
25872 cat >>confdefs.h <<\_ACEOF
25873 #define HAVE_WORKING_VFORK 1
25874 _ACEOF
25876 else
25878 cat >>confdefs.h <<\_ACEOF
25879 #define vfork fork
25880 _ACEOF
25883 if test "x$ac_cv_func_fork_works" = xyes; then
25885 cat >>confdefs.h <<\_ACEOF
25886 #define HAVE_WORKING_FORK 1
25887 _ACEOF
25892 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25893 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25894 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25895 $as_echo_n "(cached) " >&6
25896 else
25897 cat >conftest.$ac_ext <<_ACEOF
25898 /* confdefs.h. */
25899 _ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h. */
25903 #include <langinfo.h>
25905 main ()
25907 char* cs = nl_langinfo(CODESET);
25909 return 0;
25911 _ACEOF
25912 rm -f conftest.$ac_objext conftest$ac_exeext
25913 if { (ac_try="$ac_link"
25914 case "(($ac_try" in
25915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25916 *) ac_try_echo=$ac_try;;
25917 esac
25918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25919 $as_echo "$ac_try_echo") >&5
25920 (eval "$ac_link") 2>conftest.er1
25921 ac_status=$?
25922 grep -v '^ *+' conftest.er1 >conftest.err
25923 rm -f conftest.er1
25924 cat conftest.err >&5
25925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); } && {
25927 test -z "$ac_c_werror_flag" ||
25928 test ! -s conftest.err
25929 } && test -s conftest$ac_exeext && {
25930 test "$cross_compiling" = yes ||
25931 $as_test_x conftest$ac_exeext
25932 }; then
25933 emacs_cv_langinfo_codeset=yes
25934 else
25935 $as_echo "$as_me: failed program was:" >&5
25936 sed 's/^/| /' conftest.$ac_ext >&5
25938 emacs_cv_langinfo_codeset=no
25941 rm -rf conftest.dSYM
25942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25943 conftest$ac_exeext conftest.$ac_ext
25946 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25947 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25948 if test $emacs_cv_langinfo_codeset = yes; then
25950 cat >>confdefs.h <<\_ACEOF
25951 #define HAVE_LANGINFO_CODESET 1
25952 _ACEOF
25956 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25957 $as_echo_n "checking for size_t... " >&6; }
25958 if test "${ac_cv_type_size_t+set}" = set; then
25959 $as_echo_n "(cached) " >&6
25960 else
25961 ac_cv_type_size_t=no
25962 cat >conftest.$ac_ext <<_ACEOF
25963 /* confdefs.h. */
25964 _ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h. */
25968 $ac_includes_default
25970 main ()
25972 if (sizeof (size_t))
25973 return 0;
25975 return 0;
25977 _ACEOF
25978 rm -f conftest.$ac_objext
25979 if { (ac_try="$ac_compile"
25980 case "(($ac_try" in
25981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25982 *) ac_try_echo=$ac_try;;
25983 esac
25984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25985 $as_echo "$ac_try_echo") >&5
25986 (eval "$ac_compile") 2>conftest.er1
25987 ac_status=$?
25988 grep -v '^ *+' conftest.er1 >conftest.err
25989 rm -f conftest.er1
25990 cat conftest.err >&5
25991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } && {
25993 test -z "$ac_c_werror_flag" ||
25994 test ! -s conftest.err
25995 } && test -s conftest.$ac_objext; then
25996 cat >conftest.$ac_ext <<_ACEOF
25997 /* confdefs.h. */
25998 _ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h. */
26002 $ac_includes_default
26004 main ()
26006 if (sizeof ((size_t)))
26007 return 0;
26009 return 0;
26011 _ACEOF
26012 rm -f conftest.$ac_objext
26013 if { (ac_try="$ac_compile"
26014 case "(($ac_try" in
26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016 *) ac_try_echo=$ac_try;;
26017 esac
26018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26019 $as_echo "$ac_try_echo") >&5
26020 (eval "$ac_compile") 2>conftest.er1
26021 ac_status=$?
26022 grep -v '^ *+' conftest.er1 >conftest.err
26023 rm -f conftest.er1
26024 cat conftest.err >&5
26025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); } && {
26027 test -z "$ac_c_werror_flag" ||
26028 test ! -s conftest.err
26029 } && test -s conftest.$ac_objext; then
26031 else
26032 $as_echo "$as_me: failed program was:" >&5
26033 sed 's/^/| /' conftest.$ac_ext >&5
26035 ac_cv_type_size_t=yes
26038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26039 else
26040 $as_echo "$as_me: failed program was:" >&5
26041 sed 's/^/| /' conftest.$ac_ext >&5
26046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26048 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26049 $as_echo "$ac_cv_type_size_t" >&6; }
26050 if test $ac_cv_type_size_t = yes; then
26052 cat >>confdefs.h <<_ACEOF
26053 #define HAVE_SIZE_T 1
26054 _ACEOF
26060 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
26061 $as_echo_n "checking for mbstate_t... " >&6; }
26062 if test "${ac_cv_type_mbstate_t+set}" = set; then
26063 $as_echo_n "(cached) " >&6
26064 else
26065 cat >conftest.$ac_ext <<_ACEOF
26066 /* confdefs.h. */
26067 _ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h. */
26071 $ac_includes_default
26072 # include <wchar.h>
26074 main ()
26076 mbstate_t x; return sizeof x;
26078 return 0;
26080 _ACEOF
26081 rm -f conftest.$ac_objext
26082 if { (ac_try="$ac_compile"
26083 case "(($ac_try" in
26084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26085 *) ac_try_echo=$ac_try;;
26086 esac
26087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26088 $as_echo "$ac_try_echo") >&5
26089 (eval "$ac_compile") 2>conftest.er1
26090 ac_status=$?
26091 grep -v '^ *+' conftest.er1 >conftest.err
26092 rm -f conftest.er1
26093 cat conftest.err >&5
26094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } && {
26096 test -z "$ac_c_werror_flag" ||
26097 test ! -s conftest.err
26098 } && test -s conftest.$ac_objext; then
26099 ac_cv_type_mbstate_t=yes
26100 else
26101 $as_echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26104 ac_cv_type_mbstate_t=no
26107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26109 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26110 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26111 if test $ac_cv_type_mbstate_t = yes; then
26113 cat >>confdefs.h <<\_ACEOF
26114 #define HAVE_MBSTATE_T 1
26115 _ACEOF
26117 else
26119 cat >>confdefs.h <<\_ACEOF
26120 #define mbstate_t int
26121 _ACEOF
26125 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
26126 $as_echo_n "checking for C restrict keyword... " >&6; }
26127 if test "${emacs_cv_c_restrict+set}" = set; then
26128 $as_echo_n "(cached) " >&6
26129 else
26130 cat >conftest.$ac_ext <<_ACEOF
26131 /* confdefs.h. */
26132 _ACEOF
26133 cat confdefs.h >>conftest.$ac_ext
26134 cat >>conftest.$ac_ext <<_ACEOF
26135 /* end confdefs.h. */
26136 void fred (int *restrict x);
26138 main ()
26142 return 0;
26144 _ACEOF
26145 rm -f conftest.$ac_objext
26146 if { (ac_try="$ac_compile"
26147 case "(($ac_try" in
26148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26149 *) ac_try_echo=$ac_try;;
26150 esac
26151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26152 $as_echo "$ac_try_echo") >&5
26153 (eval "$ac_compile") 2>conftest.er1
26154 ac_status=$?
26155 grep -v '^ *+' conftest.er1 >conftest.err
26156 rm -f conftest.er1
26157 cat conftest.err >&5
26158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); } && {
26160 test -z "$ac_c_werror_flag" ||
26161 test ! -s conftest.err
26162 } && test -s conftest.$ac_objext; then
26163 emacs_cv_c_restrict=yes
26164 else
26165 $as_echo "$as_me: failed program was:" >&5
26166 sed 's/^/| /' conftest.$ac_ext >&5
26168 cat >conftest.$ac_ext <<_ACEOF
26169 /* confdefs.h. */
26170 _ACEOF
26171 cat confdefs.h >>conftest.$ac_ext
26172 cat >>conftest.$ac_ext <<_ACEOF
26173 /* end confdefs.h. */
26174 void fred (int *__restrict x);
26176 main ()
26180 return 0;
26182 _ACEOF
26183 rm -f conftest.$ac_objext
26184 if { (ac_try="$ac_compile"
26185 case "(($ac_try" in
26186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26187 *) ac_try_echo=$ac_try;;
26188 esac
26189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26190 $as_echo "$ac_try_echo") >&5
26191 (eval "$ac_compile") 2>conftest.er1
26192 ac_status=$?
26193 grep -v '^ *+' conftest.er1 >conftest.err
26194 rm -f conftest.er1
26195 cat conftest.err >&5
26196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); } && {
26198 test -z "$ac_c_werror_flag" ||
26199 test ! -s conftest.err
26200 } && test -s conftest.$ac_objext; then
26201 emacs_cv_c_restrict=__restrict
26202 else
26203 $as_echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26206 emacs_cv_c_restrict=no
26209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26214 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
26215 $as_echo "$emacs_cv_c_restrict" >&6; }
26216 case "$emacs_cv_c_restrict" in
26217 yes) emacs_restrict=restrict;;
26218 no) emacs_restrict="";;
26219 *) emacs_restrict="$emacs_cv_c_restrict";;
26220 esac
26221 if test "$emacs_restrict" != __restrict; then
26223 cat >>confdefs.h <<_ACEOF
26224 #define __restrict $emacs_restrict
26225 _ACEOF
26229 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
26230 $as_echo_n "checking for C restricted array declarations... " >&6; }
26231 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26232 $as_echo_n "(cached) " >&6
26233 else
26234 cat >conftest.$ac_ext <<_ACEOF
26235 /* confdefs.h. */
26236 _ACEOF
26237 cat confdefs.h >>conftest.$ac_ext
26238 cat >>conftest.$ac_ext <<_ACEOF
26239 /* end confdefs.h. */
26240 void fred (int x[__restrict]);
26242 main ()
26246 return 0;
26248 _ACEOF
26249 rm -f conftest.$ac_objext
26250 if { (ac_try="$ac_compile"
26251 case "(($ac_try" in
26252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26253 *) ac_try_echo=$ac_try;;
26254 esac
26255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26256 $as_echo "$ac_try_echo") >&5
26257 (eval "$ac_compile") 2>conftest.er1
26258 ac_status=$?
26259 grep -v '^ *+' conftest.er1 >conftest.err
26260 rm -f conftest.er1
26261 cat conftest.err >&5
26262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); } && {
26264 test -z "$ac_c_werror_flag" ||
26265 test ! -s conftest.err
26266 } && test -s conftest.$ac_objext; then
26267 emacs_cv_c_restrict_arr=yes
26268 else
26269 $as_echo "$as_me: failed program was:" >&5
26270 sed 's/^/| /' conftest.$ac_ext >&5
26272 emacs_cv_c_restrict_arr=no
26275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26277 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
26278 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26279 if test "$emacs_cv_c_restrict_arr" = yes; then
26281 cat >>confdefs.h <<\_ACEOF
26282 #define __restrict_arr __restrict
26283 _ACEOF
26289 # Set up the CFLAGS for real compilation, so we can substitute it.
26290 CFLAGS="$REAL_CFLAGS"
26291 CPPFLAGS="$REAL_CPPFLAGS"
26293 ## Hack to detect a buggy GCC version.
26294 if test "x$GCC" = xyes \
26295 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26296 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26297 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26298 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
26299 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
26300 { (exit 1); exit 1; }; }
26303 #### Find out which version of Emacs this is.
26304 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
26305 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
26306 if test x"${version}" = x; then
26307 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&5
26308 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&2;}
26309 { (exit 1); exit 1; }; }
26311 if test x"${version}" != x"$PACKAGE_VERSION"; then
26312 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
26313 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
26316 ### Specify what sort of things we'll be editing into Makefile and config.h.
26317 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26320 ## Unused?
26342 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26343 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26344 ## end of LIBX_BASE, but nothing ever set it.
26349 ## Used in lwlib/Makefile.in.
26364 cat >>confdefs.h <<_ACEOF
26365 #define EMACS_CONFIGURATION "${canonical}"
26366 _ACEOF
26369 cat >>confdefs.h <<_ACEOF
26370 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26371 _ACEOF
26374 cat >>confdefs.h <<_ACEOF
26375 #define config_machfile "${machfile}"
26376 _ACEOF
26379 cat >>confdefs.h <<_ACEOF
26380 #define config_opsysfile "${opsysfile}"
26381 _ACEOF
26384 XMENU_OBJ=
26385 XOBJ=
26386 FONT_OBJ=
26387 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26389 cat >>confdefs.h <<\_ACEOF
26390 #define HAVE_X_WINDOWS 1
26391 _ACEOF
26393 XMENU_OBJ=xmenu.o
26394 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26395 FONT_OBJ=xfont.o
26396 if test "$HAVE_XFT" = "yes"; then
26397 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26398 elif test "$HAVE_FREETYPE" = "yes"; then
26399 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
26407 WIDGET_OBJ=
26408 MOTIF_LIBW=
26409 if test "${USE_X_TOOLKIT}" != "none" ; then
26410 WIDGET_OBJ=widget.o
26412 cat >>confdefs.h <<\_ACEOF
26413 #define USE_X_TOOLKIT 1
26414 _ACEOF
26416 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26418 cat >>confdefs.h <<\_ACEOF
26419 #define USE_LUCID 1
26420 _ACEOF
26422 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26424 cat >>confdefs.h <<\_ACEOF
26425 #define USE_MOTIF 1
26426 _ACEOF
26428 MOTIF_LIBW=-lXm
26429 case "$opsys" in
26430 gnu-linux)
26431 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26432 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26435 unixware)
26436 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26437 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26438 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26441 aix4-2)
26442 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26443 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26445 esac
26446 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26451 TOOLKIT_LIBW=
26452 case "$USE_X_TOOLKIT" in
26453 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26454 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26455 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26456 esac
26459 if test "$USE_X_TOOLKIT" = "none"; then
26460 LIBXT_OTHER="\$(LIBXSM)"
26461 OLDXMENU_TARGET="really-oldXMenu"
26462 else
26463 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26464 OLDXMENU_TARGET="really-lwlib"
26469 ## The X Menu stuff is present in the X10 distribution, but missing
26470 ## from X11. If we have X10, just use the installed library;
26471 ## otherwise, use our own copy.
26472 if test "${HAVE_X11}" = "yes" ; then
26474 cat >>confdefs.h <<\_ACEOF
26475 #define HAVE_X11 1
26476 _ACEOF
26479 if test "$USE_X_TOOLKIT" = "none"; then
26480 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26481 else
26482 OLDXMENU="\${lwlibdir}liblw.a"
26484 LIBXMENU="\$(OLDXMENU)"
26485 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26486 else
26487 OLDXMENU=
26488 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
26489 if test "${HAVE_X_WINDOWS}" = "yes"; then
26490 LIBXMENU="-lXMenu"
26491 else
26492 LIBXMENU=
26494 LIBX_OTHER=
26497 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
26498 OLDXMENU=
26499 LIBXMENU=
26506 if test "${HAVE_MENUS}" = "yes" ; then
26508 cat >>confdefs.h <<\_ACEOF
26509 #define HAVE_MENUS 1
26510 _ACEOF
26513 if test "${GNU_MALLOC}" = "yes" ; then
26515 cat >>confdefs.h <<\_ACEOF
26516 #define GNU_MALLOC 1
26517 _ACEOF
26520 if test "${REL_ALLOC}" = "yes" ; then
26522 cat >>confdefs.h <<\_ACEOF
26523 #define REL_ALLOC 1
26524 _ACEOF
26529 if test "$opsys" = "cygwin"; then
26530 CYGWIN_OBJ="sheap.o"
26531 ## Cygwin differs because of its unexec().
26532 PRE_ALLOC_OBJ=
26533 POST_ALLOC_OBJ="lastfile.o vm-limit.o"
26534 else
26535 CYGWIN_OBJ=
26536 PRE_ALLOC_OBJ=lastfile.o
26537 POST_ALLOC_OBJ="\$(vmlimitobj)"
26544 case "$opsys" in
26545 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26547 darwin)
26548 ## The -headerpad option tells ld (see man page) to leave room at the
26549 ## end of the header for adding load commands. Needed for dumping.
26550 ## 0x690 is the total size of 30 segment load commands (at 56
26551 ## each); under Cocoa 31 commands are required.
26552 if test "$HAVE_NS" = "yes"; then
26553 libs_nsgui="-framework AppKit"
26554 headerpad_extra=6C8
26555 else
26556 libs_nsgui=
26557 headerpad_extra=690
26559 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26562 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26563 esac
26567 ## This exists because src/Makefile.in did some extra fiddling around
26568 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26569 ## #ifndef LD_SWITCH_SYSTEM
26570 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26571 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26572 ## not using gcc, darwin system not on an alpha (ie darwin, since
26573 ## darwin + alpha does not occur).
26574 ## Note that unlike L_S_S, this is not used in ac_link.
26575 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26576 test "$opsys" = "darwin"; then
26577 LD_SWITCH_SYSTEM_EXTRA="-X"
26578 else
26579 LD_SWITCH_SYSTEM_EXTRA=
26584 LIB_GCC=
26585 if test "x$GCC" = "xyes"; then
26587 case "$opsys" in
26588 ## cygwin: don't link against static libgcc.
26589 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
26591 gnu-*)
26592 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26593 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26594 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26595 if test "$machine" = "arm"; then
26596 LIB_GCC="-lgcc_s"
26597 else
26598 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26599 ## immediately undefine it again and redefine it to empty.
26600 ## Was the C_SWITCH_X_SITE part really necessary?
26601 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26602 LIB_GCC=
26606 ## Ask GCC where to find libgcc.a.
26607 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26608 esac
26612 TOOLTIP_SUPPORT=
26613 WINDOW_SUPPORT=
26614 ## If we're using X11/GNUstep, define some consequences.
26615 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
26617 cat >>confdefs.h <<\_ACEOF
26618 #define HAVE_WINDOW_SYSTEM 1
26619 _ACEOF
26622 cat >>confdefs.h <<\_ACEOF
26623 #define HAVE_MOUSE 1
26624 _ACEOF
26626 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
26627 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
26629 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
26630 test "$HAVE_X_WINDOWS" = "yes" && \
26631 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26643 #### Report on what we decided to do.
26644 #### Report GTK as a toolkit, even if it doesn't use Xt.
26645 #### It makes printing result more understandable as using GTK sets
26646 #### toolkit_scroll_bars to yes by default.
26647 if test "${HAVE_GTK}" = "yes"; then
26648 USE_X_TOOLKIT=GTK
26651 echo "
26652 Configured for \`${canonical}'.
26654 Where should the build process find the source code? ${srcdir}
26655 What operating system and machine description files should Emacs use?
26656 \`${opsysfile}' and \`${machfile}'
26657 What compiler should emacs be built with? ${CC} ${CFLAGS}
26658 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26659 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26660 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26661 What window system should Emacs use? ${window_system}
26662 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26664 if test -n "${x_includes}"; then
26665 echo " Where do we find X Windows header files? ${x_includes}"
26666 else
26667 echo " Where do we find X Windows header files? Standard dirs"
26669 if test -n "${x_libraries}"; then
26670 echo " Where do we find X Windows libraries? ${x_libraries}"
26671 else
26672 echo " Where do we find X Windows libraries? Standard dirs"
26675 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26676 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26677 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26678 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26679 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26680 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26681 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26682 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26683 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26684 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26685 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26687 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26688 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26689 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26690 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26692 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26693 echo
26695 if test $USE_XASSERTS = yes; then
26696 echo " Compiling with asserts turned on."
26697 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26700 echo
26702 if test "$HAVE_NS" = "yes"; then
26703 echo
26704 echo "You must run \"make install\" in order to test the built application.
26705 The installed application will go to nextstep/Emacs.app and can be
26706 run or moved from there."
26707 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26708 echo "The application will be fully self-contained."
26709 else
26710 echo "The lisp resources for the application will be installed under ${prefix}.
26711 You may need to run \"make install\" with sudo. The application will fail
26712 to run if these resources are not installed."
26714 echo
26717 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26718 echo "D-Bus integration has been tested for GNU/Linux only."
26719 echo
26723 # Remove any trailing slashes in these variables.
26724 test "${prefix}" != NONE &&
26725 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26726 test "${exec_prefix}" != NONE &&
26727 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26729 # Now get this: Some word that is part of the ${srcdir} directory name
26730 # or the ${configuration} value might, just might, happen to be an
26731 # identifier like `sun4' or `i386' or something, and be predefined by
26732 # the C preprocessor to some helpful value like 1, or maybe the empty
26733 # string. Needless to say consequent macro substitutions are less
26734 # than conducive to the makefile finding the correct directory.
26735 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26736 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26737 # so that cannot have been doing anything.
26738 cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 |
26739 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26740 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26742 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26743 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26744 ## from Makefile.c can correctly provide the arg `-traditional' to the
26745 ## C preprocessor.
26747 cat >conftest.$ac_ext <<_ACEOF
26748 /* confdefs.h. */
26749 _ACEOF
26750 cat confdefs.h >>conftest.$ac_ext
26751 cat >>conftest.$ac_ext <<_ACEOF
26752 /* end confdefs.h. */
26753 yes..yes
26754 _ACEOF
26755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26756 $EGREP "yes..yes" >/dev/null 2>&1; then
26757 CPP_NEED_TRADITIONAL=no
26758 else
26759 CPP_NEED_TRADITIONAL=yes
26761 rm -f conftest*
26764 ac_config_files="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
26766 ac_config_commands="$ac_config_commands default"
26768 cat >confcache <<\_ACEOF
26769 # This file is a shell script that caches the results of configure
26770 # tests run on this system so they can be shared between configure
26771 # scripts and configure runs, see configure's option --config-cache.
26772 # It is not useful on other systems. If it contains results you don't
26773 # want to keep, you may remove or edit it.
26775 # config.status only pays attention to the cache file if you give it
26776 # the --recheck option to rerun configure.
26778 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26779 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26780 # following values.
26782 _ACEOF
26784 # The following way of writing the cache mishandles newlines in values,
26785 # but we know of no workaround that is simple, portable, and efficient.
26786 # So, we kill variables containing newlines.
26787 # Ultrix sh set writes to stderr and can't be redirected directly,
26788 # and sets the high bit in the cache file unless we assign to the vars.
26790 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26791 eval ac_val=\$$ac_var
26792 case $ac_val in #(
26793 *${as_nl}*)
26794 case $ac_var in #(
26795 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26796 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26797 esac
26798 case $ac_var in #(
26799 _ | IFS | as_nl) ;; #(
26800 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26801 *) $as_unset $ac_var ;;
26802 esac ;;
26803 esac
26804 done
26806 (set) 2>&1 |
26807 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26808 *${as_nl}ac_space=\ *)
26809 # `set' does not quote correctly, so add quotes (double-quote
26810 # substitution turns \\\\ into \\, and sed turns \\ into \).
26811 sed -n \
26812 "s/'/'\\\\''/g;
26813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26814 ;; #(
26816 # `set' quotes correctly as required by POSIX, so do not add quotes.
26817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26819 esac |
26820 sort
26822 sed '
26823 /^ac_cv_env_/b end
26824 t clear
26825 :clear
26826 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26827 t end
26828 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26829 :end' >>confcache
26830 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26831 if test -w "$cache_file"; then
26832 test "x$cache_file" != "x/dev/null" &&
26833 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26834 $as_echo "$as_me: updating cache $cache_file" >&6;}
26835 cat confcache >$cache_file
26836 else
26837 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26838 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26841 rm -f confcache
26843 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26844 # Let make expand exec_prefix.
26845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26847 DEFS=-DHAVE_CONFIG_H
26849 ac_libobjs=
26850 ac_ltlibobjs=
26851 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26852 # 1. Remove the extension, and $U if already installed.
26853 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26854 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26855 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26856 # will be set to the directory where LIBOBJS objects are built.
26857 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26858 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26859 done
26860 LIBOBJS=$ac_libobjs
26862 LTLIBOBJS=$ac_ltlibobjs
26866 : ${CONFIG_STATUS=./config.status}
26867 ac_write_fail=0
26868 ac_clean_files_save=$ac_clean_files
26869 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26870 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26871 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26872 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26873 #! $SHELL
26874 # Generated by $as_me.
26875 # Run this file to recreate the current configuration.
26876 # Compiler output produced by configure, useful for debugging
26877 # configure, is in config.log if it exists.
26879 debug=false
26880 ac_cs_recheck=false
26881 ac_cs_silent=false
26882 SHELL=\${CONFIG_SHELL-$SHELL}
26883 _ACEOF
26885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26886 ## --------------------- ##
26887 ## M4sh Initialization. ##
26888 ## --------------------- ##
26890 # Be more Bourne compatible
26891 DUALCASE=1; export DUALCASE # for MKS sh
26892 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26893 emulate sh
26894 NULLCMD=:
26895 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26896 # is contrary to our usage. Disable this feature.
26897 alias -g '${1+"$@"}'='"$@"'
26898 setopt NO_GLOB_SUBST
26899 else
26900 case `(set -o) 2>/dev/null` in
26901 *posix*) set -o posix ;;
26902 esac
26909 # PATH needs CR
26910 # Avoid depending upon Character Ranges.
26911 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26912 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26913 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26914 as_cr_digits='0123456789'
26915 as_cr_alnum=$as_cr_Letters$as_cr_digits
26917 as_nl='
26919 export as_nl
26920 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26921 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26923 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26924 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26925 as_echo='printf %s\n'
26926 as_echo_n='printf %s'
26927 else
26928 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26929 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26930 as_echo_n='/usr/ucb/echo -n'
26931 else
26932 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26933 as_echo_n_body='eval
26934 arg=$1;
26935 case $arg in
26936 *"$as_nl"*)
26937 expr "X$arg" : "X\\(.*\\)$as_nl";
26938 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26939 esac;
26940 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26942 export as_echo_n_body
26943 as_echo_n='sh -c $as_echo_n_body as_echo'
26945 export as_echo_body
26946 as_echo='sh -c $as_echo_body as_echo'
26949 # The user is always right.
26950 if test "${PATH_SEPARATOR+set}" != set; then
26951 PATH_SEPARATOR=:
26952 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26953 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26954 PATH_SEPARATOR=';'
26958 # Support unset when possible.
26959 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26960 as_unset=unset
26961 else
26962 as_unset=false
26966 # IFS
26967 # We need space, tab and new line, in precisely that order. Quoting is
26968 # there to prevent editors from complaining about space-tab.
26969 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26970 # splitting by setting IFS to empty value.)
26971 IFS=" "" $as_nl"
26973 # Find who we are. Look in the path if we contain no directory separator.
26974 case $0 in
26975 *[\\/]* ) as_myself=$0 ;;
26976 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26977 for as_dir in $PATH
26979 IFS=$as_save_IFS
26980 test -z "$as_dir" && as_dir=.
26981 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26982 done
26983 IFS=$as_save_IFS
26986 esac
26987 # We did not find ourselves, most probably we were run as `sh COMMAND'
26988 # in which case we are not to be found in the path.
26989 if test "x$as_myself" = x; then
26990 as_myself=$0
26992 if test ! -f "$as_myself"; then
26993 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26994 { (exit 1); exit 1; }
26997 # Work around bugs in pre-3.0 UWIN ksh.
26998 for as_var in ENV MAIL MAILPATH
26999 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27000 done
27001 PS1='$ '
27002 PS2='> '
27003 PS4='+ '
27005 # NLS nuisances.
27006 LC_ALL=C
27007 export LC_ALL
27008 LANGUAGE=C
27009 export LANGUAGE
27011 # Required to use basename.
27012 if expr a : '\(a\)' >/dev/null 2>&1 &&
27013 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27014 as_expr=expr
27015 else
27016 as_expr=false
27019 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27020 as_basename=basename
27021 else
27022 as_basename=false
27026 # Name of the executable.
27027 as_me=`$as_basename -- "$0" ||
27028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27029 X"$0" : 'X\(//\)$' \| \
27030 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27031 $as_echo X/"$0" |
27032 sed '/^.*\/\([^/][^/]*\)\/*$/{
27033 s//\1/
27036 /^X\/\(\/\/\)$/{
27037 s//\1/
27040 /^X\/\(\/\).*/{
27041 s//\1/
27044 s/.*/./; q'`
27046 # CDPATH.
27047 $as_unset CDPATH
27051 as_lineno_1=$LINENO
27052 as_lineno_2=$LINENO
27053 test "x$as_lineno_1" != "x$as_lineno_2" &&
27054 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27056 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27057 # uniformly replaced by the line number. The first 'sed' inserts a
27058 # line-number line after each line using $LINENO; the second 'sed'
27059 # does the real work. The second script uses 'N' to pair each
27060 # line-number line with the line containing $LINENO, and appends
27061 # trailing '-' during substitution so that $LINENO is not a special
27062 # case at line end.
27063 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27064 # scripts with optimization help from Paolo Bonzini. Blame Lee
27065 # E. McMahon (1931-1989) for sed's syntax. :-)
27066 sed -n '
27068 /[$]LINENO/=
27069 ' <$as_myself |
27070 sed '
27071 s/[$]LINENO.*/&-/
27072 t lineno
27074 :lineno
27076 :loop
27077 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27078 t loop
27079 s/-\n.*//
27080 ' >$as_me.lineno &&
27081 chmod +x "$as_me.lineno" ||
27082 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27083 { (exit 1); exit 1; }; }
27085 # Don't try to exec as it changes $[0], causing all sort of problems
27086 # (the dirname of $[0] is not the place where we might find the
27087 # original and so on. Autoconf is especially sensitive to this).
27088 . "./$as_me.lineno"
27089 # Exit status is that of the last command.
27090 exit
27094 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27095 as_dirname=dirname
27096 else
27097 as_dirname=false
27100 ECHO_C= ECHO_N= ECHO_T=
27101 case `echo -n x` in
27102 -n*)
27103 case `echo 'x\c'` in
27104 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27105 *) ECHO_C='\c';;
27106 esac;;
27108 ECHO_N='-n';;
27109 esac
27110 if expr a : '\(a\)' >/dev/null 2>&1 &&
27111 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27112 as_expr=expr
27113 else
27114 as_expr=false
27117 rm -f conf$$ conf$$.exe conf$$.file
27118 if test -d conf$$.dir; then
27119 rm -f conf$$.dir/conf$$.file
27120 else
27121 rm -f conf$$.dir
27122 mkdir conf$$.dir 2>/dev/null
27124 if (echo >conf$$.file) 2>/dev/null; then
27125 if ln -s conf$$.file conf$$ 2>/dev/null; then
27126 as_ln_s='ln -s'
27127 # ... but there are two gotchas:
27128 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27129 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27130 # In both cases, we have to default to `cp -p'.
27131 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27132 as_ln_s='cp -p'
27133 elif ln conf$$.file conf$$ 2>/dev/null; then
27134 as_ln_s=ln
27135 else
27136 as_ln_s='cp -p'
27138 else
27139 as_ln_s='cp -p'
27141 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27142 rmdir conf$$.dir 2>/dev/null
27144 if mkdir -p . 2>/dev/null; then
27145 as_mkdir_p=:
27146 else
27147 test -d ./-p && rmdir ./-p
27148 as_mkdir_p=false
27151 if test -x / >/dev/null 2>&1; then
27152 as_test_x='test -x'
27153 else
27154 if ls -dL / >/dev/null 2>&1; then
27155 as_ls_L_option=L
27156 else
27157 as_ls_L_option=
27159 as_test_x='
27160 eval sh -c '\''
27161 if test -d "$1"; then
27162 test -d "$1/.";
27163 else
27164 case $1 in
27165 -*)set "./$1";;
27166 esac;
27167 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27168 ???[sx]*):;;*)false;;esac;fi
27169 '\'' sh
27172 as_executable_p=$as_test_x
27174 # Sed expression to map a string onto a valid CPP name.
27175 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27177 # Sed expression to map a string onto a valid variable name.
27178 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27181 exec 6>&1
27183 # Save the log message, to keep $[0] and so on meaningful, and to
27184 # report actual input values of CONFIG_FILES etc. instead of their
27185 # values after options handling.
27186 ac_log="
27187 This file was extended by emacs $as_me 24.0.50, which was
27188 generated by GNU Autoconf 2.62. Invocation command line was
27190 CONFIG_FILES = $CONFIG_FILES
27191 CONFIG_HEADERS = $CONFIG_HEADERS
27192 CONFIG_LINKS = $CONFIG_LINKS
27193 CONFIG_COMMANDS = $CONFIG_COMMANDS
27194 $ $0 $@
27196 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27199 _ACEOF
27201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27202 # Files that config.status was made for.
27203 config_files="$ac_config_files"
27204 config_headers="$ac_config_headers"
27205 config_commands="$ac_config_commands"
27207 _ACEOF
27209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27210 ac_cs_usage="\
27211 \`$as_me' instantiates files from templates according to the
27212 current configuration.
27214 Usage: $0 [OPTIONS] [FILE]...
27216 -h, --help print this help, then exit
27217 -V, --version print version number and configuration settings, then exit
27218 -q, --quiet do not print progress messages
27219 -d, --debug don't remove temporary files
27220 --recheck update $as_me by reconfiguring in the same conditions
27221 --file=FILE[:TEMPLATE]
27222 instantiate the configuration file FILE
27223 --header=FILE[:TEMPLATE]
27224 instantiate the configuration header FILE
27226 Configuration files:
27227 $config_files
27229 Configuration headers:
27230 $config_headers
27232 Configuration commands:
27233 $config_commands
27235 Report bugs to <bug-autoconf@gnu.org>."
27237 _ACEOF
27238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27239 ac_cs_version="\\
27240 emacs config.status 24.0.50
27241 configured by $0, generated by GNU Autoconf 2.62,
27242 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27244 Copyright (C) 2008 Free Software Foundation, Inc.
27245 This config.status script is free software; the Free Software Foundation
27246 gives unlimited permission to copy, distribute and modify it."
27248 ac_pwd='$ac_pwd'
27249 srcdir='$srcdir'
27250 INSTALL='$INSTALL'
27251 test -n "\$AWK" || AWK=awk
27252 _ACEOF
27254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27255 # The default lists apply if the user does not specify any file.
27256 ac_need_defaults=:
27257 while test $# != 0
27259 case $1 in
27260 --*=*)
27261 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27262 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27263 ac_shift=:
27266 ac_option=$1
27267 ac_optarg=$2
27268 ac_shift=shift
27270 esac
27272 case $ac_option in
27273 # Handling of the options.
27274 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27275 ac_cs_recheck=: ;;
27276 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27277 $as_echo "$ac_cs_version"; exit ;;
27278 --debug | --debu | --deb | --de | --d | -d )
27279 debug=: ;;
27280 --file | --fil | --fi | --f )
27281 $ac_shift
27282 case $ac_optarg in
27283 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27284 esac
27285 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27286 ac_need_defaults=false;;
27287 --header | --heade | --head | --hea )
27288 $ac_shift
27289 case $ac_optarg in
27290 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27291 esac
27292 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27293 ac_need_defaults=false;;
27294 --he | --h)
27295 # Conflict between --help and --header
27296 { $as_echo "$as_me: error: ambiguous option: $1
27297 Try \`$0 --help' for more information." >&2
27298 { (exit 1); exit 1; }; };;
27299 --help | --hel | -h )
27300 $as_echo "$ac_cs_usage"; exit ;;
27301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27302 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27303 ac_cs_silent=: ;;
27305 # This is an error.
27306 -*) { $as_echo "$as_me: error: unrecognized option: $1
27307 Try \`$0 --help' for more information." >&2
27308 { (exit 1); exit 1; }; } ;;
27310 *) ac_config_targets="$ac_config_targets $1"
27311 ac_need_defaults=false ;;
27313 esac
27314 shift
27315 done
27317 ac_configure_extra_args=
27319 if $ac_cs_silent; then
27320 exec 6>/dev/null
27321 ac_configure_extra_args="$ac_configure_extra_args --silent"
27324 _ACEOF
27325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27326 if \$ac_cs_recheck; then
27327 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27328 shift
27329 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27330 CONFIG_SHELL='$SHELL'
27331 export CONFIG_SHELL
27332 exec "\$@"
27335 _ACEOF
27336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27337 exec 5>>config.log
27339 echo
27340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27341 ## Running $as_me. ##
27342 _ASBOX
27343 $as_echo "$ac_log"
27344 } >&5
27346 _ACEOF
27347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27349 # INIT-COMMANDS
27351 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27353 _ACEOF
27355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27357 # Handling of arguments.
27358 for ac_config_target in $ac_config_targets
27360 case $ac_config_target in
27361 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27362 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27363 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27364 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27365 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27366 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27367 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27368 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27369 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27370 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27371 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27372 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27373 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27375 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27376 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27377 { (exit 1); exit 1; }; };;
27378 esac
27379 done
27382 # If the user did not use the arguments to specify the items to instantiate,
27383 # then the envvar interface is used. Set only those that are not.
27384 # We use the long form for the default assignment because of an extremely
27385 # bizarre bug on SunOS 4.1.3.
27386 if $ac_need_defaults; then
27387 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27388 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27389 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27392 # Have a temporary directory for convenience. Make it in the build tree
27393 # simply because there is no reason against having it here, and in addition,
27394 # creating and moving files from /tmp can sometimes cause problems.
27395 # Hook for its removal unless debugging.
27396 # Note that there is a small window in which the directory will not be cleaned:
27397 # after its creation but before its name has been assigned to `$tmp'.
27398 $debug ||
27400 tmp=
27401 trap 'exit_status=$?
27402 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27404 trap '{ (exit 1); exit 1; }' 1 2 13 15
27406 # Create a (secure) tmp directory for tmp files.
27409 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27410 test -n "$tmp" && test -d "$tmp"
27411 } ||
27413 tmp=./conf$$-$RANDOM
27414 (umask 077 && mkdir "$tmp")
27415 } ||
27417 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27418 { (exit 1); exit 1; }
27421 # Set up the scripts for CONFIG_FILES section.
27422 # No need to generate them if there are no CONFIG_FILES.
27423 # This happens for instance with `./config.status config.h'.
27424 if test -n "$CONFIG_FILES"; then
27427 ac_cr=' '
27428 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27429 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27430 ac_cs_awk_cr='\\r'
27431 else
27432 ac_cs_awk_cr=$ac_cr
27435 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27436 _ACEOF
27440 echo "cat >conf$$subs.awk <<_ACEOF" &&
27441 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27442 echo "_ACEOF"
27443 } >conf$$subs.sh ||
27444 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27445 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27446 { (exit 1); exit 1; }; }
27447 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27448 ac_delim='%!_!# '
27449 for ac_last_try in false false false false false :; do
27450 . ./conf$$subs.sh ||
27451 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27452 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27453 { (exit 1); exit 1; }; }
27455 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27456 break
27457 elif $ac_last_try; then
27458 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27459 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27460 { (exit 1); exit 1; }; }
27461 else
27462 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27464 done
27465 rm -f conf$$subs.sh
27467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27468 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27469 _ACEOF
27470 sed -n '
27472 s/^/S["/; s/!.*/"]=/
27475 s/^[^!]*!//
27476 :repl
27477 t repl
27478 s/'"$ac_delim"'$//
27479 t delim
27482 s/\(.\{148\}\).*/\1/
27483 t more1
27484 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27487 b repl
27488 :more1
27489 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27492 s/.\{148\}//
27493 t nl
27494 :delim
27496 s/\(.\{148\}\).*/\1/
27497 t more2
27498 s/["\\]/\\&/g; s/^/"/; s/$/"/
27501 :more2
27502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27505 s/.\{148\}//
27506 t delim
27507 ' <conf$$subs.awk | sed '
27508 /^[^""]/{
27510 s/\n//
27512 ' >>$CONFIG_STATUS || ac_write_fail=1
27513 rm -f conf$$subs.awk
27514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27515 _ACAWK
27516 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27517 for (key in S) S_is_set[key] = 1
27518 FS = "\a"
27522 line = $ 0
27523 nfields = split(line, field, "@")
27524 substed = 0
27525 len = length(field[1])
27526 for (i = 2; i < nfields; i++) {
27527 key = field[i]
27528 keylen = length(key)
27529 if (S_is_set[key]) {
27530 value = S[key]
27531 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27532 len += length(value) + length(field[++i])
27533 substed = 1
27534 } else
27535 len += 1 + keylen
27538 print line
27541 _ACAWK
27542 _ACEOF
27543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27544 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27545 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27546 else
27548 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27549 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27550 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27551 { (exit 1); exit 1; }; }
27552 _ACEOF
27554 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27555 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27556 # trailing colons and then remove the whole line if VPATH becomes empty
27557 # (actually we leave an empty line to preserve line numbers).
27558 if test "x$srcdir" = x.; then
27559 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27560 s/:*\$(srcdir):*/:/
27561 s/:*\${srcdir}:*/:/
27562 s/:*@srcdir@:*/:/
27563 s/^\([^=]*=[ ]*\):*/\1/
27564 s/:*$//
27565 s/^[^=]*=[ ]*$//
27569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27570 fi # test -n "$CONFIG_FILES"
27572 # Set up the scripts for CONFIG_HEADERS section.
27573 # No need to generate them if there are no CONFIG_HEADERS.
27574 # This happens for instance with `./config.status Makefile'.
27575 if test -n "$CONFIG_HEADERS"; then
27576 cat >"$tmp/defines.awk" <<\_ACAWK ||
27577 BEGIN {
27578 _ACEOF
27580 # Transform confdefs.h into an awk script `defines.awk', embedded as
27581 # here-document in config.status, that substitutes the proper values into
27582 # config.h.in to produce config.h.
27584 # Create a delimiter string that does not exist in confdefs.h, to ease
27585 # handling of long lines.
27586 ac_delim='%!_!# '
27587 for ac_last_try in false false :; do
27588 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27589 if test -z "$ac_t"; then
27590 break
27591 elif $ac_last_try; then
27592 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27593 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27594 { (exit 1); exit 1; }; }
27595 else
27596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27598 done
27600 # For the awk script, D is an array of macro values keyed by name,
27601 # likewise P contains macro parameters if any. Preserve backslash
27602 # newline sequences.
27604 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27605 sed -n '
27606 s/.\{148\}/&'"$ac_delim"'/g
27607 t rset
27608 :rset
27609 s/^[ ]*#[ ]*define[ ][ ]*/ /
27610 t def
27612 :def
27613 s/\\$//
27614 t bsnl
27615 s/["\\]/\\&/g
27616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27617 D["\1"]=" \3"/p
27618 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27620 :bsnl
27621 s/["\\]/\\&/g
27622 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27623 D["\1"]=" \3\\\\\\n"\\/p
27624 t cont
27625 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27626 t cont
27628 :cont
27630 s/.\{148\}/&'"$ac_delim"'/g
27631 t clear
27632 :clear
27633 s/\\$//
27634 t bsnlc
27635 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27637 :bsnlc
27638 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27639 b cont
27640 ' <confdefs.h | sed '
27641 s/'"$ac_delim"'/"\\\
27642 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27645 for (key in D) D_is_set[key] = 1
27646 FS = "\a"
27648 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27649 line = \$ 0
27650 split(line, arg, " ")
27651 if (arg[1] == "#") {
27652 defundef = arg[2]
27653 mac1 = arg[3]
27654 } else {
27655 defundef = substr(arg[1], 2)
27656 mac1 = arg[2]
27658 split(mac1, mac2, "(") #)
27659 macro = mac2[1]
27660 if (D_is_set[macro]) {
27661 # Preserve the white space surrounding the "#".
27662 prefix = substr(line, 1, index(line, defundef) - 1)
27663 print prefix "define", macro P[macro] D[macro]
27664 next
27665 } else {
27666 # Replace #undef with comments. This is necessary, for example,
27667 # in the case of _POSIX_SOURCE, which is predefined and required
27668 # on some systems where configure will not decide to define it.
27669 if (defundef == "undef") {
27670 print "/*", line, "*/"
27671 next
27675 { print }
27676 _ACAWK
27677 _ACEOF
27678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27679 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27680 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27681 { (exit 1); exit 1; }; }
27682 fi # test -n "$CONFIG_HEADERS"
27685 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27686 shift
27687 for ac_tag
27689 case $ac_tag in
27690 :[FHLC]) ac_mode=$ac_tag; continue;;
27691 esac
27692 case $ac_mode$ac_tag in
27693 :[FHL]*:*);;
27694 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27695 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27696 { (exit 1); exit 1; }; };;
27697 :[FH]-) ac_tag=-:-;;
27698 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27699 esac
27700 ac_save_IFS=$IFS
27701 IFS=:
27702 set x $ac_tag
27703 IFS=$ac_save_IFS
27704 shift
27705 ac_file=$1
27706 shift
27708 case $ac_mode in
27709 :L) ac_source=$1;;
27710 :[FH])
27711 ac_file_inputs=
27712 for ac_f
27714 case $ac_f in
27715 -) ac_f="$tmp/stdin";;
27716 *) # Look for the file first in the build tree, then in the source tree
27717 # (if the path is not absolute). The absolute path cannot be DOS-style,
27718 # because $ac_f cannot contain `:'.
27719 test -f "$ac_f" ||
27720 case $ac_f in
27721 [\\/$]*) false;;
27722 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27723 esac ||
27724 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27725 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27726 { (exit 1); exit 1; }; };;
27727 esac
27728 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27729 ac_file_inputs="$ac_file_inputs '$ac_f'"
27730 done
27732 # Let's still pretend it is `configure' which instantiates (i.e., don't
27733 # use $as_me), people would be surprised to read:
27734 # /* config.h. Generated by config.status. */
27735 configure_input='Generated from '`
27736 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27737 `' by configure.'
27738 if test x"$ac_file" != x-; then
27739 configure_input="$ac_file. $configure_input"
27740 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27741 $as_echo "$as_me: creating $ac_file" >&6;}
27743 # Neutralize special characters interpreted by sed in replacement strings.
27744 case $configure_input in #(
27745 *\&* | *\|* | *\\* )
27746 ac_sed_conf_input=`$as_echo "$configure_input" |
27747 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27748 *) ac_sed_conf_input=$configure_input;;
27749 esac
27751 case $ac_tag in
27752 *:-:* | *:-) cat >"$tmp/stdin" \
27753 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27754 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27755 { (exit 1); exit 1; }; } ;;
27756 esac
27758 esac
27760 ac_dir=`$as_dirname -- "$ac_file" ||
27761 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27762 X"$ac_file" : 'X\(//\)[^/]' \| \
27763 X"$ac_file" : 'X\(//\)$' \| \
27764 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27765 $as_echo X"$ac_file" |
27766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27767 s//\1/
27770 /^X\(\/\/\)[^/].*/{
27771 s//\1/
27774 /^X\(\/\/\)$/{
27775 s//\1/
27778 /^X\(\/\).*/{
27779 s//\1/
27782 s/.*/./; q'`
27783 { as_dir="$ac_dir"
27784 case $as_dir in #(
27785 -*) as_dir=./$as_dir;;
27786 esac
27787 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27788 as_dirs=
27789 while :; do
27790 case $as_dir in #(
27791 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27792 *) as_qdir=$as_dir;;
27793 esac
27794 as_dirs="'$as_qdir' $as_dirs"
27795 as_dir=`$as_dirname -- "$as_dir" ||
27796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27797 X"$as_dir" : 'X\(//\)[^/]' \| \
27798 X"$as_dir" : 'X\(//\)$' \| \
27799 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27800 $as_echo X"$as_dir" |
27801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27802 s//\1/
27805 /^X\(\/\/\)[^/].*/{
27806 s//\1/
27809 /^X\(\/\/\)$/{
27810 s//\1/
27813 /^X\(\/\).*/{
27814 s//\1/
27817 s/.*/./; q'`
27818 test -d "$as_dir" && break
27819 done
27820 test -z "$as_dirs" || eval "mkdir $as_dirs"
27821 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27822 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27823 { (exit 1); exit 1; }; }; }
27824 ac_builddir=.
27826 case "$ac_dir" in
27827 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27829 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27830 # A ".." for each directory in $ac_dir_suffix.
27831 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27832 case $ac_top_builddir_sub in
27833 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27834 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27835 esac ;;
27836 esac
27837 ac_abs_top_builddir=$ac_pwd
27838 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27839 # for backward compatibility:
27840 ac_top_builddir=$ac_top_build_prefix
27842 case $srcdir in
27843 .) # We are building in place.
27844 ac_srcdir=.
27845 ac_top_srcdir=$ac_top_builddir_sub
27846 ac_abs_top_srcdir=$ac_pwd ;;
27847 [\\/]* | ?:[\\/]* ) # Absolute name.
27848 ac_srcdir=$srcdir$ac_dir_suffix;
27849 ac_top_srcdir=$srcdir
27850 ac_abs_top_srcdir=$srcdir ;;
27851 *) # Relative name.
27852 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27853 ac_top_srcdir=$ac_top_build_prefix$srcdir
27854 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27855 esac
27856 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27859 case $ac_mode in
27862 # CONFIG_FILE
27865 case $INSTALL in
27866 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27867 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27868 esac
27869 _ACEOF
27871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27872 # If the template does not know about datarootdir, expand it.
27873 # FIXME: This hack should be removed a few years after 2.60.
27874 ac_datarootdir_hack=; ac_datarootdir_seen=
27876 ac_sed_dataroot='
27877 /datarootdir/ {
27881 /@datadir@/p
27882 /@docdir@/p
27883 /@infodir@/p
27884 /@localedir@/p
27885 /@mandir@/p
27887 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27888 *datarootdir*) ac_datarootdir_seen=yes;;
27889 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27890 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27891 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27892 _ACEOF
27893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27894 ac_datarootdir_hack='
27895 s&@datadir@&$datadir&g
27896 s&@docdir@&$docdir&g
27897 s&@infodir@&$infodir&g
27898 s&@localedir@&$localedir&g
27899 s&@mandir@&$mandir&g
27900 s&\\\${datarootdir}&$datarootdir&g' ;;
27901 esac
27902 _ACEOF
27904 # Neutralize VPATH when `$srcdir' = `.'.
27905 # Shell code in configure.ac might set extrasub.
27906 # FIXME: do we really want to maintain this feature?
27907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27908 ac_sed_extra="$ac_vpsub
27909 $extrasub
27910 _ACEOF
27911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27914 s|@configure_input@|$ac_sed_conf_input|;t t
27915 s&@top_builddir@&$ac_top_builddir_sub&;t t
27916 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27917 s&@srcdir@&$ac_srcdir&;t t
27918 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27919 s&@top_srcdir@&$ac_top_srcdir&;t t
27920 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27921 s&@builddir@&$ac_builddir&;t t
27922 s&@abs_builddir@&$ac_abs_builddir&;t t
27923 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27924 s&@INSTALL@&$ac_INSTALL&;t t
27925 $ac_datarootdir_hack
27927 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27928 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27929 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27930 { (exit 1); exit 1; }; }
27932 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27933 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27934 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27935 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27936 which seems to be undefined. Please make sure it is defined." >&5
27937 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27938 which seems to be undefined. Please make sure it is defined." >&2;}
27940 rm -f "$tmp/stdin"
27941 case $ac_file in
27942 -) cat "$tmp/out" && rm -f "$tmp/out";;
27943 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27944 esac \
27945 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27946 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27947 { (exit 1); exit 1; }; }
27951 # CONFIG_HEADER
27953 if test x"$ac_file" != x-; then
27955 $as_echo "/* $configure_input */" \
27956 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27957 } >"$tmp/config.h" \
27958 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27959 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27960 { (exit 1); exit 1; }; }
27961 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27962 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27963 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27964 else
27965 rm -f "$ac_file"
27966 mv "$tmp/config.h" "$ac_file" \
27967 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27968 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27969 { (exit 1); exit 1; }; }
27971 else
27972 $as_echo "/* $configure_input */" \
27973 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27974 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27975 $as_echo "$as_me: error: could not create -" >&2;}
27976 { (exit 1); exit 1; }; }
27980 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27981 $as_echo "$as_me: executing $ac_file commands" >&6;}
27983 esac
27986 case $ac_file$ac_mode in
27987 "default":C)
27989 ### Make the necessary directories, if they don't exist.
27990 for dir in etc lisp ; do
27991 test -d ${dir} || mkdir ${dir}
27992 done
27994 # Build src/Makefile from ${srcdir}/src/Makefile.c
27995 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27996 # This must be done after src/config.h is built, since we rely on that file.
27998 echo creating src/epaths.h
27999 ${MAKE-make} epaths-force
28001 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28002 # `..' to `. .' unless invoked with -traditional
28004 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
28005 CPPFLAGS="$CPPFLAGS -traditional"
28008 echo creating src/Makefile
28009 ( cd src
28010 rm -f junk.c junk1.c junk2.c
28011 sed -e '/start of cpp stuff/q' \
28012 < Makefile.c > junk1.c
28013 sed -e '1,/start of cpp stuff/d'\
28014 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28015 < Makefile.c > junk.c
28016 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
28017 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28018 cat junk1.c junk2.c > Makefile.new
28019 rm -f junk.c junk1.c junk2.c
28020 chmod 444 Makefile.new
28021 mv -f Makefile.new Makefile
28024 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
28025 echo creating src/.gdbinit
28026 echo source $srcdir/src/.gdbinit > src/.gdbinit
28031 esac
28032 done # for ac_tag
28035 { (exit 0); exit 0; }
28036 _ACEOF
28037 chmod +x $CONFIG_STATUS
28038 ac_clean_files=$ac_clean_files_save
28040 test $ac_write_fail = 0 ||
28041 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28042 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28043 { (exit 1); exit 1; }; }
28046 # configure is writing to config.log, and then calls config.status.
28047 # config.status does its own redirection, appending to config.log.
28048 # Unfortunately, on DOS this fails, as config.log is still kept open
28049 # by configure, so config.status won't be able to write to it; its
28050 # output is simply discarded. So we exec the FD to /dev/null,
28051 # effectively closing config.log, so it can be properly (re)opened and
28052 # appended to by config.status. When coming back to configure, we
28053 # need to make the FD available again.
28054 if test "$no_create" != yes; then
28055 ac_cs_success=:
28056 ac_config_status_args=
28057 test "$silent" = yes &&
28058 ac_config_status_args="$ac_config_status_args --quiet"
28059 exec 5>/dev/null
28060 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28061 exec 5>>config.log
28062 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28063 # would make configure fail if this is the last instruction.
28064 $ac_cs_success || { (exit 1); exit 1; }
28066 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28067 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28068 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}