changed looping according to feedback from stefan monnier
[emacs.git] / configure
blobd06764e260190be24e8ce6c7089c362198318dda
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 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_func_list=
640 ac_header_list=
641 ac_subst_vars='LTLIBOBJS
642 LIB_GCC
643 LD_SWITCH_SYSTEM_EXTRA
644 LD_SWITCH_SYSTEM_TEMACS
645 POST_ALLOC_OBJ
646 PRE_ALLOC_OBJ
647 CYGWIN_OBJ
648 LIBX_OTHER
649 LIBXMENU
650 OLDXMENU
651 LIBXT_OTHER
652 TOOLKIT_LIBW
653 WIDGET_OBJ
654 XOBJ
655 XMENU_OBJ
656 OTHER_FILES
657 GNU_OBJC_CFLAGS
658 GNUSTEP_SYSTEM_LIBRARIES
659 GNUSTEP_SYSTEM_HEADERS
660 GNUSTEP_MAKEFILES
661 ns_appsrc
662 ns_appresdir
663 ns_appbindir
664 ns_appdir
665 opsysfile
666 machfile
667 X_TOOLKIT_TYPE
668 C_SWITCH_X_SYSTEM
669 C_SWITCH_X_SITE
670 LD_SWITCH_X_SITE
671 unexec
672 gameuser
673 gamedir
674 bitmapdir
675 archlibdir
676 etcdir
677 x_default_search_path
678 lisppath
679 locallisppath
680 lispdir
681 srcdir
682 canonical
683 configuration
684 version
685 KRB4LIB
686 DESLIB
687 KRB5LIB
688 CRYPTOLIB
689 COM_ERRLIB
690 LIBRESOLV
691 LIBHESIOD
692 TERMCAP_OBJ
693 LIBS_TERMCAP
694 GETOPTOBJS
695 GETOPT_H
696 GETLOADAVG_LIBS
697 KMEM_GROUP
698 NEED_SETGID
699 LIBOBJS
700 BLESSMAIL_TARGET
701 LIBS_MAIL
702 liblockfile
703 ALLOCA
704 LIBXSM
705 GPM_MOUSE_SUPPORT
706 LIBGPM
707 LIBGIF
708 LIBTIFF
709 LIBPNG
710 LIBJPEG
711 LIBXPM
712 FREETYPE_LIBS
713 FREETYPE_CFLAGS
714 FONT_OBJ
715 M17N_FLT_LIBS
716 M17N_FLT_CFLAGS
717 LIBOTF_LIBS
718 LIBOTF_CFLAGS
719 XFT_LIBS
720 XFT_CFLAGS
721 FONTCONFIG_LIBS
722 FONTCONFIG_CFLAGS
723 LIBXMU
724 LIBXTR6
725 LIBSELINUX_LIBS
726 GCONF_LIBS
727 GCONF_CFLAGS
728 DBUS_OBJ
729 DBUS_LIBS
730 DBUS_CFLAGS
731 GTK_OBJ
732 GTK_LIBS
733 GTK_CFLAGS
734 IMAGEMAGICK_LIBS
735 IMAGEMAGICK_CFLAGS
736 RSVG_LIBS
737 RSVG_CFLAGS
738 HAVE_XSERVER
739 LIB_STANDARD
740 NS_SUPPORT
741 NS_OBJ
742 LD_SWITCH_X_SITE_AUX_RPATH
743 LD_SWITCH_X_SITE_AUX
744 XMKMF
745 SET_MAKE
746 CFLAGS_SOUND
747 ALSA_LIBS
748 ALSA_CFLAGS
749 PKG_CONFIG
750 LIBSOUND
751 START_FILES
752 LIB_MATH
753 CRT_DIR
754 LIBS_SYSTEM
755 C_SWITCH_SYSTEM
756 C_SWITCH_MACHINE
757 LD_SWITCH_SYSTEM
758 MAKEINFO
759 GZIP_PROG
760 INSTALL_INFO
761 RANLIB
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 EGREP
766 GREP
768 OBJEXT
769 EXEEXT
770 ac_ct_CC
771 CPPFLAGS
772 LDFLAGS
773 CFLAGS
775 host_os
776 host_vendor
777 host_cpu
778 host
779 build_os
780 build_vendor
781 build_cpu
782 build
783 MAINT
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_BUGREPORT
815 PACKAGE_STRING
816 PACKAGE_VERSION
817 PACKAGE_TARNAME
818 PACKAGE_NAME
819 PATH_SEPARATOR
820 SHELL'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 with_pop
825 with_kerberos
826 with_kerberos5
827 with_hesiod
828 with_mmdf
829 with_mail_unlink
830 with_mailhost
831 with_sound
832 with_sync_input
833 with_x_toolkit
834 with_xpm
835 with_jpeg
836 with_tiff
837 with_gif
838 with_png
839 with_rsvg
840 with_imagemagick
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 --with-imagemagick compile with ImageMagick image support
1555 --without-xft don't use XFT for anti aliased fonts
1556 --without-libotf don't use libotf for OpenType font support
1557 --without-m17n-flt don't use m17n-flt for text shaping
1558 --without-toolkit-scroll-bars
1559 don't use Motif or Xaw3d scroll bars
1560 --without-xaw3d don't use Xaw3d
1561 --without-xim don't use X11 XIM
1562 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1563 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1564 console
1565 --without-dbus don't compile with D-Bus support
1566 --without-gconf don't compile with GConf support
1567 --without-selinux don't compile with SELinux support
1568 --without-makeinfo don't require makeinfo for building manuals
1570 --with-pkg-config-prog=PATH
1571 path to pkg-config for finding GTK and librsvg
1572 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1573 /usr/lib, or /usr/lib64 on some platforms.
1574 --with-gnustep-conf=PATH
1575 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1576 or /etc/GNUstep/GNUstep.conf
1577 --with-x use the X Window System
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 LIBS libraries to pass to the linker, e.g. -l<library>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1587 CPP C preprocessor
1588 XMKMF Path to xmkmf, Makefile generator for X Window System
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1593 _ACEOF
1594 ac_status=$?
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
1603 ac_builddir=.
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1621 case $srcdir in
1622 .) # We are building in place.
1623 ac_srcdir=.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1645 else
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 emacs configure 24.0.50
1656 generated by GNU Autoconf 2.63
1658 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1662 _ACEOF
1663 exit
1665 cat >config.log <<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1669 It was created by emacs $as_me 24.0.50, which was
1670 generated by GNU Autoconf 2.63. Invocation command line was
1672 $ $0 $@
1674 _ACEOF
1675 exec 5>>config.log
1677 cat <<_ASUNAME
1678 ## --------- ##
1679 ## Platform. ##
1680 ## --------- ##
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1691 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1695 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1699 _ASUNAME
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 $as_echo "PATH: $as_dir"
1707 done
1708 IFS=$as_save_IFS
1710 } >&5
1712 cat >&5 <<_ACEOF
1715 ## ----------- ##
1716 ## Core tests. ##
1717 ## ----------- ##
1719 _ACEOF
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1727 ac_configure_args=
1728 ac_configure_args0=
1729 ac_configure_args1=
1730 ac_must_keep_next=false
1731 for ac_pass in 1 2
1733 for ac_arg
1735 case $ac_arg in
1736 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738 | -silent | --silent | --silen | --sile | --sil)
1739 continue ;;
1740 *\'*)
1741 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 esac
1743 case $ac_pass in
1744 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1746 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true; then
1748 ac_must_keep_next=false # Got value, back to normal.
1749 else
1750 case $ac_arg in
1751 *=* | --config-cache | -C | -disable-* | --disable-* \
1752 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754 | -with-* | --with-* | -without-* | --without-* | --x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 esac
1759 -* ) ac_must_keep_next=true ;;
1760 esac
1762 ac_configure_args="$ac_configure_args '$ac_arg'"
1764 esac
1765 done
1766 done
1767 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1768 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log. We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1778 echo
1780 cat <<\_ASBOX
1781 ## ---------------- ##
1782 ## Cache variables. ##
1783 ## ---------------- ##
1784 _ASBOX
1785 echo
1786 # The following way of writing the cache mishandles newlines in values,
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in #(
1791 *${as_nl}*)
1792 case $ac_var in #(
1793 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1795 esac
1796 case $ac_var in #(
1797 _ | IFS | as_nl) ;; #(
1798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1799 *) $as_unset $ac_var ;;
1800 esac ;;
1801 esac
1802 done
1803 (set) 2>&1 |
1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
1806 sed -n \
1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 ;; #(
1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1813 esac |
1814 sort
1816 echo
1818 cat <<\_ASBOX
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1822 _ASBOX
1823 echo
1824 for ac_var in $ac_subst_vars
1826 eval ac_val=\$$ac_var
1827 case $ac_val in
1828 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 esac
1830 $as_echo "$ac_var='\''$ac_val'\''"
1831 done | sort
1832 echo
1834 if test -n "$ac_subst_files"; then
1835 cat <<\_ASBOX
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1839 _ASBOX
1840 echo
1841 for ac_var in $ac_subst_files
1843 eval ac_val=\$$ac_var
1844 case $ac_val in
1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 esac
1847 $as_echo "$ac_var='\''$ac_val'\''"
1848 done | sort
1849 echo
1852 if test -s confdefs.h; then
1853 cat <<\_ASBOX
1854 ## ----------- ##
1855 ## confdefs.h. ##
1856 ## ----------- ##
1857 _ASBOX
1858 echo
1859 cat confdefs.h
1860 echo
1862 test "$ac_signal" != 0 &&
1863 $as_echo "$as_me: caught signal $ac_signal"
1864 $as_echo "$as_me: exit $exit_status"
1865 } >&5
1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868 exit $exit_status
1870 for ac_signal in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1872 done
1873 ac_signal=0
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest* confdefs.h
1878 # Predefined preprocessor variables.
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1882 _ACEOF
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 _ACEOF
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1892 _ACEOF
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1897 _ACEOF
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1902 _ACEOF
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer an explicitly selected file to automatically selected ones.
1907 ac_site_file1=NONE
1908 ac_site_file2=NONE
1909 if test -n "$CONFIG_SITE"; then
1910 ac_site_file1=$CONFIG_SITE
1911 elif test "x$prefix" != xNONE; then
1912 ac_site_file1=$prefix/share/config.site
1913 ac_site_file2=$prefix/etc/config.site
1914 else
1915 ac_site_file1=$ac_default_prefix/share/config.site
1916 ac_site_file2=$ac_default_prefix/etc/config.site
1918 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1920 test "x$ac_site_file" = xNONE && continue
1921 if test -r "$ac_site_file"; then
1922 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1924 sed 's/^/| /' "$ac_site_file" >&5
1925 . "$ac_site_file"
1927 done
1929 if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special
1931 # files actually), so we avoid doing that.
1932 if test -f "$cache_file"; then
1933 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934 $as_echo "$as_me: loading cache $cache_file" >&6;}
1935 case $cache_file in
1936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937 *) . "./$cache_file";;
1938 esac
1940 else
1941 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942 $as_echo "$as_me: creating cache $cache_file" >&6;}
1943 >$cache_file
1946 ac_func_list="$ac_func_list MagickExportImagePixels"
1947 ac_header_list="$ac_header_list sys/time.h"
1948 ac_header_list="$ac_header_list unistd.h"
1949 ac_func_list="$ac_func_list alarm"
1950 # Check that the precious variables saved in the cache have kept the same
1951 # value.
1952 ac_cache_corrupted=false
1953 for ac_var in $ac_precious_vars; do
1954 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1955 eval ac_new_set=\$ac_env_${ac_var}_set
1956 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1957 eval ac_new_val=\$ac_env_${ac_var}_value
1958 case $ac_old_set,$ac_new_set in
1959 set,)
1960 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1961 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1962 ac_cache_corrupted=: ;;
1963 ,set)
1964 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1965 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1967 ,);;
1969 if test "x$ac_old_val" != "x$ac_new_val"; then
1970 # differences in whitespace do not lead to failure.
1971 ac_old_val_w=`echo x $ac_old_val`
1972 ac_new_val_w=`echo x $ac_new_val`
1973 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1974 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1975 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1976 ac_cache_corrupted=:
1977 else
1978 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1979 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1980 eval $ac_var=\$ac_old_val
1982 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1983 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1984 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1985 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1986 fi;;
1987 esac
1988 # Pass precious variables to config.status.
1989 if test "$ac_new_set" = set; then
1990 case $ac_new_val in
1991 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 *) ac_arg=$ac_var=$ac_new_val ;;
1993 esac
1994 case " $ac_configure_args " in
1995 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1996 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1997 esac
1999 done
2000 if $ac_cache_corrupted; then
2001 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2004 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2005 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2006 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2007 { (exit 1); exit 1; }; }
2034 ac_ext=c
2035 ac_cpp='$CPP $CPPFLAGS'
2036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2041 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2045 test "$program_prefix" != NONE &&
2046 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2047 # Use a double $ so make ignores it.
2048 test "$program_suffix" != NONE &&
2049 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2050 # Double any \ or $.
2051 # By default was `s,x,x', remove it if useless.
2052 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2053 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2056 lispdir='${datadir}/emacs/${version}/lisp'
2057 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2058 '${datadir}/emacs/site-lisp'
2059 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2060 etcdir='${datadir}/emacs/${version}/etc'
2061 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2062 docdir='${datadir}/emacs/${version}/etc'
2063 gamedir='${localstatedir}/games/emacs'
2065 gameuser=games
2070 # Check whether --with-pop was given.
2071 if test "${with_pop+set}" = set; then
2072 withval=$with_pop;
2073 else
2074 with_pop=yes
2077 if test "$with_pop" = yes; then
2078 cat >>confdefs.h <<\_ACEOF
2079 #define MAIL_USE_POP 1
2080 _ACEOF
2086 # Check whether --with-kerberos was given.
2087 if test "${with_kerberos+set}" = set; then
2088 withval=$with_kerberos;
2089 else
2090 with_kerberos=no
2093 if test "$with_kerberos" != no; then
2094 cat >>confdefs.h <<\_ACEOF
2095 #define KERBEROS 1
2096 _ACEOF
2102 # Check whether --with-kerberos5 was given.
2103 if test "${with_kerberos5+set}" = set; then
2104 withval=$with_kerberos5;
2105 else
2106 with_kerberos5=no
2109 if test "${with_kerberos5}" != no; then
2110 if test "${with_kerberos}" = no; then
2111 with_kerberos=yes
2112 cat >>confdefs.h <<\_ACEOF
2113 #define KERBEROS 1
2114 _ACEOF
2118 cat >>confdefs.h <<\_ACEOF
2119 #define KERBEROS5 1
2120 _ACEOF
2125 # Check whether --with-hesiod was given.
2126 if test "${with_hesiod+set}" = set; then
2127 withval=$with_hesiod;
2128 else
2129 with_hesiod=no
2132 if test "$with_hesiod" != no; then
2134 cat >>confdefs.h <<\_ACEOF
2135 #define HESIOD 1
2136 _ACEOF
2141 # Check whether --with-mmdf was given.
2142 if test "${with_mmdf+set}" = set; then
2143 withval=$with_mmdf;
2144 else
2145 with_mmdf=no
2148 if test "$with_mmdf" != no; then
2150 cat >>confdefs.h <<\_ACEOF
2151 #define MAIL_USE_MMDF 1
2152 _ACEOF
2157 # Check whether --with-mail-unlink was given.
2158 if test "${with_mail_unlink+set}" = set; then
2159 withval=$with_mail_unlink;
2160 else
2161 with_mail_unlink=no
2164 if test "$with_mail_unlink" != no; then
2166 cat >>confdefs.h <<\_ACEOF
2167 #define MAIL_UNLINK_SPOOL 1
2168 _ACEOF
2173 # Check whether --with-mailhost was given.
2174 if test "${with_mailhost+set}" = set; then
2175 withval=$with_mailhost;
2176 cat >>confdefs.h <<_ACEOF
2177 #define MAILHOST "$withval"
2178 _ACEOF
2184 # Check whether --with-sound was given.
2185 if test "${with_sound+set}" = set; then
2186 withval=$with_sound;
2187 else
2188 with_sound=yes
2193 # Check whether --with-sync-input was given.
2194 if test "${with_sync_input+set}" = set; then
2195 withval=$with_sync_input;
2196 else
2197 with_sync_input=yes
2200 if test "$with_sync_input" = yes; then
2202 cat >>confdefs.h <<\_ACEOF
2203 #define SYNC_INPUT 1
2204 _ACEOF
2209 # Check whether --with-x-toolkit was given.
2210 if test "${with_x_toolkit+set}" = set; then
2211 withval=$with_x_toolkit; case "${withval}" in
2212 y | ye | yes ) val=gtk ;;
2213 n | no ) val=no ;;
2214 l | lu | luc | luci | lucid ) val=lucid ;;
2215 a | at | ath | athe | athen | athena ) val=athena ;;
2216 m | mo | mot | moti | motif ) val=motif ;;
2217 g | gt | gtk ) val=gtk ;;
2219 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2220 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2221 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2222 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2223 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2224 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2225 { (exit 1); exit 1; }; }
2227 esac
2228 with_x_toolkit=$val
2234 # Check whether --with-xpm was given.
2235 if test "${with_xpm+set}" = set; then
2236 withval=$with_xpm;
2237 else
2238 with_xpm=yes
2242 # Check whether --with-jpeg was given.
2243 if test "${with_jpeg+set}" = set; then
2244 withval=$with_jpeg;
2245 else
2246 with_jpeg=yes
2250 # Check whether --with-tiff was given.
2251 if test "${with_tiff+set}" = set; then
2252 withval=$with_tiff;
2253 else
2254 with_tiff=yes
2258 # Check whether --with-gif was given.
2259 if test "${with_gif+set}" = set; then
2260 withval=$with_gif;
2261 else
2262 with_gif=yes
2266 # Check whether --with-png was given.
2267 if test "${with_png+set}" = set; then
2268 withval=$with_png;
2269 else
2270 with_png=yes
2274 # Check whether --with-rsvg was given.
2275 if test "${with_rsvg+set}" = set; then
2276 withval=$with_rsvg;
2277 else
2278 with_rsvg=yes
2282 # Check whether --with-imagemagick was given.
2283 if test "${with_imagemagick+set}" = set; then
2284 withval=$with_imagemagick;
2285 else
2286 with_imagemagick=no
2291 # Check whether --with-xft was given.
2292 if test "${with_xft+set}" = set; then
2293 withval=$with_xft;
2294 else
2295 with_xft=yes
2299 # Check whether --with-libotf was given.
2300 if test "${with_libotf+set}" = set; then
2301 withval=$with_libotf;
2302 else
2303 with_libotf=yes
2307 # Check whether --with-m17n-flt was given.
2308 if test "${with_m17n_flt+set}" = set; then
2309 withval=$with_m17n_flt;
2310 else
2311 with_m17n_flt=yes
2316 # Check whether --with-toolkit-scroll-bars was given.
2317 if test "${with_toolkit_scroll_bars+set}" = set; then
2318 withval=$with_toolkit_scroll_bars;
2319 else
2320 with_toolkit_scroll_bars=yes
2324 # Check whether --with-xaw3d was given.
2325 if test "${with_xaw3d+set}" = set; then
2326 withval=$with_xaw3d;
2327 else
2328 with_xaw3d=yes
2332 # Check whether --with-xim was given.
2333 if test "${with_xim+set}" = set; then
2334 withval=$with_xim;
2335 else
2336 with_xim=yes
2340 # Check whether --with-ns was given.
2341 if test "${with_ns+set}" = set; then
2342 withval=$with_ns;
2343 else
2344 with_ns=no
2349 # Check whether --with-gpm was given.
2350 if test "${with_gpm+set}" = set; then
2351 withval=$with_gpm;
2352 else
2353 with_gpm=yes
2357 # Check whether --with-dbus was given.
2358 if test "${with_dbus+set}" = set; then
2359 withval=$with_dbus;
2360 else
2361 with_dbus=yes
2365 # Check whether --with-gconf was given.
2366 if test "${with_gconf+set}" = set; then
2367 withval=$with_gconf;
2368 else
2369 with_gconf=yes
2373 # Check whether --with-selinux was given.
2374 if test "${with_selinux+set}" = set; then
2375 withval=$with_selinux;
2376 else
2377 with_selinux=yes
2381 ## For the times when you want to build Emacs but don't have
2382 ## a suitable makeinfo, and can live without the manuals.
2384 # Check whether --with-makeinfo was given.
2385 if test "${with_makeinfo+set}" = set; then
2386 withval=$with_makeinfo;
2387 else
2388 with_makeinfo=yes
2393 # Check whether --with-gtk was given.
2394 if test "${with_gtk+set}" = set; then
2395 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2396 specify a toolkit." >&5
2397 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2398 specify a toolkit." >&2;}
2399 { (exit 1); exit 1; }; }
2404 # Check whether --with-gcc was given.
2405 if test "${with_gcc+set}" = set; then
2406 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2407 variable to specify a compiler." >&5
2408 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2409 variable to specify a compiler." >&2;}
2410 { (exit 1); exit 1; }; }
2415 # Check whether --with-pkg-config-prog was given.
2416 if test "${with_pkg_config_prog+set}" = set; then
2417 withval=$with_pkg_config_prog;
2420 if test "X${with_pkg_config_prog}" != X; then
2421 if test "${with_pkg_config_prog}" != yes; then
2422 PKG_CONFIG="${with_pkg_config_prog}"
2426 CRT_DIR=
2428 # Check whether --with-crt-dir was given.
2429 if test "${with_crt_dir+set}" = set; then
2430 withval=$with_crt_dir;
2433 CRT_DIR="${with_crt_dir}"
2436 # Check whether --with-gnustep-conf was given.
2437 if test "${with_gnustep_conf+set}" = set; then
2438 withval=$with_gnustep_conf;
2441 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2442 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2443 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2444 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2446 # Check whether --enable-ns-self-contained was given.
2447 if test "${enable_ns_self_contained+set}" = set; then
2448 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2449 else
2450 EN_NS_SELF_CONTAINED=yes
2454 # Check whether --enable-asserts was given.
2455 if test "${enable_asserts+set}" = set; then
2456 enableval=$enable_asserts; USE_XASSERTS=$enableval
2457 else
2458 USE_XASSERTS=no
2462 # Check whether --enable-maintainer-mode was given.
2463 if test "${enable_maintainer_mode+set}" = set; then
2464 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2465 else
2466 USE_MAINTAINER_MODE=no
2469 if test $USE_MAINTAINER_MODE = yes; then
2470 MAINT=
2471 else
2472 MAINT=#
2476 # Check whether --enable-locallisppath was given.
2477 if test "${enable_locallisppath+set}" = set; then
2478 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2479 locallisppath=
2480 elif test "${enableval}" != "yes"; then
2481 locallisppath=${enableval}
2486 # Check whether --enable-checking was given.
2487 if test "${enable_checking+set}" = set; then
2488 enableval=$enable_checking; ac_checking_flags="${enableval}"
2491 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2492 for check in $ac_checking_flags
2494 case $check in
2495 # these set all the flags to specific states
2496 yes) ac_enable_checking=1 ;;
2497 no) ac_enable_checking= ;
2498 ac_gc_check_stringbytes= ;
2499 ac_gc_check_string_overrun= ;
2500 ac_gc_check_string_free_list= ;
2501 ac_xmalloc_overrun= ;
2502 ac_gc_check_cons_list= ;;
2503 all) ac_enable_checking=1 ;
2504 ac_gc_check_stringbytes=1 ;
2505 ac_gc_check_string_overrun=1 ;
2506 ac_gc_check_string_free_list=1 ;
2507 ac_xmalloc_overrun=1 ;
2508 ac_gc_check_cons_list=1 ;;
2509 # these enable particular checks
2510 stringbytes) ac_gc_check_stringbytes=1 ;;
2511 stringoverrun) ac_gc_check_string_overrun=1 ;;
2512 stringfreelist) ac_gc_check_string_free_list=1 ;;
2513 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2514 conslist) ac_gc_check_cons_list=1 ;;
2515 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2516 $as_echo "$as_me: error: unknown check category $check" >&2;}
2517 { (exit 1); exit 1; }; } ;;
2518 esac
2519 done
2520 IFS="$ac_save_IFS"
2522 if test x$ac_enable_checking != x ; then
2524 cat >>confdefs.h <<\_ACEOF
2525 #define ENABLE_CHECKING 1
2526 _ACEOF
2529 if test x$ac_gc_check_stringbytes != x ; then
2531 cat >>confdefs.h <<\_ACEOF
2532 #define GC_CHECK_STRING_BYTES 1
2533 _ACEOF
2536 if test x$ac_gc_check_stringoverrun != x ; then
2538 cat >>confdefs.h <<\_ACEOF
2539 #define GC_CHECK_STRING_OVERRUN 1
2540 _ACEOF
2543 if test x$ac_gc_check_string_free_list != x ; then
2545 cat >>confdefs.h <<\_ACEOF
2546 #define GC_CHECK_STRING_FREE_LIST 1
2547 _ACEOF
2550 if test x$ac_xmalloc_overrun != x ; then
2552 cat >>confdefs.h <<\_ACEOF
2553 #define XMALLOC_OVERRUN_CHECK 1
2554 _ACEOF
2557 if test x$ac_gc_check_cons_list != x ; then
2559 cat >>confdefs.h <<\_ACEOF
2560 #define GC_CHECK_CONS_LIST 1
2561 _ACEOF
2565 # Check whether --enable-profiling was given.
2566 if test "${enable_profiling+set}" = set; then
2567 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2570 if test x$ac_enable_profiling != x ; then
2571 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2572 PROFILING_LDFLAGS="-pg"
2573 else
2574 PROFILING_CFLAGS=
2575 PROFILING_LDFLAGS=
2578 # Check whether --enable-autodepend was given.
2579 if test "${enable_autodepend+set}" = set; then
2580 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2581 else
2582 ac_enable_autodepend=yes
2586 #### Make srcdir absolute, if it isn't already. It's important to
2587 #### avoid running the path through pwd unnecessarily, since pwd can
2588 #### give you automounter prefixes, which can go away. We do all this
2589 #### so Emacs can find its files when run uninstalled.
2590 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2591 unset CDPATH
2592 case "${srcdir}" in
2593 /* ) ;;
2595 ## We may be able to use the $PWD environment variable to make this
2596 ## absolute. But sometimes PWD is inaccurate.
2597 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2598 ## but that tested only for a well-formed and valid PWD,
2599 ## it did not object when PWD was well-formed and valid but just wrong.
2600 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2601 then
2602 srcdir="$PWD"
2603 else
2604 srcdir="`(cd ${srcdir}; pwd)`"
2607 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2608 esac
2610 #### Check if the source directory already has a configured system in it.
2611 if test `pwd` != `(cd ${srcdir} && pwd)` \
2612 && test -f "${srcdir}/src/config.h" ; then
2613 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2614 as a build directory right now; it has been configured in its own
2615 right. To configure in another directory as well, you MUST
2616 use GNU make. If you do not have GNU make, then you must
2617 now do \`make distclean' in ${srcdir},
2618 and then run $0 again." >&5
2619 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2620 as a build directory right now; it has been configured in its own
2621 right. To configure in another directory as well, you MUST
2622 use GNU make. If you do not have GNU make, then you must
2623 now do \`make distclean' in ${srcdir},
2624 and then run $0 again." >&2;}
2627 #### Given the configuration name, set machfile and opsysfile to the
2628 #### names of the m/*.h and s/*.h files we should use.
2630 ### Canonicalize the configuration name.
2632 ac_aux_dir=
2633 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2634 if test -f "$ac_dir/install-sh"; then
2635 ac_aux_dir=$ac_dir
2636 ac_install_sh="$ac_aux_dir/install-sh -c"
2637 break
2638 elif test -f "$ac_dir/install.sh"; then
2639 ac_aux_dir=$ac_dir
2640 ac_install_sh="$ac_aux_dir/install.sh -c"
2641 break
2642 elif test -f "$ac_dir/shtool"; then
2643 ac_aux_dir=$ac_dir
2644 ac_install_sh="$ac_aux_dir/shtool install -c"
2645 break
2647 done
2648 if test -z "$ac_aux_dir"; then
2649 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2650 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2651 { (exit 1); exit 1; }; }
2654 # These three variables are undocumented and unsupported,
2655 # and are intended to be withdrawn in a future Autoconf release.
2656 # They can cause serious problems if a builder's source tree is in a directory
2657 # whose full name contains unusual characters.
2658 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2659 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2660 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2663 # Make sure we can run config.sub.
2664 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2665 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2666 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2667 { (exit 1); exit 1; }; }
2669 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2670 $as_echo_n "checking build system type... " >&6; }
2671 if test "${ac_cv_build+set}" = set; then
2672 $as_echo_n "(cached) " >&6
2673 else
2674 ac_build_alias=$build_alias
2675 test "x$ac_build_alias" = x &&
2676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2677 test "x$ac_build_alias" = x &&
2678 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2679 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2680 { (exit 1); exit 1; }; }
2681 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2682 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2683 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2684 { (exit 1); exit 1; }; }
2687 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2688 $as_echo "$ac_cv_build" >&6; }
2689 case $ac_cv_build in
2690 *-*-*) ;;
2691 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2692 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2693 { (exit 1); exit 1; }; };;
2694 esac
2695 build=$ac_cv_build
2696 ac_save_IFS=$IFS; IFS='-'
2697 set x $ac_cv_build
2698 shift
2699 build_cpu=$1
2700 build_vendor=$2
2701 shift; shift
2702 # Remember, the first character of IFS is used to create $*,
2703 # except with old shells:
2704 build_os=$*
2705 IFS=$ac_save_IFS
2706 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2709 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2710 $as_echo_n "checking host system type... " >&6; }
2711 if test "${ac_cv_host+set}" = set; then
2712 $as_echo_n "(cached) " >&6
2713 else
2714 if test "x$host_alias" = x; then
2715 ac_cv_host=$ac_cv_build
2716 else
2717 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2718 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2719 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2720 { (exit 1); exit 1; }; }
2724 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2725 $as_echo "$ac_cv_host" >&6; }
2726 case $ac_cv_host in
2727 *-*-*) ;;
2728 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2729 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2730 { (exit 1); exit 1; }; };;
2731 esac
2732 host=$ac_cv_host
2733 ac_save_IFS=$IFS; IFS='-'
2734 set x $ac_cv_host
2735 shift
2736 host_cpu=$1
2737 host_vendor=$2
2738 shift; shift
2739 # Remember, the first character of IFS is used to create $*,
2740 # except with old shells:
2741 host_os=$*
2742 IFS=$ac_save_IFS
2743 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2746 canonical=$host
2747 configuration=${host_alias-${build_alias-$host}}
2751 ### If you add support for a new configuration, add code to this
2752 ### switch statement to recognize your configuration name and select
2753 ### the appropriate operating system and machine description files.
2755 ### You would hope that you could choose an m/*.h file pretty much
2756 ### based on the machine portion of the configuration name, and an s-
2757 ### file based on the operating system portion. However, it turns out
2758 ### that each m/*.h file is pretty manufacturer-specific - for
2759 ### example mips.h is MIPS
2760 ### So we basically have to have a special case for each
2761 ### configuration name.
2763 ### As far as handling version numbers on operating systems is
2764 ### concerned, make sure things will fail in a fixable way. If
2765 ### /etc/MACHINES doesn't say anything about version numbers, be
2766 ### prepared to handle anything reasonably. If version numbers
2767 ### matter, be sure /etc/MACHINES says something about it.
2769 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2770 ### "System V Release 4"; he writes, "The old convention encouraged
2771 ### confusion between `system' and `release' levels'."
2773 machine='' opsys='' unported=no
2774 case "${canonical}" in
2776 ## FreeBSD ports
2777 *-*-freebsd* )
2778 opsys=freebsd
2779 case "${canonical}" in
2780 alpha*-*-freebsd*) machine=alpha ;;
2781 arm*-*-freebsd*) machine=arm ;;
2782 ia64-*-freebsd*) machine=ia64 ;;
2783 sparc-*-freebsd*) machine=sparc ;;
2784 sparc64-*-freebsd*) machine=sparc ;;
2785 powerpc-*-freebsd*) machine=macppc ;;
2786 i[3456]86-*-freebsd*) machine=intel386 ;;
2787 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2788 esac
2791 ## FreeBSD kernel + glibc based userland
2792 *-*-kfreebsd*gnu* )
2793 opsys=gnu-kfreebsd
2794 case "${canonical}" in
2795 alpha*-*-kfreebsd*) machine=alpha ;;
2796 ia64-*-kfreebsd*) machine=ia64 ;;
2797 sparc-*-kfreebsd*) machine=sparc ;;
2798 sparc64-*-kfreebsd*) machine=sparc ;;
2799 powerpc-*-kfreebsd*) machine=macppc ;;
2800 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2801 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2802 esac
2805 ## NetBSD ports
2806 *-*-netbsd* )
2807 opsys=netbsd
2808 case "${canonical}" in
2809 alpha*-*-netbsd*) machine=alpha ;;
2810 i[3456]86-*-netbsd*) machine=intel386 ;;
2811 mips-*-netbsd*) machine=mips ;;
2812 mipsel-*-netbsd*) machine=mips ;;
2813 mipseb-*-netbsd*) machine=mips ;;
2814 powerpc-*-netbsd*) machine=macppc ;;
2815 sparc*-*-netbsd*) machine=sparc ;;
2816 vax-*-netbsd*) machine=vax ;;
2817 arm-*-netbsd*) machine=arm ;;
2818 x86_64-*-netbsd*) machine=amdx86-64 ;;
2819 hppa-*-netbsd*) machine=hp800 ;;
2820 m68k-*-netbsd*) machine=m68k ;;
2821 esac
2824 ## OpenBSD ports
2825 *-*-openbsd* )
2826 opsys=openbsd
2827 case "${canonical}" in
2828 alpha*-*-openbsd*) machine=alpha ;;
2829 arm-*-openbsd*) machine=arm ;;
2830 i386-*-openbsd*) machine=intel386 ;;
2831 powerpc-*-openbsd*) machine=macppc ;;
2832 sparc*-*-openbsd*) machine=sparc ;;
2833 vax-*-openbsd*) machine=vax ;;
2834 x86_64-*-openbsd*) machine=amdx86-64 ;;
2835 hppa-*-openbsd*) machine=hp800 ;;
2836 esac
2839 alpha*-*-linux-gnu* )
2840 machine=alpha opsys=gnu-linux
2843 arm*-*-linux-gnu* )
2844 machine=arm opsys=gnu-linux
2847 ## Apple Darwin / Mac OS X
2848 *-apple-darwin* )
2849 case "${canonical}" in
2850 i[3456]86-* ) machine=intel386 ;;
2851 powerpc-* ) machine=macppc ;;
2852 x86_64-* ) machine=amdx86-64 ;;
2853 * ) unported=yes ;;
2854 esac
2855 opsys=darwin
2856 # Define CPP as follows to make autoconf work correctly.
2857 CPP="${CC-cc} -E -no-cpp-precomp"
2858 # Use fink packages if available.
2859 if test -d /sw/include && test -d /sw/lib; then
2860 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2861 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2862 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2866 ## HP 9000 series 700 and 800, running HP/UX
2867 hppa*-hp-hpux10.2* )
2868 machine=hp800 opsys=hpux10-20
2870 hppa*-hp-hpux1[1-9]* )
2871 machine=hp800 opsys=hpux11
2872 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2875 hppa*-*-linux-gnu* )
2876 machine=hp800 opsys=gnu-linux
2879 ## IBM machines
2880 s390-*-linux-gnu* )
2881 machine=ibms390 opsys=gnu-linux
2883 s390x-*-linux-gnu* )
2884 machine=ibms390x opsys=gnu-linux
2886 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2887 machine=ibmrs6000 opsys=aix4-2
2889 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2890 machine=ibmrs6000 opsys=aix4-2
2892 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2893 machine=ibmrs6000 opsys=aix4-2
2895 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2896 machine=ibmrs6000 opsys=aix4-2
2899 ## Macintosh PowerPC
2900 powerpc*-*-linux-gnu* )
2901 machine=macppc opsys=gnu-linux
2904 ## Silicon Graphics machines
2905 ## Iris 4D
2906 mips-sgi-irix6.5 )
2907 machine=iris4d opsys=irix6-5
2908 # Without defining _LANGUAGE_C, things get masked out in the headers
2909 # so that, for instance, grepping for `free' in stdlib.h fails and
2910 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2911 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2912 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2915 ## Suns
2916 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2917 machine=sparc opsys=gnu-linux
2920 *-sun-solaris* \
2921 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2922 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2923 case "${canonical}" in
2924 i[3456]86-*-* ) machine=intel386 ;;
2925 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2926 sparc* ) machine=sparc ;;
2927 * ) unported=yes ;;
2928 esac
2929 case "${canonical}" in
2930 *-sunos5.6* | *-solaris2.6* )
2931 opsys=sol2-6
2932 NON_GNU_CPP=/usr/ccs/lib/cpp
2933 RANLIB="ar -ts"
2935 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2936 opsys=sol2-6
2937 emacs_check_sunpro_c=yes
2938 NON_GNU_CPP=/usr/ccs/lib/cpp
2940 *-sunos5* | *-solaris* )
2941 opsys=sol2-10
2942 emacs_check_sunpro_c=yes
2943 NON_GNU_CPP=/usr/ccs/lib/cpp
2945 esac
2946 ## Watch out for a compiler that we know will not work.
2947 case "${canonical}" in
2948 *-solaris* | *-sunos5* )
2949 if [ "x$CC" = x/usr/ucb/cc ]; then
2950 ## /usr/ucb/cc doesn't work;
2951 ## we should find some other compiler that does work.
2952 unset CC
2955 *) ;;
2956 esac
2959 ## IA-64
2960 ia64*-*-linux* )
2961 machine=ia64 opsys=gnu-linux
2964 ## Intel 386 machines where we don't care about the manufacturer
2965 i[3456]86-*-* )
2966 machine=intel386
2967 case "${canonical}" in
2968 *-cygwin ) opsys=cygwin ;;
2969 *-darwin* ) opsys=darwin
2970 CPP="${CC-cc} -E -no-cpp-precomp"
2972 *-linux-gnu* ) opsys=gnu-linux ;;
2973 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2974 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2975 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2976 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2977 esac
2980 ## m68k Linux-based GNU system
2981 m68k-*-linux-gnu* )
2982 machine=m68k opsys=gnu-linux
2985 ## Mips Linux-based GNU system
2986 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2987 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2988 machine=mips opsys=gnu-linux
2991 ## AMD x86-64 Linux-based GNU system
2992 x86_64-*-linux-gnu* )
2993 machine=amdx86-64 opsys=gnu-linux
2996 ## Tensilica Xtensa Linux-based GNU system
2997 xtensa*-*-linux-gnu* )
2998 machine=xtensa opsys=gnu-linux
3001 ## SuperH Linux-based GNU system
3002 sh[34]*-*-linux-gnu* )
3003 machine=sh3 opsys=gnu-linux
3007 unported=yes
3009 esac
3011 ### If the code above didn't choose an operating system, just choose
3012 ### an operating system based on the configuration name. You really
3013 ### only want to use this when you have no idea what the right
3014 ### operating system is; if you know what operating systems a machine
3015 ### runs, it's cleaner to make it explicit in the case statement
3016 ### above.
3017 if test x"${opsys}" = x; then
3018 case "${canonical}" in
3019 *-gnu* ) opsys=gnu ;;
3021 unported=yes
3023 esac
3028 if test $unported = yes; then
3029 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3030 Check \`etc/MACHINES' for recognized configuration names." >&5
3031 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3032 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3033 { (exit 1); exit 1; }; }
3036 machfile="m/${machine}.h"
3037 opsysfile="s/${opsys}.h"
3040 #### Choose a compiler.
3041 test -n "$CC" && cc_specified=yes
3043 # Save the value of CFLAGS that the user specified.
3044 SPECIFIED_CFLAGS="$CFLAGS"
3046 ac_ext=c
3047 ac_cpp='$CPP $CPPFLAGS'
3048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051 if test -n "$ac_tool_prefix"; then
3052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_CC+set}" = set; then
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3073 done
3074 done
3075 IFS=$as_save_IFS
3079 CC=$ac_cv_prog_CC
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3083 else
3084 { $as_echo "$as_me:$LINENO: result: no" >&5
3085 $as_echo "no" >&6; }
3090 if test -z "$ac_cv_prog_CC"; then
3091 ac_ct_CC=$CC
3092 # Extract the first word of "gcc", so it can be a program name with args.
3093 set dummy gcc; ac_word=$2
3094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3097 $as_echo_n "(cached) " >&6
3098 else
3099 if test -n "$ac_ct_CC"; then
3100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 ac_cv_prog_ac_ct_CC="gcc"
3110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3113 done
3114 done
3115 IFS=$as_save_IFS
3119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3120 if test -n "$ac_ct_CC"; then
3121 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3122 $as_echo "$ac_ct_CC" >&6; }
3123 else
3124 { $as_echo "$as_me:$LINENO: result: no" >&5
3125 $as_echo "no" >&6; }
3128 if test "x$ac_ct_CC" = x; then
3129 CC=""
3130 else
3131 case $cross_compiling:$ac_tool_warned in
3132 yes:)
3133 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135 ac_tool_warned=yes ;;
3136 esac
3137 CC=$ac_ct_CC
3139 else
3140 CC="$ac_cv_prog_CC"
3143 if test -z "$CC"; then
3144 if test -n "$ac_tool_prefix"; then
3145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3146 set dummy ${ac_tool_prefix}cc; ac_word=$2
3147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if test "${ac_cv_prog_CC+set}" = set; then
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_CC="${ac_tool_prefix}cc"
3163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3166 done
3167 done
3168 IFS=$as_save_IFS
3172 CC=$ac_cv_prog_CC
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3176 else
3177 { $as_echo "$as_me:$LINENO: result: no" >&5
3178 $as_echo "no" >&6; }
3184 if test -z "$CC"; then
3185 # Extract the first word of "cc", so it can be a program name with args.
3186 set dummy cc; ac_word=$2
3187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if test "${ac_cv_prog_CC+set}" = set; then
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -n "$CC"; then
3193 ac_cv_prog_CC="$CC" # Let the user override the test.
3194 else
3195 ac_prog_rejected=no
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3204 ac_prog_rejected=yes
3205 continue
3207 ac_cv_prog_CC="cc"
3208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3211 done
3212 done
3213 IFS=$as_save_IFS
3215 if test $ac_prog_rejected = yes; then
3216 # We found a bogon in the path, so make sure we never use it.
3217 set dummy $ac_cv_prog_CC
3218 shift
3219 if test $# != 0; then
3220 # We chose a different compiler from the bogus one.
3221 # However, it has the same basename, so the bogon will be chosen
3222 # first if we set CC to just the basename; use the full file name.
3223 shift
3224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3229 CC=$ac_cv_prog_CC
3230 if test -n "$CC"; then
3231 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3232 $as_echo "$CC" >&6; }
3233 else
3234 { $as_echo "$as_me:$LINENO: result: no" >&5
3235 $as_echo "no" >&6; }
3240 if test -z "$CC"; then
3241 if test -n "$ac_tool_prefix"; then
3242 for ac_prog in cl.exe
3244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if test "${ac_cv_prog_CC+set}" = set; then
3249 $as_echo_n "(cached) " >&6
3250 else
3251 if test -n "$CC"; then
3252 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3265 done
3266 done
3267 IFS=$as_save_IFS
3271 CC=$ac_cv_prog_CC
3272 if test -n "$CC"; then
3273 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3274 $as_echo "$CC" >&6; }
3275 else
3276 { $as_echo "$as_me:$LINENO: result: no" >&5
3277 $as_echo "no" >&6; }
3281 test -n "$CC" && break
3282 done
3284 if test -z "$CC"; then
3285 ac_ct_CC=$CC
3286 for ac_prog in cl.exe
3288 # Extract the first word of "$ac_prog", so it can be a program name with args.
3289 set dummy $ac_prog; ac_word=$2
3290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if test -n "$ac_ct_CC"; then
3296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305 ac_cv_prog_ac_ct_CC="$ac_prog"
3306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 break 2
3309 done
3310 done
3311 IFS=$as_save_IFS
3315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3316 if test -n "$ac_ct_CC"; then
3317 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3318 $as_echo "$ac_ct_CC" >&6; }
3319 else
3320 { $as_echo "$as_me:$LINENO: result: no" >&5
3321 $as_echo "no" >&6; }
3325 test -n "$ac_ct_CC" && break
3326 done
3328 if test "x$ac_ct_CC" = x; then
3329 CC=""
3330 else
3331 case $cross_compiling:$ac_tool_warned in
3332 yes:)
3333 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3335 ac_tool_warned=yes ;;
3336 esac
3337 CC=$ac_ct_CC
3344 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3347 See \`config.log' for more details." >&5
3348 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3349 See \`config.log' for more details." >&2;}
3350 { (exit 1); exit 1; }; }; }
3352 # Provide some information about the compiler.
3353 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3354 set X $ac_compile
3355 ac_compiler=$2
3356 { (ac_try="$ac_compiler --version >&5"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363 (eval "$ac_compiler --version >&5") 2>&5
3364 ac_status=$?
3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }
3367 { (ac_try="$ac_compiler -v >&5"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3373 $as_echo "$ac_try_echo") >&5
3374 (eval "$ac_compiler -v >&5") 2>&5
3375 ac_status=$?
3376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }
3378 { (ac_try="$ac_compiler -V >&5"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3384 $as_echo "$ac_try_echo") >&5
3385 (eval "$ac_compiler -V >&5") 2>&5
3386 ac_status=$?
3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }
3390 cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h. */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3398 main ()
3402 return 0;
3404 _ACEOF
3405 ac_clean_files_save=$ac_clean_files
3406 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3407 # Try to create an executable without -o first, disregard a.out.
3408 # It will help us diagnose broken compilers, and finding out an intuition
3409 # of exeext.
3410 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3411 $as_echo_n "checking for C compiler default output file name... " >&6; }
3412 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3414 # The possible output files:
3415 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3417 ac_rmfiles=
3418 for ac_file in $ac_files
3420 case $ac_file in
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3422 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3423 esac
3424 done
3425 rm -f $ac_rmfiles
3427 if { (ac_try="$ac_link_default"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434 (eval "$ac_link_default") 2>&5
3435 ac_status=$?
3436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; then
3438 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3439 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3440 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3441 # so that the user can short-circuit this test for compilers unknown to
3442 # Autoconf.
3443 for ac_file in $ac_files ''
3445 test -f "$ac_file" || continue
3446 case $ac_file in
3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3449 [ab].out )
3450 # We found the default executable, but exeext='' is most
3451 # certainly right.
3452 break;;
3453 *.* )
3454 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3455 then :; else
3456 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3458 # We set ac_cv_exeext here because the later test for it is not
3459 # safe: cross compilers may not add the suffix if given an `-o'
3460 # argument, so we may need to know it at that point already.
3461 # Even if this section looks crufty: it has the advantage of
3462 # actually working.
3463 break;;
3465 break;;
3466 esac
3467 done
3468 test "$ac_cv_exeext" = no && ac_cv_exeext=
3470 else
3471 ac_file=''
3474 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3475 $as_echo "$ac_file" >&6; }
3476 if test -z "$ac_file"; then
3477 $as_echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3483 See \`config.log' for more details." >&5
3484 $as_echo "$as_me: error: C compiler cannot create executables
3485 See \`config.log' for more details." >&2;}
3486 { (exit 77); exit 77; }; }; }
3489 ac_exeext=$ac_cv_exeext
3491 # Check that the compiler produces executables we can run. If not, either
3492 # the compiler is broken, or we cross compile.
3493 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3494 $as_echo_n "checking whether the C compiler works... " >&6; }
3495 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3496 # If not cross compiling, check that we can run a simple program.
3497 if test "$cross_compiling" != yes; then
3498 if { ac_try='./$ac_file'
3499 { (case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3504 $as_echo "$ac_try_echo") >&5
3505 (eval "$ac_try") 2>&5
3506 ac_status=$?
3507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3509 cross_compiling=no
3510 else
3511 if test "$cross_compiling" = maybe; then
3512 cross_compiling=yes
3513 else
3514 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3517 If you meant to cross compile, use \`--host'.
3518 See \`config.log' for more details." >&5
3519 $as_echo "$as_me: error: cannot run C compiled programs.
3520 If you meant to cross compile, use \`--host'.
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }; }
3526 { $as_echo "$as_me:$LINENO: result: yes" >&5
3527 $as_echo "yes" >&6; }
3529 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3530 ac_clean_files=$ac_clean_files_save
3531 # Check that the compiler produces executables we can run. If not, either
3532 # the compiler is broken, or we cross compile.
3533 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3534 $as_echo_n "checking whether we are cross compiling... " >&6; }
3535 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3536 $as_echo "$cross_compiling" >&6; }
3538 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3539 $as_echo_n "checking for suffix of executables... " >&6; }
3540 if { (ac_try="$ac_link"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3546 $as_echo "$ac_try_echo") >&5
3547 (eval "$ac_link") 2>&5
3548 ac_status=$?
3549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; then
3551 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3552 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3553 # work properly (i.e., refer to `conftest.exe'), while it won't with
3554 # `rm'.
3555 for ac_file in conftest.exe conftest conftest.*; do
3556 test -f "$ac_file" || continue
3557 case $ac_file in
3558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3559 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3560 break;;
3561 * ) break;;
3562 esac
3563 done
3564 else
3565 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3568 See \`config.log' for more details." >&5
3569 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3570 See \`config.log' for more details." >&2;}
3571 { (exit 1); exit 1; }; }; }
3574 rm -f conftest$ac_cv_exeext
3575 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3576 $as_echo "$ac_cv_exeext" >&6; }
3578 rm -f conftest.$ac_ext
3579 EXEEXT=$ac_cv_exeext
3580 ac_exeext=$EXEEXT
3581 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3582 $as_echo_n "checking for suffix of object files... " >&6; }
3583 if test "${ac_cv_objext+set}" = set; then
3584 $as_echo_n "(cached) " >&6
3585 else
3586 cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h. */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3594 main ()
3598 return 0;
3600 _ACEOF
3601 rm -f conftest.o conftest.obj
3602 if { (ac_try="$ac_compile"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3608 $as_echo "$ac_try_echo") >&5
3609 (eval "$ac_compile") 2>&5
3610 ac_status=$?
3611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; then
3613 for ac_file in conftest.o conftest.obj conftest.*; do
3614 test -f "$ac_file" || continue;
3615 case $ac_file in
3616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3617 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3618 break;;
3619 esac
3620 done
3621 else
3622 $as_echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3628 See \`config.log' for more details." >&5
3629 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3630 See \`config.log' for more details." >&2;}
3631 { (exit 1); exit 1; }; }; }
3634 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3636 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3637 $as_echo "$ac_cv_objext" >&6; }
3638 OBJEXT=$ac_cv_objext
3639 ac_objext=$OBJEXT
3640 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3641 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3642 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3643 $as_echo_n "(cached) " >&6
3644 else
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3653 main ()
3655 #ifndef __GNUC__
3656 choke me
3657 #endif
3660 return 0;
3662 _ACEOF
3663 rm -f conftest.$ac_objext
3664 if { (ac_try="$ac_compile"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3670 $as_echo "$ac_try_echo") >&5
3671 (eval "$ac_compile") 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } && {
3678 test -z "$ac_c_werror_flag" ||
3679 test ! -s conftest.err
3680 } && test -s conftest.$ac_objext; then
3681 ac_compiler_gnu=yes
3682 else
3683 $as_echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 ac_compiler_gnu=no
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3693 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3696 GCC=yes
3697 else
3698 GCC=
3700 ac_test_CFLAGS=${CFLAGS+set}
3701 ac_save_CFLAGS=$CFLAGS
3702 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3704 if test "${ac_cv_prog_cc_g+set}" = set; then
3705 $as_echo_n "(cached) " >&6
3706 else
3707 ac_save_c_werror_flag=$ac_c_werror_flag
3708 ac_c_werror_flag=yes
3709 ac_cv_prog_cc_g=no
3710 CFLAGS="-g"
3711 cat >conftest.$ac_ext <<_ACEOF
3712 /* confdefs.h. */
3713 _ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3719 main ()
3723 return 0;
3725 _ACEOF
3726 rm -f conftest.$ac_objext
3727 if { (ac_try="$ac_compile"
3728 case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731 esac
3732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3733 $as_echo "$ac_try_echo") >&5
3734 (eval "$ac_compile") 2>conftest.er1
3735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } && {
3741 test -z "$ac_c_werror_flag" ||
3742 test ! -s conftest.err
3743 } && test -s conftest.$ac_objext; then
3744 ac_cv_prog_cc_g=yes
3745 else
3746 $as_echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3749 CFLAGS=""
3750 cat >conftest.$ac_ext <<_ACEOF
3751 /* confdefs.h. */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3758 main ()
3762 return 0;
3764 _ACEOF
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3767 case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3770 esac
3771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3772 $as_echo "$ac_try_echo") >&5
3773 (eval "$ac_compile") 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && {
3780 test -z "$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 } && test -s conftest.$ac_objext; then
3784 else
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 ac_c_werror_flag=$ac_save_c_werror_flag
3789 CFLAGS="-g"
3790 cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h. */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3798 main ()
3802 return 0;
3804 _ACEOF
3805 rm -f conftest.$ac_objext
3806 if { (ac_try="$ac_compile"
3807 case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810 esac
3811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3812 $as_echo "$ac_try_echo") >&5
3813 (eval "$ac_compile") 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } && {
3820 test -z "$ac_c_werror_flag" ||
3821 test ! -s conftest.err
3822 } && test -s conftest.$ac_objext; then
3823 ac_cv_prog_cc_g=yes
3824 else
3825 $as_echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 ac_c_werror_flag=$ac_save_c_werror_flag
3840 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3841 $as_echo "$ac_cv_prog_cc_g" >&6; }
3842 if test "$ac_test_CFLAGS" = set; then
3843 CFLAGS=$ac_save_CFLAGS
3844 elif test $ac_cv_prog_cc_g = yes; then
3845 if test "$GCC" = yes; then
3846 CFLAGS="-g -O2"
3847 else
3848 CFLAGS="-g"
3850 else
3851 if test "$GCC" = yes; then
3852 CFLAGS="-O2"
3853 else
3854 CFLAGS=
3857 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3858 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3859 if test "${ac_cv_prog_cc_c89+set}" = set; then
3860 $as_echo_n "(cached) " >&6
3861 else
3862 ac_cv_prog_cc_c89=no
3863 ac_save_CC=$CC
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #include <stdarg.h>
3871 #include <stdio.h>
3872 #include <sys/types.h>
3873 #include <sys/stat.h>
3874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3875 struct buf { int x; };
3876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3877 static char *e (p, i)
3878 char **p;
3879 int i;
3881 return p[i];
3883 static char *f (char * (*g) (char **, int), char **p, ...)
3885 char *s;
3886 va_list v;
3887 va_start (v,p);
3888 s = g (p, va_arg (v,int));
3889 va_end (v);
3890 return s;
3893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3894 function prototypes and stuff, but not '\xHH' hex character constants.
3895 These don't provoke an error unfortunately, instead are silently treated
3896 as 'x'. The following induces an error, until -std is added to get
3897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3898 array size at least. It's necessary to write '\x00'==0 to get something
3899 that's true only with -std. */
3900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3902 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3903 inside strings and character constants. */
3904 #define FOO(x) 'x'
3905 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3907 int test (int i, double x);
3908 struct s1 {int (*f) (int a);};
3909 struct s2 {int (*f) (double a);};
3910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3911 int argc;
3912 char **argv;
3914 main ()
3916 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3918 return 0;
3920 _ACEOF
3921 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3922 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3924 CC="$ac_save_CC $ac_arg"
3925 rm -f conftest.$ac_objext
3926 if { (ac_try="$ac_compile"
3927 case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930 esac
3931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3932 $as_echo "$ac_try_echo") >&5
3933 (eval "$ac_compile") 2>conftest.er1
3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } && {
3940 test -z "$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3942 } && test -s conftest.$ac_objext; then
3943 ac_cv_prog_cc_c89=$ac_arg
3944 else
3945 $as_echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3951 rm -f core conftest.err conftest.$ac_objext
3952 test "x$ac_cv_prog_cc_c89" != "xno" && break
3953 done
3954 rm -f conftest.$ac_ext
3955 CC=$ac_save_CC
3958 # AC_CACHE_VAL
3959 case "x$ac_cv_prog_cc_c89" in
3961 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3962 $as_echo "none needed" >&6; } ;;
3963 xno)
3964 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3965 $as_echo "unsupported" >&6; } ;;
3967 CC="$CC $ac_cv_prog_cc_c89"
3968 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3969 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3970 esac
3973 ac_ext=c
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 # On Suns, sometimes $CPP names a directory.
3981 if test -n "$CPP" && test -d "$CPP"; then
3982 CPP=
3985 ## If not using gcc, and on Solaris, and no CPP specified, see if
3986 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3987 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3988 test x"$CPP" = x; then
3989 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3990 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3992 if test "${emacs_cv_sunpro_c+set}" = set; then
3993 $as_echo_n "(cached) " >&6
3994 else
3995 cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h. */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4003 main ()
4005 #ifndef __SUNPRO_C
4006 fail;
4007 #endif
4010 return 0;
4012 _ACEOF
4013 rm -f conftest.$ac_objext conftest$ac_exeext
4014 if { (ac_try="$ac_link"
4015 case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4018 esac
4019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4020 $as_echo "$ac_try_echo") >&5
4021 (eval "$ac_link") 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest$ac_exeext && {
4031 test "$cross_compiling" = yes ||
4032 $as_test_x conftest$ac_exeext
4033 }; then
4034 emacs_cv_sunpro_c=yes
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 emacs_cv_sunpro_c=no
4042 rm -rf conftest.dSYM
4043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4044 conftest$ac_exeext conftest.$ac_ext
4047 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4048 $as_echo "$emacs_cv_sunpro_c" >&6; }
4050 if test x"$emacs_cv_sunpro_c" = xyes; then
4051 NON_GNU_CPP="$CC -E -Xs"
4055 #### Some systems specify a CPP to use unless we are using GCC.
4056 #### Now that we know whether we are using GCC, we can decide whether
4057 #### to use that one.
4058 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4059 then
4060 CPP="$NON_GNU_CPP"
4063 #### Some systems specify a CC to use unless we are using GCC.
4064 #### Now that we know whether we are using GCC, we can decide whether
4065 #### to use that one.
4066 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4067 test x$cc_specified != xyes
4068 then
4069 CC="$NON_GNU_CC"
4072 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4073 then
4074 CC="$CC $GCC_TEST_OPTIONS"
4077 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4078 then
4079 CC="$CC $NON_GCC_TEST_OPTIONS"
4082 ac_ext=c
4083 ac_cpp='$CPP $CPPFLAGS'
4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4088 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4089 # On Suns, sometimes $CPP names a directory.
4090 if test -n "$CPP" && test -d "$CPP"; then
4091 CPP=
4093 if test -z "$CPP"; then
4094 if test "${ac_cv_prog_CPP+set}" = set; then
4095 $as_echo_n "(cached) " >&6
4096 else
4097 # Double quotes because CPP needs to be expanded
4098 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4100 ac_preproc_ok=false
4101 for ac_c_preproc_warn_flag in '' yes
4103 # Use a header file that comes with gcc, so configuring glibc
4104 # with a fresh cross-compiler works.
4105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4106 # <limits.h> exists even on freestanding compilers.
4107 # On the NeXT, cc -E runs the code through the compiler's parser,
4108 # not just through cpp. "Syntax error" is here to catch this case.
4109 cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h. */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 #ifdef __STDC__
4116 # include <limits.h>
4117 #else
4118 # include <assert.h>
4119 #endif
4120 Syntax error
4121 _ACEOF
4122 if { (ac_try="$ac_cpp conftest.$ac_ext"
4123 case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4128 $as_echo "$ac_try_echo") >&5
4129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } >/dev/null && {
4136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4137 test ! -s conftest.err
4138 }; then
4140 else
4141 $as_echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4144 # Broken: fails on valid input.
4145 continue
4148 rm -f conftest.err conftest.$ac_ext
4150 # OK, works on sane cases. Now check whether nonexistent headers
4151 # can be detected and how.
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <ac_nonexistent.h>
4159 _ACEOF
4160 if { (ac_try="$ac_cpp conftest.$ac_ext"
4161 case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164 esac
4165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166 $as_echo "$ac_try_echo") >&5
4167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } >/dev/null && {
4174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4175 test ! -s conftest.err
4176 }; then
4177 # Broken: success on invalid input.
4178 continue
4179 else
4180 $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 # Passes both tests.
4184 ac_preproc_ok=:
4185 break
4188 rm -f conftest.err conftest.$ac_ext
4190 done
4191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4192 rm -f conftest.err conftest.$ac_ext
4193 if $ac_preproc_ok; then
4194 break
4197 done
4198 ac_cv_prog_CPP=$CPP
4201 CPP=$ac_cv_prog_CPP
4202 else
4203 ac_cv_prog_CPP=$CPP
4205 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4206 $as_echo "$CPP" >&6; }
4207 ac_preproc_ok=false
4208 for ac_c_preproc_warn_flag in '' yes
4210 # Use a header file that comes with gcc, so configuring glibc
4211 # with a fresh cross-compiler works.
4212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 # <limits.h> exists even on freestanding compilers.
4214 # On the NeXT, cc -E runs the code through the compiler's parser,
4215 # not just through cpp. "Syntax error" is here to catch this case.
4216 cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h. */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 #ifdef __STDC__
4223 # include <limits.h>
4224 #else
4225 # include <assert.h>
4226 #endif
4227 Syntax error
4228 _ACEOF
4229 if { (ac_try="$ac_cpp conftest.$ac_ext"
4230 case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233 esac
4234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4235 $as_echo "$ac_try_echo") >&5
4236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4237 ac_status=$?
4238 grep -v '^ *+' conftest.er1 >conftest.err
4239 rm -f conftest.er1
4240 cat conftest.err >&5
4241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } >/dev/null && {
4243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4244 test ! -s conftest.err
4245 }; then
4247 else
4248 $as_echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 # Broken: fails on valid input.
4252 continue
4255 rm -f conftest.err conftest.$ac_ext
4257 # OK, works on sane cases. Now check whether nonexistent headers
4258 # can be detected and how.
4259 cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h. */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 #include <ac_nonexistent.h>
4266 _ACEOF
4267 if { (ac_try="$ac_cpp conftest.$ac_ext"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4273 $as_echo "$ac_try_echo") >&5
4274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4275 ac_status=$?
4276 grep -v '^ *+' conftest.er1 >conftest.err
4277 rm -f conftest.er1
4278 cat conftest.err >&5
4279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } >/dev/null && {
4281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4282 test ! -s conftest.err
4283 }; then
4284 # Broken: success on invalid input.
4285 continue
4286 else
4287 $as_echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 # Passes both tests.
4291 ac_preproc_ok=:
4292 break
4295 rm -f conftest.err conftest.$ac_ext
4297 done
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then
4302 else
4303 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4306 See \`config.log' for more details." >&5
4307 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4308 See \`config.log' for more details." >&2;}
4309 { (exit 1); exit 1; }; }; }
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4320 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4321 if test "${ac_cv_path_GREP+set}" = set; then
4322 $as_echo_n "(cached) " >&6
4323 else
4324 if test -z "$GREP"; then
4325 ac_path_GREP_found=false
4326 # Loop through the user's path and test for each of PROGNAME-LIST
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_prog in grep ggrep; do
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4335 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4336 # Check for GNU ac_path_GREP and select it if it is found.
4337 # Check for GNU $ac_path_GREP
4338 case `"$ac_path_GREP" --version 2>&1` in
4339 *GNU*)
4340 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4342 ac_count=0
4343 $as_echo_n 0123456789 >"conftest.in"
4344 while :
4346 cat "conftest.in" "conftest.in" >"conftest.tmp"
4347 mv "conftest.tmp" "conftest.in"
4348 cp "conftest.in" "conftest.nl"
4349 $as_echo 'GREP' >> "conftest.nl"
4350 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4352 ac_count=`expr $ac_count + 1`
4353 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4354 # Best one so far, save it but keep looking for a better one
4355 ac_cv_path_GREP="$ac_path_GREP"
4356 ac_path_GREP_max=$ac_count
4358 # 10*(2^10) chars as input seems more than enough
4359 test $ac_count -gt 10 && break
4360 done
4361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362 esac
4364 $ac_path_GREP_found && break 3
4365 done
4366 done
4367 done
4368 IFS=$as_save_IFS
4369 if test -z "$ac_cv_path_GREP"; then
4370 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4371 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4372 { (exit 1); exit 1; }; }
4374 else
4375 ac_cv_path_GREP=$GREP
4379 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4380 $as_echo "$ac_cv_path_GREP" >&6; }
4381 GREP="$ac_cv_path_GREP"
4384 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4385 $as_echo_n "checking for egrep... " >&6; }
4386 if test "${ac_cv_path_EGREP+set}" = set; then
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4390 then ac_cv_path_EGREP="$GREP -E"
4391 else
4392 if test -z "$EGREP"; then
4393 ac_path_EGREP_found=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_prog in egrep; do
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4403 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4404 # Check for GNU ac_path_EGREP and select it if it is found.
4405 # Check for GNU $ac_path_EGREP
4406 case `"$ac_path_EGREP" --version 2>&1` in
4407 *GNU*)
4408 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4410 ac_count=0
4411 $as_echo_n 0123456789 >"conftest.in"
4412 while :
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
4417 $as_echo 'EGREP' >> "conftest.nl"
4418 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4420 ac_count=`expr $ac_count + 1`
4421 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_EGREP="$ac_path_EGREP"
4424 ac_path_EGREP_max=$ac_count
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4428 done
4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430 esac
4432 $ac_path_EGREP_found && break 3
4433 done
4434 done
4435 done
4436 IFS=$as_save_IFS
4437 if test -z "$ac_cv_path_EGREP"; then
4438 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4439 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4440 { (exit 1); exit 1; }; }
4442 else
4443 ac_cv_path_EGREP=$EGREP
4448 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4449 $as_echo "$ac_cv_path_EGREP" >&6; }
4450 EGREP="$ac_cv_path_EGREP"
4453 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4454 $as_echo_n "checking for ANSI C header files... " >&6; }
4455 if test "${ac_cv_header_stdc+set}" = set; then
4456 $as_echo_n "(cached) " >&6
4457 else
4458 cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h. */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 #include <stdlib.h>
4465 #include <stdarg.h>
4466 #include <string.h>
4467 #include <float.h>
4470 main ()
4474 return 0;
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (ac_try="$ac_compile"
4479 case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482 esac
4483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4484 $as_echo "$ac_try_echo") >&5
4485 (eval "$ac_compile") 2>conftest.er1
4486 ac_status=$?
4487 grep -v '^ *+' conftest.er1 >conftest.err
4488 rm -f conftest.er1
4489 cat conftest.err >&5
4490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && {
4492 test -z "$ac_c_werror_flag" ||
4493 test ! -s conftest.err
4494 } && test -s conftest.$ac_objext; then
4495 ac_cv_header_stdc=yes
4496 else
4497 $as_echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 ac_cv_header_stdc=no
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 if test $ac_cv_header_stdc = yes; then
4506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 #include <string.h>
4515 _ACEOF
4516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517 $EGREP "memchr" >/dev/null 2>&1; then
4519 else
4520 ac_cv_header_stdc=no
4522 rm -f conftest*
4526 if test $ac_cv_header_stdc = yes; then
4527 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4528 cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h. */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 #include <stdlib.h>
4536 _ACEOF
4537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538 $EGREP "free" >/dev/null 2>&1; then
4540 else
4541 ac_cv_header_stdc=no
4543 rm -f conftest*
4547 if test $ac_cv_header_stdc = yes; then
4548 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4549 if test "$cross_compiling" = yes; then
4551 else
4552 cat >conftest.$ac_ext <<_ACEOF
4553 /* confdefs.h. */
4554 _ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4558 #include <ctype.h>
4559 #include <stdlib.h>
4560 #if ((' ' & 0x0FF) == 0x020)
4561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4563 #else
4564 # define ISLOWER(c) \
4565 (('a' <= (c) && (c) <= 'i') \
4566 || ('j' <= (c) && (c) <= 'r') \
4567 || ('s' <= (c) && (c) <= 'z'))
4568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4569 #endif
4571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4573 main ()
4575 int i;
4576 for (i = 0; i < 256; i++)
4577 if (XOR (islower (i), ISLOWER (i))
4578 || toupper (i) != TOUPPER (i))
4579 return 2;
4580 return 0;
4582 _ACEOF
4583 rm -f conftest$ac_exeext
4584 if { (ac_try="$ac_link"
4585 case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4588 esac
4589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4590 $as_echo "$ac_try_echo") >&5
4591 (eval "$ac_link") 2>&5
4592 ac_status=$?
4593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601 (eval "$ac_try") 2>&5
4602 ac_status=$?
4603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4606 else
4607 $as_echo "$as_me: program exited with status $ac_status" >&5
4608 $as_echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 ( exit $ac_status )
4612 ac_cv_header_stdc=no
4614 rm -rf conftest.dSYM
4615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4621 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4622 $as_echo "$ac_cv_header_stdc" >&6; }
4623 if test $ac_cv_header_stdc = yes; then
4625 cat >>confdefs.h <<\_ACEOF
4626 #define STDC_HEADERS 1
4627 _ACEOF
4631 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4641 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4642 inttypes.h stdint.h unistd.h
4644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4645 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4646 $as_echo_n "checking for $ac_header... " >&6; }
4647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4648 $as_echo_n "(cached) " >&6
4649 else
4650 cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h. */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4658 #include <$ac_header>
4659 _ACEOF
4660 rm -f conftest.$ac_objext
4661 if { (ac_try="$ac_compile"
4662 case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665 esac
4666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4667 $as_echo "$ac_try_echo") >&5
4668 (eval "$ac_compile") 2>conftest.er1
4669 ac_status=$?
4670 grep -v '^ *+' conftest.er1 >conftest.err
4671 rm -f conftest.er1
4672 cat conftest.err >&5
4673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } && {
4675 test -z "$ac_c_werror_flag" ||
4676 test ! -s conftest.err
4677 } && test -s conftest.$ac_objext; then
4678 eval "$as_ac_Header=yes"
4679 else
4680 $as_echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4683 eval "$as_ac_Header=no"
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 ac_res=`eval 'as_val=${'$as_ac_Header'}
4689 $as_echo "$as_val"'`
4690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4691 $as_echo "$ac_res" >&6; }
4692 as_val=`eval 'as_val=${'$as_ac_Header'}
4693 $as_echo "$as_val"'`
4694 if test "x$as_val" = x""yes; then
4695 cat >>confdefs.h <<_ACEOF
4696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4697 _ACEOF
4701 done
4705 if test "${ac_cv_header_minix_config_h+set}" = set; then
4706 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4707 $as_echo_n "checking for minix/config.h... " >&6; }
4708 if test "${ac_cv_header_minix_config_h+set}" = set; then
4709 $as_echo_n "(cached) " >&6
4711 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4712 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4713 else
4714 # Is the header compilable?
4715 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4716 $as_echo_n "checking minix/config.h usability... " >&6; }
4717 cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h. */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4723 $ac_includes_default
4724 #include <minix/config.h>
4725 _ACEOF
4726 rm -f conftest.$ac_objext
4727 if { (ac_try="$ac_compile"
4728 case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731 esac
4732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4733 $as_echo "$ac_try_echo") >&5
4734 (eval "$ac_compile") 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } && {
4741 test -z "$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4743 } && test -s conftest.$ac_objext; then
4744 ac_header_compiler=yes
4745 else
4746 $as_echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 ac_header_compiler=no
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4754 $as_echo "$ac_header_compiler" >&6; }
4756 # Is the header present?
4757 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4758 $as_echo_n "checking minix/config.h presence... " >&6; }
4759 cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h. */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4765 #include <minix/config.h>
4766 _ACEOF
4767 if { (ac_try="$ac_cpp conftest.$ac_ext"
4768 case "(($ac_try" in
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4771 esac
4772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4773 $as_echo "$ac_try_echo") >&5
4774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4775 ac_status=$?
4776 grep -v '^ *+' conftest.er1 >conftest.err
4777 rm -f conftest.er1
4778 cat conftest.err >&5
4779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } >/dev/null && {
4781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4782 test ! -s conftest.err
4783 }; then
4784 ac_header_preproc=yes
4785 else
4786 $as_echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 ac_header_preproc=no
4792 rm -f conftest.err conftest.$ac_ext
4793 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4794 $as_echo "$ac_header_preproc" >&6; }
4796 # So? What about this header?
4797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4798 yes:no: )
4799 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4800 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4801 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4802 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4803 ac_header_preproc=yes
4805 no:yes:* )
4806 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4807 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4808 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4809 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4810 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4811 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4812 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4813 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4814 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4815 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4816 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4817 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4820 esac
4821 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4822 $as_echo_n "checking for minix/config.h... " >&6; }
4823 if test "${ac_cv_header_minix_config_h+set}" = set; then
4824 $as_echo_n "(cached) " >&6
4825 else
4826 ac_cv_header_minix_config_h=$ac_header_preproc
4828 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4829 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4832 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4833 MINIX=yes
4834 else
4835 MINIX=
4839 if test "$MINIX" = yes; then
4841 cat >>confdefs.h <<\_ACEOF
4842 #define _POSIX_SOURCE 1
4843 _ACEOF
4846 cat >>confdefs.h <<\_ACEOF
4847 #define _POSIX_1_SOURCE 2
4848 _ACEOF
4851 cat >>confdefs.h <<\_ACEOF
4852 #define _MINIX 1
4853 _ACEOF
4859 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4860 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4861 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4862 $as_echo_n "(cached) " >&6
4863 else
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4871 # define __EXTENSIONS__ 1
4872 $ac_includes_default
4874 main ()
4878 return 0;
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (ac_try="$ac_compile"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4888 $as_echo "$ac_try_echo") >&5
4889 (eval "$ac_compile") 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } && {
4896 test -z "$ac_c_werror_flag" ||
4897 test ! -s conftest.err
4898 } && test -s conftest.$ac_objext; then
4899 ac_cv_safe_to_define___extensions__=yes
4900 else
4901 $as_echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904 ac_cv_safe_to_define___extensions__=no
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4910 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4911 test $ac_cv_safe_to_define___extensions__ = yes &&
4912 cat >>confdefs.h <<\_ACEOF
4913 #define __EXTENSIONS__ 1
4914 _ACEOF
4916 cat >>confdefs.h <<\_ACEOF
4917 #define _ALL_SOURCE 1
4918 _ACEOF
4920 cat >>confdefs.h <<\_ACEOF
4921 #define _GNU_SOURCE 1
4922 _ACEOF
4924 cat >>confdefs.h <<\_ACEOF
4925 #define _POSIX_PTHREAD_SEMANTICS 1
4926 _ACEOF
4928 cat >>confdefs.h <<\_ACEOF
4929 #define _TANDEM_SOURCE 1
4930 _ACEOF
4934 ### Use -Wno-pointer-sign if the compiler supports it
4935 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4936 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4937 SAVE_CFLAGS="$CFLAGS"
4938 CFLAGS="$CFLAGS -Wno-pointer-sign"
4939 cat >conftest.$ac_ext <<_ACEOF
4940 /* confdefs.h. */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4947 main ()
4951 return 0;
4953 _ACEOF
4954 rm -f conftest.$ac_objext
4955 if { (ac_try="$ac_compile"
4956 case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959 esac
4960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4961 $as_echo "$ac_try_echo") >&5
4962 (eval "$ac_compile") 2>conftest.er1
4963 ac_status=$?
4964 grep -v '^ *+' conftest.er1 >conftest.err
4965 rm -f conftest.er1
4966 cat conftest.err >&5
4967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } && {
4969 test -z "$ac_c_werror_flag" ||
4970 test ! -s conftest.err
4971 } && test -s conftest.$ac_objext; then
4972 has_option=yes
4973 else
4974 $as_echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 has_option=no
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 if test $has_option = yes; then
4982 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4984 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4985 $as_echo "$has_option" >&6; }
4986 CFLAGS="$SAVE_CFLAGS"
4987 unset has_option
4988 unset SAVE_CFLAGS
4990 ### Use -Wdeclaration-after-statement if the compiler supports it
4991 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4992 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4993 SAVE_CFLAGS="$CFLAGS"
4994 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5003 main ()
5007 return 0;
5009 _ACEOF
5010 rm -f conftest.$ac_objext
5011 if { (ac_try="$ac_compile"
5012 case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5015 esac
5016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5017 $as_echo "$ac_try_echo") >&5
5018 (eval "$ac_compile") 2>conftest.er1
5019 ac_status=$?
5020 grep -v '^ *+' conftest.er1 >conftest.err
5021 rm -f conftest.er1
5022 cat conftest.err >&5
5023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } && {
5025 test -z "$ac_c_werror_flag" ||
5026 test ! -s conftest.err
5027 } && test -s conftest.$ac_objext; then
5028 has_option=yes
5029 else
5030 $as_echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5033 has_option=no
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 if test $has_option = yes; then
5038 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5040 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5041 $as_echo "$has_option" >&6; }
5042 CFLAGS="$SAVE_CFLAGS"
5043 unset has_option
5044 unset SAVE_CFLAGS
5046 #### Some other nice autoconf tests.
5048 ac_ext=c
5049 ac_cpp='$CPP $CPPFLAGS'
5050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5053 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5054 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5055 # On Suns, sometimes $CPP names a directory.
5056 if test -n "$CPP" && test -d "$CPP"; then
5057 CPP=
5059 if test -z "$CPP"; then
5060 if test "${ac_cv_prog_CPP+set}" = set; then
5061 $as_echo_n "(cached) " >&6
5062 else
5063 # Double quotes because CPP needs to be expanded
5064 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5066 ac_preproc_ok=false
5067 for ac_c_preproc_warn_flag in '' yes
5069 # Use a header file that comes with gcc, so configuring glibc
5070 # with a fresh cross-compiler works.
5071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5072 # <limits.h> exists even on freestanding compilers.
5073 # On the NeXT, cc -E runs the code through the compiler's parser,
5074 # not just through cpp. "Syntax error" is here to catch this case.
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h. */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 #ifdef __STDC__
5082 # include <limits.h>
5083 #else
5084 # include <assert.h>
5085 #endif
5086 Syntax error
5087 _ACEOF
5088 if { (ac_try="$ac_cpp conftest.$ac_ext"
5089 case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092 esac
5093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5094 $as_echo "$ac_try_echo") >&5
5095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null && {
5102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 }; then
5106 else
5107 $as_echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 # Broken: fails on valid input.
5111 continue
5114 rm -f conftest.err conftest.$ac_ext
5116 # OK, works on sane cases. Now check whether nonexistent headers
5117 # can be detected and how.
5118 cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h. */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5124 #include <ac_nonexistent.h>
5125 _ACEOF
5126 if { (ac_try="$ac_cpp conftest.$ac_ext"
5127 case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130 esac
5131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5132 $as_echo "$ac_try_echo") >&5
5133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null && {
5140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 }; then
5143 # Broken: success on invalid input.
5144 continue
5145 else
5146 $as_echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149 # Passes both tests.
5150 ac_preproc_ok=:
5151 break
5154 rm -f conftest.err conftest.$ac_ext
5156 done
5157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5158 rm -f conftest.err conftest.$ac_ext
5159 if $ac_preproc_ok; then
5160 break
5163 done
5164 ac_cv_prog_CPP=$CPP
5167 CPP=$ac_cv_prog_CPP
5168 else
5169 ac_cv_prog_CPP=$CPP
5171 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5172 $as_echo "$CPP" >&6; }
5173 ac_preproc_ok=false
5174 for ac_c_preproc_warn_flag in '' yes
5176 # Use a header file that comes with gcc, so configuring glibc
5177 # with a fresh cross-compiler works.
5178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5179 # <limits.h> exists even on freestanding compilers.
5180 # On the NeXT, cc -E runs the code through the compiler's parser,
5181 # not just through cpp. "Syntax error" is here to catch this case.
5182 cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h. */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 #ifdef __STDC__
5189 # include <limits.h>
5190 #else
5191 # include <assert.h>
5192 #endif
5193 Syntax error
5194 _ACEOF
5195 if { (ac_try="$ac_cpp conftest.$ac_ext"
5196 case "(($ac_try" in
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5199 esac
5200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5201 $as_echo "$ac_try_echo") >&5
5202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5203 ac_status=$?
5204 grep -v '^ *+' conftest.er1 >conftest.err
5205 rm -f conftest.er1
5206 cat conftest.err >&5
5207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } >/dev/null && {
5209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5210 test ! -s conftest.err
5211 }; then
5213 else
5214 $as_echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5217 # Broken: fails on valid input.
5218 continue
5221 rm -f conftest.err conftest.$ac_ext
5223 # OK, works on sane cases. Now check whether nonexistent headers
5224 # can be detected and how.
5225 cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h. */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 #include <ac_nonexistent.h>
5232 _ACEOF
5233 if { (ac_try="$ac_cpp conftest.$ac_ext"
5234 case "(($ac_try" in
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5237 esac
5238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5239 $as_echo "$ac_try_echo") >&5
5240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5241 ac_status=$?
5242 grep -v '^ *+' conftest.er1 >conftest.err
5243 rm -f conftest.er1
5244 cat conftest.err >&5
5245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } >/dev/null && {
5247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5248 test ! -s conftest.err
5249 }; then
5250 # Broken: success on invalid input.
5251 continue
5252 else
5253 $as_echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5256 # Passes both tests.
5257 ac_preproc_ok=:
5258 break
5261 rm -f conftest.err conftest.$ac_ext
5263 done
5264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5265 rm -f conftest.err conftest.$ac_ext
5266 if $ac_preproc_ok; then
5268 else
5269 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5271 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5272 See \`config.log' for more details." >&5
5273 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5274 See \`config.log' for more details." >&2;}
5275 { (exit 1); exit 1; }; }; }
5278 ac_ext=c
5279 ac_cpp='$CPP $CPPFLAGS'
5280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5284 # Find a good install program. We prefer a C program (faster),
5285 # so one script is as good as another. But avoid the broken or
5286 # incompatible versions:
5287 # SysV /etc/install, /usr/sbin/install
5288 # SunOS /usr/etc/install
5289 # IRIX /sbin/install
5290 # AIX /bin/install
5291 # AmigaOS /C/install, which installs bootblocks on floppy discs
5292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5295 # OS/2's system install, which has a completely different semantic
5296 # ./install, which can be erroneously created by make from ./install.sh.
5297 # Reject install programs that cannot install multiple files.
5298 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5299 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5300 if test -z "$INSTALL"; then
5301 if test "${ac_cv_path_install+set}" = set; then
5302 $as_echo_n "(cached) " >&6
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 # Account for people who put trailing slashes in PATH elements.
5310 case $as_dir/ in
5311 ./ | .// | /cC/* | \
5312 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5313 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5314 /usr/ucb/* ) ;;
5316 # OSF1 and SCO ODT 3.0 have their own names for install.
5317 # Don't use installbsd from OSF since it installs stuff as root
5318 # by default.
5319 for ac_prog in ginstall scoinst install; do
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5322 if test $ac_prog = install &&
5323 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5324 # AIX install. It has an incompatible calling convention.
5326 elif test $ac_prog = install &&
5327 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5328 # program-specific install script used by HP pwplus--don't use.
5330 else
5331 rm -rf conftest.one conftest.two conftest.dir
5332 echo one > conftest.one
5333 echo two > conftest.two
5334 mkdir conftest.dir
5335 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5336 test -s conftest.one && test -s conftest.two &&
5337 test -s conftest.dir/conftest.one &&
5338 test -s conftest.dir/conftest.two
5339 then
5340 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5341 break 3
5345 done
5346 done
5348 esac
5350 done
5351 IFS=$as_save_IFS
5353 rm -rf conftest.one conftest.two conftest.dir
5356 if test "${ac_cv_path_install+set}" = set; then
5357 INSTALL=$ac_cv_path_install
5358 else
5359 # As a last resort, use the slow shell script. Don't cache a
5360 # value for INSTALL within a source directory, because that will
5361 # break other packages using the cache if that directory is
5362 # removed, or if the value is a relative name.
5363 INSTALL=$ac_install_sh
5366 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5367 $as_echo "$INSTALL" >&6; }
5369 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5370 # It thinks the first close brace ends the variable substitution.
5371 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5373 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5375 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5377 if test "x$RANLIB" = x; then
5378 if test -n "$ac_tool_prefix"; then
5379 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5380 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_prog_RANLIB+set}" = set; then
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -n "$RANLIB"; then
5387 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5400 done
5401 done
5402 IFS=$as_save_IFS
5406 RANLIB=$ac_cv_prog_RANLIB
5407 if test -n "$RANLIB"; then
5408 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5409 $as_echo "$RANLIB" >&6; }
5410 else
5411 { $as_echo "$as_me:$LINENO: result: no" >&5
5412 $as_echo "no" >&6; }
5417 if test -z "$ac_cv_prog_RANLIB"; then
5418 ac_ct_RANLIB=$RANLIB
5419 # Extract the first word of "ranlib", so it can be a program name with args.
5420 set dummy ranlib; ac_word=$2
5421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5424 $as_echo_n "(cached) " >&6
5425 else
5426 if test -n "$ac_ct_RANLIB"; then
5427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_prog_ac_ct_RANLIB="ranlib"
5437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5440 done
5441 done
5442 IFS=$as_save_IFS
5446 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5447 if test -n "$ac_ct_RANLIB"; then
5448 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5449 $as_echo "$ac_ct_RANLIB" >&6; }
5450 else
5451 { $as_echo "$as_me:$LINENO: result: no" >&5
5452 $as_echo "no" >&6; }
5455 if test "x$ac_ct_RANLIB" = x; then
5456 RANLIB=":"
5457 else
5458 case $cross_compiling:$ac_tool_warned in
5459 yes:)
5460 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5462 ac_tool_warned=yes ;;
5463 esac
5464 RANLIB=$ac_ct_RANLIB
5466 else
5467 RANLIB="$ac_cv_prog_RANLIB"
5472 ## Although we're running on an amd64 kernel, we're actually compiling for
5473 ## the x86 architecture. The user should probably have provided an
5474 ## explicit --build to `configure', but if everything else than the kernel
5475 ## is running in i386 mode, we can help them out.
5476 if test "$machine" = "amdx86-64"; then
5477 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5478 $as_echo_n "checking whether i386 is declared... " >&6; }
5479 if test "${ac_cv_have_decl_i386+set}" = set; then
5480 $as_echo_n "(cached) " >&6
5481 else
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 $ac_includes_default
5490 main ()
5492 #ifndef i386
5493 (void) i386;
5494 #endif
5497 return 0;
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507 $as_echo "$ac_try_echo") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5518 ac_cv_have_decl_i386=yes
5519 else
5520 $as_echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 ac_cv_have_decl_i386=no
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5529 $as_echo "$ac_cv_have_decl_i386" >&6; }
5531 if test "$ac_cv_have_decl_i386" = "yes"; then
5532 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5533 machine=intel386
5534 machfile="m/${machine}.h"
5538 # Extract the first word of "install-info", so it can be a program name with args.
5539 set dummy install-info; ac_word=$2
5540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5543 $as_echo_n "(cached) " >&6
5544 else
5545 case $INSTALL_INFO in
5546 [\\/]* | ?:[\\/]*)
5547 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5558 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5561 done
5562 done
5563 IFS=$as_save_IFS
5566 esac
5568 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5569 if test -n "$INSTALL_INFO"; then
5570 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5571 $as_echo "$INSTALL_INFO" >&6; }
5572 else
5573 { $as_echo "$as_me:$LINENO: result: no" >&5
5574 $as_echo "no" >&6; }
5578 # Extract the first word of "install-info", so it can be a program name with args.
5579 set dummy install-info; ac_word=$2
5580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5583 $as_echo_n "(cached) " >&6
5584 else
5585 case $INSTALL_INFO in
5586 [\\/]* | ?:[\\/]*)
5587 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in /usr/sbin
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5601 done
5602 done
5603 IFS=$as_save_IFS
5606 esac
5608 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5609 if test -n "$INSTALL_INFO"; then
5610 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5611 $as_echo "$INSTALL_INFO" >&6; }
5612 else
5613 { $as_echo "$as_me:$LINENO: result: no" >&5
5614 $as_echo "no" >&6; }
5618 # Extract the first word of "install-info", so it can be a program name with args.
5619 set dummy install-info; ac_word=$2
5620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5623 $as_echo_n "(cached) " >&6
5624 else
5625 case $INSTALL_INFO in
5626 [\\/]* | ?:[\\/]*)
5627 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in /sbin
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5638 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5641 done
5642 done
5643 IFS=$as_save_IFS
5645 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5647 esac
5649 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5650 if test -n "$INSTALL_INFO"; then
5651 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5652 $as_echo "$INSTALL_INFO" >&6; }
5653 else
5654 { $as_echo "$as_me:$LINENO: result: no" >&5
5655 $as_echo "no" >&6; }
5659 # Extract the first word of "gzip", so it can be a program name with args.
5660 set dummy gzip; ac_word=$2
5661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5664 $as_echo_n "(cached) " >&6
5665 else
5666 case $GZIP_PROG in
5667 [\\/]* | ?:[\\/]*)
5668 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5678 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 break 2
5682 done
5683 done
5684 IFS=$as_save_IFS
5687 esac
5689 GZIP_PROG=$ac_cv_path_GZIP_PROG
5690 if test -n "$GZIP_PROG"; then
5691 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5692 $as_echo "$GZIP_PROG" >&6; }
5693 else
5694 { $as_echo "$as_me:$LINENO: result: no" >&5
5695 $as_echo "no" >&6; }
5701 ## Need makeinfo >= 4.6 (?) to build the manuals.
5702 # Extract the first word of "makeinfo", so it can be a program name with args.
5703 set dummy makeinfo; ac_word=$2
5704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5707 $as_echo_n "(cached) " >&6
5708 else
5709 case $MAKEINFO in
5710 [\\/]* | ?:[\\/]*)
5711 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5725 done
5726 done
5727 IFS=$as_save_IFS
5729 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5731 esac
5733 MAKEINFO=$ac_cv_path_MAKEINFO
5734 if test -n "$MAKEINFO"; then
5735 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5736 $as_echo "$MAKEINFO" >&6; }
5737 else
5738 { $as_echo "$as_me:$LINENO: result: no" >&5
5739 $as_echo "no" >&6; }
5743 if test "$MAKEINFO" != "no" && \
5744 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
5745 MAKEINFO=no
5748 ## Makeinfo is unusual. For a released Emacs, the manuals are
5749 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5750 ## therefore in the category of "special tools" not normally required, which
5751 ## configure does not have to check for (eg autoconf itself).
5752 ## In a Bazaar checkout on the other hand, the manuals are not included.
5753 ## So makeinfo is a requirement to build from Bazaar, and configure
5754 ## should test for it as it does for any other build requirement.
5755 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5756 ## with pre-built manuals, from a Bazaar checkout.
5757 if test "$MAKEINFO" = "no"; then
5758 if test "x${with_makeinfo}" = "xno"; then
5759 MAKEINFO=off
5760 elif test ! -e $srcdir/info/emacs; then
5761 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5762 source tree does not seem to have pre-built manuals in the \`info' directory.
5763 Either install a suitable version of makeinfo, or re-run configure
5764 with the \`--without-makeinfo' option to build without the manuals. " >&5
5765 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5766 source tree does not seem to have pre-built manuals in the \`info' directory.
5767 Either install a suitable version of makeinfo, or re-run configure
5768 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5769 { (exit 1); exit 1; }; }
5774 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5775 then
5776 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5779 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5780 then
5781 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5785 late_LDFLAGS=$LDFLAGS
5786 if test "$GCC" = yes; then
5787 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5788 else
5789 LDFLAGS="$LDFLAGS -znocombreloc"
5792 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5793 $as_echo_n "checking for -znocombreloc... " >&6; }
5794 cat >conftest.$ac_ext <<_ACEOF
5795 main(){return 0;}
5796 _ACEOF
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (ac_try="$ac_link"
5799 case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802 esac
5803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5804 $as_echo "$ac_try_echo") >&5
5805 (eval "$ac_link") 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest$ac_exeext && {
5815 test "$cross_compiling" = yes ||
5816 $as_test_x conftest$ac_exeext
5817 }; then
5818 { $as_echo "$as_me:$LINENO: result: yes" >&5
5819 $as_echo "yes" >&6; }
5820 else
5821 $as_echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 LDFLAGS=$late_LDFLAGS
5825 { $as_echo "$as_me:$LINENO: result: no" >&5
5826 $as_echo "no" >&6; }
5829 rm -rf conftest.dSYM
5830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5831 conftest$ac_exeext conftest.$ac_ext
5833 #### Extract some information from the operating system and machine files.
5835 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5836 - which libraries the lib-src programs will want, and
5837 - whether the GNU malloc routines are usable..." >&5
5838 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5839 - which libraries the lib-src programs will want, and
5840 - whether the GNU malloc routines are usable..." >&6;}
5842 ### First figure out CFLAGS (which we use for running the compiler here)
5843 ### and REAL_CFLAGS (which we use for real compilation).
5844 ### The two are the same except on a few systems, where they are made
5845 ### different to work around various lossages. For example,
5846 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5847 ### as implying static linking.
5849 ### If the CFLAGS env var is specified, we use that value
5850 ### instead of the default.
5852 ### It's not important that this name contain the PID; you can't run
5853 ### two configures in the same directory and have anything work
5854 ### anyway.
5855 tempcname="conftest.c"
5857 echo '
5858 #include "'${srcdir}'/src/'${opsysfile}'"
5859 #include "'${srcdir}'/src/'${machfile}'"
5861 configure___ LIBX=-lX11
5863 configure___ unexec=UNEXEC
5865 #ifdef SYSTEM_MALLOC
5866 configure___ system_malloc=yes
5867 #else
5868 configure___ system_malloc=no
5869 #endif
5871 #ifdef USE_MMAP_FOR_BUFFERS
5872 configure___ use_mmap_for_buffers=yes
5873 #else
5874 configure___ use_mmap_for_buffers=no
5875 #endif
5877 #ifndef C_OPTIMIZE_SWITCH
5878 #ifdef __GNUC__
5879 #define C_OPTIMIZE_SWITCH -O2
5880 #else
5881 #define C_OPTIMIZE_SWITCH -O
5882 #endif
5883 #endif
5885 #ifndef C_WARNINGS_SWITCH
5886 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5887 #endif
5889 #ifdef THIS_IS_CONFIGURE
5891 /* Get the CFLAGS for tests in configure. */
5892 #ifdef __GNUC__
5893 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5894 #else
5895 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5896 #endif
5898 #else /* not THIS_IS_CONFIGURE */
5900 /* Get the CFLAGS for real compilation. */
5901 #ifdef __GNUC__
5902 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5903 #else
5904 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5905 #endif
5907 #endif /* not THIS_IS_CONFIGURE */
5908 ' > ${tempcname}
5910 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5912 # The value of CPP is a quoted variable reference, so we need to do this
5913 # to get its actual value...
5914 CPP=`eval "echo $CPP"`
5915 eval `${CPP} -Isrc ${tempcname} \
5916 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5917 if test "x$SPECIFIED_CFLAGS" = x; then
5918 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5919 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5920 else
5921 REAL_CFLAGS="$CFLAGS"
5923 rm ${tempcname}
5926 LD_SWITCH_SYSTEM=
5927 case "$opsys" in
5928 freebsd)
5929 ## Let `ld' find image libs and similar things in /usr/local/lib.
5930 ## The system compiler, GCC, has apparently been modified to not
5931 ## look there, contrary to what a stock GCC would do.
5932 LD_SWITCH_SYSTEM=-L/usr/local/lib
5935 gnu-linux)
5936 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5937 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5940 netbsd)
5941 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5944 openbsd)
5945 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5946 ## otherwise Emacs dumps core on elf systems.
5947 LD_SWITCH_SYSTEM="-Z"
5949 esac
5952 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5954 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5955 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5956 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5957 ## values in configure and the Makefiles. How helpful.
5958 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5959 case "$opsys" in
5960 gnu-linux)
5961 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5962 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5964 netbsd|openbsd)
5965 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5966 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5967 esac
5970 C_SWITCH_MACHINE=
5971 if test "$machine" = "alpha"; then
5972 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5973 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5974 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5975 $as_echo_n "(cached) " >&6
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5985 main ()
5987 #ifndef __ELF__
5988 (void) __ELF__;
5989 #endif
5992 return 0;
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (ac_try="$ac_compile"
5997 case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000 esac
6001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6002 $as_echo "$ac_try_echo") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && {
6010 test -z "$ac_c_werror_flag" ||
6011 test ! -s conftest.err
6012 } && test -s conftest.$ac_objext; then
6013 ac_cv_have_decl___ELF__=yes
6014 else
6015 $as_echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 ac_cv_have_decl___ELF__=no
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6024 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6026 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6027 ## With ELF, make sure that all common symbols get allocated to in the
6028 ## data section. Otherwise, the dump of temacs may miss variables in
6029 ## the shared library that have been initialized. For example, with
6030 ## GNU libc, __malloc_initialized would normally be resolved to the
6031 ## shared library's .bss section, which is fatal.
6032 if test "x$GCC" = "xyes"; then
6033 C_SWITCH_MACHINE="-fno-common"
6034 else
6035 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6036 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6037 { (exit 1); exit 1; }; }
6044 C_SWITCH_SYSTEM=
6045 ## Some programs in src produce warnings saying certain subprograms
6046 ## are too complex and need a MAXMEM value greater than 2000 for
6047 ## additional optimization. --nils@exp-math.uni-essen.de
6048 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6049 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6050 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6051 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6055 LIBS_SYSTEM=
6056 case "$opsys" in
6057 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6058 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6060 freebsd) LIBS_SYSTEM="-lutil" ;;
6062 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6064 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6066 ## Motif needs -lgen.
6067 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6068 esac
6072 ### Make sure subsequent tests use flags consistent with the build flags.
6074 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6075 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6076 else
6077 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6082 # Check whether --enable-largefile was given.
6083 if test "${enable_largefile+set}" = set; then
6084 enableval=$enable_largefile;
6087 if test "$enable_largefile" != no; then
6089 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6090 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6091 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6092 $as_echo_n "(cached) " >&6
6093 else
6094 ac_cv_sys_largefile_CC=no
6095 if test "$GCC" != yes; then
6096 ac_save_CC=$CC
6097 while :; do
6098 # IRIX 6.2 and later do not support large files by default,
6099 # so use the C compiler's -n32 option if that helps.
6100 cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h. */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6106 #include <sys/types.h>
6107 /* Check that off_t can represent 2**63 - 1 correctly.
6108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6109 since some C++ compilers masquerading as C compilers
6110 incorrectly reject 9223372036854775807. */
6111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6113 && LARGE_OFF_T % 2147483647 == 1)
6114 ? 1 : -1];
6116 main ()
6120 return 0;
6122 _ACEOF
6123 rm -f conftest.$ac_objext
6124 if { (ac_try="$ac_compile"
6125 case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128 esac
6129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6130 $as_echo "$ac_try_echo") >&5
6131 (eval "$ac_compile") 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && {
6138 test -z "$ac_c_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest.$ac_objext; then
6141 break
6142 else
6143 $as_echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6149 rm -f core conftest.err conftest.$ac_objext
6150 CC="$CC -n32"
6151 rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6153 case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156 esac
6157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6158 $as_echo "$ac_try_echo") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.$ac_objext; then
6169 ac_cv_sys_largefile_CC=' -n32'; break
6170 else
6171 $as_echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6177 rm -f core conftest.err conftest.$ac_objext
6178 break
6179 done
6180 CC=$ac_save_CC
6181 rm -f conftest.$ac_ext
6184 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6185 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6186 if test "$ac_cv_sys_largefile_CC" != no; then
6187 CC=$CC$ac_cv_sys_largefile_CC
6190 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6191 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6192 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6193 $as_echo_n "(cached) " >&6
6194 else
6195 while :; do
6196 cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h. */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 #include <sys/types.h>
6203 /* Check that off_t can represent 2**63 - 1 correctly.
6204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6205 since some C++ compilers masquerading as C compilers
6206 incorrectly reject 9223372036854775807. */
6207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6209 && LARGE_OFF_T % 2147483647 == 1)
6210 ? 1 : -1];
6212 main ()
6216 return 0;
6218 _ACEOF
6219 rm -f conftest.$ac_objext
6220 if { (ac_try="$ac_compile"
6221 case "(($ac_try" in
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6224 esac
6225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6226 $as_echo "$ac_try_echo") >&5
6227 (eval "$ac_compile") 2>conftest.er1
6228 ac_status=$?
6229 grep -v '^ *+' conftest.er1 >conftest.err
6230 rm -f conftest.er1
6231 cat conftest.err >&5
6232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } && {
6234 test -z "$ac_c_werror_flag" ||
6235 test ! -s conftest.err
6236 } && test -s conftest.$ac_objext; then
6237 ac_cv_sys_file_offset_bits=no; break
6238 else
6239 $as_echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h. */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 #define _FILE_OFFSET_BITS 64
6253 #include <sys/types.h>
6254 /* Check that off_t can represent 2**63 - 1 correctly.
6255 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6256 since some C++ compilers masquerading as C compilers
6257 incorrectly reject 9223372036854775807. */
6258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6260 && LARGE_OFF_T % 2147483647 == 1)
6261 ? 1 : -1];
6263 main ()
6267 return 0;
6269 _ACEOF
6270 rm -f conftest.$ac_objext
6271 if { (ac_try="$ac_compile"
6272 case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275 esac
6276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6277 $as_echo "$ac_try_echo") >&5
6278 (eval "$ac_compile") 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } && {
6285 test -z "$ac_c_werror_flag" ||
6286 test ! -s conftest.err
6287 } && test -s conftest.$ac_objext; then
6288 ac_cv_sys_file_offset_bits=64; break
6289 else
6290 $as_echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 ac_cv_sys_file_offset_bits=unknown
6298 break
6299 done
6301 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6302 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6303 case $ac_cv_sys_file_offset_bits in #(
6304 no | unknown) ;;
6306 cat >>confdefs.h <<_ACEOF
6307 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6308 _ACEOF
6310 esac
6311 rm -rf conftest*
6312 if test $ac_cv_sys_file_offset_bits = unknown; then
6313 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6314 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6315 if test "${ac_cv_sys_large_files+set}" = set; then
6316 $as_echo_n "(cached) " >&6
6317 else
6318 while :; do
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h. */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 #include <sys/types.h>
6326 /* Check that off_t can represent 2**63 - 1 correctly.
6327 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6328 since some C++ compilers masquerading as C compilers
6329 incorrectly reject 9223372036854775807. */
6330 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6331 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6332 && LARGE_OFF_T % 2147483647 == 1)
6333 ? 1 : -1];
6335 main ()
6339 return 0;
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (ac_try="$ac_compile"
6344 case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347 esac
6348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6349 $as_echo "$ac_try_echo") >&5
6350 (eval "$ac_compile") 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && {
6357 test -z "$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6359 } && test -s conftest.$ac_objext; then
6360 ac_cv_sys_large_files=no; break
6361 else
6362 $as_echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h. */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 #define _LARGE_FILES 1
6376 #include <sys/types.h>
6377 /* Check that off_t can represent 2**63 - 1 correctly.
6378 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6379 since some C++ compilers masquerading as C compilers
6380 incorrectly reject 9223372036854775807. */
6381 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6382 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6383 && LARGE_OFF_T % 2147483647 == 1)
6384 ? 1 : -1];
6386 main ()
6390 return 0;
6392 _ACEOF
6393 rm -f conftest.$ac_objext
6394 if { (ac_try="$ac_compile"
6395 case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398 esac
6399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6400 $as_echo "$ac_try_echo") >&5
6401 (eval "$ac_compile") 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && {
6408 test -z "$ac_c_werror_flag" ||
6409 test ! -s conftest.err
6410 } && test -s conftest.$ac_objext; then
6411 ac_cv_sys_large_files=1; break
6412 else
6413 $as_echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 ac_cv_sys_large_files=unknown
6421 break
6422 done
6424 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6425 $as_echo "$ac_cv_sys_large_files" >&6; }
6426 case $ac_cv_sys_large_files in #(
6427 no | unknown) ;;
6429 cat >>confdefs.h <<_ACEOF
6430 #define _LARGE_FILES $ac_cv_sys_large_files
6431 _ACEOF
6433 esac
6434 rm -rf conftest*
6440 ## If user specified a crt-dir, use that unconditionally.
6441 if test "X$CRT_DIR" = "X"; then
6443 case "$canonical" in
6444 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6445 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6446 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6447 ## For anything else (eg /usr/lib32), it is up the user to specify
6448 ## the location (bug#5655).
6449 ## Test for crtn.o, not just the directory, because sometimes the
6450 ## directory exists but does not have the relevant files (bug#1287).
6451 ## FIXME better to test for binary compatibility somehow.
6452 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6455 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6456 esac
6458 case "$opsys" in
6459 hpux10-20) CRT_DIR=/lib ;;
6460 esac
6462 ## Default is /usr/lib.
6463 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6465 else
6467 ## Some platforms don't use any of these files, so it is not
6468 ## appropriate to put this test outside the if block.
6469 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6470 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6471 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6472 { (exit 1); exit 1; }; }
6478 LIB_MATH=-lm
6479 LIB_STANDARD=
6480 START_FILES=
6482 case $opsys in
6483 cygwin )
6484 LIB_MATH=
6485 START_FILES='ecrt0.o'
6487 darwin )
6488 ## Adding -lm confuses the dynamic linker, so omit it.
6489 LIB_MATH=
6490 START_FILES='pre-crt0.o'
6492 freebsd )
6493 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6494 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6496 gnu-linux | gnu-kfreebsd )
6497 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6498 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6500 hpux10-20 | hpux11 )
6501 LIB_STANDARD=-lc
6502 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6504 netbsd | openbsd )
6505 if test -f $(CRT_DIR)/crti.o; then
6506 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6507 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6508 else
6509 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6510 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6513 esac
6521 if test "${with_sound}" != "no"; then
6522 # Sound support for GNU/Linux and the free BSDs.
6526 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6531 $as_echo_n "checking for $ac_header... " >&6; }
6532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6533 $as_echo_n "(cached) " >&6
6535 ac_res=`eval 'as_val=${'$as_ac_Header'}
6536 $as_echo "$as_val"'`
6537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6538 $as_echo "$ac_res" >&6; }
6539 else
6540 # Is the header compilable?
6541 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6542 $as_echo_n "checking $ac_header usability... " >&6; }
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 $ac_includes_default
6550 #include <$ac_header>
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559 $as_echo "$ac_try_echo") >&5
6560 (eval "$ac_compile") 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest.$ac_objext; then
6570 ac_header_compiler=yes
6571 else
6572 $as_echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 ac_header_compiler=no
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6580 $as_echo "$ac_header_compiler" >&6; }
6582 # Is the header present?
6583 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6584 $as_echo_n "checking $ac_header presence... " >&6; }
6585 cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h. */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 #include <$ac_header>
6592 _ACEOF
6593 if { (ac_try="$ac_cpp conftest.$ac_ext"
6594 case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597 esac
6598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6599 $as_echo "$ac_try_echo") >&5
6600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6601 ac_status=$?
6602 grep -v '^ *+' conftest.er1 >conftest.err
6603 rm -f conftest.er1
6604 cat conftest.err >&5
6605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } >/dev/null && {
6607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6609 }; then
6610 ac_header_preproc=yes
6611 else
6612 $as_echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_header_preproc=no
6618 rm -f conftest.err conftest.$ac_ext
6619 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6620 $as_echo "$ac_header_preproc" >&6; }
6622 # So? What about this header?
6623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6624 yes:no: )
6625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6626 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6629 ac_header_preproc=yes
6631 no:yes:* )
6632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6633 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6635 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6637 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6639 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6643 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6646 esac
6647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6648 $as_echo_n "checking for $ac_header... " >&6; }
6649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6650 $as_echo_n "(cached) " >&6
6651 else
6652 eval "$as_ac_Header=\$ac_header_preproc"
6654 ac_res=`eval 'as_val=${'$as_ac_Header'}
6655 $as_echo "$as_val"'`
6656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6657 $as_echo "$ac_res" >&6; }
6660 as_val=`eval 'as_val=${'$as_ac_Header'}
6661 $as_echo "$as_val"'`
6662 if test "x$as_val" = x""yes; then
6663 cat >>confdefs.h <<_ACEOF
6664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6665 _ACEOF
6669 done
6671 # Emulation library used on NetBSD.
6672 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6673 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6674 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6675 $as_echo_n "(cached) " >&6
6676 else
6677 ac_check_lib_save_LIBS=$LIBS
6678 LIBS="-lossaudio $LIBS"
6679 cat >conftest.$ac_ext <<_ACEOF
6680 /* confdefs.h. */
6681 _ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6686 /* Override any GCC internal prototype to avoid an error.
6687 Use char because int might match the return type of a GCC
6688 builtin and then its argument prototype would still apply. */
6689 #ifdef __cplusplus
6690 extern "C"
6691 #endif
6692 char _oss_ioctl ();
6694 main ()
6696 return _oss_ioctl ();
6698 return 0;
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (ac_try="$ac_link"
6703 case "(($ac_try" in
6704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705 *) ac_try_echo=$ac_try;;
6706 esac
6707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6708 $as_echo "$ac_try_echo") >&5
6709 (eval "$ac_link") 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && {
6716 test -z "$ac_c_werror_flag" ||
6717 test ! -s conftest.err
6718 } && test -s conftest$ac_exeext && {
6719 test "$cross_compiling" = yes ||
6720 $as_test_x conftest$ac_exeext
6721 }; then
6722 ac_cv_lib_ossaudio__oss_ioctl=yes
6723 else
6724 $as_echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6727 ac_cv_lib_ossaudio__oss_ioctl=no
6730 rm -rf conftest.dSYM
6731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6732 conftest$ac_exeext conftest.$ac_ext
6733 LIBS=$ac_check_lib_save_LIBS
6735 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6736 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6737 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then
6738 LIBSOUND=-lossaudio
6739 else
6740 LIBSOUND=
6745 ALSA_REQUIRED=1.0.0
6746 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6748 succeeded=no
6750 # Extract the first word of "pkg-config", so it can be a program name with args.
6751 set dummy pkg-config; ac_word=$2
6752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6755 $as_echo_n "(cached) " >&6
6756 else
6757 case $PKG_CONFIG in
6758 [\\/]* | ?:[\\/]*)
6759 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6773 done
6774 done
6775 IFS=$as_save_IFS
6777 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6779 esac
6781 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6782 if test -n "$PKG_CONFIG"; then
6783 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6784 $as_echo "$PKG_CONFIG" >&6; }
6785 else
6786 { $as_echo "$as_me:$LINENO: result: no" >&5
6787 $as_echo "no" >&6; }
6792 if test "$PKG_CONFIG" = "no" ; then
6793 HAVE_ALSA=no
6794 else
6795 PKG_CONFIG_MIN_VERSION=0.9.0
6796 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6797 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6798 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6800 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6801 { $as_echo "$as_me:$LINENO: result: yes" >&5
6802 $as_echo "yes" >&6; }
6803 succeeded=yes
6805 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6806 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6807 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6808 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6809 $as_echo "$ALSA_CFLAGS" >&6; }
6811 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6812 $as_echo_n "checking ALSA_LIBS... " >&6; }
6813 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6814 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6815 $as_echo "$ALSA_LIBS" >&6; }
6816 else
6817 { $as_echo "$as_me:$LINENO: result: no" >&5
6818 $as_echo "no" >&6; }
6819 ALSA_CFLAGS=""
6820 ALSA_LIBS=""
6821 ## If we have a custom action on failure, don't print errors, but
6822 ## do set a variable so people can do so.
6823 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6829 else
6830 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6831 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6835 if test $succeeded = yes; then
6836 HAVE_ALSA=yes
6837 else
6838 HAVE_ALSA=no
6841 if test $HAVE_ALSA = yes; then
6842 SAVE_CFLAGS="$CFLAGS"
6843 SAVE_LDFLAGS="$LDFLAGS"
6844 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6845 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6846 cat >conftest.$ac_ext <<_ACEOF
6847 /* confdefs.h. */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #include <asoundlib.h>
6854 main ()
6856 snd_lib_error_set_handler (0);
6858 return 0;
6860 _ACEOF
6861 rm -f conftest.$ac_objext
6862 if { (ac_try="$ac_compile"
6863 case "(($ac_try" in
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6866 esac
6867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6868 $as_echo "$ac_try_echo") >&5
6869 (eval "$ac_compile") 2>conftest.er1
6870 ac_status=$?
6871 grep -v '^ *+' conftest.er1 >conftest.err
6872 rm -f conftest.er1
6873 cat conftest.err >&5
6874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } && {
6876 test -z "$ac_c_werror_flag" ||
6877 test ! -s conftest.err
6878 } && test -s conftest.$ac_objext; then
6879 emacs_alsa_normal=yes
6880 else
6881 $as_echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6884 emacs_alsa_normal=no
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 if test "$emacs_alsa_normal" != yes; then
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 #include <alsa/asoundlib.h>
6897 main ()
6899 snd_lib_error_set_handler (0);
6901 return 0;
6903 _ACEOF
6904 rm -f conftest.$ac_objext
6905 if { (ac_try="$ac_compile"
6906 case "(($ac_try" in
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6909 esac
6910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6911 $as_echo "$ac_try_echo") >&5
6912 (eval "$ac_compile") 2>conftest.er1
6913 ac_status=$?
6914 grep -v '^ *+' conftest.er1 >conftest.err
6915 rm -f conftest.er1
6916 cat conftest.err >&5
6917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest.$ac_objext; then
6922 emacs_alsa_subdir=yes
6923 else
6924 $as_echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 emacs_alsa_subdir=no
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931 if test "$emacs_alsa_subdir" != yes; then
6932 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6933 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6934 { (exit 1); exit 1; }; }
6936 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6939 CFLAGS="$SAVE_CFLAGS"
6940 LDFLAGS="$SAVE_LDFLAGS"
6941 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6942 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6944 cat >>confdefs.h <<\_ACEOF
6945 #define HAVE_ALSA 1
6946 _ACEOF
6977 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6978 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6979 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6980 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6981 sys/utsname.h pwd.h utmp.h
6983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6986 $as_echo_n "checking for $ac_header... " >&6; }
6987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6988 $as_echo_n "(cached) " >&6
6990 ac_res=`eval 'as_val=${'$as_ac_Header'}
6991 $as_echo "$as_val"'`
6992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6993 $as_echo "$ac_res" >&6; }
6994 else
6995 # Is the header compilable?
6996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6997 $as_echo_n "checking $ac_header usability... " >&6; }
6998 cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h. */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 $ac_includes_default
7005 #include <$ac_header>
7006 _ACEOF
7007 rm -f conftest.$ac_objext
7008 if { (ac_try="$ac_compile"
7009 case "(($ac_try" in
7010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011 *) ac_try_echo=$ac_try;;
7012 esac
7013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7014 $as_echo "$ac_try_echo") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7025 ac_header_compiler=yes
7026 else
7027 $as_echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_header_compiler=no
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7035 $as_echo "$ac_header_compiler" >&6; }
7037 # Is the header present?
7038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7039 $as_echo_n "checking $ac_header presence... " >&6; }
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h. */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 #include <$ac_header>
7047 _ACEOF
7048 if { (ac_try="$ac_cpp conftest.$ac_ext"
7049 case "(($ac_try" in
7050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7051 *) ac_try_echo=$ac_try;;
7052 esac
7053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7054 $as_echo "$ac_try_echo") >&5
7055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7056 ac_status=$?
7057 grep -v '^ *+' conftest.er1 >conftest.err
7058 rm -f conftest.er1
7059 cat conftest.err >&5
7060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } >/dev/null && {
7062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7063 test ! -s conftest.err
7064 }; then
7065 ac_header_preproc=yes
7066 else
7067 $as_echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 ac_header_preproc=no
7073 rm -f conftest.err conftest.$ac_ext
7074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7075 $as_echo "$ac_header_preproc" >&6; }
7077 # So? What about this header?
7078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7079 yes:no: )
7080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7084 ac_header_preproc=yes
7086 no:yes:* )
7087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7090 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7094 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7101 esac
7102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7103 $as_echo_n "checking for $ac_header... " >&6; }
7104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7105 $as_echo_n "(cached) " >&6
7106 else
7107 eval "$as_ac_Header=\$ac_header_preproc"
7109 ac_res=`eval 'as_val=${'$as_ac_Header'}
7110 $as_echo "$as_val"'`
7111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7112 $as_echo "$ac_res" >&6; }
7115 as_val=`eval 'as_val=${'$as_ac_Header'}
7116 $as_echo "$as_val"'`
7117 if test "x$as_val" = x""yes; then
7118 cat >>confdefs.h <<_ACEOF
7119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7120 _ACEOF
7124 done
7127 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7128 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h. */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 #include <sys/personality.h>
7137 main ()
7139 personality (PER_LINUX32)
7141 return 0;
7143 _ACEOF
7144 rm -f conftest.$ac_objext
7145 if { (ac_try="$ac_compile"
7146 case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149 esac
7150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7151 $as_echo "$ac_try_echo") >&5
7152 (eval "$ac_compile") 2>conftest.er1
7153 ac_status=$?
7154 grep -v '^ *+' conftest.er1 >conftest.err
7155 rm -f conftest.er1
7156 cat conftest.err >&5
7157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } && {
7159 test -z "$ac_c_werror_flag" ||
7160 test ! -s conftest.err
7161 } && test -s conftest.$ac_objext; then
7162 emacs_cv_personality_linux32=yes
7163 else
7164 $as_echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 emacs_cv_personality_linux32=no
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7172 $as_echo "$emacs_cv_personality_linux32" >&6; }
7174 if test $emacs_cv_personality_linux32 = yes; then
7176 cat >>confdefs.h <<\_ACEOF
7177 #define HAVE_PERSONALITY_LINUX32 1
7178 _ACEOF
7183 for ac_header in term.h
7185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7187 $as_echo_n "checking for $ac_header... " >&6; }
7188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7189 $as_echo_n "(cached) " >&6
7190 else
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 #include <$ac_header>
7198 _ACEOF
7199 if { (ac_try="$ac_cpp conftest.$ac_ext"
7200 case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203 esac
7204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7205 $as_echo "$ac_try_echo") >&5
7206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } >/dev/null && {
7213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 }; then
7216 eval "$as_ac_Header=yes"
7217 else
7218 $as_echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7221 eval "$as_ac_Header=no"
7224 rm -f conftest.err conftest.$ac_ext
7226 ac_res=`eval 'as_val=${'$as_ac_Header'}
7227 $as_echo "$as_val"'`
7228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7229 $as_echo "$ac_res" >&6; }
7230 as_val=`eval 'as_val=${'$as_ac_Header'}
7231 $as_echo "$as_val"'`
7232 if test "x$as_val" = x""yes; then
7233 cat >>confdefs.h <<_ACEOF
7234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7235 _ACEOF
7239 done
7241 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7242 $as_echo_n "checking for ANSI C header files... " >&6; }
7243 if test "${ac_cv_header_stdc+set}" = set; then
7244 $as_echo_n "(cached) " >&6
7245 else
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 #include <stdlib.h>
7253 #include <stdarg.h>
7254 #include <string.h>
7255 #include <float.h>
7258 main ()
7262 return 0;
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7267 case "(($ac_try" in
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7270 esac
7271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7272 $as_echo "$ac_try_echo") >&5
7273 (eval "$ac_compile") 2>conftest.er1
7274 ac_status=$?
7275 grep -v '^ *+' conftest.er1 >conftest.err
7276 rm -f conftest.er1
7277 cat conftest.err >&5
7278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest.$ac_objext; then
7283 ac_cv_header_stdc=yes
7284 else
7285 $as_echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7288 ac_cv_header_stdc=no
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293 if test $ac_cv_header_stdc = yes; then
7294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h. */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 #include <string.h>
7303 _ACEOF
7304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7305 $EGREP "memchr" >/dev/null 2>&1; then
7307 else
7308 ac_cv_header_stdc=no
7310 rm -f conftest*
7314 if test $ac_cv_header_stdc = yes; then
7315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7316 cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h. */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 #include <stdlib.h>
7324 _ACEOF
7325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7326 $EGREP "free" >/dev/null 2>&1; then
7328 else
7329 ac_cv_header_stdc=no
7331 rm -f conftest*
7335 if test $ac_cv_header_stdc = yes; then
7336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7337 if test "$cross_compiling" = yes; then
7339 else
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 #include <ctype.h>
7347 #include <stdlib.h>
7348 #if ((' ' & 0x0FF) == 0x020)
7349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7351 #else
7352 # define ISLOWER(c) \
7353 (('a' <= (c) && (c) <= 'i') \
7354 || ('j' <= (c) && (c) <= 'r') \
7355 || ('s' <= (c) && (c) <= 'z'))
7356 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7357 #endif
7359 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7361 main ()
7363 int i;
7364 for (i = 0; i < 256; i++)
7365 if (XOR (islower (i), ISLOWER (i))
7366 || toupper (i) != TOUPPER (i))
7367 return 2;
7368 return 0;
7370 _ACEOF
7371 rm -f conftest$ac_exeext
7372 if { (ac_try="$ac_link"
7373 case "(($ac_try" in
7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375 *) ac_try_echo=$ac_try;;
7376 esac
7377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7378 $as_echo "$ac_try_echo") >&5
7379 (eval "$ac_link") 2>&5
7380 ac_status=$?
7381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7383 { (case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386 esac
7387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7388 $as_echo "$ac_try_echo") >&5
7389 (eval "$ac_try") 2>&5
7390 ac_status=$?
7391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7394 else
7395 $as_echo "$as_me: program exited with status $ac_status" >&5
7396 $as_echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7399 ( exit $ac_status )
7400 ac_cv_header_stdc=no
7402 rm -rf conftest.dSYM
7403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7409 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7410 $as_echo "$ac_cv_header_stdc" >&6; }
7411 if test $ac_cv_header_stdc = yes; then
7413 cat >>confdefs.h <<\_ACEOF
7414 #define STDC_HEADERS 1
7415 _ACEOF
7419 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7420 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7421 if test "${ac_cv_header_time+set}" = set; then
7422 $as_echo_n "(cached) " >&6
7423 else
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 #include <sys/types.h>
7431 #include <sys/time.h>
7432 #include <time.h>
7435 main ()
7437 if ((struct tm *) 0)
7438 return 0;
7440 return 0;
7442 _ACEOF
7443 rm -f conftest.$ac_objext
7444 if { (ac_try="$ac_compile"
7445 case "(($ac_try" in
7446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7447 *) ac_try_echo=$ac_try;;
7448 esac
7449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7450 $as_echo "$ac_try_echo") >&5
7451 (eval "$ac_compile") 2>conftest.er1
7452 ac_status=$?
7453 grep -v '^ *+' conftest.er1 >conftest.err
7454 rm -f conftest.er1
7455 cat conftest.err >&5
7456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } && {
7458 test -z "$ac_c_werror_flag" ||
7459 test ! -s conftest.err
7460 } && test -s conftest.$ac_objext; then
7461 ac_cv_header_time=yes
7462 else
7463 $as_echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7466 ac_cv_header_time=no
7469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7472 $as_echo "$ac_cv_header_time" >&6; }
7473 if test $ac_cv_header_time = yes; then
7475 cat >>confdefs.h <<\_ACEOF
7476 #define TIME_WITH_SYS_TIME 1
7477 _ACEOF
7481 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7482 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7483 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7484 $as_echo_n "(cached) " >&6
7485 else
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 $ac_includes_default
7494 main ()
7496 #ifndef sys_siglist
7497 (void) sys_siglist;
7498 #endif
7501 return 0;
7503 _ACEOF
7504 rm -f conftest.$ac_objext
7505 if { (ac_try="$ac_compile"
7506 case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509 esac
7510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7511 $as_echo "$ac_try_echo") >&5
7512 (eval "$ac_compile") 2>conftest.er1
7513 ac_status=$?
7514 grep -v '^ *+' conftest.er1 >conftest.err
7515 rm -f conftest.er1
7516 cat conftest.err >&5
7517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest.$ac_objext; then
7522 ac_cv_have_decl_sys_siglist=yes
7523 else
7524 $as_echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_cv_have_decl_sys_siglist=no
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7533 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7534 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
7536 cat >>confdefs.h <<_ACEOF
7537 #define HAVE_DECL_SYS_SIGLIST 1
7538 _ACEOF
7541 else
7542 cat >>confdefs.h <<_ACEOF
7543 #define HAVE_DECL_SYS_SIGLIST 0
7544 _ACEOF
7550 if test $ac_cv_have_decl_sys_siglist != yes; then
7551 # For Tru64, at least:
7552 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7553 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7554 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7556 else
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h. */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 $ac_includes_default
7565 main ()
7567 #ifndef __sys_siglist
7568 (void) __sys_siglist;
7569 #endif
7572 return 0;
7574 _ACEOF
7575 rm -f conftest.$ac_objext
7576 if { (ac_try="$ac_compile"
7577 case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580 esac
7581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7582 $as_echo "$ac_try_echo") >&5
7583 (eval "$ac_compile") 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } && {
7590 test -z "$ac_c_werror_flag" ||
7591 test ! -s conftest.err
7592 } && test -s conftest.$ac_objext; then
7593 ac_cv_have_decl___sys_siglist=yes
7594 else
7595 $as_echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7598 ac_cv_have_decl___sys_siglist=no
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7604 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7605 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then
7607 cat >>confdefs.h <<_ACEOF
7608 #define HAVE_DECL___SYS_SIGLIST 1
7609 _ACEOF
7612 else
7613 cat >>confdefs.h <<_ACEOF
7614 #define HAVE_DECL___SYS_SIGLIST 0
7615 _ACEOF
7621 if test $ac_cv_have_decl___sys_siglist = yes; then
7623 cat >>confdefs.h <<\_ACEOF
7624 #define sys_siglist __sys_siglist
7625 _ACEOF
7629 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7630 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7631 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7632 $as_echo_n "(cached) " >&6
7633 else
7634 cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h. */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 #include <sys/types.h>
7641 #include <sys/wait.h>
7642 #ifndef WEXITSTATUS
7643 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7644 #endif
7645 #ifndef WIFEXITED
7646 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7647 #endif
7650 main ()
7652 int s;
7653 wait (&s);
7654 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7656 return 0;
7658 _ACEOF
7659 rm -f conftest.$ac_objext
7660 if { (ac_try="$ac_compile"
7661 case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664 esac
7665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7666 $as_echo "$ac_try_echo") >&5
7667 (eval "$ac_compile") 2>conftest.er1
7668 ac_status=$?
7669 grep -v '^ *+' conftest.er1 >conftest.err
7670 rm -f conftest.er1
7671 cat conftest.err >&5
7672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } && {
7674 test -z "$ac_c_werror_flag" ||
7675 test ! -s conftest.err
7676 } && test -s conftest.$ac_objext; then
7677 ac_cv_header_sys_wait_h=yes
7678 else
7679 $as_echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 ac_cv_header_sys_wait_h=no
7685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7688 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7689 if test $ac_cv_header_sys_wait_h = yes; then
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_SYS_WAIT_H 1
7693 _ACEOF
7698 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7699 $as_echo_n "checking for struct utimbuf... " >&6; }
7700 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7701 $as_echo_n "(cached) " >&6
7702 else
7703 cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h. */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 #ifdef TIME_WITH_SYS_TIME
7710 #include <sys/time.h>
7711 #include <time.h>
7712 #else
7713 #ifdef HAVE_SYS_TIME_H
7714 #include <sys/time.h>
7715 #else
7716 #include <time.h>
7717 #endif
7718 #endif
7719 #ifdef HAVE_UTIME_H
7720 #include <utime.h>
7721 #endif
7723 main ()
7725 static struct utimbuf x; x.actime = x.modtime;
7727 return 0;
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (ac_try="$ac_compile"
7732 case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735 esac
7736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7737 $as_echo "$ac_try_echo") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.$ac_objext; then
7748 emacs_cv_struct_utimbuf=yes
7749 else
7750 $as_echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 emacs_cv_struct_utimbuf=no
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7759 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7760 if test $emacs_cv_struct_utimbuf = yes; then
7762 cat >>confdefs.h <<\_ACEOF
7763 #define HAVE_STRUCT_UTIMBUF 1
7764 _ACEOF
7768 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7769 $as_echo_n "checking return type of signal handlers... " >&6; }
7770 if test "${ac_cv_type_signal+set}" = set; then
7771 $as_echo_n "(cached) " >&6
7772 else
7773 cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h. */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #include <sys/types.h>
7780 #include <signal.h>
7783 main ()
7785 return *(signal (0, 0)) (0) == 1;
7787 return 0;
7789 _ACEOF
7790 rm -f conftest.$ac_objext
7791 if { (ac_try="$ac_compile"
7792 case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7795 esac
7796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7797 $as_echo "$ac_try_echo") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
7808 ac_cv_type_signal=int
7809 else
7810 $as_echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 ac_cv_type_signal=void
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7819 $as_echo "$ac_cv_type_signal" >&6; }
7821 cat >>confdefs.h <<_ACEOF
7822 #define RETSIGTYPE $ac_cv_type_signal
7823 _ACEOF
7827 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7828 $as_echo_n "checking for speed_t... " >&6; }
7829 if test "${emacs_cv_speed_t+set}" = set; then
7830 $as_echo_n "(cached) " >&6
7831 else
7832 cat >conftest.$ac_ext <<_ACEOF
7833 /* confdefs.h. */
7834 _ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7838 #include <termios.h>
7840 main ()
7842 speed_t x = 1;
7844 return 0;
7846 _ACEOF
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7849 case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852 esac
7853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854 $as_echo "$ac_try_echo") >&5
7855 (eval "$ac_compile") 2>conftest.er1
7856 ac_status=$?
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest.$ac_objext; then
7865 emacs_cv_speed_t=yes
7866 else
7867 $as_echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7870 emacs_cv_speed_t=no
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7876 $as_echo "$emacs_cv_speed_t" >&6; }
7877 if test $emacs_cv_speed_t = yes; then
7879 cat >>confdefs.h <<\_ACEOF
7880 #define HAVE_SPEED_T 1
7881 _ACEOF
7885 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7886 $as_echo_n "checking for struct timeval... " >&6; }
7887 if test "${emacs_cv_struct_timeval+set}" = set; then
7888 $as_echo_n "(cached) " >&6
7889 else
7890 cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h. */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896 #ifdef TIME_WITH_SYS_TIME
7897 #include <sys/time.h>
7898 #include <time.h>
7899 #else
7900 #ifdef HAVE_SYS_TIME_H
7901 #include <sys/time.h>
7902 #else
7903 #include <time.h>
7904 #endif
7905 #endif
7907 main ()
7909 static struct timeval x; x.tv_sec = x.tv_usec;
7911 return 0;
7913 _ACEOF
7914 rm -f conftest.$ac_objext
7915 if { (ac_try="$ac_compile"
7916 case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919 esac
7920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7921 $as_echo "$ac_try_echo") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
7932 emacs_cv_struct_timeval=yes
7933 else
7934 $as_echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 emacs_cv_struct_timeval=no
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7943 $as_echo "$emacs_cv_struct_timeval" >&6; }
7944 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7945 if test $emacs_cv_struct_timeval = yes; then
7947 cat >>confdefs.h <<\_ACEOF
7948 #define HAVE_TIMEVAL 1
7949 _ACEOF
7953 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7954 $as_echo_n "checking for struct exception... " >&6; }
7955 if test "${emacs_cv_struct_exception+set}" = set; then
7956 $as_echo_n "(cached) " >&6
7957 else
7958 cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h. */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 #include <math.h>
7966 main ()
7968 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7970 return 0;
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7975 case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978 esac
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7991 emacs_cv_struct_exception=yes
7992 else
7993 $as_echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 emacs_cv_struct_exception=no
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
8002 $as_echo "$emacs_cv_struct_exception" >&6; }
8003 HAVE_EXCEPTION=$emacs_cv_struct_exception
8004 if test $emacs_cv_struct_exception != yes; then
8006 cat >>confdefs.h <<\_ACEOF
8007 #define NO_MATHERR 1
8008 _ACEOF
8013 for ac_header in sys/socket.h
8015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8017 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8018 $as_echo_n "checking for $ac_header... " >&6; }
8019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8020 $as_echo_n "(cached) " >&6
8022 ac_res=`eval 'as_val=${'$as_ac_Header'}
8023 $as_echo "$as_val"'`
8024 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8025 $as_echo "$ac_res" >&6; }
8026 else
8027 # Is the header compilable?
8028 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8029 $as_echo_n "checking $ac_header usability... " >&6; }
8030 cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h. */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 $ac_includes_default
8037 #include <$ac_header>
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (ac_try="$ac_compile"
8041 case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8044 esac
8045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8046 $as_echo "$ac_try_echo") >&5
8047 (eval "$ac_compile") 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } && {
8054 test -z "$ac_c_werror_flag" ||
8055 test ! -s conftest.err
8056 } && test -s conftest.$ac_objext; then
8057 ac_header_compiler=yes
8058 else
8059 $as_echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 ac_header_compiler=no
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8067 $as_echo "$ac_header_compiler" >&6; }
8069 # Is the header present?
8070 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8071 $as_echo_n "checking $ac_header presence... " >&6; }
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h. */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 #include <$ac_header>
8079 _ACEOF
8080 if { (ac_try="$ac_cpp conftest.$ac_ext"
8081 case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8084 esac
8085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8086 $as_echo "$ac_try_echo") >&5
8087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8088 ac_status=$?
8089 grep -v '^ *+' conftest.er1 >conftest.err
8090 rm -f conftest.er1
8091 cat conftest.err >&5
8092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } >/dev/null && {
8094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8096 }; then
8097 ac_header_preproc=yes
8098 else
8099 $as_echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 ac_header_preproc=no
8105 rm -f conftest.err conftest.$ac_ext
8106 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8107 $as_echo "$ac_header_preproc" >&6; }
8109 # So? What about this header?
8110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8111 yes:no: )
8112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8113 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8115 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8116 ac_header_preproc=yes
8118 no:yes:* )
8119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8120 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8122 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8124 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8126 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8128 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8130 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8133 esac
8134 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8135 $as_echo_n "checking for $ac_header... " >&6; }
8136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8137 $as_echo_n "(cached) " >&6
8138 else
8139 eval "$as_ac_Header=\$ac_header_preproc"
8141 ac_res=`eval 'as_val=${'$as_ac_Header'}
8142 $as_echo "$as_val"'`
8143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8144 $as_echo "$ac_res" >&6; }
8147 as_val=`eval 'as_val=${'$as_ac_Header'}
8148 $as_echo "$as_val"'`
8149 if test "x$as_val" = x""yes; then
8150 cat >>confdefs.h <<_ACEOF
8151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8152 _ACEOF
8156 done
8159 for ac_header in net/if.h
8161 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8162 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8163 $as_echo_n "checking for $ac_header... " >&6; }
8164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8165 $as_echo_n "(cached) " >&6
8166 else
8167 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h. */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8173 $ac_includes_default
8174 #if HAVE_SYS_SOCKET_H
8175 #include <sys/socket.h>
8176 #endif
8178 #include <$ac_header>
8179 _ACEOF
8180 rm -f conftest.$ac_objext
8181 if { (ac_try="$ac_compile"
8182 case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8185 esac
8186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8187 $as_echo "$ac_try_echo") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_c_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest.$ac_objext; then
8198 eval "$as_ac_Header=yes"
8199 else
8200 $as_echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 eval "$as_ac_Header=no"
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 ac_res=`eval 'as_val=${'$as_ac_Header'}
8209 $as_echo "$as_val"'`
8210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8211 $as_echo "$ac_res" >&6; }
8212 as_val=`eval 'as_val=${'$as_ac_Header'}
8213 $as_echo "$as_val"'`
8214 if test "x$as_val" = x""yes; then
8215 cat >>confdefs.h <<_ACEOF
8216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8217 _ACEOF
8221 done
8224 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8225 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8226 if test "${ac_cv_struct_tm+set}" = set; then
8227 $as_echo_n "(cached) " >&6
8228 else
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 #include <sys/types.h>
8236 #include <time.h>
8239 main ()
8241 struct tm tm;
8242 int *p = &tm.tm_sec;
8243 return !p;
8245 return 0;
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (ac_try="$ac_compile"
8250 case "(($ac_try" in
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8253 esac
8254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8255 $as_echo "$ac_try_echo") >&5
8256 (eval "$ac_compile") 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest.$ac_objext; then
8266 ac_cv_struct_tm=time.h
8267 else
8268 $as_echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 ac_cv_struct_tm=sys/time.h
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8276 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8277 $as_echo "$ac_cv_struct_tm" >&6; }
8278 if test $ac_cv_struct_tm = sys/time.h; then
8280 cat >>confdefs.h <<\_ACEOF
8281 #define TM_IN_SYS_TIME 1
8282 _ACEOF
8286 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8287 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8288 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8289 $as_echo_n "(cached) " >&6
8290 else
8291 cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h. */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 #include <sys/types.h>
8298 #include <$ac_cv_struct_tm>
8302 main ()
8304 static struct tm ac_aggr;
8305 if (ac_aggr.tm_zone)
8306 return 0;
8308 return 0;
8310 _ACEOF
8311 rm -f conftest.$ac_objext
8312 if { (ac_try="$ac_compile"
8313 case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8316 esac
8317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8318 $as_echo "$ac_try_echo") >&5
8319 (eval "$ac_compile") 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } && {
8326 test -z "$ac_c_werror_flag" ||
8327 test ! -s conftest.err
8328 } && test -s conftest.$ac_objext; then
8329 ac_cv_member_struct_tm_tm_zone=yes
8330 else
8331 $as_echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h. */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8340 #include <sys/types.h>
8341 #include <$ac_cv_struct_tm>
8345 main ()
8347 static struct tm ac_aggr;
8348 if (sizeof ac_aggr.tm_zone)
8349 return 0;
8351 return 0;
8353 _ACEOF
8354 rm -f conftest.$ac_objext
8355 if { (ac_try="$ac_compile"
8356 case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8359 esac
8360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8361 $as_echo "$ac_try_echo") >&5
8362 (eval "$ac_compile") 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } && {
8369 test -z "$ac_c_werror_flag" ||
8370 test ! -s conftest.err
8371 } && test -s conftest.$ac_objext; then
8372 ac_cv_member_struct_tm_tm_zone=yes
8373 else
8374 $as_echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8377 ac_cv_member_struct_tm_tm_zone=no
8380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8386 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8387 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
8389 cat >>confdefs.h <<_ACEOF
8390 #define HAVE_STRUCT_TM_TM_ZONE 1
8391 _ACEOF
8396 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8398 cat >>confdefs.h <<\_ACEOF
8399 #define HAVE_TM_ZONE 1
8400 _ACEOF
8402 else
8403 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8404 $as_echo_n "checking whether tzname is declared... " >&6; }
8405 if test "${ac_cv_have_decl_tzname+set}" = set; then
8406 $as_echo_n "(cached) " >&6
8407 else
8408 cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h. */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8414 #include <time.h>
8417 main ()
8419 #ifndef tzname
8420 (void) tzname;
8421 #endif
8424 return 0;
8426 _ACEOF
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8429 case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432 esac
8433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8434 $as_echo "$ac_try_echo") >&5
8435 (eval "$ac_compile") 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest.$ac_objext; then
8445 ac_cv_have_decl_tzname=yes
8446 else
8447 $as_echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8450 ac_cv_have_decl_tzname=no
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8456 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8457 if test "x$ac_cv_have_decl_tzname" = x""yes; then
8459 cat >>confdefs.h <<_ACEOF
8460 #define HAVE_DECL_TZNAME 1
8461 _ACEOF
8464 else
8465 cat >>confdefs.h <<_ACEOF
8466 #define HAVE_DECL_TZNAME 0
8467 _ACEOF
8473 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8474 $as_echo_n "checking for tzname... " >&6; }
8475 if test "${ac_cv_var_tzname+set}" = set; then
8476 $as_echo_n "(cached) " >&6
8477 else
8478 cat >conftest.$ac_ext <<_ACEOF
8479 /* confdefs.h. */
8480 _ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8484 #include <time.h>
8485 #if !HAVE_DECL_TZNAME
8486 extern char *tzname[];
8487 #endif
8490 main ()
8492 return tzname[0][0];
8494 return 0;
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (ac_try="$ac_link"
8499 case "(($ac_try" in
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8502 esac
8503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8504 $as_echo "$ac_try_echo") >&5
8505 (eval "$ac_link") 2>conftest.er1
8506 ac_status=$?
8507 grep -v '^ *+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
8510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } && {
8512 test -z "$ac_c_werror_flag" ||
8513 test ! -s conftest.err
8514 } && test -s conftest$ac_exeext && {
8515 test "$cross_compiling" = yes ||
8516 $as_test_x conftest$ac_exeext
8517 }; then
8518 ac_cv_var_tzname=yes
8519 else
8520 $as_echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8523 ac_cv_var_tzname=no
8526 rm -rf conftest.dSYM
8527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8528 conftest$ac_exeext conftest.$ac_ext
8530 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8531 $as_echo "$ac_cv_var_tzname" >&6; }
8532 if test $ac_cv_var_tzname = yes; then
8534 cat >>confdefs.h <<\_ACEOF
8535 #define HAVE_TZNAME 1
8536 _ACEOF
8541 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8542 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8543 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8544 $as_echo_n "(cached) " >&6
8545 else
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 #include <time.h>
8555 main ()
8557 static struct tm ac_aggr;
8558 if (ac_aggr.tm_gmtoff)
8559 return 0;
8561 return 0;
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8566 case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569 esac
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.$ac_objext; then
8582 ac_cv_member_struct_tm_tm_gmtoff=yes
8583 else
8584 $as_echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h. */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8593 #include <time.h>
8596 main ()
8598 static struct tm ac_aggr;
8599 if (sizeof ac_aggr.tm_gmtoff)
8600 return 0;
8602 return 0;
8604 _ACEOF
8605 rm -f conftest.$ac_objext
8606 if { (ac_try="$ac_compile"
8607 case "(($ac_try" in
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8610 esac
8611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8612 $as_echo "$ac_try_echo") >&5
8613 (eval "$ac_compile") 2>conftest.er1
8614 ac_status=$?
8615 grep -v '^ *+' conftest.er1 >conftest.err
8616 rm -f conftest.er1
8617 cat conftest.err >&5
8618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } && {
8620 test -z "$ac_c_werror_flag" ||
8621 test ! -s conftest.err
8622 } && test -s conftest.$ac_objext; then
8623 ac_cv_member_struct_tm_tm_gmtoff=yes
8624 else
8625 $as_echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8628 ac_cv_member_struct_tm_tm_gmtoff=no
8631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8637 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8638 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
8640 cat >>confdefs.h <<\_ACEOF
8641 #define HAVE_TM_GMTOFF 1
8642 _ACEOF
8646 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8647 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8648 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8649 $as_echo_n "(cached) " >&6
8650 else
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 #if HAVE_SYS_SOCKET_H
8659 #include <sys/socket.h>
8660 #endif
8661 #if HAVE_NET_IF_H
8662 #include <net/if.h>
8663 #endif
8666 main ()
8668 static struct ifreq ac_aggr;
8669 if (ac_aggr.ifr_flags)
8670 return 0;
8672 return 0;
8674 _ACEOF
8675 rm -f conftest.$ac_objext
8676 if { (ac_try="$ac_compile"
8677 case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680 esac
8681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8682 $as_echo "$ac_try_echo") >&5
8683 (eval "$ac_compile") 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } && {
8690 test -z "$ac_c_werror_flag" ||
8691 test ! -s conftest.err
8692 } && test -s conftest.$ac_objext; then
8693 ac_cv_member_struct_ifreq_ifr_flags=yes
8694 else
8695 $as_echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 $ac_includes_default
8705 #if HAVE_SYS_SOCKET_H
8706 #include <sys/socket.h>
8707 #endif
8708 #if HAVE_NET_IF_H
8709 #include <net/if.h>
8710 #endif
8713 main ()
8715 static struct ifreq ac_aggr;
8716 if (sizeof ac_aggr.ifr_flags)
8717 return 0;
8719 return 0;
8721 _ACEOF
8722 rm -f conftest.$ac_objext
8723 if { (ac_try="$ac_compile"
8724 case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8727 esac
8728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8729 $as_echo "$ac_try_echo") >&5
8730 (eval "$ac_compile") 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && {
8737 test -z "$ac_c_werror_flag" ||
8738 test ! -s conftest.err
8739 } && test -s conftest.$ac_objext; then
8740 ac_cv_member_struct_ifreq_ifr_flags=yes
8741 else
8742 $as_echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_cv_member_struct_ifreq_ifr_flags=no
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8753 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8754 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8755 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then
8757 cat >>confdefs.h <<_ACEOF
8758 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8759 _ACEOF
8763 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8764 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8765 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8766 $as_echo_n "(cached) " >&6
8767 else
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h. */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 #if HAVE_SYS_SOCKET_H
8776 #include <sys/socket.h>
8777 #endif
8778 #if HAVE_NET_IF_H
8779 #include <net/if.h>
8780 #endif
8783 main ()
8785 static struct ifreq ac_aggr;
8786 if (ac_aggr.ifr_hwaddr)
8787 return 0;
8789 return 0;
8791 _ACEOF
8792 rm -f conftest.$ac_objext
8793 if { (ac_try="$ac_compile"
8794 case "(($ac_try" in
8795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8797 esac
8798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8799 $as_echo "$ac_try_echo") >&5
8800 (eval "$ac_compile") 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && {
8807 test -z "$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8809 } && test -s conftest.$ac_objext; then
8810 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8811 else
8812 $as_echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8815 cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h. */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821 $ac_includes_default
8822 #if HAVE_SYS_SOCKET_H
8823 #include <sys/socket.h>
8824 #endif
8825 #if HAVE_NET_IF_H
8826 #include <net/if.h>
8827 #endif
8830 main ()
8832 static struct ifreq ac_aggr;
8833 if (sizeof ac_aggr.ifr_hwaddr)
8834 return 0;
8836 return 0;
8838 _ACEOF
8839 rm -f conftest.$ac_objext
8840 if { (ac_try="$ac_compile"
8841 case "(($ac_try" in
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8844 esac
8845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8846 $as_echo "$ac_try_echo") >&5
8847 (eval "$ac_compile") 2>conftest.er1
8848 ac_status=$?
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } && {
8854 test -z "$ac_c_werror_flag" ||
8855 test ! -s conftest.err
8856 } && test -s conftest.$ac_objext; then
8857 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8858 else
8859 $as_echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8862 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8871 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8872 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then
8874 cat >>confdefs.h <<_ACEOF
8875 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8876 _ACEOF
8880 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8881 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8882 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8883 $as_echo_n "(cached) " >&6
8884 else
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h. */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 $ac_includes_default
8892 #if HAVE_SYS_SOCKET_H
8893 #include <sys/socket.h>
8894 #endif
8895 #if HAVE_NET_IF_H
8896 #include <net/if.h>
8897 #endif
8900 main ()
8902 static struct ifreq ac_aggr;
8903 if (ac_aggr.ifr_netmask)
8904 return 0;
8906 return 0;
8908 _ACEOF
8909 rm -f conftest.$ac_objext
8910 if { (ac_try="$ac_compile"
8911 case "(($ac_try" in
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8914 esac
8915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8916 $as_echo "$ac_try_echo") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8918 ac_status=$?
8919 grep -v '^ *+' conftest.er1 >conftest.err
8920 rm -f conftest.er1
8921 cat conftest.err >&5
8922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest.$ac_objext; then
8927 ac_cv_member_struct_ifreq_ifr_netmask=yes
8928 else
8929 $as_echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8932 cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h. */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938 $ac_includes_default
8939 #if HAVE_SYS_SOCKET_H
8940 #include <sys/socket.h>
8941 #endif
8942 #if HAVE_NET_IF_H
8943 #include <net/if.h>
8944 #endif
8947 main ()
8949 static struct ifreq ac_aggr;
8950 if (sizeof ac_aggr.ifr_netmask)
8951 return 0;
8953 return 0;
8955 _ACEOF
8956 rm -f conftest.$ac_objext
8957 if { (ac_try="$ac_compile"
8958 case "(($ac_try" in
8959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8960 *) ac_try_echo=$ac_try;;
8961 esac
8962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8963 $as_echo "$ac_try_echo") >&5
8964 (eval "$ac_compile") 2>conftest.er1
8965 ac_status=$?
8966 grep -v '^ *+' conftest.er1 >conftest.err
8967 rm -f conftest.er1
8968 cat conftest.err >&5
8969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } && {
8971 test -z "$ac_c_werror_flag" ||
8972 test ! -s conftest.err
8973 } && test -s conftest.$ac_objext; then
8974 ac_cv_member_struct_ifreq_ifr_netmask=yes
8975 else
8976 $as_echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_cv_member_struct_ifreq_ifr_netmask=no
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8988 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8989 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then
8991 cat >>confdefs.h <<_ACEOF
8992 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8993 _ACEOF
8997 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8998 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8999 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
9000 $as_echo_n "(cached) " >&6
9001 else
9002 cat >conftest.$ac_ext <<_ACEOF
9003 /* confdefs.h. */
9004 _ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9008 $ac_includes_default
9009 #if HAVE_SYS_SOCKET_H
9010 #include <sys/socket.h>
9011 #endif
9012 #if HAVE_NET_IF_H
9013 #include <net/if.h>
9014 #endif
9017 main ()
9019 static struct ifreq ac_aggr;
9020 if (ac_aggr.ifr_broadaddr)
9021 return 0;
9023 return 0;
9025 _ACEOF
9026 rm -f conftest.$ac_objext
9027 if { (ac_try="$ac_compile"
9028 case "(($ac_try" in
9029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9030 *) ac_try_echo=$ac_try;;
9031 esac
9032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9033 $as_echo "$ac_try_echo") >&5
9034 (eval "$ac_compile") 2>conftest.er1
9035 ac_status=$?
9036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
9039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } && {
9041 test -z "$ac_c_werror_flag" ||
9042 test ! -s conftest.err
9043 } && test -s conftest.$ac_objext; then
9044 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9045 else
9046 $as_echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 cat >conftest.$ac_ext <<_ACEOF
9050 /* confdefs.h. */
9051 _ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9055 $ac_includes_default
9056 #if HAVE_SYS_SOCKET_H
9057 #include <sys/socket.h>
9058 #endif
9059 #if HAVE_NET_IF_H
9060 #include <net/if.h>
9061 #endif
9064 main ()
9066 static struct ifreq ac_aggr;
9067 if (sizeof ac_aggr.ifr_broadaddr)
9068 return 0;
9070 return 0;
9072 _ACEOF
9073 rm -f conftest.$ac_objext
9074 if { (ac_try="$ac_compile"
9075 case "(($ac_try" in
9076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9077 *) ac_try_echo=$ac_try;;
9078 esac
9079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9080 $as_echo "$ac_try_echo") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.$ac_objext; then
9091 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9092 else
9093 $as_echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9096 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9105 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9106 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then
9108 cat >>confdefs.h <<_ACEOF
9109 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9110 _ACEOF
9114 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9115 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9116 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9117 $as_echo_n "(cached) " >&6
9118 else
9119 cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h. */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 $ac_includes_default
9126 #if HAVE_SYS_SOCKET_H
9127 #include <sys/socket.h>
9128 #endif
9129 #if HAVE_NET_IF_H
9130 #include <net/if.h>
9131 #endif
9134 main ()
9136 static struct ifreq ac_aggr;
9137 if (ac_aggr.ifr_addr)
9138 return 0;
9140 return 0;
9142 _ACEOF
9143 rm -f conftest.$ac_objext
9144 if { (ac_try="$ac_compile"
9145 case "(($ac_try" in
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9148 esac
9149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9150 $as_echo "$ac_try_echo") >&5
9151 (eval "$ac_compile") 2>conftest.er1
9152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } && {
9158 test -z "$ac_c_werror_flag" ||
9159 test ! -s conftest.err
9160 } && test -s conftest.$ac_objext; then
9161 ac_cv_member_struct_ifreq_ifr_addr=yes
9162 else
9163 $as_echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h. */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 $ac_includes_default
9173 #if HAVE_SYS_SOCKET_H
9174 #include <sys/socket.h>
9175 #endif
9176 #if HAVE_NET_IF_H
9177 #include <net/if.h>
9178 #endif
9181 main ()
9183 static struct ifreq ac_aggr;
9184 if (sizeof ac_aggr.ifr_addr)
9185 return 0;
9187 return 0;
9189 _ACEOF
9190 rm -f conftest.$ac_objext
9191 if { (ac_try="$ac_compile"
9192 case "(($ac_try" in
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9195 esac
9196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9197 $as_echo "$ac_try_echo") >&5
9198 (eval "$ac_compile") 2>conftest.er1
9199 ac_status=$?
9200 grep -v '^ *+' conftest.er1 >conftest.err
9201 rm -f conftest.er1
9202 cat conftest.err >&5
9203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } && {
9205 test -z "$ac_c_werror_flag" ||
9206 test ! -s conftest.err
9207 } && test -s conftest.$ac_objext; then
9208 ac_cv_member_struct_ifreq_ifr_addr=yes
9209 else
9210 $as_echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 ac_cv_member_struct_ifreq_ifr_addr=no
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9222 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9223 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then
9225 cat >>confdefs.h <<_ACEOF
9226 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9227 _ACEOF
9234 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9235 $as_echo_n "checking for function prototypes... " >&6; }
9236 if test "$ac_cv_prog_cc_c89" != no; then
9237 { $as_echo "$as_me:$LINENO: result: yes" >&5
9238 $as_echo "yes" >&6; }
9240 cat >>confdefs.h <<\_ACEOF
9241 #define PROTOTYPES 1
9242 _ACEOF
9245 cat >>confdefs.h <<\_ACEOF
9246 #define __PROTOTYPES 1
9247 _ACEOF
9249 else
9250 { $as_echo "$as_me:$LINENO: result: no" >&5
9251 $as_echo "no" >&6; }
9254 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9255 $as_echo_n "checking for working volatile... " >&6; }
9256 if test "${ac_cv_c_volatile+set}" = set; then
9257 $as_echo_n "(cached) " >&6
9258 else
9259 cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h. */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9267 main ()
9270 volatile int x;
9271 int * volatile y = (int *) 0;
9272 return !x && !y;
9274 return 0;
9276 _ACEOF
9277 rm -f conftest.$ac_objext
9278 if { (ac_try="$ac_compile"
9279 case "(($ac_try" in
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9282 esac
9283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9284 $as_echo "$ac_try_echo") >&5
9285 (eval "$ac_compile") 2>conftest.er1
9286 ac_status=$?
9287 grep -v '^ *+' conftest.er1 >conftest.err
9288 rm -f conftest.er1
9289 cat conftest.err >&5
9290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && {
9292 test -z "$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest.$ac_objext; then
9295 ac_cv_c_volatile=yes
9296 else
9297 $as_echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_cv_c_volatile=no
9303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9306 $as_echo "$ac_cv_c_volatile" >&6; }
9307 if test $ac_cv_c_volatile = no; then
9309 cat >>confdefs.h <<\_ACEOF
9310 #define volatile /**/
9311 _ACEOF
9315 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9316 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9317 if test "${ac_cv_c_const+set}" = set; then
9318 $as_echo_n "(cached) " >&6
9319 else
9320 cat >conftest.$ac_ext <<_ACEOF
9321 /* confdefs.h. */
9322 _ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9328 main ()
9330 /* FIXME: Include the comments suggested by Paul. */
9331 #ifndef __cplusplus
9332 /* Ultrix mips cc rejects this. */
9333 typedef int charset[2];
9334 const charset cs;
9335 /* SunOS 4.1.1 cc rejects this. */
9336 char const *const *pcpcc;
9337 char **ppc;
9338 /* NEC SVR4.0.2 mips cc rejects this. */
9339 struct point {int x, y;};
9340 static struct point const zero = {0,0};
9341 /* AIX XL C 1.02.0.0 rejects this.
9342 It does not let you subtract one const X* pointer from another in
9343 an arm of an if-expression whose if-part is not a constant
9344 expression */
9345 const char *g = "string";
9346 pcpcc = &g + (g ? g-g : 0);
9347 /* HPUX 7.0 cc rejects these. */
9348 ++pcpcc;
9349 ppc = (char**) pcpcc;
9350 pcpcc = (char const *const *) ppc;
9351 { /* SCO 3.2v4 cc rejects this. */
9352 char *t;
9353 char const *s = 0 ? (char *) 0 : (char const *) 0;
9355 *t++ = 0;
9356 if (s) return 0;
9358 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9359 int x[] = {25, 17};
9360 const int *foo = &x[0];
9361 ++foo;
9363 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9364 typedef const int *iptr;
9365 iptr p = 0;
9366 ++p;
9368 { /* AIX XL C 1.02.0.0 rejects this saying
9369 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9370 struct s { int j; const int *ap[3]; };
9371 struct s *b; b->j = 5;
9373 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9374 const int foo = 10;
9375 if (!foo) return 0;
9377 return !cs[0] && !zero.x;
9378 #endif
9381 return 0;
9383 _ACEOF
9384 rm -f conftest.$ac_objext
9385 if { (ac_try="$ac_compile"
9386 case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9389 esac
9390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9391 $as_echo "$ac_try_echo") >&5
9392 (eval "$ac_compile") 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1
9396 cat conftest.err >&5
9397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest.$ac_objext; then
9402 ac_cv_c_const=yes
9403 else
9404 $as_echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 ac_cv_c_const=no
9410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9413 $as_echo "$ac_cv_c_const" >&6; }
9414 if test $ac_cv_c_const = no; then
9416 cat >>confdefs.h <<\_ACEOF
9417 #define const /**/
9418 _ACEOF
9422 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9423 $as_echo_n "checking for void * support... " >&6; }
9424 if test "${emacs_cv_void_star+set}" = set; then
9425 $as_echo_n "(cached) " >&6
9426 else
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9435 main ()
9437 void * foo;
9439 return 0;
9441 _ACEOF
9442 rm -f conftest.$ac_objext
9443 if { (ac_try="$ac_compile"
9444 case "(($ac_try" in
9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9447 esac
9448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9449 $as_echo "$ac_try_echo") >&5
9450 (eval "$ac_compile") 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_c_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest.$ac_objext; then
9460 emacs_cv_void_star=yes
9461 else
9462 $as_echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9465 emacs_cv_void_star=no
9468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9471 $as_echo "$emacs_cv_void_star" >&6; }
9472 if test $emacs_cv_void_star = yes; then
9473 cat >>confdefs.h <<\_ACEOF
9474 #define POINTER_TYPE void
9475 _ACEOF
9477 else
9478 cat >>confdefs.h <<\_ACEOF
9479 #define POINTER_TYPE char
9480 _ACEOF
9488 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9489 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9490 set x ${MAKE-make}
9491 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9492 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9493 $as_echo_n "(cached) " >&6
9494 else
9495 cat >conftest.make <<\_ACEOF
9496 SHELL = /bin/sh
9497 all:
9498 @echo '@@@%%%=$(MAKE)=@@@%%%'
9499 _ACEOF
9500 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9501 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9502 *@@@%%%=?*=@@@%%%*)
9503 eval ac_cv_prog_make_${ac_make}_set=yes;;
9505 eval ac_cv_prog_make_${ac_make}_set=no;;
9506 esac
9507 rm -f conftest.make
9509 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9510 { $as_echo "$as_me:$LINENO: result: yes" >&5
9511 $as_echo "yes" >&6; }
9512 SET_MAKE=
9513 else
9514 { $as_echo "$as_me:$LINENO: result: no" >&5
9515 $as_echo "no" >&6; }
9516 SET_MAKE="MAKE=${MAKE-make}"
9520 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9521 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9522 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9523 HAVE_GNU_MAKE=no
9524 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9525 if test "x$testval" != x; then
9526 HAVE_GNU_MAKE=yes
9527 else
9528 ac_enable_autodepend=no
9530 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9531 $as_echo "$HAVE_GNU_MAKE" >&6; }
9532 if test $HAVE_GNU_MAKE = yes; then
9533 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9534 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9535 SAVE_CFLAGS="$CFLAGS"
9536 CFLAGS="$CFLAGS -MMD -MF deps.d"
9537 cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h. */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9545 main ()
9549 return 0;
9551 _ACEOF
9552 rm -f conftest.$ac_objext
9553 if { (ac_try="$ac_compile"
9554 case "(($ac_try" in
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9557 esac
9558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9559 $as_echo "$ac_try_echo") >&5
9560 (eval "$ac_compile") 2>conftest.er1
9561 ac_status=$?
9562 grep -v '^ *+' conftest.er1 >conftest.err
9563 rm -f conftest.er1
9564 cat conftest.err >&5
9565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && {
9567 test -z "$ac_c_werror_flag" ||
9568 test ! -s conftest.err
9569 } && test -s conftest.$ac_objext; then
9571 else
9572 $as_echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9575 ac_enable_autodepend=no
9578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579 CFLAGS="$SAVE_CFLAGS"
9580 test -f deps.d || ac_enable_autodepend=no
9581 rm -rf deps.d
9582 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9583 $as_echo "$ac_enable_autodepend" >&6; }
9585 if test $ac_enable_autodepend = yes; then
9587 cat >>confdefs.h <<\_ACEOF
9588 #define AUTO_DEPEND 1
9589 _ACEOF
9594 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9595 $as_echo_n "checking for long file names... " >&6; }
9596 if test "${ac_cv_sys_long_file_names+set}" = set; then
9597 $as_echo_n "(cached) " >&6
9598 else
9599 ac_cv_sys_long_file_names=yes
9600 # Test for long file names in all the places we know might matter:
9601 # . the current directory, where building will happen
9602 # $prefix/lib where we will be installing things
9603 # $exec_prefix/lib likewise
9604 # $TMPDIR if set, where it might want to write temporary files
9605 # /tmp where it might want to write temporary files
9606 # /var/tmp likewise
9607 # /usr/tmp likewise
9608 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9609 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9610 # in the usual case where exec_prefix is '${prefix}'.
9611 case $ac_dir in #(
9612 . | /* | ?:[\\/]*) ;; #(
9613 *) continue;;
9614 esac
9615 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9616 ac_xdir=$ac_dir/cf$$
9617 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9618 ac_tf1=$ac_xdir/conftest9012345
9619 ac_tf2=$ac_xdir/conftest9012346
9620 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9621 ac_cv_sys_long_file_names=no
9622 rm -f -r "$ac_xdir" 2>/dev/null
9623 test $ac_cv_sys_long_file_names = no && break
9624 done
9626 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9627 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9628 if test $ac_cv_sys_long_file_names = yes; then
9630 cat >>confdefs.h <<\_ACEOF
9631 #define HAVE_LONG_FILE_NAMES 1
9632 _ACEOF
9637 #### Choose a window system.
9639 { $as_echo "$as_me:$LINENO: checking for X" >&5
9640 $as_echo_n "checking for X... " >&6; }
9643 # Check whether --with-x was given.
9644 if test "${with_x+set}" = set; then
9645 withval=$with_x;
9648 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9649 if test "x$with_x" = xno; then
9650 # The user explicitly disabled X.
9651 have_x=disabled
9652 else
9653 case $x_includes,$x_libraries in #(
9654 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
9655 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
9656 { (exit 1); exit 1; }; };; #(
9657 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9658 $as_echo_n "(cached) " >&6
9659 else
9660 # One or both of the vars are not set, and there is no cached value.
9661 ac_x_includes=no ac_x_libraries=no
9662 rm -f -r conftest.dir
9663 if mkdir conftest.dir; then
9664 cd conftest.dir
9665 cat >Imakefile <<'_ACEOF'
9666 incroot:
9667 @echo incroot='${INCROOT}'
9668 usrlibdir:
9669 @echo usrlibdir='${USRLIBDIR}'
9670 libdir:
9671 @echo libdir='${LIBDIR}'
9672 _ACEOF
9673 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9674 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9675 for ac_var in incroot usrlibdir libdir; do
9676 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9677 done
9678 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9679 for ac_extension in a so sl dylib la dll; do
9680 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9681 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9682 ac_im_usrlibdir=$ac_im_libdir; break
9684 done
9685 # Screen out bogus values from the imake configuration. They are
9686 # bogus both because they are the default anyway, and because
9687 # using them would break gcc on systems where it needs fixed includes.
9688 case $ac_im_incroot in
9689 /usr/include) ac_x_includes= ;;
9690 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9691 esac
9692 case $ac_im_usrlibdir in
9693 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9694 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9695 esac
9697 cd ..
9698 rm -f -r conftest.dir
9701 # Standard set of common directories for X headers.
9702 # Check X11 before X11Rn because it is often a symlink to the current release.
9703 ac_x_header_dirs='
9704 /usr/X11/include
9705 /usr/X11R6/include
9706 /usr/X11R5/include
9707 /usr/X11R4/include
9709 /usr/include/X11
9710 /usr/include/X11R6
9711 /usr/include/X11R5
9712 /usr/include/X11R4
9714 /usr/local/X11/include
9715 /usr/local/X11R6/include
9716 /usr/local/X11R5/include
9717 /usr/local/X11R4/include
9719 /usr/local/include/X11
9720 /usr/local/include/X11R6
9721 /usr/local/include/X11R5
9722 /usr/local/include/X11R4
9724 /usr/X386/include
9725 /usr/x386/include
9726 /usr/XFree86/include/X11
9728 /usr/include
9729 /usr/local/include
9730 /usr/unsupported/include
9731 /usr/athena/include
9732 /usr/local/x11r5/include
9733 /usr/lpp/Xamples/include
9735 /usr/openwin/include
9736 /usr/openwin/share/include'
9738 if test "$ac_x_includes" = no; then
9739 # Guess where to find include files, by looking for Xlib.h.
9740 # First, try using that file with no special directory specified.
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 #include <X11/Xlib.h>
9748 _ACEOF
9749 if { (ac_try="$ac_cpp conftest.$ac_ext"
9750 case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9753 esac
9754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9755 $as_echo "$ac_try_echo") >&5
9756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev/null && {
9763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9765 }; then
9766 # We can compile using X headers with no special include directory.
9767 ac_x_includes=
9768 else
9769 $as_echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 for ac_dir in $ac_x_header_dirs; do
9773 if test -r "$ac_dir/X11/Xlib.h"; then
9774 ac_x_includes=$ac_dir
9775 break
9777 done
9780 rm -f conftest.err conftest.$ac_ext
9781 fi # $ac_x_includes = no
9783 if test "$ac_x_libraries" = no; then
9784 # Check for the libraries.
9785 # See if we find them without any special options.
9786 # Don't add to $LIBS permanently.
9787 ac_save_LIBS=$LIBS
9788 LIBS="-lX11 $LIBS"
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h. */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 #include <X11/Xlib.h>
9797 main ()
9799 XrmInitialize ()
9801 return 0;
9803 _ACEOF
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (ac_try="$ac_link"
9806 case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9809 esac
9810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9811 $as_echo "$ac_try_echo") >&5
9812 (eval "$ac_link") 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } && {
9819 test -z "$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9821 } && test -s conftest$ac_exeext && {
9822 test "$cross_compiling" = yes ||
9823 $as_test_x conftest$ac_exeext
9824 }; then
9825 LIBS=$ac_save_LIBS
9826 # We can link X programs with no special library path.
9827 ac_x_libraries=
9828 else
9829 $as_echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9832 LIBS=$ac_save_LIBS
9833 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9835 # Don't even attempt the hair of trying to link an X program!
9836 for ac_extension in a so sl dylib la dll; do
9837 if test -r "$ac_dir/libX11.$ac_extension"; then
9838 ac_x_libraries=$ac_dir
9839 break 2
9841 done
9842 done
9845 rm -rf conftest.dSYM
9846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847 conftest$ac_exeext conftest.$ac_ext
9848 fi # $ac_x_libraries = no
9850 case $ac_x_includes,$ac_x_libraries in #(
9851 no,* | *,no | *\'*)
9852 # Didn't find X, or a directory has "'" in its name.
9853 ac_cv_have_x="have_x=no";; #(
9855 # Record where we found X for the cache.
9856 ac_cv_have_x="have_x=yes\
9857 ac_x_includes='$ac_x_includes'\
9858 ac_x_libraries='$ac_x_libraries'"
9859 esac
9861 ;; #(
9862 *) have_x=yes;;
9863 esac
9864 eval "$ac_cv_have_x"
9865 fi # $with_x != no
9867 if test "$have_x" != yes; then
9868 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9869 $as_echo "$have_x" >&6; }
9870 no_x=yes
9871 else
9872 # If each of the values was on the command line, it overrides each guess.
9873 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9874 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9875 # Update the cache value to reflect the command line values.
9876 ac_cv_have_x="have_x=yes\
9877 ac_x_includes='$x_includes'\
9878 ac_x_libraries='$x_libraries'"
9879 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9880 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9883 if test "$no_x" = yes; then
9884 window_system=none
9885 else
9886 window_system=x11
9889 ## Workaround for bug in autoconf <= 2.62.
9890 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9891 ## No need to do anything special for these standard directories.
9892 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9894 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9898 LD_SWITCH_X_SITE_AUX=
9899 LD_SWITCH_X_SITE_AUX_RPATH=
9900 if test "${x_libraries}" != NONE; then
9901 if test -n "${x_libraries}"; then
9902 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9903 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9904 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9906 x_default_search_path=""
9907 x_search_path=${x_libraries}
9908 if test -z "${x_search_path}"; then
9909 x_search_path=/usr/lib
9911 for x_library in `echo ${x_search_path}: | \
9912 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9913 x_search_path="\
9914 ${x_library}/X11/%L/%T/%N%C%S:\
9915 ${x_library}/X11/%l/%T/%N%C%S:\
9916 ${x_library}/X11/%T/%N%C%S:\
9917 ${x_library}/X11/%L/%T/%N%S:\
9918 ${x_library}/X11/%l/%T/%N%S:\
9919 ${x_library}/X11/%T/%N%S"
9920 if test x"${x_default_search_path}" = x; then
9921 x_default_search_path=${x_search_path}
9922 else
9923 x_default_search_path="${x_search_path}:${x_default_search_path}"
9925 done
9930 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9931 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9934 if test x"${x_includes}" = x; then
9935 bitmapdir=/usr/include/X11/bitmaps
9936 else
9937 # accumulate include directories that have X11 bitmap subdirectories
9938 bmd_acc="dummyval"
9939 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9940 if test -d "${bmd}/X11/bitmaps"; then
9941 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9943 if test -d "${bmd}/bitmaps"; then
9944 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9946 done
9947 if test ${bmd_acc} != "dummyval"; then
9948 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9952 HAVE_NS=no
9953 NS_IMPL_COCOA=no
9954 NS_IMPL_GNUSTEP=no
9955 tmp_CPPFLAGS="$CPPFLAGS"
9956 tmp_CFLAGS="$CFLAGS"
9957 CPPFLAGS="$CPPFLAGS -x objective-c"
9958 CFLAGS="$CFLAGS -x objective-c"
9959 if test "${with_ns}" != no; then
9960 if test "${opsys}" = darwin; then
9961 NS_IMPL_COCOA=yes
9962 ns_appdir=`pwd`/nextstep/Emacs.app
9963 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9964 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9965 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9966 elif test -f $GNUSTEP_CONFIG_FILE; then
9967 NS_IMPL_GNUSTEP=yes
9968 ns_appdir=`pwd`/nextstep/Emacs.app
9969 ns_appbindir=`pwd`/nextstep/Emacs.app
9970 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9971 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9972 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9973 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9974 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9975 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9976 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9977 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9978 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9979 LIB_STANDARD=
9981 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9982 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9983 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9984 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9985 $as_echo_n "(cached) " >&6
9987 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9988 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9989 else
9990 # Is the header compilable?
9991 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9992 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9993 cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h. */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 $ac_includes_default
10000 #include <AppKit/AppKit.h>
10001 _ACEOF
10002 rm -f conftest.$ac_objext
10003 if { (ac_try="$ac_compile"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007 esac
10008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10009 $as_echo "$ac_try_echo") >&5
10010 (eval "$ac_compile") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest.$ac_objext; then
10020 ac_header_compiler=yes
10021 else
10022 $as_echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_header_compiler=no
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10030 $as_echo "$ac_header_compiler" >&6; }
10032 # Is the header present?
10033 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10034 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h. */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 #include <AppKit/AppKit.h>
10042 _ACEOF
10043 if { (ac_try="$ac_cpp conftest.$ac_ext"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047 esac
10048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10049 $as_echo "$ac_try_echo") >&5
10050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } >/dev/null && {
10057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10058 test ! -s conftest.err
10059 }; then
10060 ac_header_preproc=yes
10061 else
10062 $as_echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 ac_header_preproc=no
10068 rm -f conftest.err conftest.$ac_ext
10069 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10070 $as_echo "$ac_header_preproc" >&6; }
10072 # So? What about this header?
10073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10074 yes:no: )
10075 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10076 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10077 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10078 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10079 ac_header_preproc=yes
10081 no:yes:* )
10082 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10083 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10084 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10085 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10086 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10087 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10088 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10089 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10090 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10091 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10092 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10093 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10096 esac
10097 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10098 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10099 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10100 $as_echo_n "(cached) " >&6
10101 else
10102 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10104 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10105 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10108 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then
10109 HAVE_NS=yes
10110 else
10111 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10112 files are missing or cannot be compiled." >&5
10113 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10114 files are missing or cannot be compiled." >&2;}
10115 { (exit 1); exit 1; }; }
10119 NS_HAVE_NSINTEGER=yes
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 #include <Foundation/NSObjCRuntime.h>
10128 main ()
10130 NSInteger i;
10132 return 0;
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (ac_try="$ac_compile"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140 esac
10141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10142 $as_echo "$ac_try_echo") >&5
10143 (eval "$ac_compile") 2>conftest.er1
10144 ac_status=$?
10145 grep -v '^ *+' conftest.er1 >conftest.err
10146 rm -f conftest.er1
10147 cat conftest.err >&5
10148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } && {
10150 test -z "$ac_c_werror_flag" ||
10151 test ! -s conftest.err
10152 } && test -s conftest.$ac_objext; then
10153 ns_have_nsinteger=yes
10154 else
10155 $as_echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 ns_have_nsinteger=no
10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162 if test $ns_have_nsinteger = no; then
10163 NS_HAVE_NSINTEGER=no
10167 NS_OBJ=
10168 NS_SUPPORT=
10169 if test "${HAVE_NS}" = yes; then
10170 window_system=nextstep
10171 with_xft=no
10172 # set up packaging dirs
10173 exec_prefix=${ns_appbindir}
10174 libexecdir=${ns_appbindir}/libexec
10175 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10176 prefix=${ns_appresdir}
10178 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10179 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10181 CFLAGS="$tmp_CFLAGS"
10182 CPPFLAGS="$tmp_CPPFLAGS"
10187 case "${window_system}" in
10188 x11 )
10189 HAVE_X_WINDOWS=yes
10190 HAVE_X11=yes
10191 case "${with_x_toolkit}" in
10192 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10193 motif ) USE_X_TOOLKIT=MOTIF ;;
10194 gtk ) with_gtk=yes
10195 USE_X_TOOLKIT=none ;;
10196 no ) USE_X_TOOLKIT=none ;;
10197 * ) USE_X_TOOLKIT=maybe ;;
10198 esac
10200 nextstep | none )
10201 HAVE_X_WINDOWS=no
10202 HAVE_X11=no
10203 USE_X_TOOLKIT=none
10205 esac
10207 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10208 # Extract the first word of "X", so it can be a program name with args.
10209 set dummy X; ac_word=$2
10210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10211 $as_echo_n "checking for $ac_word... " >&6; }
10212 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10213 $as_echo_n "(cached) " >&6
10214 else
10215 if test -n "$HAVE_XSERVER"; then
10216 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10217 else
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10221 IFS=$as_save_IFS
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10225 ac_cv_prog_HAVE_XSERVER="true"
10226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10227 break 2
10229 done
10230 done
10231 IFS=$as_save_IFS
10233 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10236 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10237 if test -n "$HAVE_XSERVER"; then
10238 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10239 $as_echo "$HAVE_XSERVER" >&6; }
10240 else
10241 { $as_echo "$as_me:$LINENO: result: no" >&5
10242 $as_echo "no" >&6; }
10246 if test "$HAVE_XSERVER" = true ||
10247 test -n "$DISPLAY" ||
10248 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10249 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10250 were found. You should install the relevant development files for X
10251 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10252 sure you have development files for image handling, i.e.
10253 tiff, gif, jpeg, png and xpm.
10254 If you are sure you want Emacs compiled without X window support, pass
10255 --without-x
10256 to configure." >&5
10257 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10258 were found. You should install the relevant development files for X
10259 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10260 sure you have development files for image handling, i.e.
10261 tiff, gif, jpeg, png and xpm.
10262 If you are sure you want Emacs compiled without X window support, pass
10263 --without-x
10264 to configure." >&2;}
10265 { (exit 1); exit 1; }; }
10269 ### If we're using X11, we should use the X menu package.
10270 HAVE_MENUS=no
10271 case ${HAVE_X11} in
10272 yes ) HAVE_MENUS=yes ;;
10273 esac
10275 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10276 # Assume not, until told otherwise.
10277 GNU_MALLOC=yes
10278 doug_lea_malloc=yes
10279 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10280 $as_echo_n "checking for malloc_get_state... " >&6; }
10281 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10282 $as_echo_n "(cached) " >&6
10283 else
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h. */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10292 #define malloc_get_state innocuous_malloc_get_state
10294 /* System header to define __stub macros and hopefully few prototypes,
10295 which can conflict with char malloc_get_state (); below.
10296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10297 <limits.h> exists even on freestanding compilers. */
10299 #ifdef __STDC__
10300 # include <limits.h>
10301 #else
10302 # include <assert.h>
10303 #endif
10305 #undef malloc_get_state
10307 /* Override any GCC internal prototype to avoid an error.
10308 Use char because int might match the return type of a GCC
10309 builtin and then its argument prototype would still apply. */
10310 #ifdef __cplusplus
10311 extern "C"
10312 #endif
10313 char malloc_get_state ();
10314 /* The GNU C library defines this for functions which it implements
10315 to always fail with ENOSYS. Some functions are actually named
10316 something starting with __ and the normal name is an alias. */
10317 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10318 choke me
10319 #endif
10322 main ()
10324 return malloc_get_state ();
10326 return 0;
10328 _ACEOF
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (ac_try="$ac_link"
10331 case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10334 esac
10335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10336 $as_echo "$ac_try_echo") >&5
10337 (eval "$ac_link") 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest$ac_exeext && {
10347 test "$cross_compiling" = yes ||
10348 $as_test_x conftest$ac_exeext
10349 }; then
10350 ac_cv_func_malloc_get_state=yes
10351 else
10352 $as_echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 ac_cv_func_malloc_get_state=no
10358 rm -rf conftest.dSYM
10359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10360 conftest$ac_exeext conftest.$ac_ext
10362 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10363 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10364 if test "x$ac_cv_func_malloc_get_state" = x""yes; then
10366 else
10367 doug_lea_malloc=no
10370 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10371 $as_echo_n "checking for malloc_set_state... " >&6; }
10372 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10373 $as_echo_n "(cached) " >&6
10374 else
10375 cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h. */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10383 #define malloc_set_state innocuous_malloc_set_state
10385 /* System header to define __stub macros and hopefully few prototypes,
10386 which can conflict with char malloc_set_state (); below.
10387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10388 <limits.h> exists even on freestanding compilers. */
10390 #ifdef __STDC__
10391 # include <limits.h>
10392 #else
10393 # include <assert.h>
10394 #endif
10396 #undef malloc_set_state
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10401 #ifdef __cplusplus
10402 extern "C"
10403 #endif
10404 char malloc_set_state ();
10405 /* The GNU C library defines this for functions which it implements
10406 to always fail with ENOSYS. Some functions are actually named
10407 something starting with __ and the normal name is an alias. */
10408 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10409 choke me
10410 #endif
10413 main ()
10415 return malloc_set_state ();
10417 return 0;
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425 esac
10426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10427 $as_echo "$ac_try_echo") >&5
10428 (eval "$ac_link") 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest$ac_exeext && {
10438 test "$cross_compiling" = yes ||
10439 $as_test_x conftest$ac_exeext
10440 }; then
10441 ac_cv_func_malloc_set_state=yes
10442 else
10443 $as_echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 ac_cv_func_malloc_set_state=no
10449 rm -rf conftest.dSYM
10450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10451 conftest$ac_exeext conftest.$ac_ext
10453 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10454 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10455 if test "x$ac_cv_func_malloc_set_state" = x""yes; then
10457 else
10458 doug_lea_malloc=no
10461 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10462 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10463 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10464 $as_echo_n "(cached) " >&6
10465 else
10466 cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h. */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10472 extern void (* __after_morecore_hook)();
10474 main ()
10476 __after_morecore_hook = 0
10478 return 0;
10480 _ACEOF
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (ac_try="$ac_link"
10483 case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486 esac
10487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10488 $as_echo "$ac_try_echo") >&5
10489 (eval "$ac_link") 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } && {
10496 test -z "$ac_c_werror_flag" ||
10497 test ! -s conftest.err
10498 } && test -s conftest$ac_exeext && {
10499 test "$cross_compiling" = yes ||
10500 $as_test_x conftest$ac_exeext
10501 }; then
10502 emacs_cv_var___after_morecore_hook=yes
10503 else
10504 $as_echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 emacs_cv_var___after_morecore_hook=no
10510 rm -rf conftest.dSYM
10511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10512 conftest$ac_exeext conftest.$ac_ext
10514 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10515 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10516 if test $emacs_cv_var___after_morecore_hook = no; then
10517 doug_lea_malloc=no
10519 if test "${system_malloc}" = "yes"; then
10520 GNU_MALLOC=no
10521 GNU_MALLOC_reason="
10522 (The GNU allocators don't work with this system configuration.)"
10524 if test "$doug_lea_malloc" = "yes" ; then
10525 if test "$GNU_MALLOC" = yes ; then
10526 GNU_MALLOC_reason="
10527 (Using Doug Lea's new malloc from the GNU C Library.)"
10530 cat >>confdefs.h <<\_ACEOF
10531 #define DOUG_LEA_MALLOC 1
10532 _ACEOF
10536 if test x"${REL_ALLOC}" = x; then
10537 REL_ALLOC=${GNU_MALLOC}
10543 for ac_header in stdlib.h unistd.h
10545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10547 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10548 $as_echo_n "checking for $ac_header... " >&6; }
10549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10550 $as_echo_n "(cached) " >&6
10552 ac_res=`eval 'as_val=${'$as_ac_Header'}
10553 $as_echo "$as_val"'`
10554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10555 $as_echo "$ac_res" >&6; }
10556 else
10557 # Is the header compilable?
10558 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10559 $as_echo_n "checking $ac_header usability... " >&6; }
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 $ac_includes_default
10567 #include <$ac_header>
10568 _ACEOF
10569 rm -f conftest.$ac_objext
10570 if { (ac_try="$ac_compile"
10571 case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10574 esac
10575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10576 $as_echo "$ac_try_echo") >&5
10577 (eval "$ac_compile") 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } && {
10584 test -z "$ac_c_werror_flag" ||
10585 test ! -s conftest.err
10586 } && test -s conftest.$ac_objext; then
10587 ac_header_compiler=yes
10588 else
10589 $as_echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_header_compiler=no
10595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10597 $as_echo "$ac_header_compiler" >&6; }
10599 # Is the header present?
10600 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10601 $as_echo_n "checking $ac_header presence... " >&6; }
10602 cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h. */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10608 #include <$ac_header>
10609 _ACEOF
10610 if { (ac_try="$ac_cpp conftest.$ac_ext"
10611 case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614 esac
10615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616 $as_echo "$ac_try_echo") >&5
10617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } >/dev/null && {
10624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 }; then
10627 ac_header_preproc=yes
10628 else
10629 $as_echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10632 ac_header_preproc=no
10635 rm -f conftest.err conftest.$ac_ext
10636 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10637 $as_echo "$ac_header_preproc" >&6; }
10639 # So? What about this header?
10640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10641 yes:no: )
10642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10643 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10645 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10646 ac_header_preproc=yes
10648 no:yes:* )
10649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10650 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10652 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10654 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10656 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10658 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10660 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10663 esac
10664 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10665 $as_echo_n "checking for $ac_header... " >&6; }
10666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10667 $as_echo_n "(cached) " >&6
10668 else
10669 eval "$as_ac_Header=\$ac_header_preproc"
10671 ac_res=`eval 'as_val=${'$as_ac_Header'}
10672 $as_echo "$as_val"'`
10673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10674 $as_echo "$ac_res" >&6; }
10677 as_val=`eval 'as_val=${'$as_ac_Header'}
10678 $as_echo "$as_val"'`
10679 if test "x$as_val" = x""yes; then
10680 cat >>confdefs.h <<_ACEOF
10681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10682 _ACEOF
10686 done
10689 for ac_func in getpagesize
10691 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10692 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10693 $as_echo_n "checking for $ac_func... " >&6; }
10694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10695 $as_echo_n "(cached) " >&6
10696 else
10697 cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h. */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10705 #define $ac_func innocuous_$ac_func
10707 /* System header to define __stub macros and hopefully few prototypes,
10708 which can conflict with char $ac_func (); below.
10709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10710 <limits.h> exists even on freestanding compilers. */
10712 #ifdef __STDC__
10713 # include <limits.h>
10714 #else
10715 # include <assert.h>
10716 #endif
10718 #undef $ac_func
10720 /* Override any GCC internal prototype to avoid an error.
10721 Use char because int might match the return type of a GCC
10722 builtin and then its argument prototype would still apply. */
10723 #ifdef __cplusplus
10724 extern "C"
10725 #endif
10726 char $ac_func ();
10727 /* The GNU C library defines this for functions which it implements
10728 to always fail with ENOSYS. Some functions are actually named
10729 something starting with __ and the normal name is an alias. */
10730 #if defined __stub_$ac_func || defined __stub___$ac_func
10731 choke me
10732 #endif
10735 main ()
10737 return $ac_func ();
10739 return 0;
10741 _ACEOF
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (ac_try="$ac_link"
10744 case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10747 esac
10748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10749 $as_echo "$ac_try_echo") >&5
10750 (eval "$ac_link") 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest$ac_exeext && {
10760 test "$cross_compiling" = yes ||
10761 $as_test_x conftest$ac_exeext
10762 }; then
10763 eval "$as_ac_var=yes"
10764 else
10765 $as_echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 eval "$as_ac_var=no"
10771 rm -rf conftest.dSYM
10772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10773 conftest$ac_exeext conftest.$ac_ext
10775 ac_res=`eval 'as_val=${'$as_ac_var'}
10776 $as_echo "$as_val"'`
10777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10778 $as_echo "$ac_res" >&6; }
10779 as_val=`eval 'as_val=${'$as_ac_var'}
10780 $as_echo "$as_val"'`
10781 if test "x$as_val" = x""yes; then
10782 cat >>confdefs.h <<_ACEOF
10783 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10784 _ACEOF
10787 done
10789 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10790 $as_echo_n "checking for working mmap... " >&6; }
10791 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10792 $as_echo_n "(cached) " >&6
10793 else
10794 if test "$cross_compiling" = yes; then
10795 ac_cv_func_mmap_fixed_mapped=no
10796 else
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 /* malloc might have been renamed as rpl_malloc. */
10805 #undef malloc
10807 /* Thanks to Mike Haertel and Jim Avera for this test.
10808 Here is a matrix of mmap possibilities:
10809 mmap private not fixed
10810 mmap private fixed at somewhere currently unmapped
10811 mmap private fixed at somewhere already mapped
10812 mmap shared not fixed
10813 mmap shared fixed at somewhere currently unmapped
10814 mmap shared fixed at somewhere already mapped
10815 For private mappings, we should verify that changes cannot be read()
10816 back from the file, nor mmap's back from the file at a different
10817 address. (There have been systems where private was not correctly
10818 implemented like the infamous i386 svr4.0, and systems where the
10819 VM page cache was not coherent with the file system buffer cache
10820 like early versions of FreeBSD and possibly contemporary NetBSD.)
10821 For shared mappings, we should conversely verify that changes get
10822 propagated back to all the places they're supposed to be.
10824 Grep wants private fixed already mapped.
10825 The main things grep needs to know about mmap are:
10826 * does it exist and is it safe to write into the mmap'd area
10827 * how to use it (BSD variants) */
10829 #include <fcntl.h>
10830 #include <sys/mman.h>
10832 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10833 char *malloc ();
10834 #endif
10836 /* This mess was copied from the GNU getpagesize.h. */
10837 #ifndef HAVE_GETPAGESIZE
10838 /* Assume that all systems that can run configure have sys/param.h. */
10839 # ifndef HAVE_SYS_PARAM_H
10840 # define HAVE_SYS_PARAM_H 1
10841 # endif
10843 # ifdef _SC_PAGESIZE
10844 # define getpagesize() sysconf(_SC_PAGESIZE)
10845 # else /* no _SC_PAGESIZE */
10846 # ifdef HAVE_SYS_PARAM_H
10847 # include <sys/param.h>
10848 # ifdef EXEC_PAGESIZE
10849 # define getpagesize() EXEC_PAGESIZE
10850 # else /* no EXEC_PAGESIZE */
10851 # ifdef NBPG
10852 # define getpagesize() NBPG * CLSIZE
10853 # ifndef CLSIZE
10854 # define CLSIZE 1
10855 # endif /* no CLSIZE */
10856 # else /* no NBPG */
10857 # ifdef NBPC
10858 # define getpagesize() NBPC
10859 # else /* no NBPC */
10860 # ifdef PAGESIZE
10861 # define getpagesize() PAGESIZE
10862 # endif /* PAGESIZE */
10863 # endif /* no NBPC */
10864 # endif /* no NBPG */
10865 # endif /* no EXEC_PAGESIZE */
10866 # else /* no HAVE_SYS_PARAM_H */
10867 # define getpagesize() 8192 /* punt totally */
10868 # endif /* no HAVE_SYS_PARAM_H */
10869 # endif /* no _SC_PAGESIZE */
10871 #endif /* no HAVE_GETPAGESIZE */
10874 main ()
10876 char *data, *data2, *data3;
10877 int i, pagesize;
10878 int fd;
10880 pagesize = getpagesize ();
10882 /* First, make a file with some known garbage in it. */
10883 data = (char *) malloc (pagesize);
10884 if (!data)
10885 return 1;
10886 for (i = 0; i < pagesize; ++i)
10887 *(data + i) = rand ();
10888 umask (0);
10889 fd = creat ("conftest.mmap", 0600);
10890 if (fd < 0)
10891 return 1;
10892 if (write (fd, data, pagesize) != pagesize)
10893 return 1;
10894 close (fd);
10896 /* Next, try to mmap the file at a fixed address which already has
10897 something else allocated at it. If we can, also make sure that
10898 we see the same garbage. */
10899 fd = open ("conftest.mmap", O_RDWR);
10900 if (fd < 0)
10901 return 1;
10902 data2 = (char *) malloc (2 * pagesize);
10903 if (!data2)
10904 return 1;
10905 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10906 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10907 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10908 return 1;
10909 for (i = 0; i < pagesize; ++i)
10910 if (*(data + i) != *(data2 + i))
10911 return 1;
10913 /* Finally, make sure that changes to the mapped area do not
10914 percolate back to the file as seen by read(). (This is a bug on
10915 some variants of i386 svr4.0.) */
10916 for (i = 0; i < pagesize; ++i)
10917 *(data2 + i) = *(data2 + i) + 1;
10918 data3 = (char *) malloc (pagesize);
10919 if (!data3)
10920 return 1;
10921 if (read (fd, data3, pagesize) != pagesize)
10922 return 1;
10923 for (i = 0; i < pagesize; ++i)
10924 if (*(data + i) != *(data3 + i))
10925 return 1;
10926 close (fd);
10927 return 0;
10929 _ACEOF
10930 rm -f conftest$ac_exeext
10931 if { (ac_try="$ac_link"
10932 case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935 esac
10936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10937 $as_echo "$ac_try_echo") >&5
10938 (eval "$ac_link") 2>&5
10939 ac_status=$?
10940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10945 esac
10946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10947 $as_echo "$ac_try_echo") >&5
10948 (eval "$ac_try") 2>&5
10949 ac_status=$?
10950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_func_mmap_fixed_mapped=yes
10953 else
10954 $as_echo "$as_me: program exited with status $ac_status" >&5
10955 $as_echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10958 ( exit $ac_status )
10959 ac_cv_func_mmap_fixed_mapped=no
10961 rm -rf conftest.dSYM
10962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10967 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10968 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10969 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10971 cat >>confdefs.h <<\_ACEOF
10972 #define HAVE_MMAP 1
10973 _ACEOF
10976 rm -f conftest.mmap
10978 if test $use_mmap_for_buffers = yes; then
10979 REL_ALLOC=no
10982 LIBS="$LIBS_SYSTEM $LIBS"
10985 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10986 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10987 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_check_lib_save_LIBS=$LIBS
10991 LIBS="-ldnet $LIBS"
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char dnet_ntoa ();
11007 main ()
11009 return dnet_ntoa ();
11011 return 0;
11013 _ACEOF
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (ac_try="$ac_link"
11016 case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019 esac
11020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11021 $as_echo "$ac_try_echo") >&5
11022 (eval "$ac_link") 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } && {
11029 test -z "$ac_c_werror_flag" ||
11030 test ! -s conftest.err
11031 } && test -s conftest$ac_exeext && {
11032 test "$cross_compiling" = yes ||
11033 $as_test_x conftest$ac_exeext
11034 }; then
11035 ac_cv_lib_dnet_dnet_ntoa=yes
11036 else
11037 $as_echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 ac_cv_lib_dnet_dnet_ntoa=no
11043 rm -rf conftest.dSYM
11044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11045 conftest$ac_exeext conftest.$ac_ext
11046 LIBS=$ac_check_lib_save_LIBS
11048 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11049 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11050 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
11051 cat >>confdefs.h <<_ACEOF
11052 #define HAVE_LIBDNET 1
11053 _ACEOF
11055 LIBS="-ldnet $LIBS"
11060 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11061 $as_echo_n "checking for main in -lXbsd... " >&6; }
11062 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11063 $as_echo_n "(cached) " >&6
11064 else
11065 ac_check_lib_save_LIBS=$LIBS
11066 LIBS="-lXbsd $LIBS"
11067 cat >conftest.$ac_ext <<_ACEOF
11068 /* confdefs.h. */
11069 _ACEOF
11070 cat confdefs.h >>conftest.$ac_ext
11071 cat >>conftest.$ac_ext <<_ACEOF
11072 /* end confdefs.h. */
11076 main ()
11078 return main ();
11080 return 0;
11082 _ACEOF
11083 rm -f conftest.$ac_objext conftest$ac_exeext
11084 if { (ac_try="$ac_link"
11085 case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11088 esac
11089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11090 $as_echo "$ac_try_echo") >&5
11091 (eval "$ac_link") 2>conftest.er1
11092 ac_status=$?
11093 grep -v '^ *+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && {
11098 test -z "$ac_c_werror_flag" ||
11099 test ! -s conftest.err
11100 } && test -s conftest$ac_exeext && {
11101 test "$cross_compiling" = yes ||
11102 $as_test_x conftest$ac_exeext
11103 }; then
11104 ac_cv_lib_Xbsd_main=yes
11105 else
11106 $as_echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11109 ac_cv_lib_Xbsd_main=no
11112 rm -rf conftest.dSYM
11113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11114 conftest$ac_exeext conftest.$ac_ext
11115 LIBS=$ac_check_lib_save_LIBS
11117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11118 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11119 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then
11120 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11125 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11126 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11127 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11128 $as_echo_n "(cached) " >&6
11129 else
11130 ac_check_lib_save_LIBS=$LIBS
11131 LIBS="-lpthreads $LIBS"
11132 cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h. */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 char cma_open ();
11147 main ()
11149 return cma_open ();
11151 return 0;
11153 _ACEOF
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (ac_try="$ac_link"
11156 case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159 esac
11160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11161 $as_echo "$ac_try_echo") >&5
11162 (eval "$ac_link") 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } && {
11169 test -z "$ac_c_werror_flag" ||
11170 test ! -s conftest.err
11171 } && test -s conftest$ac_exeext && {
11172 test "$cross_compiling" = yes ||
11173 $as_test_x conftest$ac_exeext
11174 }; then
11175 ac_cv_lib_pthreads_cma_open=yes
11176 else
11177 $as_echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11180 ac_cv_lib_pthreads_cma_open=no
11183 rm -rf conftest.dSYM
11184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11185 conftest$ac_exeext conftest.$ac_ext
11186 LIBS=$ac_check_lib_save_LIBS
11188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11189 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11190 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then
11191 cat >>confdefs.h <<_ACEOF
11192 #define HAVE_LIBPTHREADS 1
11193 _ACEOF
11195 LIBS="-lpthreads $LIBS"
11200 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11201 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11202 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11203 ## added to LIBS in configure would never contain the pthreads part,
11204 ## but the value used in Makefiles might. FIXME?
11206 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11207 ## be harmless on older versions of X where it happens to exist.
11208 test "$opsys" = "aix4-2" && \
11209 test $ac_cv_lib_pthreads_cma_open = yes && \
11210 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11213 case ${host_os} in
11214 aix*)
11215 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11216 $as_echo_n "checking for -bbigtoc option... " >&6; }
11217 if test "${gdb_cv_bigtoc+set}" = set; then
11218 $as_echo_n "(cached) " >&6
11219 else
11221 case $GCC in
11222 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11223 *) gdb_cv_bigtoc=-bbigtoc ;;
11224 esac
11226 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11227 cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h. */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11235 main ()
11237 int i;
11239 return 0;
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (ac_try="$ac_link"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247 esac
11248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11249 $as_echo "$ac_try_echo") >&5
11250 (eval "$ac_link") 2>conftest.er1
11251 ac_status=$?
11252 grep -v '^ *+' conftest.er1 >conftest.err
11253 rm -f conftest.er1
11254 cat conftest.err >&5
11255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } && {
11257 test -z "$ac_c_werror_flag" ||
11258 test ! -s conftest.err
11259 } && test -s conftest$ac_exeext && {
11260 test "$cross_compiling" = yes ||
11261 $as_test_x conftest$ac_exeext
11262 }; then
11264 else
11265 $as_echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 gdb_cv_bigtoc=
11271 rm -rf conftest.dSYM
11272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11273 conftest$ac_exeext conftest.$ac_ext
11276 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11277 $as_echo "$gdb_cv_bigtoc" >&6; }
11279 esac
11281 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11282 # used for the tests that follow. We set them back to REAL_CFLAGS and
11283 # REAL_CPPFLAGS later on.
11285 REAL_CPPFLAGS="$CPPFLAGS"
11287 if test "${HAVE_X11}" = "yes"; then
11288 DEFS="$C_SWITCH_X_SITE $DEFS"
11289 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11290 LIBS="$LIBX $LIBS"
11291 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11292 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11294 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11295 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11296 # but it's more convenient here to set LD_RUN_PATH
11297 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11298 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11299 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11300 export LD_RUN_PATH
11303 if test "${opsys}" = "gnu-linux"; then
11304 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11305 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h. */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11314 main ()
11316 XOpenDisplay ("foo");
11318 return 0;
11320 _ACEOF
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (ac_try="$ac_link"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11326 esac
11327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11328 $as_echo "$ac_try_echo") >&5
11329 (eval "$ac_link") 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest$ac_exeext && {
11339 test "$cross_compiling" = yes ||
11340 $as_test_x conftest$ac_exeext
11341 }; then
11342 xlinux_first_failure=no
11343 else
11344 $as_echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 xlinux_first_failure=yes
11350 rm -rf conftest.dSYM
11351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11352 conftest$ac_exeext conftest.$ac_ext
11353 if test "${xlinux_first_failure}" = "yes"; then
11354 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11355 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11356 OLD_CPPFLAGS="$CPPFLAGS"
11357 OLD_LIBS="$LIBS"
11358 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11359 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11360 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11361 LIBS="$LIBS -b i486-linuxaout"
11362 cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h. */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11370 main ()
11372 XOpenDisplay ("foo");
11374 return 0;
11376 _ACEOF
11377 rm -f conftest.$ac_objext conftest$ac_exeext
11378 if { (ac_try="$ac_link"
11379 case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11382 esac
11383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11384 $as_echo "$ac_try_echo") >&5
11385 (eval "$ac_link") 2>conftest.er1
11386 ac_status=$?
11387 grep -v '^ *+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
11390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } && {
11392 test -z "$ac_c_werror_flag" ||
11393 test ! -s conftest.err
11394 } && test -s conftest$ac_exeext && {
11395 test "$cross_compiling" = yes ||
11396 $as_test_x conftest$ac_exeext
11397 }; then
11398 xlinux_second_failure=no
11399 else
11400 $as_echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11403 xlinux_second_failure=yes
11406 rm -rf conftest.dSYM
11407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11408 conftest$ac_exeext conftest.$ac_ext
11409 if test "${xlinux_second_failure}" = "yes"; then
11410 # If we get the same failure with -b, there is no use adding -b.
11411 # So take it out. This plays safe.
11412 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11413 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11414 CPPFLAGS="$OLD_CPPFLAGS"
11415 LIBS="$OLD_LIBS"
11416 { $as_echo "$as_me:$LINENO: result: no" >&5
11417 $as_echo "no" >&6; }
11418 else
11419 { $as_echo "$as_me:$LINENO: result: yes" >&5
11420 $as_echo "yes" >&6; }
11422 else
11423 { $as_echo "$as_me:$LINENO: result: no" >&5
11424 $as_echo "no" >&6; }
11428 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11429 # header files included from there.
11430 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11431 $as_echo_n "checking for Xkb... " >&6; }
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h. */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 #include <X11/Xlib.h>
11439 #include <X11/XKBlib.h>
11441 main ()
11443 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11445 return 0;
11447 _ACEOF
11448 rm -f conftest.$ac_objext conftest$ac_exeext
11449 if { (ac_try="$ac_link"
11450 case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453 esac
11454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11455 $as_echo "$ac_try_echo") >&5
11456 (eval "$ac_link") 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest$ac_exeext && {
11466 test "$cross_compiling" = yes ||
11467 $as_test_x conftest$ac_exeext
11468 }; then
11469 emacs_xkb=yes
11470 else
11471 $as_echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 emacs_xkb=no
11477 rm -rf conftest.dSYM
11478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11479 conftest$ac_exeext conftest.$ac_ext
11480 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11481 $as_echo "$emacs_xkb" >&6; }
11482 if test $emacs_xkb = yes; then
11484 cat >>confdefs.h <<\_ACEOF
11485 #define HAVE_XKBGETKEYBOARD 1
11486 _ACEOF
11494 for ac_func in XrmSetDatabase XScreenResourceString \
11495 XScreenNumberOfScreen XSetWMProtocols
11497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11499 $as_echo_n "checking for $ac_func... " >&6; }
11500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11501 $as_echo_n "(cached) " >&6
11502 else
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11511 #define $ac_func innocuous_$ac_func
11513 /* System header to define __stub macros and hopefully few prototypes,
11514 which can conflict with char $ac_func (); below.
11515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11516 <limits.h> exists even on freestanding compilers. */
11518 #ifdef __STDC__
11519 # include <limits.h>
11520 #else
11521 # include <assert.h>
11522 #endif
11524 #undef $ac_func
11526 /* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 char $ac_func ();
11533 /* The GNU C library defines this for functions which it implements
11534 to always fail with ENOSYS. Some functions are actually named
11535 something starting with __ and the normal name is an alias. */
11536 #if defined __stub_$ac_func || defined __stub___$ac_func
11537 choke me
11538 #endif
11541 main ()
11543 return $ac_func ();
11545 return 0;
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (ac_try="$ac_link"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553 esac
11554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11555 $as_echo "$ac_try_echo") >&5
11556 (eval "$ac_link") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext && {
11566 test "$cross_compiling" = yes ||
11567 $as_test_x conftest$ac_exeext
11568 }; then
11569 eval "$as_ac_var=yes"
11570 else
11571 $as_echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 eval "$as_ac_var=no"
11577 rm -rf conftest.dSYM
11578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11579 conftest$ac_exeext conftest.$ac_ext
11581 ac_res=`eval 'as_val=${'$as_ac_var'}
11582 $as_echo "$as_val"'`
11583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11584 $as_echo "$ac_res" >&6; }
11585 as_val=`eval 'as_val=${'$as_ac_var'}
11586 $as_echo "$as_val"'`
11587 if test "x$as_val" = x""yes; then
11588 cat >>confdefs.h <<_ACEOF
11589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11590 _ACEOF
11593 done
11597 if test "${window_system}" = "x11"; then
11598 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11599 $as_echo_n "checking X11 version 6... " >&6; }
11600 if test "${emacs_cv_x11_version_6+set}" = set; then
11601 $as_echo_n "(cached) " >&6
11602 else
11603 cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h. */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 #include <X11/Xlib.h>
11611 main ()
11613 #if XlibSpecificationRelease < 6
11614 fail;
11615 #endif
11618 return 0;
11620 _ACEOF
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (ac_try="$ac_link"
11623 case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626 esac
11627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11628 $as_echo "$ac_try_echo") >&5
11629 (eval "$ac_link") 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } && {
11636 test -z "$ac_c_werror_flag" ||
11637 test ! -s conftest.err
11638 } && test -s conftest$ac_exeext && {
11639 test "$cross_compiling" = yes ||
11640 $as_test_x conftest$ac_exeext
11641 }; then
11642 emacs_cv_x11_version_6=yes
11643 else
11644 $as_echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11647 emacs_cv_x11_version_6=no
11650 rm -rf conftest.dSYM
11651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11652 conftest$ac_exeext conftest.$ac_ext
11655 if test $emacs_cv_x11_version_6 = yes; then
11656 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11657 $as_echo "6 or newer" >&6; }
11659 cat >>confdefs.h <<\_ACEOF
11660 #define HAVE_X11R6 1
11661 _ACEOF
11663 else
11664 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11665 $as_echo "before 6" >&6; }
11670 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11671 HAVE_RSVG=no
11672 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11673 if test "${with_rsvg}" != "no"; then
11674 RSVG_REQUIRED=2.11.0
11675 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11678 succeeded=no
11680 # Extract the first word of "pkg-config", so it can be a program name with args.
11681 set dummy pkg-config; ac_word=$2
11682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11683 $as_echo_n "checking for $ac_word... " >&6; }
11684 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11685 $as_echo_n "(cached) " >&6
11686 else
11687 case $PKG_CONFIG in
11688 [\\/]* | ?:[\\/]*)
11689 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11699 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 break 2
11703 done
11704 done
11705 IFS=$as_save_IFS
11707 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11709 esac
11711 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11712 if test -n "$PKG_CONFIG"; then
11713 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11714 $as_echo "$PKG_CONFIG" >&6; }
11715 else
11716 { $as_echo "$as_me:$LINENO: result: no" >&5
11717 $as_echo "no" >&6; }
11722 if test "$PKG_CONFIG" = "no" ; then
11724 else
11725 PKG_CONFIG_MIN_VERSION=0.9.0
11726 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11727 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11728 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11730 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11731 { $as_echo "$as_me:$LINENO: result: yes" >&5
11732 $as_echo "yes" >&6; }
11733 succeeded=yes
11735 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11736 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11737 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11738 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11739 $as_echo "$RSVG_CFLAGS" >&6; }
11741 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11742 $as_echo_n "checking RSVG_LIBS... " >&6; }
11743 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11744 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11745 $as_echo "$RSVG_LIBS" >&6; }
11746 else
11747 { $as_echo "$as_me:$LINENO: result: no" >&5
11748 $as_echo "no" >&6; }
11749 RSVG_CFLAGS=""
11750 RSVG_LIBS=""
11751 ## If we have a custom action on failure, don't print errors, but
11752 ## do set a variable so people can do so.
11753 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11759 else
11760 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11761 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11765 if test $succeeded = yes; then
11767 else
11774 if test ".${RSVG_CFLAGS}" != "."; then
11775 HAVE_RSVG=yes
11777 cat >>confdefs.h <<\_ACEOF
11778 #define HAVE_RSVG 1
11779 _ACEOF
11781 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11782 LIBS="$RSVG_LIBS $LIBS"
11787 HAVE_IMAGEMAGICK=no
11788 if test "${with_imagemagick}" != "no"; then
11789 IMAGEMAGICK_MODULE="Wand"
11791 succeeded=no
11793 # Extract the first word of "pkg-config", so it can be a program name with args.
11794 set dummy pkg-config; ac_word=$2
11795 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11798 $as_echo_n "(cached) " >&6
11799 else
11800 case $PKG_CONFIG in
11801 [\\/]* | ?:[\\/]*)
11802 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11816 done
11817 done
11818 IFS=$as_save_IFS
11820 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11822 esac
11824 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11825 if test -n "$PKG_CONFIG"; then
11826 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11827 $as_echo "$PKG_CONFIG" >&6; }
11828 else
11829 { $as_echo "$as_me:$LINENO: result: no" >&5
11830 $as_echo "no" >&6; }
11835 if test "$PKG_CONFIG" = "no" ; then
11837 else
11838 PKG_CONFIG_MIN_VERSION=0.9.0
11839 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11840 { $as_echo "$as_me:$LINENO: checking for $IMAGEMAGICK_MODULE" >&5
11841 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11843 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11844 { $as_echo "$as_me:$LINENO: result: yes" >&5
11845 $as_echo "yes" >&6; }
11846 succeeded=yes
11848 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_CFLAGS" >&5
11849 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11850 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11851 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_CFLAGS" >&5
11852 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11854 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_LIBS" >&5
11855 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11856 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11857 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_LIBS" >&5
11858 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11859 else
11860 { $as_echo "$as_me:$LINENO: result: no" >&5
11861 $as_echo "no" >&6; }
11862 IMAGEMAGICK_CFLAGS=""
11863 IMAGEMAGICK_LIBS=""
11864 ## If we have a custom action on failure, don't print errors, but
11865 ## do set a variable so people can do so.
11866 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11872 else
11873 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11874 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11878 if test $succeeded = yes; then
11880 else
11887 if test ".${IMAGEMAGICK_CFLAGS}" != "."; then
11888 HAVE_IMAGEMAGICK=yes
11890 cat >>confdefs.h <<\_ACEOF
11891 #define HAVE_IMAGEMAGICK 1
11892 _ACEOF
11894 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11895 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11899 cat >>confdefs.h <<\_ACEOF
11900 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11901 _ACEOF
11907 for ac_func in $ac_func_list
11909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11910 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11911 $as_echo_n "checking for $ac_func... " >&6; }
11912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11913 $as_echo_n "(cached) " >&6
11914 else
11915 cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h. */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11923 #define $ac_func innocuous_$ac_func
11925 /* System header to define __stub macros and hopefully few prototypes,
11926 which can conflict with char $ac_func (); below.
11927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11928 <limits.h> exists even on freestanding compilers. */
11930 #ifdef __STDC__
11931 # include <limits.h>
11932 #else
11933 # include <assert.h>
11934 #endif
11936 #undef $ac_func
11938 /* Override any GCC internal prototype to avoid an error.
11939 Use char because int might match the return type of a GCC
11940 builtin and then its argument prototype would still apply. */
11941 #ifdef __cplusplus
11942 extern "C"
11943 #endif
11944 char $ac_func ();
11945 /* The GNU C library defines this for functions which it implements
11946 to always fail with ENOSYS. Some functions are actually named
11947 something starting with __ and the normal name is an alias. */
11948 #if defined __stub_$ac_func || defined __stub___$ac_func
11949 choke me
11950 #endif
11953 main ()
11955 return $ac_func ();
11957 return 0;
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (ac_try="$ac_link"
11962 case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965 esac
11966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11967 $as_echo "$ac_try_echo") >&5
11968 (eval "$ac_link") 2>conftest.er1
11969 ac_status=$?
11970 grep -v '^ *+' conftest.er1 >conftest.err
11971 rm -f conftest.er1
11972 cat conftest.err >&5
11973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } && {
11975 test -z "$ac_c_werror_flag" ||
11976 test ! -s conftest.err
11977 } && test -s conftest$ac_exeext && {
11978 test "$cross_compiling" = yes ||
11979 $as_test_x conftest$ac_exeext
11980 }; then
11981 eval "$as_ac_var=yes"
11982 else
11983 $as_echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 eval "$as_ac_var=no"
11989 rm -rf conftest.dSYM
11990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11991 conftest$ac_exeext conftest.$ac_ext
11993 ac_res=`eval 'as_val=${'$as_ac_var'}
11994 $as_echo "$as_val"'`
11995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11996 $as_echo "$ac_res" >&6; }
11997 as_val=`eval 'as_val=${'$as_ac_var'}
11998 $as_echo "$as_val"'`
11999 if test "x$as_val" = x""yes; then
12000 cat >>confdefs.h <<_ACEOF
12001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12002 _ACEOF
12005 done
12019 HAVE_GTK=no
12020 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
12021 GLIB_REQUIRED=2.6
12022 GTK_REQUIRED=2.6
12023 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
12026 succeeded=no
12028 # Extract the first word of "pkg-config", so it can be a program name with args.
12029 set dummy pkg-config; ac_word=$2
12030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12033 $as_echo_n "(cached) " >&6
12034 else
12035 case $PKG_CONFIG in
12036 [\\/]* | ?:[\\/]*)
12037 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12043 IFS=$as_save_IFS
12044 test -z "$as_dir" && as_dir=.
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12047 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12049 break 2
12051 done
12052 done
12053 IFS=$as_save_IFS
12055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12057 esac
12059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12060 if test -n "$PKG_CONFIG"; then
12061 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12062 $as_echo "$PKG_CONFIG" >&6; }
12063 else
12064 { $as_echo "$as_me:$LINENO: result: no" >&5
12065 $as_echo "no" >&6; }
12070 if test "$PKG_CONFIG" = "no" ; then
12071 pkg_check_gtk=no
12072 else
12073 PKG_CONFIG_MIN_VERSION=0.9.0
12074 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12075 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
12076 $as_echo_n "checking for $GTK_MODULES... " >&6; }
12078 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
12079 { $as_echo "$as_me:$LINENO: result: yes" >&5
12080 $as_echo "yes" >&6; }
12081 succeeded=yes
12083 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12084 $as_echo_n "checking GTK_CFLAGS... " >&6; }
12085 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
12086 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12087 $as_echo "$GTK_CFLAGS" >&6; }
12089 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12090 $as_echo_n "checking GTK_LIBS... " >&6; }
12091 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
12092 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12093 $as_echo "$GTK_LIBS" >&6; }
12094 else
12095 { $as_echo "$as_me:$LINENO: result: no" >&5
12096 $as_echo "no" >&6; }
12097 GTK_CFLAGS=""
12098 GTK_LIBS=""
12099 ## If we have a custom action on failure, don't print errors, but
12100 ## do set a variable so people can do so.
12101 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
12107 else
12108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12113 if test $succeeded = yes; then
12114 pkg_check_gtk=yes
12115 else
12116 pkg_check_gtk=no
12119 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
12120 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
12121 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
12122 { (exit 1); exit 1; }; }
12127 GTK_OBJ=
12128 if test x"$pkg_check_gtk" = xyes; then
12132 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
12133 CFLAGS="$CFLAGS $GTK_CFLAGS"
12134 LIBS="$GTK_LIBS $LIBS"
12135 GTK_COMPILES=no
12137 for ac_func in gtk_main
12139 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12140 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12141 $as_echo_n "checking for $ac_func... " >&6; }
12142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12143 $as_echo_n "(cached) " >&6
12144 else
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h. */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12153 #define $ac_func innocuous_$ac_func
12155 /* System header to define __stub macros and hopefully few prototypes,
12156 which can conflict with char $ac_func (); below.
12157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12158 <limits.h> exists even on freestanding compilers. */
12160 #ifdef __STDC__
12161 # include <limits.h>
12162 #else
12163 # include <assert.h>
12164 #endif
12166 #undef $ac_func
12168 /* Override any GCC internal prototype to avoid an error.
12169 Use char because int might match the return type of a GCC
12170 builtin and then its argument prototype would still apply. */
12171 #ifdef __cplusplus
12172 extern "C"
12173 #endif
12174 char $ac_func ();
12175 /* The GNU C library defines this for functions which it implements
12176 to always fail with ENOSYS. Some functions are actually named
12177 something starting with __ and the normal name is an alias. */
12178 #if defined __stub_$ac_func || defined __stub___$ac_func
12179 choke me
12180 #endif
12183 main ()
12185 return $ac_func ();
12187 return 0;
12189 _ACEOF
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (ac_try="$ac_link"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12195 esac
12196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12197 $as_echo "$ac_try_echo") >&5
12198 (eval "$ac_link") 2>conftest.er1
12199 ac_status=$?
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
12203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && {
12205 test -z "$ac_c_werror_flag" ||
12206 test ! -s conftest.err
12207 } && test -s conftest$ac_exeext && {
12208 test "$cross_compiling" = yes ||
12209 $as_test_x conftest$ac_exeext
12210 }; then
12211 eval "$as_ac_var=yes"
12212 else
12213 $as_echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 eval "$as_ac_var=no"
12219 rm -rf conftest.dSYM
12220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12221 conftest$ac_exeext conftest.$ac_ext
12223 ac_res=`eval 'as_val=${'$as_ac_var'}
12224 $as_echo "$as_val"'`
12225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12226 $as_echo "$ac_res" >&6; }
12227 as_val=`eval 'as_val=${'$as_ac_var'}
12228 $as_echo "$as_val"'`
12229 if test "x$as_val" = x""yes; then
12230 cat >>confdefs.h <<_ACEOF
12231 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12232 _ACEOF
12233 GTK_COMPILES=yes
12235 done
12237 if test "${GTK_COMPILES}" != "yes"; then
12238 if test "$USE_X_TOOLKIT" != "maybe"; then
12239 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12240 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12241 { (exit 1); exit 1; }; };
12243 else
12244 HAVE_GTK=yes
12246 cat >>confdefs.h <<\_ACEOF
12247 #define USE_GTK 1
12248 _ACEOF
12250 GTK_OBJ=gtkutil.o
12251 USE_X_TOOLKIT=none
12252 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12254 else
12255 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12256 closing open displays. This is no problem if you just use
12257 one display, but if you use more than one and close one of them
12258 Emacs may crash." >&5
12259 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12260 closing open displays. This is no problem if you just use
12261 one display, but if you use more than one and close one of them
12262 Emacs may crash." >&2;}
12263 sleep 3
12271 if test "${HAVE_GTK}" = "yes"; then
12273 if test "$with_toolkit_scroll_bars" != no; then
12274 with_toolkit_scroll_bars=yes
12277 HAVE_GTK_MULTIDISPLAY=no
12279 for ac_func in gdk_display_open
12281 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12282 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12283 $as_echo_n "checking for $ac_func... " >&6; }
12284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12285 $as_echo_n "(cached) " >&6
12286 else
12287 cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h. */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12295 #define $ac_func innocuous_$ac_func
12297 /* System header to define __stub macros and hopefully few prototypes,
12298 which can conflict with char $ac_func (); below.
12299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12300 <limits.h> exists even on freestanding compilers. */
12302 #ifdef __STDC__
12303 # include <limits.h>
12304 #else
12305 # include <assert.h>
12306 #endif
12308 #undef $ac_func
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 char $ac_func ();
12317 /* The GNU C library defines this for functions which it implements
12318 to always fail with ENOSYS. Some functions are actually named
12319 something starting with __ and the normal name is an alias. */
12320 #if defined __stub_$ac_func || defined __stub___$ac_func
12321 choke me
12322 #endif
12325 main ()
12327 return $ac_func ();
12329 return 0;
12331 _ACEOF
12332 rm -f conftest.$ac_objext conftest$ac_exeext
12333 if { (ac_try="$ac_link"
12334 case "(($ac_try" in
12335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12337 esac
12338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12339 $as_echo "$ac_try_echo") >&5
12340 (eval "$ac_link") 2>conftest.er1
12341 ac_status=$?
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
12345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest$ac_exeext && {
12350 test "$cross_compiling" = yes ||
12351 $as_test_x conftest$ac_exeext
12352 }; then
12353 eval "$as_ac_var=yes"
12354 else
12355 $as_echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12358 eval "$as_ac_var=no"
12361 rm -rf conftest.dSYM
12362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12363 conftest$ac_exeext conftest.$ac_ext
12365 ac_res=`eval 'as_val=${'$as_ac_var'}
12366 $as_echo "$as_val"'`
12367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12368 $as_echo "$ac_res" >&6; }
12369 as_val=`eval 'as_val=${'$as_ac_var'}
12370 $as_echo "$as_val"'`
12371 if test "x$as_val" = x""yes; then
12372 cat >>confdefs.h <<_ACEOF
12373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12374 _ACEOF
12375 HAVE_GTK_MULTIDISPLAY=yes
12377 done
12379 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12381 cat >>confdefs.h <<\_ACEOF
12382 #define HAVE_GTK_MULTIDISPLAY 1
12383 _ACEOF
12387 HAVE_GTK_FILE_SELECTION=no
12388 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12389 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12390 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12391 $as_echo_n "(cached) " >&6
12392 else
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 $ac_includes_default
12400 #include <gtk/gtk.h>
12403 main ()
12405 #ifndef GTK_TYPE_FILE_SELECTION
12406 (void) GTK_TYPE_FILE_SELECTION;
12407 #endif
12410 return 0;
12412 _ACEOF
12413 rm -f conftest.$ac_objext
12414 if { (ac_try="$ac_compile"
12415 case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12418 esac
12419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12420 $as_echo "$ac_try_echo") >&5
12421 (eval "$ac_compile") 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } && {
12428 test -z "$ac_c_werror_flag" ||
12429 test ! -s conftest.err
12430 } && test -s conftest.$ac_objext; then
12431 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12432 else
12433 $as_echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12442 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12443 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then
12444 HAVE_GTK_FILE_SELECTION=yes
12445 else
12446 HAVE_GTK_FILE_SELECTION=no
12449 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12451 for ac_func in gtk_file_selection_new
12453 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12454 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12455 $as_echo_n "checking for $ac_func... " >&6; }
12456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12457 $as_echo_n "(cached) " >&6
12458 else
12459 cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h. */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12467 #define $ac_func innocuous_$ac_func
12469 /* System header to define __stub macros and hopefully few prototypes,
12470 which can conflict with char $ac_func (); below.
12471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12472 <limits.h> exists even on freestanding compilers. */
12474 #ifdef __STDC__
12475 # include <limits.h>
12476 #else
12477 # include <assert.h>
12478 #endif
12480 #undef $ac_func
12482 /* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
12485 #ifdef __cplusplus
12486 extern "C"
12487 #endif
12488 char $ac_func ();
12489 /* The GNU C library defines this for functions which it implements
12490 to always fail with ENOSYS. Some functions are actually named
12491 something starting with __ and the normal name is an alias. */
12492 #if defined __stub_$ac_func || defined __stub___$ac_func
12493 choke me
12494 #endif
12497 main ()
12499 return $ac_func ();
12501 return 0;
12503 _ACEOF
12504 rm -f conftest.$ac_objext conftest$ac_exeext
12505 if { (ac_try="$ac_link"
12506 case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509 esac
12510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12511 $as_echo "$ac_try_echo") >&5
12512 (eval "$ac_link") 2>conftest.er1
12513 ac_status=$?
12514 grep -v '^ *+' conftest.er1 >conftest.err
12515 rm -f conftest.er1
12516 cat conftest.err >&5
12517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } && {
12519 test -z "$ac_c_werror_flag" ||
12520 test ! -s conftest.err
12521 } && test -s conftest$ac_exeext && {
12522 test "$cross_compiling" = yes ||
12523 $as_test_x conftest$ac_exeext
12524 }; then
12525 eval "$as_ac_var=yes"
12526 else
12527 $as_echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 eval "$as_ac_var=no"
12533 rm -rf conftest.dSYM
12534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535 conftest$ac_exeext conftest.$ac_ext
12537 ac_res=`eval 'as_val=${'$as_ac_var'}
12538 $as_echo "$as_val"'`
12539 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12540 $as_echo "$ac_res" >&6; }
12541 as_val=`eval 'as_val=${'$as_ac_var'}
12542 $as_echo "$as_val"'`
12543 if test "x$as_val" = x""yes; then
12544 cat >>confdefs.h <<_ACEOF
12545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12546 _ACEOF
12547 HAVE_GTK_FILE_SELECTION=yes
12548 else
12549 HAVE_GTK_FILE_SELECTION=no
12551 done
12555 HAVE_GTK_FILE_CHOOSER=no
12556 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12557 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12558 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12559 $as_echo_n "(cached) " >&6
12560 else
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h. */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 $ac_includes_default
12568 #include <gtk/gtk.h>
12571 main ()
12573 #ifndef GTK_TYPE_FILE_CHOOSER
12574 (void) GTK_TYPE_FILE_CHOOSER;
12575 #endif
12578 return 0;
12580 _ACEOF
12581 rm -f conftest.$ac_objext
12582 if { (ac_try="$ac_compile"
12583 case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586 esac
12587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12588 $as_echo "$ac_try_echo") >&5
12589 (eval "$ac_compile") 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest.$ac_objext; then
12599 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12600 else
12601 $as_echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12604 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12610 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12611 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then
12612 HAVE_GTK_FILE_CHOOSER=yes
12613 else
12614 HAVE_GTK_FILE_CHOOSER=no
12617 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12619 for ac_func in gtk_file_chooser_dialog_new
12621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12623 $as_echo_n "checking for $ac_func... " >&6; }
12624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12625 $as_echo_n "(cached) " >&6
12626 else
12627 cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h. */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12635 #define $ac_func innocuous_$ac_func
12637 /* System header to define __stub macros and hopefully few prototypes,
12638 which can conflict with char $ac_func (); below.
12639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12640 <limits.h> exists even on freestanding compilers. */
12642 #ifdef __STDC__
12643 # include <limits.h>
12644 #else
12645 # include <assert.h>
12646 #endif
12648 #undef $ac_func
12650 /* Override any GCC internal prototype to avoid an error.
12651 Use char because int might match the return type of a GCC
12652 builtin and then its argument prototype would still apply. */
12653 #ifdef __cplusplus
12654 extern "C"
12655 #endif
12656 char $ac_func ();
12657 /* The GNU C library defines this for functions which it implements
12658 to always fail with ENOSYS. Some functions are actually named
12659 something starting with __ and the normal name is an alias. */
12660 #if defined __stub_$ac_func || defined __stub___$ac_func
12661 choke me
12662 #endif
12665 main ()
12667 return $ac_func ();
12669 return 0;
12671 _ACEOF
12672 rm -f conftest.$ac_objext conftest$ac_exeext
12673 if { (ac_try="$ac_link"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677 esac
12678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12679 $as_echo "$ac_try_echo") >&5
12680 (eval "$ac_link") 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest$ac_exeext && {
12690 test "$cross_compiling" = yes ||
12691 $as_test_x conftest$ac_exeext
12692 }; then
12693 eval "$as_ac_var=yes"
12694 else
12695 $as_echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12698 eval "$as_ac_var=no"
12701 rm -rf conftest.dSYM
12702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12703 conftest$ac_exeext conftest.$ac_ext
12705 ac_res=`eval 'as_val=${'$as_ac_var'}
12706 $as_echo "$as_val"'`
12707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12708 $as_echo "$ac_res" >&6; }
12709 as_val=`eval 'as_val=${'$as_ac_var'}
12710 $as_echo "$as_val"'`
12711 if test "x$as_val" = x""yes; then
12712 cat >>confdefs.h <<_ACEOF
12713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12714 _ACEOF
12715 HAVE_GTK_FILE_CHOOSER=yes
12716 else
12717 HAVE_GTK_FILE_CHOOSER=no
12719 done
12723 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12724 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12726 cat >>confdefs.h <<\_ACEOF
12727 #define HAVE_GTK_FILE_BOTH 1
12728 _ACEOF
12732 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12733 HAVE_GTK_AND_PTHREAD=no
12735 for ac_header in pthread.h
12737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12739 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12740 $as_echo_n "checking for $ac_header... " >&6; }
12741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12742 $as_echo_n "(cached) " >&6
12744 ac_res=`eval 'as_val=${'$as_ac_Header'}
12745 $as_echo "$as_val"'`
12746 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12747 $as_echo "$ac_res" >&6; }
12748 else
12749 # Is the header compilable?
12750 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12751 $as_echo_n "checking $ac_header usability... " >&6; }
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h. */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12758 $ac_includes_default
12759 #include <$ac_header>
12760 _ACEOF
12761 rm -f conftest.$ac_objext
12762 if { (ac_try="$ac_compile"
12763 case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766 esac
12767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12768 $as_echo "$ac_try_echo") >&5
12769 (eval "$ac_compile") 2>conftest.er1
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } && {
12776 test -z "$ac_c_werror_flag" ||
12777 test ! -s conftest.err
12778 } && test -s conftest.$ac_objext; then
12779 ac_header_compiler=yes
12780 else
12781 $as_echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12784 ac_header_compiler=no
12787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12789 $as_echo "$ac_header_compiler" >&6; }
12791 # Is the header present?
12792 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12793 $as_echo_n "checking $ac_header presence... " >&6; }
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 #include <$ac_header>
12801 _ACEOF
12802 if { (ac_try="$ac_cpp conftest.$ac_ext"
12803 case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806 esac
12807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12808 $as_echo "$ac_try_echo") >&5
12809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12810 ac_status=$?
12811 grep -v '^ *+' conftest.er1 >conftest.err
12812 rm -f conftest.er1
12813 cat conftest.err >&5
12814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } >/dev/null && {
12816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12817 test ! -s conftest.err
12818 }; then
12819 ac_header_preproc=yes
12820 else
12821 $as_echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ac_header_preproc=no
12827 rm -f conftest.err conftest.$ac_ext
12828 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12829 $as_echo "$ac_header_preproc" >&6; }
12831 # So? What about this header?
12832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12833 yes:no: )
12834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12835 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12837 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12838 ac_header_preproc=yes
12840 no:yes:* )
12841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12842 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12844 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12846 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12848 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12850 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12852 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12855 esac
12856 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12857 $as_echo_n "checking for $ac_header... " >&6; }
12858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12859 $as_echo_n "(cached) " >&6
12860 else
12861 eval "$as_ac_Header=\$ac_header_preproc"
12863 ac_res=`eval 'as_val=${'$as_ac_Header'}
12864 $as_echo "$as_val"'`
12865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12866 $as_echo "$ac_res" >&6; }
12869 as_val=`eval 'as_val=${'$as_ac_Header'}
12870 $as_echo "$as_val"'`
12871 if test "x$as_val" = x""yes; then
12872 cat >>confdefs.h <<_ACEOF
12873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12874 _ACEOF
12878 done
12880 if test "$ac_cv_header_pthread_h"; then
12881 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12882 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12883 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12884 $as_echo_n "(cached) " >&6
12885 else
12886 ac_check_lib_save_LIBS=$LIBS
12887 LIBS="-lpthread $LIBS"
12888 cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h. */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 char pthread_self ();
12903 main ()
12905 return pthread_self ();
12907 return 0;
12909 _ACEOF
12910 rm -f conftest.$ac_objext conftest$ac_exeext
12911 if { (ac_try="$ac_link"
12912 case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915 esac
12916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12917 $as_echo "$ac_try_echo") >&5
12918 (eval "$ac_link") 2>conftest.er1
12919 ac_status=$?
12920 grep -v '^ *+' conftest.er1 >conftest.err
12921 rm -f conftest.er1
12922 cat conftest.err >&5
12923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } && {
12925 test -z "$ac_c_werror_flag" ||
12926 test ! -s conftest.err
12927 } && test -s conftest$ac_exeext && {
12928 test "$cross_compiling" = yes ||
12929 $as_test_x conftest$ac_exeext
12930 }; then
12931 ac_cv_lib_pthread_pthread_self=yes
12932 else
12933 $as_echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 ac_cv_lib_pthread_pthread_self=no
12939 rm -rf conftest.dSYM
12940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12941 conftest$ac_exeext conftest.$ac_ext
12942 LIBS=$ac_check_lib_save_LIBS
12944 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12945 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12946 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then
12947 HAVE_GTK_AND_PTHREAD=yes
12951 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12952 case "${canonical}" in
12953 *-hpux*) ;;
12954 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12955 esac
12957 cat >>confdefs.h <<\_ACEOF
12958 #define HAVE_GTK_AND_PTHREAD 1
12959 _ACEOF
12965 HAVE_DBUS=no
12966 DBUS_OBJ=
12967 if test "${with_dbus}" = "yes"; then
12969 succeeded=no
12971 # Extract the first word of "pkg-config", so it can be a program name with args.
12972 set dummy pkg-config; ac_word=$2
12973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12974 $as_echo_n "checking for $ac_word... " >&6; }
12975 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12976 $as_echo_n "(cached) " >&6
12977 else
12978 case $PKG_CONFIG in
12979 [\\/]* | ?:[\\/]*)
12980 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12984 for as_dir in $PATH
12986 IFS=$as_save_IFS
12987 test -z "$as_dir" && as_dir=.
12988 for ac_exec_ext in '' $ac_executable_extensions; do
12989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12990 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12991 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12992 break 2
12994 done
12995 done
12996 IFS=$as_save_IFS
12998 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13000 esac
13002 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13003 if test -n "$PKG_CONFIG"; then
13004 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13005 $as_echo "$PKG_CONFIG" >&6; }
13006 else
13007 { $as_echo "$as_me:$LINENO: result: no" >&5
13008 $as_echo "no" >&6; }
13013 if test "$PKG_CONFIG" = "no" ; then
13014 HAVE_DBUS=no
13015 else
13016 PKG_CONFIG_MIN_VERSION=0.9.0
13017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13018 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
13019 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
13021 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
13022 { $as_echo "$as_me:$LINENO: result: yes" >&5
13023 $as_echo "yes" >&6; }
13024 succeeded=yes
13026 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
13027 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
13028 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
13029 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
13030 $as_echo "$DBUS_CFLAGS" >&6; }
13032 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
13033 $as_echo_n "checking DBUS_LIBS... " >&6; }
13034 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
13035 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
13036 $as_echo "$DBUS_LIBS" >&6; }
13037 else
13038 { $as_echo "$as_me:$LINENO: result: no" >&5
13039 $as_echo "no" >&6; }
13040 DBUS_CFLAGS=""
13041 DBUS_LIBS=""
13042 ## If we have a custom action on failure, don't print errors, but
13043 ## do set a variable so people can do so.
13044 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
13050 else
13051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13056 if test $succeeded = yes; then
13057 HAVE_DBUS=yes
13058 else
13059 HAVE_DBUS=no
13062 if test "$HAVE_DBUS" = yes; then
13063 LIBS="$LIBS $DBUS_LIBS"
13065 cat >>confdefs.h <<\_ACEOF
13066 #define HAVE_DBUS 1
13067 _ACEOF
13070 for ac_func in dbus_watch_get_unix_fd
13072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13073 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13074 $as_echo_n "checking for $ac_func... " >&6; }
13075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13076 $as_echo_n "(cached) " >&6
13077 else
13078 cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h. */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13086 #define $ac_func innocuous_$ac_func
13088 /* System header to define __stub macros and hopefully few prototypes,
13089 which can conflict with char $ac_func (); below.
13090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13091 <limits.h> exists even on freestanding compilers. */
13093 #ifdef __STDC__
13094 # include <limits.h>
13095 #else
13096 # include <assert.h>
13097 #endif
13099 #undef $ac_func
13101 /* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13104 #ifdef __cplusplus
13105 extern "C"
13106 #endif
13107 char $ac_func ();
13108 /* The GNU C library defines this for functions which it implements
13109 to always fail with ENOSYS. Some functions are actually named
13110 something starting with __ and the normal name is an alias. */
13111 #if defined __stub_$ac_func || defined __stub___$ac_func
13112 choke me
13113 #endif
13116 main ()
13118 return $ac_func ();
13120 return 0;
13122 _ACEOF
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (ac_try="$ac_link"
13125 case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13128 esac
13129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13130 $as_echo "$ac_try_echo") >&5
13131 (eval "$ac_link") 2>conftest.er1
13132 ac_status=$?
13133 grep -v '^ *+' conftest.er1 >conftest.err
13134 rm -f conftest.er1
13135 cat conftest.err >&5
13136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } && {
13138 test -z "$ac_c_werror_flag" ||
13139 test ! -s conftest.err
13140 } && test -s conftest$ac_exeext && {
13141 test "$cross_compiling" = yes ||
13142 $as_test_x conftest$ac_exeext
13143 }; then
13144 eval "$as_ac_var=yes"
13145 else
13146 $as_echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13149 eval "$as_ac_var=no"
13152 rm -rf conftest.dSYM
13153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13154 conftest$ac_exeext conftest.$ac_ext
13156 ac_res=`eval 'as_val=${'$as_ac_var'}
13157 $as_echo "$as_val"'`
13158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13159 $as_echo "$ac_res" >&6; }
13160 as_val=`eval 'as_val=${'$as_ac_var'}
13161 $as_echo "$as_val"'`
13162 if test "x$as_val" = x""yes; then
13163 cat >>confdefs.h <<_ACEOF
13164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13165 _ACEOF
13168 done
13170 DBUS_OBJ=dbusbind.o
13175 HAVE_GCONF=no
13176 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
13178 succeeded=no
13180 # Extract the first word of "pkg-config", so it can be a program name with args.
13181 set dummy pkg-config; ac_word=$2
13182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13183 $as_echo_n "checking for $ac_word... " >&6; }
13184 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13185 $as_echo_n "(cached) " >&6
13186 else
13187 case $PKG_CONFIG in
13188 [\\/]* | ?:[\\/]*)
13189 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13203 done
13204 done
13205 IFS=$as_save_IFS
13207 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13209 esac
13211 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13212 if test -n "$PKG_CONFIG"; then
13213 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13214 $as_echo "$PKG_CONFIG" >&6; }
13215 else
13216 { $as_echo "$as_me:$LINENO: result: no" >&5
13217 $as_echo "no" >&6; }
13222 if test "$PKG_CONFIG" = "no" ; then
13223 HAVE_GCONF=no
13224 else
13225 PKG_CONFIG_MIN_VERSION=0.9.0
13226 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13227 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
13228 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
13230 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
13231 { $as_echo "$as_me:$LINENO: result: yes" >&5
13232 $as_echo "yes" >&6; }
13233 succeeded=yes
13235 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
13236 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
13237 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13238 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
13239 $as_echo "$GCONF_CFLAGS" >&6; }
13241 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
13242 $as_echo_n "checking GCONF_LIBS... " >&6; }
13243 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13244 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13245 $as_echo "$GCONF_LIBS" >&6; }
13246 else
13247 { $as_echo "$as_me:$LINENO: result: no" >&5
13248 $as_echo "no" >&6; }
13249 GCONF_CFLAGS=""
13250 GCONF_LIBS=""
13251 ## If we have a custom action on failure, don't print errors, but
13252 ## do set a variable so people can do so.
13253 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13259 else
13260 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13261 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13265 if test $succeeded = yes; then
13266 HAVE_GCONF=yes
13267 else
13268 HAVE_GCONF=no
13271 if test "$HAVE_GCONF" = yes; then
13273 cat >>confdefs.h <<\_ACEOF
13274 #define HAVE_GCONF 1
13275 _ACEOF
13280 HAVE_LIBSELINUX=no
13281 LIBSELINUX_LIBS=
13282 if test "${with_selinux}" = "yes"; then
13283 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13284 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13285 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13286 $as_echo_n "(cached) " >&6
13287 else
13288 ac_check_lib_save_LIBS=$LIBS
13289 LIBS="-lselinux $LIBS"
13290 cat >conftest.$ac_ext <<_ACEOF
13291 /* confdefs.h. */
13292 _ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13297 /* Override any GCC internal prototype to avoid an error.
13298 Use char because int might match the return type of a GCC
13299 builtin and then its argument prototype would still apply. */
13300 #ifdef __cplusplus
13301 extern "C"
13302 #endif
13303 char lgetfilecon ();
13305 main ()
13307 return lgetfilecon ();
13309 return 0;
13311 _ACEOF
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317 esac
13318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13319 $as_echo "$ac_try_echo") >&5
13320 (eval "$ac_link") 2>conftest.er1
13321 ac_status=$?
13322 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1
13324 cat conftest.err >&5
13325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && {
13327 test -z "$ac_c_werror_flag" ||
13328 test ! -s conftest.err
13329 } && test -s conftest$ac_exeext && {
13330 test "$cross_compiling" = yes ||
13331 $as_test_x conftest$ac_exeext
13332 }; then
13333 ac_cv_lib_selinux_lgetfilecon=yes
13334 else
13335 $as_echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13338 ac_cv_lib_selinux_lgetfilecon=no
13341 rm -rf conftest.dSYM
13342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13343 conftest$ac_exeext conftest.$ac_ext
13344 LIBS=$ac_check_lib_save_LIBS
13346 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13347 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13348 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then
13349 HAVE_LIBSELINUX=yes
13350 else
13351 HAVE_LIBSELINUX=no
13354 if test "$HAVE_LIBSELINUX" = yes; then
13356 cat >>confdefs.h <<\_ACEOF
13357 #define HAVE_LIBSELINUX 1
13358 _ACEOF
13360 LIBSELINUX_LIBS=-lselinux
13365 HAVE_XAW3D=no
13366 LUCID_LIBW=
13367 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13368 if test "$with_xaw3d" != no; then
13369 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13370 $as_echo_n "checking for xaw3d... " >&6; }
13371 if test "${emacs_cv_xaw3d+set}" = set; then
13372 $as_echo_n "(cached) " >&6
13373 else
13374 cat >conftest.$ac_ext <<_ACEOF
13375 /* confdefs.h. */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13381 #include <X11/Intrinsic.h>
13382 #include <X11/Xaw3d/Simple.h>
13384 main ()
13388 return 0;
13390 _ACEOF
13391 rm -f conftest.$ac_objext conftest$ac_exeext
13392 if { (ac_try="$ac_link"
13393 case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13396 esac
13397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13398 $as_echo "$ac_try_echo") >&5
13399 (eval "$ac_link") 2>conftest.er1
13400 ac_status=$?
13401 grep -v '^ *+' conftest.er1 >conftest.err
13402 rm -f conftest.er1
13403 cat conftest.err >&5
13404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } && {
13406 test -z "$ac_c_werror_flag" ||
13407 test ! -s conftest.err
13408 } && test -s conftest$ac_exeext && {
13409 test "$cross_compiling" = yes ||
13410 $as_test_x conftest$ac_exeext
13411 }; then
13412 emacs_cv_xaw3d=yes
13413 else
13414 $as_echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13417 emacs_cv_xaw3d=no
13420 rm -rf conftest.dSYM
13421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13422 conftest$ac_exeext conftest.$ac_ext
13425 else
13426 emacs_cv_xaw3d=no
13428 if test $emacs_cv_xaw3d = yes; then
13429 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13430 $as_echo "yes; using Lucid toolkit" >&6; }
13431 USE_X_TOOLKIT=LUCID
13432 HAVE_XAW3D=yes
13433 LUCID_LIBW=-lXaw3d
13435 cat >>confdefs.h <<\_ACEOF
13436 #define HAVE_XAW3D 1
13437 _ACEOF
13439 else
13440 { $as_echo "$as_me:$LINENO: result: no" >&5
13441 $as_echo "no" >&6; }
13442 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13443 $as_echo_n "checking for libXaw... " >&6; }
13444 if test "${emacs_cv_xaw+set}" = set; then
13445 $as_echo_n "(cached) " >&6
13446 else
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h. */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13454 #include <X11/Intrinsic.h>
13455 #include <X11/Xaw/Simple.h>
13457 main ()
13461 return 0;
13463 _ACEOF
13464 rm -f conftest.$ac_objext conftest$ac_exeext
13465 if { (ac_try="$ac_link"
13466 case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13469 esac
13470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13471 $as_echo "$ac_try_echo") >&5
13472 (eval "$ac_link") 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && {
13479 test -z "$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 } && test -s conftest$ac_exeext && {
13482 test "$cross_compiling" = yes ||
13483 $as_test_x conftest$ac_exeext
13484 }; then
13485 emacs_cv_xaw=yes
13486 else
13487 $as_echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 emacs_cv_xaw=no
13493 rm -rf conftest.dSYM
13494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13495 conftest$ac_exeext conftest.$ac_ext
13498 if test $emacs_cv_xaw = yes; then
13499 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13500 $as_echo "yes; using Lucid toolkit" >&6; }
13501 USE_X_TOOLKIT=LUCID
13502 LUCID_LIBW=-lXaw
13503 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13504 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13505 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13506 { (exit 1); exit 1; }; }
13507 else
13508 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13509 $as_echo "no; do not use toolkit by default" >&6; }
13510 USE_X_TOOLKIT=none
13515 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13517 LIBXTR6=
13518 if test "${USE_X_TOOLKIT}" != "none"; then
13519 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13520 $as_echo_n "checking X11 toolkit version... " >&6; }
13521 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13522 $as_echo_n "(cached) " >&6
13523 else
13524 cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h. */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13530 #include <X11/Intrinsic.h>
13532 main ()
13534 #if XtSpecificationRelease < 6
13535 fail;
13536 #endif
13539 return 0;
13541 _ACEOF
13542 rm -f conftest.$ac_objext conftest$ac_exeext
13543 if { (ac_try="$ac_link"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13547 esac
13548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13549 $as_echo "$ac_try_echo") >&5
13550 (eval "$ac_link") 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } && {
13557 test -z "$ac_c_werror_flag" ||
13558 test ! -s conftest.err
13559 } && test -s conftest$ac_exeext && {
13560 test "$cross_compiling" = yes ||
13561 $as_test_x conftest$ac_exeext
13562 }; then
13563 emacs_cv_x11_toolkit_version_6=yes
13564 else
13565 $as_echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 emacs_cv_x11_toolkit_version_6=no
13571 rm -rf conftest.dSYM
13572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13573 conftest$ac_exeext conftest.$ac_ext
13576 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13577 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13578 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13579 $as_echo "6 or newer" >&6; }
13581 cat >>confdefs.h <<\_ACEOF
13582 #define HAVE_X11XTR6 1
13583 _ACEOF
13585 LIBXTR6="-lSM -lICE"
13586 case "$opsys" in
13587 ## Use libw.a along with X11R6 Xt.
13588 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13589 esac
13590 else
13591 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13592 $as_echo "before 6" >&6; }
13595 OLDLIBS="$LIBS"
13596 if test x$HAVE_X11XTR6 = xyes; then
13597 LIBS="-lXt -lSM -lICE $LIBS"
13598 else
13599 LIBS="-lXt $LIBS"
13602 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13603 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13604 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13605 $as_echo_n "(cached) " >&6
13606 else
13607 ac_check_lib_save_LIBS=$LIBS
13608 LIBS="-lXmu $LIBS"
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h. */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char XmuConvertStandardSelection ();
13624 main ()
13626 return XmuConvertStandardSelection ();
13628 return 0;
13630 _ACEOF
13631 rm -f conftest.$ac_objext conftest$ac_exeext
13632 if { (ac_try="$ac_link"
13633 case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13636 esac
13637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13638 $as_echo "$ac_try_echo") >&5
13639 (eval "$ac_link") 2>conftest.er1
13640 ac_status=$?
13641 grep -v '^ *+' conftest.er1 >conftest.err
13642 rm -f conftest.er1
13643 cat conftest.err >&5
13644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } && {
13646 test -z "$ac_c_werror_flag" ||
13647 test ! -s conftest.err
13648 } && test -s conftest$ac_exeext && {
13649 test "$cross_compiling" = yes ||
13650 $as_test_x conftest$ac_exeext
13651 }; then
13652 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13653 else
13654 $as_echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13657 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13660 rm -rf conftest.dSYM
13661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13662 conftest$ac_exeext conftest.$ac_ext
13663 LIBS=$ac_check_lib_save_LIBS
13665 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13666 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13667 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then
13668 cat >>confdefs.h <<_ACEOF
13669 #define HAVE_LIBXMU 1
13670 _ACEOF
13672 LIBS="-lXmu $LIBS"
13676 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13680 LIBXMU=-lXmu
13681 case "$machine" in
13682 ## These machines don't supply Xmu.
13683 hpux* | aix4-2 )
13684 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13686 esac
13689 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13690 if test "${HAVE_X11}" = "yes"; then
13691 if test "${USE_X_TOOLKIT}" != "none"; then
13693 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13694 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13695 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13696 $as_echo_n "(cached) " >&6
13697 else
13698 ac_check_lib_save_LIBS=$LIBS
13699 LIBS="-lXext $LIBS"
13700 cat >conftest.$ac_ext <<_ACEOF
13701 /* confdefs.h. */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13707 /* Override any GCC internal prototype to avoid an error.
13708 Use char because int might match the return type of a GCC
13709 builtin and then its argument prototype would still apply. */
13710 #ifdef __cplusplus
13711 extern "C"
13712 #endif
13713 char XShapeQueryExtension ();
13715 main ()
13717 return XShapeQueryExtension ();
13719 return 0;
13721 _ACEOF
13722 rm -f conftest.$ac_objext conftest$ac_exeext
13723 if { (ac_try="$ac_link"
13724 case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727 esac
13728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13729 $as_echo "$ac_try_echo") >&5
13730 (eval "$ac_link") 2>conftest.er1
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } && {
13737 test -z "$ac_c_werror_flag" ||
13738 test ! -s conftest.err
13739 } && test -s conftest$ac_exeext && {
13740 test "$cross_compiling" = yes ||
13741 $as_test_x conftest$ac_exeext
13742 }; then
13743 ac_cv_lib_Xext_XShapeQueryExtension=yes
13744 else
13745 $as_echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13748 ac_cv_lib_Xext_XShapeQueryExtension=no
13751 rm -rf conftest.dSYM
13752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13753 conftest$ac_exeext conftest.$ac_ext
13754 LIBS=$ac_check_lib_save_LIBS
13756 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13757 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13758 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
13759 cat >>confdefs.h <<_ACEOF
13760 #define HAVE_LIBXEXT 1
13761 _ACEOF
13763 LIBS="-lXext $LIBS"
13770 LIBXP=
13771 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13772 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13773 $as_echo_n "checking for Motif version 2.1... " >&6; }
13774 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13775 $as_echo_n "(cached) " >&6
13776 else
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 #include <Xm/Xm.h>
13785 main ()
13787 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13788 int x = 5;
13789 #else
13790 Motif version prior to 2.1.
13791 #endif
13793 return 0;
13795 _ACEOF
13796 rm -f conftest.$ac_objext
13797 if { (ac_try="$ac_compile"
13798 case "(($ac_try" in
13799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13801 esac
13802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13803 $as_echo "$ac_try_echo") >&5
13804 (eval "$ac_compile") 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest.$ac_objext; then
13814 emacs_cv_motif_version_2_1=yes
13815 else
13816 $as_echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13819 emacs_cv_motif_version_2_1=no
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13825 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13826 if test $emacs_cv_motif_version_2_1 = yes; then
13827 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13828 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13829 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13830 $as_echo_n "(cached) " >&6
13831 else
13832 ac_check_lib_save_LIBS=$LIBS
13833 LIBS="-lXp $LIBS"
13834 cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h. */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13841 /* Override any GCC internal prototype to avoid an error.
13842 Use char because int might match the return type of a GCC
13843 builtin and then its argument prototype would still apply. */
13844 #ifdef __cplusplus
13845 extern "C"
13846 #endif
13847 char XpCreateContext ();
13849 main ()
13851 return XpCreateContext ();
13853 return 0;
13855 _ACEOF
13856 rm -f conftest.$ac_objext conftest$ac_exeext
13857 if { (ac_try="$ac_link"
13858 case "(($ac_try" in
13859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13861 esac
13862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13863 $as_echo "$ac_try_echo") >&5
13864 (eval "$ac_link") 2>conftest.er1
13865 ac_status=$?
13866 grep -v '^ *+' conftest.er1 >conftest.err
13867 rm -f conftest.er1
13868 cat conftest.err >&5
13869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } && {
13871 test -z "$ac_c_werror_flag" ||
13872 test ! -s conftest.err
13873 } && test -s conftest$ac_exeext && {
13874 test "$cross_compiling" = yes ||
13875 $as_test_x conftest$ac_exeext
13876 }; then
13877 ac_cv_lib_Xp_XpCreateContext=yes
13878 else
13879 $as_echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13882 ac_cv_lib_Xp_XpCreateContext=no
13885 rm -rf conftest.dSYM
13886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13887 conftest$ac_exeext conftest.$ac_ext
13888 LIBS=$ac_check_lib_save_LIBS
13890 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13891 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13892 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then
13893 LIBXP=-lXp
13896 else
13897 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13898 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13899 if test "${emacs_cv_lesstif+set}" = set; then
13900 $as_echo_n "(cached) " >&6
13901 else
13902 # We put this in CFLAGS temporarily to precede other -I options
13903 # that might be in CFLAGS temporarily.
13904 # We put this in CPPFLAGS where it precedes the other -I options.
13905 OLD_CPPFLAGS=$CPPFLAGS
13906 OLD_CFLAGS=$CFLAGS
13907 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13908 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13909 cat >conftest.$ac_ext <<_ACEOF
13910 /* confdefs.h. */
13911 _ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13915 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13917 main ()
13919 int x = 5;
13921 return 0;
13923 _ACEOF
13924 rm -f conftest.$ac_objext
13925 if { (ac_try="$ac_compile"
13926 case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929 esac
13930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13931 $as_echo "$ac_try_echo") >&5
13932 (eval "$ac_compile") 2>conftest.er1
13933 ac_status=$?
13934 grep -v '^ *+' conftest.er1 >conftest.err
13935 rm -f conftest.er1
13936 cat conftest.err >&5
13937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } && {
13939 test -z "$ac_c_werror_flag" ||
13940 test ! -s conftest.err
13941 } && test -s conftest.$ac_objext; then
13942 emacs_cv_lesstif=yes
13943 else
13944 $as_echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13947 emacs_cv_lesstif=no
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13953 $as_echo "$emacs_cv_lesstif" >&6; }
13954 if test $emacs_cv_lesstif = yes; then
13955 # Make sure this -I option remains in CPPFLAGS after it is set
13956 # back to REAL_CPPFLAGS.
13957 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13958 # have those other -I options anyway. Ultimately, having this
13959 # directory ultimately in CPPFLAGS will be enough.
13960 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13961 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13962 else
13963 CFLAGS=$OLD_CFLAGS
13964 CPPFLAGS=$OLD_CPPFLAGS
13971 USE_TOOLKIT_SCROLL_BARS=no
13972 if test "${with_toolkit_scroll_bars}" != "no"; then
13973 if test "${USE_X_TOOLKIT}" != "none"; then
13974 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13975 cat >>confdefs.h <<\_ACEOF
13976 #define USE_TOOLKIT_SCROLL_BARS 1
13977 _ACEOF
13979 HAVE_XAW3D=no
13980 USE_TOOLKIT_SCROLL_BARS=yes
13981 elif test "${HAVE_XAW3D}" = "yes"; then
13982 cat >>confdefs.h <<\_ACEOF
13983 #define USE_TOOLKIT_SCROLL_BARS 1
13984 _ACEOF
13986 USE_TOOLKIT_SCROLL_BARS=yes
13988 elif test "${HAVE_GTK}" = "yes"; then
13989 cat >>confdefs.h <<\_ACEOF
13990 #define USE_TOOLKIT_SCROLL_BARS 1
13991 _ACEOF
13993 USE_TOOLKIT_SCROLL_BARS=yes
13994 elif test "${HAVE_NS}" = "yes"; then
13995 cat >>confdefs.h <<\_ACEOF
13996 #define USE_TOOLKIT_SCROLL_BARS 1
13997 _ACEOF
13999 USE_TOOLKIT_SCROLL_BARS=yes
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h. */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14010 #include <X11/Xlib.h>
14011 #include <X11/Xresource.h>
14013 main ()
14015 XIMProc callback;
14017 return 0;
14019 _ACEOF
14020 rm -f conftest.$ac_objext
14021 if { (ac_try="$ac_compile"
14022 case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14025 esac
14026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14027 $as_echo "$ac_try_echo") >&5
14028 (eval "$ac_compile") 2>conftest.er1
14029 ac_status=$?
14030 grep -v '^ *+' conftest.er1 >conftest.err
14031 rm -f conftest.er1
14032 cat conftest.err >&5
14033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && {
14035 test -z "$ac_c_werror_flag" ||
14036 test ! -s conftest.err
14037 } && test -s conftest.$ac_objext; then
14038 HAVE_XIM=yes
14040 cat >>confdefs.h <<\_ACEOF
14041 #define HAVE_XIM 1
14042 _ACEOF
14044 else
14045 $as_echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 HAVE_XIM=no
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054 if test "${with_xim}" != "no"; then
14056 cat >>confdefs.h <<\_ACEOF
14057 #define USE_XIM 1
14058 _ACEOF
14063 if test "${HAVE_XIM}" != "no"; then
14064 late_CFLAGS=$CFLAGS
14065 if test "$GCC" = yes; then
14066 CFLAGS="$CFLAGS --pedantic-errors"
14068 cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h. */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14075 #include <X11/Xlib.h>
14076 #include <X11/Xresource.h>
14078 main ()
14080 Display *display;
14081 XrmDatabase db;
14082 char *res_name;
14083 char *res_class;
14084 XIMProc callback;
14085 XPointer *client_data;
14086 #ifndef __GNUC__
14087 /* If we're not using GCC, it's probably not XFree86, and this is
14088 probably right, but we can't use something like --pedantic-errors. */
14089 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
14090 char*, XIMProc, XPointer*);
14091 #endif
14092 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
14093 client_data);
14095 return 0;
14097 _ACEOF
14098 rm -f conftest.$ac_objext
14099 if { (ac_try="$ac_compile"
14100 case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14103 esac
14104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14105 $as_echo "$ac_try_echo") >&5
14106 (eval "$ac_compile") 2>conftest.er1
14107 ac_status=$?
14108 grep -v '^ *+' conftest.er1 >conftest.err
14109 rm -f conftest.er1
14110 cat conftest.err >&5
14111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } && {
14113 test -z "$ac_c_werror_flag" ||
14114 test ! -s conftest.err
14115 } && test -s conftest.$ac_objext; then
14116 emacs_cv_arg6_star=yes
14117 else
14118 $as_echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14126 if test "$emacs_cv_arg6_star" = yes; then
14127 cat >>confdefs.h <<\_ACEOF
14128 #define XRegisterIMInstantiateCallback_arg6 XPointer*
14129 _ACEOF
14131 else
14132 cat >>confdefs.h <<\_ACEOF
14133 #define XRegisterIMInstantiateCallback_arg6 XPointer
14134 _ACEOF
14137 CFLAGS=$late_CFLAGS
14140 ### Start of font-backend (under any platform) section.
14141 # (nothing here yet -- this is a placeholder)
14142 ### End of font-backend (under any platform) section.
14144 ### Start of font-backend (under X11) section.
14145 if test "${HAVE_X11}" = "yes"; then
14147 succeeded=no
14149 # Extract the first word of "pkg-config", so it can be a program name with args.
14150 set dummy pkg-config; ac_word=$2
14151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14152 $as_echo_n "checking for $ac_word... " >&6; }
14153 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14154 $as_echo_n "(cached) " >&6
14155 else
14156 case $PKG_CONFIG in
14157 [\\/]* | ?:[\\/]*)
14158 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14162 for as_dir in $PATH
14164 IFS=$as_save_IFS
14165 test -z "$as_dir" && as_dir=.
14166 for ac_exec_ext in '' $ac_executable_extensions; do
14167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14168 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14170 break 2
14172 done
14173 done
14174 IFS=$as_save_IFS
14176 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14178 esac
14180 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14181 if test -n "$PKG_CONFIG"; then
14182 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14183 $as_echo "$PKG_CONFIG" >&6; }
14184 else
14185 { $as_echo "$as_me:$LINENO: result: no" >&5
14186 $as_echo "no" >&6; }
14191 if test "$PKG_CONFIG" = "no" ; then
14192 HAVE_FC=no
14193 else
14194 PKG_CONFIG_MIN_VERSION=0.9.0
14195 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14196 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
14197 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
14199 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
14200 { $as_echo "$as_me:$LINENO: result: yes" >&5
14201 $as_echo "yes" >&6; }
14202 succeeded=yes
14204 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
14205 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
14206 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
14207 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
14208 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
14210 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
14211 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
14212 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
14213 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
14214 $as_echo "$FONTCONFIG_LIBS" >&6; }
14215 else
14216 { $as_echo "$as_me:$LINENO: result: no" >&5
14217 $as_echo "no" >&6; }
14218 FONTCONFIG_CFLAGS=""
14219 FONTCONFIG_LIBS=""
14220 ## If we have a custom action on failure, don't print errors, but
14221 ## do set a variable so people can do so.
14222 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
14228 else
14229 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14230 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14234 if test $succeeded = yes; then
14235 HAVE_FC=yes
14236 else
14237 HAVE_FC=no
14241 ## Use -lXft if available, unless `--with-xft=no'.
14242 HAVE_XFT=maybe
14243 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14244 with_xft="no";
14246 if test "x${with_xft}" != "xno"; then
14249 succeeded=no
14251 # Extract the first word of "pkg-config", so it can be a program name with args.
14252 set dummy pkg-config; ac_word=$2
14253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14254 $as_echo_n "checking for $ac_word... " >&6; }
14255 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14256 $as_echo_n "(cached) " >&6
14257 else
14258 case $PKG_CONFIG in
14259 [\\/]* | ?:[\\/]*)
14260 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14264 for as_dir in $PATH
14266 IFS=$as_save_IFS
14267 test -z "$as_dir" && as_dir=.
14268 for ac_exec_ext in '' $ac_executable_extensions; do
14269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14270 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14272 break 2
14274 done
14275 done
14276 IFS=$as_save_IFS
14278 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14280 esac
14282 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14283 if test -n "$PKG_CONFIG"; then
14284 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14285 $as_echo "$PKG_CONFIG" >&6; }
14286 else
14287 { $as_echo "$as_me:$LINENO: result: no" >&5
14288 $as_echo "no" >&6; }
14293 if test "$PKG_CONFIG" = "no" ; then
14294 HAVE_XFT=no
14295 else
14296 PKG_CONFIG_MIN_VERSION=0.9.0
14297 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14298 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14299 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14301 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14302 { $as_echo "$as_me:$LINENO: result: yes" >&5
14303 $as_echo "yes" >&6; }
14304 succeeded=yes
14306 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14307 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14308 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14309 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14310 $as_echo "$XFT_CFLAGS" >&6; }
14312 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14313 $as_echo_n "checking XFT_LIBS... " >&6; }
14314 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14315 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14316 $as_echo "$XFT_LIBS" >&6; }
14317 else
14318 { $as_echo "$as_me:$LINENO: result: no" >&5
14319 $as_echo "no" >&6; }
14320 XFT_CFLAGS=""
14321 XFT_LIBS=""
14322 ## If we have a custom action on failure, don't print errors, but
14323 ## do set a variable so people can do so.
14324 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14330 else
14331 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14332 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14336 if test $succeeded = yes; then
14338 else
14339 HAVE_XFT=no
14342 ## Because xftfont.c uses XRenderQueryExtension, we also
14343 ## need to link to -lXrender.
14344 HAVE_XRENDER=no
14345 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14346 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14347 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14348 $as_echo_n "(cached) " >&6
14349 else
14350 ac_check_lib_save_LIBS=$LIBS
14351 LIBS="-lXrender $LIBS"
14352 cat >conftest.$ac_ext <<_ACEOF
14353 /* confdefs.h. */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14359 /* Override any GCC internal prototype to avoid an error.
14360 Use char because int might match the return type of a GCC
14361 builtin and then its argument prototype would still apply. */
14362 #ifdef __cplusplus
14363 extern "C"
14364 #endif
14365 char XRenderQueryExtension ();
14367 main ()
14369 return XRenderQueryExtension ();
14371 return 0;
14373 _ACEOF
14374 rm -f conftest.$ac_objext conftest$ac_exeext
14375 if { (ac_try="$ac_link"
14376 case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14379 esac
14380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14381 $as_echo "$ac_try_echo") >&5
14382 (eval "$ac_link") 2>conftest.er1
14383 ac_status=$?
14384 grep -v '^ *+' conftest.er1 >conftest.err
14385 rm -f conftest.er1
14386 cat conftest.err >&5
14387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } && {
14389 test -z "$ac_c_werror_flag" ||
14390 test ! -s conftest.err
14391 } && test -s conftest$ac_exeext && {
14392 test "$cross_compiling" = yes ||
14393 $as_test_x conftest$ac_exeext
14394 }; then
14395 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14396 else
14397 $as_echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14400 ac_cv_lib_Xrender_XRenderQueryExtension=no
14403 rm -rf conftest.dSYM
14404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14405 conftest$ac_exeext conftest.$ac_ext
14406 LIBS=$ac_check_lib_save_LIBS
14408 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14409 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14410 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then
14411 HAVE_XRENDER=yes
14414 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14415 OLD_CPPFLAGS="$CPPFLAGS"
14416 OLD_CFLAGS="$CFLAGS"
14417 OLD_LIBS="$LIBS"
14418 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14419 CFLAGS="$CFLAGS $XFT_CFLAGS"
14420 XFT_LIBS="-lXrender $XFT_LIBS"
14421 LIBS="$XFT_LIBS $LIBS"
14422 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14423 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14424 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14425 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14426 $as_echo_n "(cached) " >&6
14428 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14429 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14430 else
14431 # Is the header compilable?
14432 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14433 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14434 cat >conftest.$ac_ext <<_ACEOF
14435 /* confdefs.h. */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 $ac_includes_default
14441 #include <X11/Xft/Xft.h>
14442 _ACEOF
14443 rm -f conftest.$ac_objext
14444 if { (ac_try="$ac_compile"
14445 case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448 esac
14449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14450 $as_echo "$ac_try_echo") >&5
14451 (eval "$ac_compile") 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } && {
14458 test -z "$ac_c_werror_flag" ||
14459 test ! -s conftest.err
14460 } && test -s conftest.$ac_objext; then
14461 ac_header_compiler=yes
14462 else
14463 $as_echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14466 ac_header_compiler=no
14469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14471 $as_echo "$ac_header_compiler" >&6; }
14473 # Is the header present?
14474 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14475 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14476 cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h. */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 #include <X11/Xft/Xft.h>
14483 _ACEOF
14484 if { (ac_try="$ac_cpp conftest.$ac_ext"
14485 case "(($ac_try" in
14486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487 *) ac_try_echo=$ac_try;;
14488 esac
14489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14490 $as_echo "$ac_try_echo") >&5
14491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14492 ac_status=$?
14493 grep -v '^ *+' conftest.er1 >conftest.err
14494 rm -f conftest.er1
14495 cat conftest.err >&5
14496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } >/dev/null && {
14498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14499 test ! -s conftest.err
14500 }; then
14501 ac_header_preproc=yes
14502 else
14503 $as_echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 ac_header_preproc=no
14509 rm -f conftest.err conftest.$ac_ext
14510 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14511 $as_echo "$ac_header_preproc" >&6; }
14513 # So? What about this header?
14514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14515 yes:no: )
14516 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14517 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14518 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14519 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14520 ac_header_preproc=yes
14522 no:yes:* )
14523 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14524 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14525 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14526 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14527 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14528 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14529 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14530 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14531 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14532 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14533 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14534 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14537 esac
14538 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14539 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14540 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14541 $as_echo_n "(cached) " >&6
14542 else
14543 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14545 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14546 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14549 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then
14550 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14551 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14552 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14553 $as_echo_n "(cached) " >&6
14554 else
14555 ac_check_lib_save_LIBS=$LIBS
14556 LIBS="-lXft $XFT_LIBS $LIBS"
14557 cat >conftest.$ac_ext <<_ACEOF
14558 /* confdefs.h. */
14559 _ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h. */
14564 /* Override any GCC internal prototype to avoid an error.
14565 Use char because int might match the return type of a GCC
14566 builtin and then its argument prototype would still apply. */
14567 #ifdef __cplusplus
14568 extern "C"
14569 #endif
14570 char XftFontOpen ();
14572 main ()
14574 return XftFontOpen ();
14576 return 0;
14578 _ACEOF
14579 rm -f conftest.$ac_objext conftest$ac_exeext
14580 if { (ac_try="$ac_link"
14581 case "(($ac_try" in
14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583 *) ac_try_echo=$ac_try;;
14584 esac
14585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14586 $as_echo "$ac_try_echo") >&5
14587 (eval "$ac_link") 2>conftest.er1
14588 ac_status=$?
14589 grep -v '^ *+' conftest.er1 >conftest.err
14590 rm -f conftest.er1
14591 cat conftest.err >&5
14592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } && {
14594 test -z "$ac_c_werror_flag" ||
14595 test ! -s conftest.err
14596 } && test -s conftest$ac_exeext && {
14597 test "$cross_compiling" = yes ||
14598 $as_test_x conftest$ac_exeext
14599 }; then
14600 ac_cv_lib_Xft_XftFontOpen=yes
14601 else
14602 $as_echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 ac_cv_lib_Xft_XftFontOpen=no
14608 rm -rf conftest.dSYM
14609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14610 conftest$ac_exeext conftest.$ac_ext
14611 LIBS=$ac_check_lib_save_LIBS
14613 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14614 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14615 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then
14616 HAVE_XFT=yes
14623 if test "${HAVE_XFT}" = "yes"; then
14625 cat >>confdefs.h <<\_ACEOF
14626 #define HAVE_XFT 1
14627 _ACEOF
14630 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14631 else
14632 CPPFLAGS="$OLD_CPPFLAGS"
14633 CFLAGS="$OLD_CFLAGS"
14634 LIBS="$OLD_LIBS"
14635 fi # "${HAVE_XFT}" = "yes"
14636 fi # "$HAVE_XFT" != no
14637 fi # "x${with_xft}" != "xno"
14639 if test "$HAVE_XFT" != "yes"; then
14640 HAVE_XFT=no
14644 HAVE_FREETYPE=no
14645 ## We used to allow building with FreeType and without Xft.
14646 ## However, the ftx font backend driver is not in good shape.
14647 if test "${HAVE_XFT}" = "yes"; then
14648 HAVE_FREETYPE=yes
14649 FONTCONFIG_CFLAGS=
14650 FONTCONFIG_LIBS=
14653 HAVE_LIBOTF=no
14654 if test "${HAVE_FREETYPE}" = "yes"; then
14656 cat >>confdefs.h <<\_ACEOF
14657 #define HAVE_FREETYPE 1
14658 _ACEOF
14660 if test "${with_libotf}" != "no"; then
14662 succeeded=no
14664 # Extract the first word of "pkg-config", so it can be a program name with args.
14665 set dummy pkg-config; ac_word=$2
14666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14667 $as_echo_n "checking for $ac_word... " >&6; }
14668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14669 $as_echo_n "(cached) " >&6
14670 else
14671 case $PKG_CONFIG in
14672 [\\/]* | ?:[\\/]*)
14673 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14677 for as_dir in $PATH
14679 IFS=$as_save_IFS
14680 test -z "$as_dir" && as_dir=.
14681 for ac_exec_ext in '' $ac_executable_extensions; do
14682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14683 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14685 break 2
14687 done
14688 done
14689 IFS=$as_save_IFS
14691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14693 esac
14695 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14696 if test -n "$PKG_CONFIG"; then
14697 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14698 $as_echo "$PKG_CONFIG" >&6; }
14699 else
14700 { $as_echo "$as_me:$LINENO: result: no" >&5
14701 $as_echo "no" >&6; }
14706 if test "$PKG_CONFIG" = "no" ; then
14707 HAVE_LIBOTF=no
14708 else
14709 PKG_CONFIG_MIN_VERSION=0.9.0
14710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14711 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14712 $as_echo_n "checking for libotf... " >&6; }
14714 if $PKG_CONFIG --exists "libotf" 2>&5; then
14715 { $as_echo "$as_me:$LINENO: result: yes" >&5
14716 $as_echo "yes" >&6; }
14717 succeeded=yes
14719 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14720 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14721 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14722 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14723 $as_echo "$LIBOTF_CFLAGS" >&6; }
14725 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14726 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14727 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14728 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14729 $as_echo "$LIBOTF_LIBS" >&6; }
14730 else
14731 { $as_echo "$as_me:$LINENO: result: no" >&5
14732 $as_echo "no" >&6; }
14733 LIBOTF_CFLAGS=""
14734 LIBOTF_LIBS=""
14735 ## If we have a custom action on failure, don't print errors, but
14736 ## do set a variable so people can do so.
14737 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14743 else
14744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14749 if test $succeeded = yes; then
14750 HAVE_LIBOTF=yes
14751 else
14752 HAVE_LIBOTF=no
14755 if test "$HAVE_LIBOTF" = "yes"; then
14757 cat >>confdefs.h <<\_ACEOF
14758 #define HAVE_LIBOTF 1
14759 _ACEOF
14761 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14762 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14763 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14764 $as_echo_n "(cached) " >&6
14765 else
14766 ac_check_lib_save_LIBS=$LIBS
14767 LIBS="-lotf $LIBS"
14768 cat >conftest.$ac_ext <<_ACEOF
14769 /* confdefs.h. */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14775 /* Override any GCC internal prototype to avoid an error.
14776 Use char because int might match the return type of a GCC
14777 builtin and then its argument prototype would still apply. */
14778 #ifdef __cplusplus
14779 extern "C"
14780 #endif
14781 char OTF_get_variation_glyphs ();
14783 main ()
14785 return OTF_get_variation_glyphs ();
14787 return 0;
14789 _ACEOF
14790 rm -f conftest.$ac_objext conftest$ac_exeext
14791 if { (ac_try="$ac_link"
14792 case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14795 esac
14796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14797 $as_echo "$ac_try_echo") >&5
14798 (eval "$ac_link") 2>conftest.er1
14799 ac_status=$?
14800 grep -v '^ *+' conftest.er1 >conftest.err
14801 rm -f conftest.er1
14802 cat conftest.err >&5
14803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } && {
14805 test -z "$ac_c_werror_flag" ||
14806 test ! -s conftest.err
14807 } && test -s conftest$ac_exeext && {
14808 test "$cross_compiling" = yes ||
14809 $as_test_x conftest$ac_exeext
14810 }; then
14811 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14812 else
14813 $as_echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14819 rm -rf conftest.dSYM
14820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14821 conftest$ac_exeext conftest.$ac_ext
14822 LIBS=$ac_check_lib_save_LIBS
14824 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14825 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14826 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then
14827 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14828 else
14829 HAVE_OTF_GET_VARIATION_GLYPHS=no
14832 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14834 cat >>confdefs.h <<\_ACEOF
14835 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14836 _ACEOF
14843 HAVE_M17N_FLT=no
14844 if test "${HAVE_LIBOTF}" = yes; then
14845 if test "${with_m17n_flt}" != "no"; then
14847 succeeded=no
14849 # Extract the first word of "pkg-config", so it can be a program name with args.
14850 set dummy pkg-config; ac_word=$2
14851 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14852 $as_echo_n "checking for $ac_word... " >&6; }
14853 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14854 $as_echo_n "(cached) " >&6
14855 else
14856 case $PKG_CONFIG in
14857 [\\/]* | ?:[\\/]*)
14858 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14862 for as_dir in $PATH
14864 IFS=$as_save_IFS
14865 test -z "$as_dir" && as_dir=.
14866 for ac_exec_ext in '' $ac_executable_extensions; do
14867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14868 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14870 break 2
14872 done
14873 done
14874 IFS=$as_save_IFS
14876 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14878 esac
14880 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14881 if test -n "$PKG_CONFIG"; then
14882 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14883 $as_echo "$PKG_CONFIG" >&6; }
14884 else
14885 { $as_echo "$as_me:$LINENO: result: no" >&5
14886 $as_echo "no" >&6; }
14891 if test "$PKG_CONFIG" = "no" ; then
14892 HAVE_M17N_FLT=no
14893 else
14894 PKG_CONFIG_MIN_VERSION=0.9.0
14895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14896 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14897 $as_echo_n "checking for m17n-flt... " >&6; }
14899 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14900 { $as_echo "$as_me:$LINENO: result: yes" >&5
14901 $as_echo "yes" >&6; }
14902 succeeded=yes
14904 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14905 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14906 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14907 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14908 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14910 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14911 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14912 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14913 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14914 $as_echo "$M17N_FLT_LIBS" >&6; }
14915 else
14916 { $as_echo "$as_me:$LINENO: result: no" >&5
14917 $as_echo "no" >&6; }
14918 M17N_FLT_CFLAGS=""
14919 M17N_FLT_LIBS=""
14920 ## If we have a custom action on failure, don't print errors, but
14921 ## do set a variable so people can do so.
14922 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14928 else
14929 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14930 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14934 if test $succeeded = yes; then
14935 HAVE_M17N_FLT=yes
14936 else
14937 HAVE_M17N_FLT=no
14940 if test "$HAVE_M17N_FLT" = "yes"; then
14942 cat >>confdefs.h <<\_ACEOF
14943 #define HAVE_M17N_FLT 1
14944 _ACEOF
14949 else
14950 HAVE_XFT=no
14951 HAVE_FREETYPE=no
14952 HAVE_LIBOTF=no
14953 HAVE_M17N_FLT=no
14956 FONT_OBJ=xfont.o
14957 if test "$HAVE_XFT" = "yes"; then
14958 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14959 elif test "$HAVE_FREETYPE" = "yes"; then
14960 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14964 ### End of font-backend (under X11) section.
14975 ### Use -lXpm if available, unless `--with-xpm=no'.
14976 HAVE_XPM=no
14977 LIBXPM=
14978 if test "${HAVE_X11}" = "yes"; then
14979 if test "${with_xpm}" != "no"; then
14980 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14981 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14982 $as_echo_n "checking for X11/xpm.h... " >&6; }
14983 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14984 $as_echo_n "(cached) " >&6
14986 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14987 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14988 else
14989 # Is the header compilable?
14990 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14991 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14992 cat >conftest.$ac_ext <<_ACEOF
14993 /* confdefs.h. */
14994 _ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h. */
14998 $ac_includes_default
14999 #include <X11/xpm.h>
15000 _ACEOF
15001 rm -f conftest.$ac_objext
15002 if { (ac_try="$ac_compile"
15003 case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15006 esac
15007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15008 $as_echo "$ac_try_echo") >&5
15009 (eval "$ac_compile") 2>conftest.er1
15010 ac_status=$?
15011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
15014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } && {
15016 test -z "$ac_c_werror_flag" ||
15017 test ! -s conftest.err
15018 } && test -s conftest.$ac_objext; then
15019 ac_header_compiler=yes
15020 else
15021 $as_echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15024 ac_header_compiler=no
15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15029 $as_echo "$ac_header_compiler" >&6; }
15031 # Is the header present?
15032 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
15033 $as_echo_n "checking X11/xpm.h presence... " >&6; }
15034 cat >conftest.$ac_ext <<_ACEOF
15035 /* confdefs.h. */
15036 _ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 #include <X11/xpm.h>
15041 _ACEOF
15042 if { (ac_try="$ac_cpp conftest.$ac_ext"
15043 case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15046 esac
15047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15048 $as_echo "$ac_try_echo") >&5
15049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15050 ac_status=$?
15051 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1
15053 cat conftest.err >&5
15054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } >/dev/null && {
15056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15057 test ! -s conftest.err
15058 }; then
15059 ac_header_preproc=yes
15060 else
15061 $as_echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 ac_header_preproc=no
15067 rm -f conftest.err conftest.$ac_ext
15068 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15069 $as_echo "$ac_header_preproc" >&6; }
15071 # So? What about this header?
15072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15073 yes:no: )
15074 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15075 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15076 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
15077 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
15078 ac_header_preproc=yes
15080 no:yes:* )
15081 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
15082 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
15083 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
15084 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
15085 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
15086 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
15087 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
15088 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15089 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15090 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15091 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
15092 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
15095 esac
15096 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15097 $as_echo_n "checking for X11/xpm.h... " >&6; }
15098 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15099 $as_echo_n "(cached) " >&6
15100 else
15101 ac_cv_header_X11_xpm_h=$ac_header_preproc
15103 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15104 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
15107 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then
15108 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
15109 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
15110 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
15111 $as_echo_n "(cached) " >&6
15112 else
15113 ac_check_lib_save_LIBS=$LIBS
15114 LIBS="-lXpm -lX11 $LIBS"
15115 cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h. */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15122 /* Override any GCC internal prototype to avoid an error.
15123 Use char because int might match the return type of a GCC
15124 builtin and then its argument prototype would still apply. */
15125 #ifdef __cplusplus
15126 extern "C"
15127 #endif
15128 char XpmReadFileToPixmap ();
15130 main ()
15132 return XpmReadFileToPixmap ();
15134 return 0;
15136 _ACEOF
15137 rm -f conftest.$ac_objext conftest$ac_exeext
15138 if { (ac_try="$ac_link"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142 esac
15143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15144 $as_echo "$ac_try_echo") >&5
15145 (eval "$ac_link") 2>conftest.er1
15146 ac_status=$?
15147 grep -v '^ *+' conftest.er1 >conftest.err
15148 rm -f conftest.er1
15149 cat conftest.err >&5
15150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest$ac_exeext && {
15155 test "$cross_compiling" = yes ||
15156 $as_test_x conftest$ac_exeext
15157 }; then
15158 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
15159 else
15160 $as_echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
15166 rm -rf conftest.dSYM
15167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15168 conftest$ac_exeext conftest.$ac_ext
15169 LIBS=$ac_check_lib_save_LIBS
15171 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
15172 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
15173 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then
15174 HAVE_XPM=yes
15180 if test "${HAVE_XPM}" = "yes"; then
15181 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
15182 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
15183 cat >conftest.$ac_ext <<_ACEOF
15184 /* confdefs.h. */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 #include "X11/xpm.h"
15190 #ifndef XpmReturnAllocPixels
15191 no_return_alloc_pixels
15192 #endif
15194 _ACEOF
15195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15196 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
15197 HAVE_XPM=no
15198 else
15199 HAVE_XPM=yes
15201 rm -f conftest*
15204 if test "${HAVE_XPM}" = "yes"; then
15205 { $as_echo "$as_me:$LINENO: result: yes" >&5
15206 $as_echo "yes" >&6; }
15207 else
15208 { $as_echo "$as_me:$LINENO: result: no" >&5
15209 $as_echo "no" >&6; }
15214 if test "${HAVE_XPM}" = "yes"; then
15216 cat >>confdefs.h <<\_ACEOF
15217 #define HAVE_XPM 1
15218 _ACEOF
15220 LIBXPM=-lXpm
15225 ### Use -ljpeg if available, unless `--with-jpeg=no'.
15226 HAVE_JPEG=no
15227 LIBJPEG=
15228 if test "${HAVE_X11}" = "yes"; then
15229 if test "${with_jpeg}" != "no"; then
15230 if test "${ac_cv_header_jerror_h+set}" = set; then
15231 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15232 $as_echo_n "checking for jerror.h... " >&6; }
15233 if test "${ac_cv_header_jerror_h+set}" = set; then
15234 $as_echo_n "(cached) " >&6
15236 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15237 $as_echo "$ac_cv_header_jerror_h" >&6; }
15238 else
15239 # Is the header compilable?
15240 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
15241 $as_echo_n "checking jerror.h usability... " >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h. */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 $ac_includes_default
15249 #include <jerror.h>
15250 _ACEOF
15251 rm -f conftest.$ac_objext
15252 if { (ac_try="$ac_compile"
15253 case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15256 esac
15257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15258 $as_echo "$ac_try_echo") >&5
15259 (eval "$ac_compile") 2>conftest.er1
15260 ac_status=$?
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest.$ac_objext; then
15269 ac_header_compiler=yes
15270 else
15271 $as_echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_header_compiler=no
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15279 $as_echo "$ac_header_compiler" >&6; }
15281 # Is the header present?
15282 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15283 $as_echo_n "checking jerror.h presence... " >&6; }
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h. */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <jerror.h>
15291 _ACEOF
15292 if { (ac_try="$ac_cpp conftest.$ac_ext"
15293 case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15296 esac
15297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15298 $as_echo "$ac_try_echo") >&5
15299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15300 ac_status=$?
15301 grep -v '^ *+' conftest.er1 >conftest.err
15302 rm -f conftest.er1
15303 cat conftest.err >&5
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } >/dev/null && {
15306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15307 test ! -s conftest.err
15308 }; then
15309 ac_header_preproc=yes
15310 else
15311 $as_echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 ac_header_preproc=no
15317 rm -f conftest.err conftest.$ac_ext
15318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319 $as_echo "$ac_header_preproc" >&6; }
15321 # So? What about this header?
15322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15323 yes:no: )
15324 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15325 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15327 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15328 ac_header_preproc=yes
15330 no:yes:* )
15331 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15332 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15333 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15334 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15335 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15336 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15337 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15338 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15340 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15342 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15345 esac
15346 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15347 $as_echo_n "checking for jerror.h... " >&6; }
15348 if test "${ac_cv_header_jerror_h+set}" = set; then
15349 $as_echo_n "(cached) " >&6
15350 else
15351 ac_cv_header_jerror_h=$ac_header_preproc
15353 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15354 $as_echo "$ac_cv_header_jerror_h" >&6; }
15357 if test "x$ac_cv_header_jerror_h" = x""yes; then
15358 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15359 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15360 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15361 $as_echo_n "(cached) " >&6
15362 else
15363 ac_check_lib_save_LIBS=$LIBS
15364 LIBS="-ljpeg $LIBS"
15365 cat >conftest.$ac_ext <<_ACEOF
15366 /* confdefs.h. */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15372 /* Override any GCC internal prototype to avoid an error.
15373 Use char because int might match the return type of a GCC
15374 builtin and then its argument prototype would still apply. */
15375 #ifdef __cplusplus
15376 extern "C"
15377 #endif
15378 char jpeg_destroy_compress ();
15380 main ()
15382 return jpeg_destroy_compress ();
15384 return 0;
15386 _ACEOF
15387 rm -f conftest.$ac_objext conftest$ac_exeext
15388 if { (ac_try="$ac_link"
15389 case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15392 esac
15393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15394 $as_echo "$ac_try_echo") >&5
15395 (eval "$ac_link") 2>conftest.er1
15396 ac_status=$?
15397 grep -v '^ *+' conftest.er1 >conftest.err
15398 rm -f conftest.er1
15399 cat conftest.err >&5
15400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } && {
15402 test -z "$ac_c_werror_flag" ||
15403 test ! -s conftest.err
15404 } && test -s conftest$ac_exeext && {
15405 test "$cross_compiling" = yes ||
15406 $as_test_x conftest$ac_exeext
15407 }; then
15408 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15409 else
15410 $as_echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15416 rm -rf conftest.dSYM
15417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15418 conftest$ac_exeext conftest.$ac_ext
15419 LIBS=$ac_check_lib_save_LIBS
15421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15422 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15423 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then
15424 HAVE_JPEG=yes
15433 if test "${HAVE_JPEG}" = "yes"; then
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_JPEG 1
15436 _ACEOF
15438 cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h. */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15444 #include <jpeglib.h>
15445 version=JPEG_LIB_VERSION
15447 _ACEOF
15448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15449 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15450 cat >>confdefs.h <<\_ACEOF
15451 #define HAVE_JPEG 1
15452 _ACEOF
15454 else
15455 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15456 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15457 HAVE_JPEG=no
15459 rm -f conftest*
15462 if test "${HAVE_JPEG}" = "yes"; then
15463 LIBJPEG=-ljpeg
15468 ### Use -lpng if available, unless `--with-png=no'.
15469 HAVE_PNG=no
15470 LIBPNG=
15471 if test "${HAVE_X11}" = "yes"; then
15472 if test "${with_png}" != "no"; then
15473 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15474 # in /usr/include/libpng.
15477 for ac_header in png.h libpng/png.h
15479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15481 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15482 $as_echo_n "checking for $ac_header... " >&6; }
15483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15484 $as_echo_n "(cached) " >&6
15486 ac_res=`eval 'as_val=${'$as_ac_Header'}
15487 $as_echo "$as_val"'`
15488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15489 $as_echo "$ac_res" >&6; }
15490 else
15491 # Is the header compilable?
15492 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15493 $as_echo_n "checking $ac_header usability... " >&6; }
15494 cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h. */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 $ac_includes_default
15501 #include <$ac_header>
15502 _ACEOF
15503 rm -f conftest.$ac_objext
15504 if { (ac_try="$ac_compile"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15508 esac
15509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15510 $as_echo "$ac_try_echo") >&5
15511 (eval "$ac_compile") 2>conftest.er1
15512 ac_status=$?
15513 grep -v '^ *+' conftest.er1 >conftest.err
15514 rm -f conftest.er1
15515 cat conftest.err >&5
15516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest.$ac_objext; then
15521 ac_header_compiler=yes
15522 else
15523 $as_echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_header_compiler=no
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15531 $as_echo "$ac_header_compiler" >&6; }
15533 # Is the header present?
15534 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15535 $as_echo_n "checking $ac_header presence... " >&6; }
15536 cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h. */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 #include <$ac_header>
15543 _ACEOF
15544 if { (ac_try="$ac_cpp conftest.$ac_ext"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548 esac
15549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15550 $as_echo "$ac_try_echo") >&5
15551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15552 ac_status=$?
15553 grep -v '^ *+' conftest.er1 >conftest.err
15554 rm -f conftest.er1
15555 cat conftest.err >&5
15556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } >/dev/null && {
15558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15559 test ! -s conftest.err
15560 }; then
15561 ac_header_preproc=yes
15562 else
15563 $as_echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 ac_header_preproc=no
15569 rm -f conftest.err conftest.$ac_ext
15570 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15571 $as_echo "$ac_header_preproc" >&6; }
15573 # So? What about this header?
15574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15575 yes:no: )
15576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15577 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15579 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15580 ac_header_preproc=yes
15582 no:yes:* )
15583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15584 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15586 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15588 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15590 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15592 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15594 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15597 esac
15598 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15599 $as_echo_n "checking for $ac_header... " >&6; }
15600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601 $as_echo_n "(cached) " >&6
15602 else
15603 eval "$as_ac_Header=\$ac_header_preproc"
15605 ac_res=`eval 'as_val=${'$as_ac_Header'}
15606 $as_echo "$as_val"'`
15607 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15608 $as_echo "$ac_res" >&6; }
15611 as_val=`eval 'as_val=${'$as_ac_Header'}
15612 $as_echo "$as_val"'`
15613 if test "x$as_val" = x""yes; then
15614 cat >>confdefs.h <<_ACEOF
15615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15616 _ACEOF
15620 done
15622 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15623 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15624 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15625 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15626 $as_echo_n "(cached) " >&6
15627 else
15628 ac_check_lib_save_LIBS=$LIBS
15629 LIBS="-lpng -lz -lm $LIBS"
15630 cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h. */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15637 /* Override any GCC internal prototype to avoid an error.
15638 Use char because int might match the return type of a GCC
15639 builtin and then its argument prototype would still apply. */
15640 #ifdef __cplusplus
15641 extern "C"
15642 #endif
15643 char png_get_channels ();
15645 main ()
15647 return png_get_channels ();
15649 return 0;
15651 _ACEOF
15652 rm -f conftest.$ac_objext conftest$ac_exeext
15653 if { (ac_try="$ac_link"
15654 case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15657 esac
15658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15659 $as_echo "$ac_try_echo") >&5
15660 (eval "$ac_link") 2>conftest.er1
15661 ac_status=$?
15662 grep -v '^ *+' conftest.er1 >conftest.err
15663 rm -f conftest.er1
15664 cat conftest.err >&5
15665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } && {
15667 test -z "$ac_c_werror_flag" ||
15668 test ! -s conftest.err
15669 } && test -s conftest$ac_exeext && {
15670 test "$cross_compiling" = yes ||
15671 $as_test_x conftest$ac_exeext
15672 }; then
15673 ac_cv_lib_png_png_get_channels=yes
15674 else
15675 $as_echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 ac_cv_lib_png_png_get_channels=no
15681 rm -rf conftest.dSYM
15682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15683 conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15686 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15687 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15688 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then
15689 HAVE_PNG=yes
15695 if test "${HAVE_PNG}" = "yes"; then
15697 cat >>confdefs.h <<\_ACEOF
15698 #define HAVE_PNG 1
15699 _ACEOF
15701 LIBPNG="-lpng -lz -lm"
15706 ### Use -ltiff if available, unless `--with-tiff=no'.
15707 HAVE_TIFF=no
15708 LIBTIFF=
15709 if test "${HAVE_X11}" = "yes"; then
15710 if test "${with_tiff}" != "no"; then
15711 if test "${ac_cv_header_tiffio_h+set}" = set; then
15712 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15713 $as_echo_n "checking for tiffio.h... " >&6; }
15714 if test "${ac_cv_header_tiffio_h+set}" = set; then
15715 $as_echo_n "(cached) " >&6
15717 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15718 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15719 else
15720 # Is the header compilable?
15721 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15722 $as_echo_n "checking tiffio.h usability... " >&6; }
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 $ac_includes_default
15730 #include <tiffio.h>
15731 _ACEOF
15732 rm -f conftest.$ac_objext
15733 if { (ac_try="$ac_compile"
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_compile") 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); } && {
15747 test -z "$ac_c_werror_flag" ||
15748 test ! -s conftest.err
15749 } && test -s conftest.$ac_objext; then
15750 ac_header_compiler=yes
15751 else
15752 $as_echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ac_header_compiler=no
15758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15760 $as_echo "$ac_header_compiler" >&6; }
15762 # Is the header present?
15763 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15764 $as_echo_n "checking tiffio.h presence... " >&6; }
15765 cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h. */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 #include <tiffio.h>
15772 _ACEOF
15773 if { (ac_try="$ac_cpp conftest.$ac_ext"
15774 case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15777 esac
15778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15779 $as_echo "$ac_try_echo") >&5
15780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15781 ac_status=$?
15782 grep -v '^ *+' conftest.er1 >conftest.err
15783 rm -f conftest.er1
15784 cat conftest.err >&5
15785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } >/dev/null && {
15787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15788 test ! -s conftest.err
15789 }; then
15790 ac_header_preproc=yes
15791 else
15792 $as_echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15795 ac_header_preproc=no
15798 rm -f conftest.err conftest.$ac_ext
15799 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15800 $as_echo "$ac_header_preproc" >&6; }
15802 # So? What about this header?
15803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15804 yes:no: )
15805 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15806 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15807 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15808 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15809 ac_header_preproc=yes
15811 no:yes:* )
15812 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15813 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15814 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15815 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15816 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15817 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15818 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15819 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15820 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15821 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15822 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15823 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15826 esac
15827 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15828 $as_echo_n "checking for tiffio.h... " >&6; }
15829 if test "${ac_cv_header_tiffio_h+set}" = set; then
15830 $as_echo_n "(cached) " >&6
15831 else
15832 ac_cv_header_tiffio_h=$ac_header_preproc
15834 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15835 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15838 if test "x$ac_cv_header_tiffio_h" = x""yes; then
15839 tifflibs="-lz -lm"
15840 # At least one tiff package requires the jpeg library.
15841 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15842 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15843 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15844 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15845 $as_echo_n "(cached) " >&6
15846 else
15847 ac_check_lib_save_LIBS=$LIBS
15848 LIBS="-ltiff $tifflibs $LIBS"
15849 cat >conftest.$ac_ext <<_ACEOF
15850 /* confdefs.h. */
15851 _ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15856 /* Override any GCC internal prototype to avoid an error.
15857 Use char because int might match the return type of a GCC
15858 builtin and then its argument prototype would still apply. */
15859 #ifdef __cplusplus
15860 extern "C"
15861 #endif
15862 char TIFFGetVersion ();
15864 main ()
15866 return TIFFGetVersion ();
15868 return 0;
15870 _ACEOF
15871 rm -f conftest.$ac_objext conftest$ac_exeext
15872 if { (ac_try="$ac_link"
15873 case "(($ac_try" in
15874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875 *) ac_try_echo=$ac_try;;
15876 esac
15877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15878 $as_echo "$ac_try_echo") >&5
15879 (eval "$ac_link") 2>conftest.er1
15880 ac_status=$?
15881 grep -v '^ *+' conftest.er1 >conftest.err
15882 rm -f conftest.er1
15883 cat conftest.err >&5
15884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } && {
15886 test -z "$ac_c_werror_flag" ||
15887 test ! -s conftest.err
15888 } && test -s conftest$ac_exeext && {
15889 test "$cross_compiling" = yes ||
15890 $as_test_x conftest$ac_exeext
15891 }; then
15892 ac_cv_lib_tiff_TIFFGetVersion=yes
15893 else
15894 $as_echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 ac_cv_lib_tiff_TIFFGetVersion=no
15900 rm -rf conftest.dSYM
15901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15902 conftest$ac_exeext conftest.$ac_ext
15903 LIBS=$ac_check_lib_save_LIBS
15905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15906 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15907 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then
15908 HAVE_TIFF=yes
15916 if test "${HAVE_TIFF}" = "yes"; then
15918 cat >>confdefs.h <<\_ACEOF
15919 #define HAVE_TIFF 1
15920 _ACEOF
15922 LIBTIFF=-ltiff
15927 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15928 HAVE_GIF=no
15929 LIBGIF=
15930 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15931 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15932 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15933 $as_echo_n "checking for gif_lib.h... " >&6; }
15934 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15935 $as_echo_n "(cached) " >&6
15937 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15938 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15939 else
15940 # Is the header compilable?
15941 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15942 $as_echo_n "checking gif_lib.h usability... " >&6; }
15943 cat >conftest.$ac_ext <<_ACEOF
15944 /* confdefs.h. */
15945 _ACEOF
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h. */
15949 $ac_includes_default
15950 #include <gif_lib.h>
15951 _ACEOF
15952 rm -f conftest.$ac_objext
15953 if { (ac_try="$ac_compile"
15954 case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15957 esac
15958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15959 $as_echo "$ac_try_echo") >&5
15960 (eval "$ac_compile") 2>conftest.er1
15961 ac_status=$?
15962 grep -v '^ *+' conftest.er1 >conftest.err
15963 rm -f conftest.er1
15964 cat conftest.err >&5
15965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } && {
15967 test -z "$ac_c_werror_flag" ||
15968 test ! -s conftest.err
15969 } && test -s conftest.$ac_objext; then
15970 ac_header_compiler=yes
15971 else
15972 $as_echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 ac_header_compiler=no
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15980 $as_echo "$ac_header_compiler" >&6; }
15982 # Is the header present?
15983 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15984 $as_echo_n "checking gif_lib.h presence... " >&6; }
15985 cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h. */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15991 #include <gif_lib.h>
15992 _ACEOF
15993 if { (ac_try="$ac_cpp conftest.$ac_ext"
15994 case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15997 esac
15998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15999 $as_echo "$ac_try_echo") >&5
16000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } >/dev/null && {
16007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16008 test ! -s conftest.err
16009 }; then
16010 ac_header_preproc=yes
16011 else
16012 $as_echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 ac_header_preproc=no
16018 rm -f conftest.err conftest.$ac_ext
16019 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16020 $as_echo "$ac_header_preproc" >&6; }
16022 # So? What about this header?
16023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16024 yes:no: )
16025 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16026 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16027 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
16028 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
16029 ac_header_preproc=yes
16031 no:yes:* )
16032 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
16033 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
16034 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
16035 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
16036 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
16037 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
16038 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
16039 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16040 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
16041 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
16042 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
16043 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
16046 esac
16047 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
16048 $as_echo_n "checking for gif_lib.h... " >&6; }
16049 if test "${ac_cv_header_gif_lib_h+set}" = set; then
16050 $as_echo_n "(cached) " >&6
16051 else
16052 ac_cv_header_gif_lib_h=$ac_header_preproc
16054 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
16055 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
16058 if test "x$ac_cv_header_gif_lib_h" = x""yes; then
16059 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
16060 # Earlier versions can crash Emacs.
16061 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
16062 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
16063 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
16064 $as_echo_n "(cached) " >&6
16065 else
16066 ac_check_lib_save_LIBS=$LIBS
16067 LIBS="-lgif $LIBS"
16068 cat >conftest.$ac_ext <<_ACEOF
16069 /* confdefs.h. */
16070 _ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16075 /* Override any GCC internal prototype to avoid an error.
16076 Use char because int might match the return type of a GCC
16077 builtin and then its argument prototype would still apply. */
16078 #ifdef __cplusplus
16079 extern "C"
16080 #endif
16081 char EGifPutExtensionLast ();
16083 main ()
16085 return EGifPutExtensionLast ();
16087 return 0;
16089 _ACEOF
16090 rm -f conftest.$ac_objext conftest$ac_exeext
16091 if { (ac_try="$ac_link"
16092 case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16095 esac
16096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16097 $as_echo "$ac_try_echo") >&5
16098 (eval "$ac_link") 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
16103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } && {
16105 test -z "$ac_c_werror_flag" ||
16106 test ! -s conftest.err
16107 } && test -s conftest$ac_exeext && {
16108 test "$cross_compiling" = yes ||
16109 $as_test_x conftest$ac_exeext
16110 }; then
16111 ac_cv_lib_gif_EGifPutExtensionLast=yes
16112 else
16113 $as_echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 ac_cv_lib_gif_EGifPutExtensionLast=no
16119 rm -rf conftest.dSYM
16120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16121 conftest$ac_exeext conftest.$ac_ext
16122 LIBS=$ac_check_lib_save_LIBS
16124 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
16125 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
16126 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then
16127 HAVE_GIF=yes
16128 else
16129 HAVE_GIF=maybe
16136 if test "$HAVE_GIF" = yes; then
16137 LIBGIF=-lgif
16138 elif test "$HAVE_GIF" = maybe; then
16139 # If gif_lib.h but no libgif, try libungif.
16140 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
16141 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
16142 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
16143 $as_echo_n "(cached) " >&6
16144 else
16145 ac_check_lib_save_LIBS=$LIBS
16146 LIBS="-lungif $LIBS"
16147 cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h. */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16154 /* Override any GCC internal prototype to avoid an error.
16155 Use char because int might match the return type of a GCC
16156 builtin and then its argument prototype would still apply. */
16157 #ifdef __cplusplus
16158 extern "C"
16159 #endif
16160 char EGifPutExtensionLast ();
16162 main ()
16164 return EGifPutExtensionLast ();
16166 return 0;
16168 _ACEOF
16169 rm -f conftest.$ac_objext conftest$ac_exeext
16170 if { (ac_try="$ac_link"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16174 esac
16175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16176 $as_echo "$ac_try_echo") >&5
16177 (eval "$ac_link") 2>conftest.er1
16178 ac_status=$?
16179 grep -v '^ *+' conftest.er1 >conftest.err
16180 rm -f conftest.er1
16181 cat conftest.err >&5
16182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); } && {
16184 test -z "$ac_c_werror_flag" ||
16185 test ! -s conftest.err
16186 } && test -s conftest$ac_exeext && {
16187 test "$cross_compiling" = yes ||
16188 $as_test_x conftest$ac_exeext
16189 }; then
16190 ac_cv_lib_ungif_EGifPutExtensionLast=yes
16191 else
16192 $as_echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16195 ac_cv_lib_ungif_EGifPutExtensionLast=no
16198 rm -rf conftest.dSYM
16199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16200 conftest$ac_exeext conftest.$ac_ext
16201 LIBS=$ac_check_lib_save_LIBS
16203 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
16204 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
16205 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then
16206 HAVE_GIF=yes
16207 else
16208 HAVE_GIF=no
16211 test "$HAVE_GIF" = yes && LIBGIF=-lungif
16214 if test "${HAVE_GIF}" = "yes"; then
16216 cat >>confdefs.h <<\_ACEOF
16217 #define HAVE_GIF 1
16218 _ACEOF
16224 if test "${HAVE_X11}" = "yes"; then
16225 MISSING=""
16226 WITH_NO=""
16227 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
16228 MISSING="libXpm" && WITH_NO="--with-xpm=no"
16229 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
16230 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
16231 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
16232 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
16233 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
16234 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
16235 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
16236 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
16238 if test "X${MISSING}" != X; then
16239 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
16240 $MISSING
16241 Maybe some development libraries/packages are missing?
16242 If you don't want to link with them give
16243 $WITH_NO
16244 as options to configure" >&5
16245 $as_echo "$as_me: error: The following required libraries were not found:
16246 $MISSING
16247 Maybe some development libraries/packages are missing?
16248 If you don't want to link with them give
16249 $WITH_NO
16250 as options to configure" >&2;}
16251 { (exit 1); exit 1; }; }
16255 ### Use -lgpm if available, unless `--with-gpm=no'.
16256 HAVE_GPM=no
16257 LIBGPM=
16258 GPM_MOUSE_SUPPORT=
16259 if test "${with_gpm}" != "no"; then
16260 if test "${ac_cv_header_gpm_h+set}" = set; then
16261 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16262 $as_echo_n "checking for gpm.h... " >&6; }
16263 if test "${ac_cv_header_gpm_h+set}" = set; then
16264 $as_echo_n "(cached) " >&6
16266 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16267 $as_echo "$ac_cv_header_gpm_h" >&6; }
16268 else
16269 # Is the header compilable?
16270 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16271 $as_echo_n "checking gpm.h usability... " >&6; }
16272 cat >conftest.$ac_ext <<_ACEOF
16273 /* confdefs.h. */
16274 _ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h. */
16278 $ac_includes_default
16279 #include <gpm.h>
16280 _ACEOF
16281 rm -f conftest.$ac_objext
16282 if { (ac_try="$ac_compile"
16283 case "(($ac_try" in
16284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16286 esac
16287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16288 $as_echo "$ac_try_echo") >&5
16289 (eval "$ac_compile") 2>conftest.er1
16290 ac_status=$?
16291 grep -v '^ *+' conftest.er1 >conftest.err
16292 rm -f conftest.er1
16293 cat conftest.err >&5
16294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } && {
16296 test -z "$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16298 } && test -s conftest.$ac_objext; then
16299 ac_header_compiler=yes
16300 else
16301 $as_echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304 ac_header_compiler=no
16307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16309 $as_echo "$ac_header_compiler" >&6; }
16311 # Is the header present?
16312 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16313 $as_echo_n "checking gpm.h presence... " >&6; }
16314 cat >conftest.$ac_ext <<_ACEOF
16315 /* confdefs.h. */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16320 #include <gpm.h>
16321 _ACEOF
16322 if { (ac_try="$ac_cpp conftest.$ac_ext"
16323 case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16326 esac
16327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16328 $as_echo "$ac_try_echo") >&5
16329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16330 ac_status=$?
16331 grep -v '^ *+' conftest.er1 >conftest.err
16332 rm -f conftest.er1
16333 cat conftest.err >&5
16334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } >/dev/null && {
16336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16337 test ! -s conftest.err
16338 }; then
16339 ac_header_preproc=yes
16340 else
16341 $as_echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16344 ac_header_preproc=no
16347 rm -f conftest.err conftest.$ac_ext
16348 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16349 $as_echo "$ac_header_preproc" >&6; }
16351 # So? What about this header?
16352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16353 yes:no: )
16354 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16355 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16356 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16357 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16358 ac_header_preproc=yes
16360 no:yes:* )
16361 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16362 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16363 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16364 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16365 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16366 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16367 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16368 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16369 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16370 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16371 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16372 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16375 esac
16376 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16377 $as_echo_n "checking for gpm.h... " >&6; }
16378 if test "${ac_cv_header_gpm_h+set}" = set; then
16379 $as_echo_n "(cached) " >&6
16380 else
16381 ac_cv_header_gpm_h=$ac_header_preproc
16383 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16384 $as_echo "$ac_cv_header_gpm_h" >&6; }
16387 if test "x$ac_cv_header_gpm_h" = x""yes; then
16388 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16389 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16390 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16391 $as_echo_n "(cached) " >&6
16392 else
16393 ac_check_lib_save_LIBS=$LIBS
16394 LIBS="-lgpm $LIBS"
16395 cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h. */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16402 /* Override any GCC internal prototype to avoid an error.
16403 Use char because int might match the return type of a GCC
16404 builtin and then its argument prototype would still apply. */
16405 #ifdef __cplusplus
16406 extern "C"
16407 #endif
16408 char Gpm_Open ();
16410 main ()
16412 return Gpm_Open ();
16414 return 0;
16416 _ACEOF
16417 rm -f conftest.$ac_objext conftest$ac_exeext
16418 if { (ac_try="$ac_link"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16422 esac
16423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16424 $as_echo "$ac_try_echo") >&5
16425 (eval "$ac_link") 2>conftest.er1
16426 ac_status=$?
16427 grep -v '^ *+' conftest.er1 >conftest.err
16428 rm -f conftest.er1
16429 cat conftest.err >&5
16430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } && {
16432 test -z "$ac_c_werror_flag" ||
16433 test ! -s conftest.err
16434 } && test -s conftest$ac_exeext && {
16435 test "$cross_compiling" = yes ||
16436 $as_test_x conftest$ac_exeext
16437 }; then
16438 ac_cv_lib_gpm_Gpm_Open=yes
16439 else
16440 $as_echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 ac_cv_lib_gpm_Gpm_Open=no
16446 rm -rf conftest.dSYM
16447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16448 conftest$ac_exeext conftest.$ac_ext
16449 LIBS=$ac_check_lib_save_LIBS
16451 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16452 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16453 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then
16454 HAVE_GPM=yes
16461 if test "${HAVE_GPM}" = "yes"; then
16463 cat >>confdefs.h <<\_ACEOF
16464 #define HAVE_GPM 1
16465 _ACEOF
16467 LIBGPM=-lgpm
16468 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
16474 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16475 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16476 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16477 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16478 $as_echo_n "(cached) " >&6
16480 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16481 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16482 else
16483 # Is the header compilable?
16484 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16485 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16486 cat >conftest.$ac_ext <<_ACEOF
16487 /* confdefs.h. */
16488 _ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492 $ac_includes_default
16493 #include <malloc/malloc.h>
16494 _ACEOF
16495 rm -f conftest.$ac_objext
16496 if { (ac_try="$ac_compile"
16497 case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16500 esac
16501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16502 $as_echo "$ac_try_echo") >&5
16503 (eval "$ac_compile") 2>conftest.er1
16504 ac_status=$?
16505 grep -v '^ *+' conftest.er1 >conftest.err
16506 rm -f conftest.er1
16507 cat conftest.err >&5
16508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } && {
16510 test -z "$ac_c_werror_flag" ||
16511 test ! -s conftest.err
16512 } && test -s conftest.$ac_objext; then
16513 ac_header_compiler=yes
16514 else
16515 $as_echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16518 ac_header_compiler=no
16521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16522 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16523 $as_echo "$ac_header_compiler" >&6; }
16525 # Is the header present?
16526 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16527 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16528 cat >conftest.$ac_ext <<_ACEOF
16529 /* confdefs.h. */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16534 #include <malloc/malloc.h>
16535 _ACEOF
16536 if { (ac_try="$ac_cpp conftest.$ac_ext"
16537 case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16540 esac
16541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16542 $as_echo "$ac_try_echo") >&5
16543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16544 ac_status=$?
16545 grep -v '^ *+' conftest.er1 >conftest.err
16546 rm -f conftest.er1
16547 cat conftest.err >&5
16548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } >/dev/null && {
16550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16551 test ! -s conftest.err
16552 }; then
16553 ac_header_preproc=yes
16554 else
16555 $as_echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16558 ac_header_preproc=no
16561 rm -f conftest.err conftest.$ac_ext
16562 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16563 $as_echo "$ac_header_preproc" >&6; }
16565 # So? What about this header?
16566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16567 yes:no: )
16568 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16569 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16570 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16571 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16572 ac_header_preproc=yes
16574 no:yes:* )
16575 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16576 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16577 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16578 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16579 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16580 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16581 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16582 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16583 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16584 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16585 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16586 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16589 esac
16590 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16591 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16592 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16593 $as_echo_n "(cached) " >&6
16594 else
16595 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16597 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16598 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16601 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then
16603 cat >>confdefs.h <<\_ACEOF
16604 #define HAVE_MALLOC_MALLOC_H 1
16605 _ACEOF
16611 C_SWITCH_X_SYSTEM=
16612 ### Use NeXTstep API to implement GUI.
16613 if test "${HAVE_NS}" = "yes"; then
16615 cat >>confdefs.h <<\_ACEOF
16616 #define HAVE_NS 1
16617 _ACEOF
16619 if test "${NS_IMPL_COCOA}" = "yes"; then
16621 cat >>confdefs.h <<\_ACEOF
16622 #define NS_IMPL_COCOA 1
16623 _ACEOF
16625 GNU_OBJC_CFLAGS=
16627 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16629 cat >>confdefs.h <<\_ACEOF
16630 #define NS_IMPL_GNUSTEP 1
16631 _ACEOF
16633 # See also .m.o rule in Makefile.in */
16634 # FIXME: are all these flags really needed? Document here why. */
16635 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16636 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16638 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16640 cat >>confdefs.h <<\_ACEOF
16641 #define NS_HAVE_NSINTEGER 1
16642 _ACEOF
16645 # We also have mouse menus.
16646 HAVE_MENUS=yes
16647 OTHER_FILES=ns-app
16651 ### Use session management (-lSM -lICE) if available
16652 HAVE_X_SM=no
16653 LIBXSM=
16654 if test "${HAVE_X11}" = "yes"; then
16655 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16656 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16657 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16658 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16659 $as_echo_n "(cached) " >&6
16661 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16662 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16663 else
16664 # Is the header compilable?
16665 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16666 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16667 cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h. */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673 $ac_includes_default
16674 #include <X11/SM/SMlib.h>
16675 _ACEOF
16676 rm -f conftest.$ac_objext
16677 if { (ac_try="$ac_compile"
16678 case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16681 esac
16682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16683 $as_echo "$ac_try_echo") >&5
16684 (eval "$ac_compile") 2>conftest.er1
16685 ac_status=$?
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
16689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } && {
16691 test -z "$ac_c_werror_flag" ||
16692 test ! -s conftest.err
16693 } && test -s conftest.$ac_objext; then
16694 ac_header_compiler=yes
16695 else
16696 $as_echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16699 ac_header_compiler=no
16702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16704 $as_echo "$ac_header_compiler" >&6; }
16706 # Is the header present?
16707 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16708 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16709 cat >conftest.$ac_ext <<_ACEOF
16710 /* confdefs.h. */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 #include <X11/SM/SMlib.h>
16716 _ACEOF
16717 if { (ac_try="$ac_cpp conftest.$ac_ext"
16718 case "(($ac_try" in
16719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16721 esac
16722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16723 $as_echo "$ac_try_echo") >&5
16724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16725 ac_status=$?
16726 grep -v '^ *+' conftest.er1 >conftest.err
16727 rm -f conftest.er1
16728 cat conftest.err >&5
16729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } >/dev/null && {
16731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16732 test ! -s conftest.err
16733 }; then
16734 ac_header_preproc=yes
16735 else
16736 $as_echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16739 ac_header_preproc=no
16742 rm -f conftest.err conftest.$ac_ext
16743 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16744 $as_echo "$ac_header_preproc" >&6; }
16746 # So? What about this header?
16747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16748 yes:no: )
16749 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16750 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16751 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16752 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16753 ac_header_preproc=yes
16755 no:yes:* )
16756 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16757 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16758 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16759 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16760 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16761 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16762 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16763 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16764 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16765 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16766 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16767 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16770 esac
16771 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16772 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16773 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16774 $as_echo_n "(cached) " >&6
16775 else
16776 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16778 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16779 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16782 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then
16783 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16784 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16785 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16786 $as_echo_n "(cached) " >&6
16787 else
16788 ac_check_lib_save_LIBS=$LIBS
16789 LIBS="-lSM -lICE $LIBS"
16790 cat >conftest.$ac_ext <<_ACEOF
16791 /* confdefs.h. */
16792 _ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16797 /* Override any GCC internal prototype to avoid an error.
16798 Use char because int might match the return type of a GCC
16799 builtin and then its argument prototype would still apply. */
16800 #ifdef __cplusplus
16801 extern "C"
16802 #endif
16803 char SmcOpenConnection ();
16805 main ()
16807 return SmcOpenConnection ();
16809 return 0;
16811 _ACEOF
16812 rm -f conftest.$ac_objext conftest$ac_exeext
16813 if { (ac_try="$ac_link"
16814 case "(($ac_try" in
16815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816 *) ac_try_echo=$ac_try;;
16817 esac
16818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16819 $as_echo "$ac_try_echo") >&5
16820 (eval "$ac_link") 2>conftest.er1
16821 ac_status=$?
16822 grep -v '^ *+' conftest.er1 >conftest.err
16823 rm -f conftest.er1
16824 cat conftest.err >&5
16825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); } && {
16827 test -z "$ac_c_werror_flag" ||
16828 test ! -s conftest.err
16829 } && test -s conftest$ac_exeext && {
16830 test "$cross_compiling" = yes ||
16831 $as_test_x conftest$ac_exeext
16832 }; then
16833 ac_cv_lib_SM_SmcOpenConnection=yes
16834 else
16835 $as_echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16838 ac_cv_lib_SM_SmcOpenConnection=no
16841 rm -rf conftest.dSYM
16842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16843 conftest$ac_exeext conftest.$ac_ext
16844 LIBS=$ac_check_lib_save_LIBS
16846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16847 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16848 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then
16849 HAVE_X_SM=yes
16856 if test "${HAVE_X_SM}" = "yes"; then
16858 cat >>confdefs.h <<\_ACEOF
16859 #define HAVE_X_SM 1
16860 _ACEOF
16862 LIBXSM="-lSM -lICE"
16863 case "$LIBS" in
16864 *-lSM*) ;;
16865 *) LIBS="$LIBXSM $LIBS" ;;
16866 esac
16871 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16872 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16873 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16874 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16875 $as_echo_n "(cached) " >&6
16876 else
16877 cat >conftest.$ac_ext <<_ACEOF
16878 /* confdefs.h. */
16879 _ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16883 #include <netdb.h>
16885 main ()
16887 return h_errno;
16889 return 0;
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (ac_try="$ac_link"
16894 case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897 esac
16898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16899 $as_echo "$ac_try_echo") >&5
16900 (eval "$ac_link") 2>conftest.er1
16901 ac_status=$?
16902 grep -v '^ *+' conftest.er1 >conftest.err
16903 rm -f conftest.er1
16904 cat conftest.err >&5
16905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext && {
16910 test "$cross_compiling" = yes ||
16911 $as_test_x conftest$ac_exeext
16912 }; then
16913 emacs_cv_netdb_declares_h_errno=yes
16914 else
16915 $as_echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 emacs_cv_netdb_declares_h_errno=no
16921 rm -rf conftest.dSYM
16922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16923 conftest$ac_exeext conftest.$ac_ext
16925 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16926 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16927 if test $emacs_cv_netdb_declares_h_errno = yes; then
16929 cat >>confdefs.h <<\_ACEOF
16930 #define HAVE_H_ERRNO 1
16931 _ACEOF
16935 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16936 # for constant arguments. Useless!
16937 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16938 $as_echo_n "checking for working alloca.h... " >&6; }
16939 if test "${ac_cv_working_alloca_h+set}" = set; then
16940 $as_echo_n "(cached) " >&6
16941 else
16942 cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h. */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 #include <alloca.h>
16950 main ()
16952 char *p = (char *) alloca (2 * sizeof (int));
16953 if (p) return 0;
16955 return 0;
16957 _ACEOF
16958 rm -f conftest.$ac_objext conftest$ac_exeext
16959 if { (ac_try="$ac_link"
16960 case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16963 esac
16964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16965 $as_echo "$ac_try_echo") >&5
16966 (eval "$ac_link") 2>conftest.er1
16967 ac_status=$?
16968 grep -v '^ *+' conftest.er1 >conftest.err
16969 rm -f conftest.er1
16970 cat conftest.err >&5
16971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } && {
16973 test -z "$ac_c_werror_flag" ||
16974 test ! -s conftest.err
16975 } && test -s conftest$ac_exeext && {
16976 test "$cross_compiling" = yes ||
16977 $as_test_x conftest$ac_exeext
16978 }; then
16979 ac_cv_working_alloca_h=yes
16980 else
16981 $as_echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16984 ac_cv_working_alloca_h=no
16987 rm -rf conftest.dSYM
16988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16989 conftest$ac_exeext conftest.$ac_ext
16991 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16992 $as_echo "$ac_cv_working_alloca_h" >&6; }
16993 if test $ac_cv_working_alloca_h = yes; then
16995 cat >>confdefs.h <<\_ACEOF
16996 #define HAVE_ALLOCA_H 1
16997 _ACEOF
17001 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
17002 $as_echo_n "checking for alloca... " >&6; }
17003 if test "${ac_cv_func_alloca_works+set}" = set; then
17004 $as_echo_n "(cached) " >&6
17005 else
17006 cat >conftest.$ac_ext <<_ACEOF
17007 /* confdefs.h. */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 #ifdef __GNUC__
17013 # define alloca __builtin_alloca
17014 #else
17015 # ifdef _MSC_VER
17016 # include <malloc.h>
17017 # define alloca _alloca
17018 # else
17019 # ifdef HAVE_ALLOCA_H
17020 # include <alloca.h>
17021 # else
17022 # ifdef _AIX
17023 #pragma alloca
17024 # else
17025 # ifndef alloca /* predefined by HP cc +Olibcalls */
17026 char *alloca ();
17027 # endif
17028 # endif
17029 # endif
17030 # endif
17031 #endif
17034 main ()
17036 char *p = (char *) alloca (1);
17037 if (p) return 0;
17039 return 0;
17041 _ACEOF
17042 rm -f conftest.$ac_objext conftest$ac_exeext
17043 if { (ac_try="$ac_link"
17044 case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047 esac
17048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17049 $as_echo "$ac_try_echo") >&5
17050 (eval "$ac_link") 2>conftest.er1
17051 ac_status=$?
17052 grep -v '^ *+' conftest.er1 >conftest.err
17053 rm -f conftest.er1
17054 cat conftest.err >&5
17055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } && {
17057 test -z "$ac_c_werror_flag" ||
17058 test ! -s conftest.err
17059 } && test -s conftest$ac_exeext && {
17060 test "$cross_compiling" = yes ||
17061 $as_test_x conftest$ac_exeext
17062 }; then
17063 ac_cv_func_alloca_works=yes
17064 else
17065 $as_echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 ac_cv_func_alloca_works=no
17071 rm -rf conftest.dSYM
17072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17073 conftest$ac_exeext conftest.$ac_ext
17075 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17076 $as_echo "$ac_cv_func_alloca_works" >&6; }
17078 if test $ac_cv_func_alloca_works = yes; then
17080 cat >>confdefs.h <<\_ACEOF
17081 #define HAVE_ALLOCA 1
17082 _ACEOF
17084 else
17085 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17086 # that cause trouble. Some versions do not even contain alloca or
17087 # contain a buggy version. If you still want to use their alloca,
17088 # use ar to extract alloca.o from them instead of compiling alloca.c.
17090 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17092 cat >>confdefs.h <<\_ACEOF
17093 #define C_ALLOCA 1
17094 _ACEOF
17097 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17098 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17099 if test "${ac_cv_os_cray+set}" = set; then
17100 $as_echo_n "(cached) " >&6
17101 else
17102 cat >conftest.$ac_ext <<_ACEOF
17103 /* confdefs.h. */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 #if defined CRAY && ! defined CRAY2
17109 webecray
17110 #else
17111 wenotbecray
17112 #endif
17114 _ACEOF
17115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17116 $EGREP "webecray" >/dev/null 2>&1; then
17117 ac_cv_os_cray=yes
17118 else
17119 ac_cv_os_cray=no
17121 rm -f conftest*
17124 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17125 $as_echo "$ac_cv_os_cray" >&6; }
17126 if test $ac_cv_os_cray = yes; then
17127 for ac_func in _getb67 GETB67 getb67; do
17128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17129 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17130 $as_echo_n "checking for $ac_func... " >&6; }
17131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17132 $as_echo_n "(cached) " >&6
17133 else
17134 cat >conftest.$ac_ext <<_ACEOF
17135 /* confdefs.h. */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h. */
17140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17142 #define $ac_func innocuous_$ac_func
17144 /* System header to define __stub macros and hopefully few prototypes,
17145 which can conflict with char $ac_func (); below.
17146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17147 <limits.h> exists even on freestanding compilers. */
17149 #ifdef __STDC__
17150 # include <limits.h>
17151 #else
17152 # include <assert.h>
17153 #endif
17155 #undef $ac_func
17157 /* Override any GCC internal prototype to avoid an error.
17158 Use char because int might match the return type of a GCC
17159 builtin and then its argument prototype would still apply. */
17160 #ifdef __cplusplus
17161 extern "C"
17162 #endif
17163 char $ac_func ();
17164 /* The GNU C library defines this for functions which it implements
17165 to always fail with ENOSYS. Some functions are actually named
17166 something starting with __ and the normal name is an alias. */
17167 #if defined __stub_$ac_func || defined __stub___$ac_func
17168 choke me
17169 #endif
17172 main ()
17174 return $ac_func ();
17176 return 0;
17178 _ACEOF
17179 rm -f conftest.$ac_objext conftest$ac_exeext
17180 if { (ac_try="$ac_link"
17181 case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184 esac
17185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17186 $as_echo "$ac_try_echo") >&5
17187 (eval "$ac_link") 2>conftest.er1
17188 ac_status=$?
17189 grep -v '^ *+' conftest.er1 >conftest.err
17190 rm -f conftest.er1
17191 cat conftest.err >&5
17192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } && {
17194 test -z "$ac_c_werror_flag" ||
17195 test ! -s conftest.err
17196 } && test -s conftest$ac_exeext && {
17197 test "$cross_compiling" = yes ||
17198 $as_test_x conftest$ac_exeext
17199 }; then
17200 eval "$as_ac_var=yes"
17201 else
17202 $as_echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 eval "$as_ac_var=no"
17208 rm -rf conftest.dSYM
17209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17210 conftest$ac_exeext conftest.$ac_ext
17212 ac_res=`eval 'as_val=${'$as_ac_var'}
17213 $as_echo "$as_val"'`
17214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17215 $as_echo "$ac_res" >&6; }
17216 as_val=`eval 'as_val=${'$as_ac_var'}
17217 $as_echo "$as_val"'`
17218 if test "x$as_val" = x""yes; then
17220 cat >>confdefs.h <<_ACEOF
17221 #define CRAY_STACKSEG_END $ac_func
17222 _ACEOF
17224 break
17227 done
17230 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17231 $as_echo_n "checking stack direction for C alloca... " >&6; }
17232 if test "${ac_cv_c_stack_direction+set}" = set; then
17233 $as_echo_n "(cached) " >&6
17234 else
17235 if test "$cross_compiling" = yes; then
17236 ac_cv_c_stack_direction=0
17237 else
17238 cat >conftest.$ac_ext <<_ACEOF
17239 /* confdefs.h. */
17240 _ACEOF
17241 cat confdefs.h >>conftest.$ac_ext
17242 cat >>conftest.$ac_ext <<_ACEOF
17243 /* end confdefs.h. */
17244 $ac_includes_default
17246 find_stack_direction ()
17248 static char *addr = 0;
17249 auto char dummy;
17250 if (addr == 0)
17252 addr = &dummy;
17253 return find_stack_direction ();
17255 else
17256 return (&dummy > addr) ? 1 : -1;
17260 main ()
17262 return find_stack_direction () < 0;
17264 _ACEOF
17265 rm -f conftest$ac_exeext
17266 if { (ac_try="$ac_link"
17267 case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17270 esac
17271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17272 $as_echo "$ac_try_echo") >&5
17273 (eval "$ac_link") 2>&5
17274 ac_status=$?
17275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17277 { (case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17280 esac
17281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17282 $as_echo "$ac_try_echo") >&5
17283 (eval "$ac_try") 2>&5
17284 ac_status=$?
17285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 ac_cv_c_stack_direction=1
17288 else
17289 $as_echo "$as_me: program exited with status $ac_status" >&5
17290 $as_echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 ( exit $ac_status )
17294 ac_cv_c_stack_direction=-1
17296 rm -rf conftest.dSYM
17297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17302 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17303 $as_echo "$ac_cv_c_stack_direction" >&6; }
17305 cat >>confdefs.h <<_ACEOF
17306 #define STACK_DIRECTION $ac_cv_c_stack_direction
17307 _ACEOF
17313 if test x"$ac_cv_func_alloca_works" != xyes; then
17314 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17315 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17316 { (exit 1); exit 1; }; }
17319 # fmod, logb, and frexp are found in -lm on most systems.
17320 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17322 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
17323 $as_echo_n "checking for sqrt in -lm... " >&6; }
17324 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17325 $as_echo_n "(cached) " >&6
17326 else
17327 ac_check_lib_save_LIBS=$LIBS
17328 LIBS="-lm $LIBS"
17329 cat >conftest.$ac_ext <<_ACEOF
17330 /* confdefs.h. */
17331 _ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17336 /* Override any GCC internal prototype to avoid an error.
17337 Use char because int might match the return type of a GCC
17338 builtin and then its argument prototype would still apply. */
17339 #ifdef __cplusplus
17340 extern "C"
17341 #endif
17342 char sqrt ();
17344 main ()
17346 return sqrt ();
17348 return 0;
17350 _ACEOF
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (ac_try="$ac_link"
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356 esac
17357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17358 $as_echo "$ac_try_echo") >&5
17359 (eval "$ac_link") 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } && {
17366 test -z "$ac_c_werror_flag" ||
17367 test ! -s conftest.err
17368 } && test -s conftest$ac_exeext && {
17369 test "$cross_compiling" = yes ||
17370 $as_test_x conftest$ac_exeext
17371 }; then
17372 ac_cv_lib_m_sqrt=yes
17373 else
17374 $as_echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17377 ac_cv_lib_m_sqrt=no
17380 rm -rf conftest.dSYM
17381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17382 conftest$ac_exeext conftest.$ac_ext
17383 LIBS=$ac_check_lib_save_LIBS
17385 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
17386 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17387 if test "x$ac_cv_lib_m_sqrt" = x""yes; then
17388 cat >>confdefs.h <<_ACEOF
17389 #define HAVE_LIBM 1
17390 _ACEOF
17392 LIBS="-lm $LIBS"
17397 # Check for mail-locking functions in a "mail" library. Probably this should
17398 # have the same check as for liblockfile below.
17399 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
17400 $as_echo_n "checking for maillock in -lmail... " >&6; }
17401 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17402 $as_echo_n "(cached) " >&6
17403 else
17404 ac_check_lib_save_LIBS=$LIBS
17405 LIBS="-lmail $LIBS"
17406 cat >conftest.$ac_ext <<_ACEOF
17407 /* confdefs.h. */
17408 _ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17413 /* Override any GCC internal prototype to avoid an error.
17414 Use char because int might match the return type of a GCC
17415 builtin and then its argument prototype would still apply. */
17416 #ifdef __cplusplus
17417 extern "C"
17418 #endif
17419 char maillock ();
17421 main ()
17423 return maillock ();
17425 return 0;
17427 _ACEOF
17428 rm -f conftest.$ac_objext conftest$ac_exeext
17429 if { (ac_try="$ac_link"
17430 case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17433 esac
17434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17435 $as_echo "$ac_try_echo") >&5
17436 (eval "$ac_link") 2>conftest.er1
17437 ac_status=$?
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
17441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } && {
17443 test -z "$ac_c_werror_flag" ||
17444 test ! -s conftest.err
17445 } && test -s conftest$ac_exeext && {
17446 test "$cross_compiling" = yes ||
17447 $as_test_x conftest$ac_exeext
17448 }; then
17449 ac_cv_lib_mail_maillock=yes
17450 else
17451 $as_echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17454 ac_cv_lib_mail_maillock=no
17457 rm -rf conftest.dSYM
17458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17459 conftest$ac_exeext conftest.$ac_ext
17460 LIBS=$ac_check_lib_save_LIBS
17462 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17463 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17464 if test "x$ac_cv_lib_mail_maillock" = x""yes; then
17465 have_mail=yes
17466 else
17467 have_mail=no
17470 if test $have_mail = yes; then
17471 LIBS_MAIL=-lmail
17472 LIBS="$LIBS_MAIL $LIBS"
17474 cat >>confdefs.h <<\_ACEOF
17475 #define HAVE_LIBMAIL 1
17476 _ACEOF
17478 else
17479 LIBS_MAIL=
17481 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17482 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17483 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17484 $as_echo_n "(cached) " >&6
17485 else
17486 ac_check_lib_save_LIBS=$LIBS
17487 LIBS="-llockfile $LIBS"
17488 cat >conftest.$ac_ext <<_ACEOF
17489 /* confdefs.h. */
17490 _ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h. */
17495 /* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
17498 #ifdef __cplusplus
17499 extern "C"
17500 #endif
17501 char maillock ();
17503 main ()
17505 return maillock ();
17507 return 0;
17509 _ACEOF
17510 rm -f conftest.$ac_objext conftest$ac_exeext
17511 if { (ac_try="$ac_link"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515 esac
17516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17517 $as_echo "$ac_try_echo") >&5
17518 (eval "$ac_link") 2>conftest.er1
17519 ac_status=$?
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
17523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest$ac_exeext && {
17528 test "$cross_compiling" = yes ||
17529 $as_test_x conftest$ac_exeext
17530 }; then
17531 ac_cv_lib_lockfile_maillock=yes
17532 else
17533 $as_echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 ac_cv_lib_lockfile_maillock=no
17539 rm -rf conftest.dSYM
17540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17541 conftest$ac_exeext conftest.$ac_ext
17542 LIBS=$ac_check_lib_save_LIBS
17544 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17545 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17546 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then
17547 have_lockfile=yes
17548 else
17549 have_lockfile=no
17552 if test $have_lockfile = yes; then
17553 LIBS_MAIL=-llockfile
17554 LIBS="$LIBS_MAIL $LIBS"
17556 cat >>confdefs.h <<\_ACEOF
17557 #define HAVE_LIBLOCKFILE 1
17558 _ACEOF
17560 else
17561 # If we have the shared liblockfile, assume we must use it for mail
17562 # locking (e.g. Debian). If we couldn't link against liblockfile
17563 # (no liblockfile.a installed), ensure that we don't need to.
17564 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17565 set dummy liblockfile.so; ac_word=$2
17566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17567 $as_echo_n "checking for $ac_word... " >&6; }
17568 if test "${ac_cv_prog_liblockfile+set}" = set; then
17569 $as_echo_n "(cached) " >&6
17570 else
17571 if test -n "$liblockfile"; then
17572 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17573 else
17574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17575 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17576 for as_dir in $as_dummy
17578 IFS=$as_save_IFS
17579 test -z "$as_dir" && as_dir=.
17580 for ac_exec_ext in '' $ac_executable_extensions; do
17581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17582 ac_cv_prog_liblockfile="yes"
17583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17584 break 2
17586 done
17587 done
17588 IFS=$as_save_IFS
17590 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17593 liblockfile=$ac_cv_prog_liblockfile
17594 if test -n "$liblockfile"; then
17595 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17596 $as_echo "$liblockfile" >&6; }
17597 else
17598 { $as_echo "$as_me:$LINENO: result: no" >&5
17599 $as_echo "no" >&6; }
17603 if test $ac_cv_prog_liblockfile = yes; then
17604 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17605 This probably means that movemail could lose mail.
17606 There may be a \`development' package to install containing liblockfile." >&5
17607 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17608 This probably means that movemail could lose mail.
17609 There may be a \`development' package to install containing liblockfile." >&2;}
17610 { (exit 1); exit 1; }; }
17614 for ac_func in touchlock
17616 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17617 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17618 $as_echo_n "checking for $ac_func... " >&6; }
17619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17620 $as_echo_n "(cached) " >&6
17621 else
17622 cat >conftest.$ac_ext <<_ACEOF
17623 /* confdefs.h. */
17624 _ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17630 #define $ac_func innocuous_$ac_func
17632 /* System header to define __stub macros and hopefully few prototypes,
17633 which can conflict with char $ac_func (); below.
17634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17635 <limits.h> exists even on freestanding compilers. */
17637 #ifdef __STDC__
17638 # include <limits.h>
17639 #else
17640 # include <assert.h>
17641 #endif
17643 #undef $ac_func
17645 /* Override any GCC internal prototype to avoid an error.
17646 Use char because int might match the return type of a GCC
17647 builtin and then its argument prototype would still apply. */
17648 #ifdef __cplusplus
17649 extern "C"
17650 #endif
17651 char $ac_func ();
17652 /* The GNU C library defines this for functions which it implements
17653 to always fail with ENOSYS. Some functions are actually named
17654 something starting with __ and the normal name is an alias. */
17655 #if defined __stub_$ac_func || defined __stub___$ac_func
17656 choke me
17657 #endif
17660 main ()
17662 return $ac_func ();
17664 return 0;
17666 _ACEOF
17667 rm -f conftest.$ac_objext conftest$ac_exeext
17668 if { (ac_try="$ac_link"
17669 case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17672 esac
17673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17674 $as_echo "$ac_try_echo") >&5
17675 (eval "$ac_link") 2>conftest.er1
17676 ac_status=$?
17677 grep -v '^ *+' conftest.er1 >conftest.err
17678 rm -f conftest.er1
17679 cat conftest.err >&5
17680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } && {
17682 test -z "$ac_c_werror_flag" ||
17683 test ! -s conftest.err
17684 } && test -s conftest$ac_exeext && {
17685 test "$cross_compiling" = yes ||
17686 $as_test_x conftest$ac_exeext
17687 }; then
17688 eval "$as_ac_var=yes"
17689 else
17690 $as_echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17693 eval "$as_ac_var=no"
17696 rm -rf conftest.dSYM
17697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17698 conftest$ac_exeext conftest.$ac_ext
17700 ac_res=`eval 'as_val=${'$as_ac_var'}
17701 $as_echo "$as_val"'`
17702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17703 $as_echo "$ac_res" >&6; }
17704 as_val=`eval 'as_val=${'$as_ac_var'}
17705 $as_echo "$as_val"'`
17706 if test "x$as_val" = x""yes; then
17707 cat >>confdefs.h <<_ACEOF
17708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17709 _ACEOF
17712 done
17715 for ac_header in maillock.h
17717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17719 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17720 $as_echo_n "checking for $ac_header... " >&6; }
17721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17722 $as_echo_n "(cached) " >&6
17724 ac_res=`eval 'as_val=${'$as_ac_Header'}
17725 $as_echo "$as_val"'`
17726 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17727 $as_echo "$ac_res" >&6; }
17728 else
17729 # Is the header compilable?
17730 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17731 $as_echo_n "checking $ac_header usability... " >&6; }
17732 cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h. */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738 $ac_includes_default
17739 #include <$ac_header>
17740 _ACEOF
17741 rm -f conftest.$ac_objext
17742 if { (ac_try="$ac_compile"
17743 case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746 esac
17747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17748 $as_echo "$ac_try_echo") >&5
17749 (eval "$ac_compile") 2>conftest.er1
17750 ac_status=$?
17751 grep -v '^ *+' conftest.er1 >conftest.err
17752 rm -f conftest.er1
17753 cat conftest.err >&5
17754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } && {
17756 test -z "$ac_c_werror_flag" ||
17757 test ! -s conftest.err
17758 } && test -s conftest.$ac_objext; then
17759 ac_header_compiler=yes
17760 else
17761 $as_echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 ac_header_compiler=no
17767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17769 $as_echo "$ac_header_compiler" >&6; }
17771 # Is the header present?
17772 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17773 $as_echo_n "checking $ac_header presence... " >&6; }
17774 cat >conftest.$ac_ext <<_ACEOF
17775 /* confdefs.h. */
17776 _ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 #include <$ac_header>
17781 _ACEOF
17782 if { (ac_try="$ac_cpp conftest.$ac_ext"
17783 case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17786 esac
17787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17788 $as_echo "$ac_try_echo") >&5
17789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17790 ac_status=$?
17791 grep -v '^ *+' conftest.er1 >conftest.err
17792 rm -f conftest.er1
17793 cat conftest.err >&5
17794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } >/dev/null && {
17796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17798 }; then
17799 ac_header_preproc=yes
17800 else
17801 $as_echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804 ac_header_preproc=no
17807 rm -f conftest.err conftest.$ac_ext
17808 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17809 $as_echo "$ac_header_preproc" >&6; }
17811 # So? What about this header?
17812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17813 yes:no: )
17814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17815 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17818 ac_header_preproc=yes
17820 no:yes:* )
17821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17822 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17824 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17826 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17828 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17830 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17832 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17835 esac
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
17840 else
17841 eval "$as_ac_Header=\$ac_header_preproc"
17843 ac_res=`eval 'as_val=${'$as_ac_Header'}
17844 $as_echo "$as_val"'`
17845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17846 $as_echo "$ac_res" >&6; }
17849 as_val=`eval 'as_val=${'$as_ac_Header'}
17850 $as_echo "$as_val"'`
17851 if test "x$as_val" = x""yes; then
17852 cat >>confdefs.h <<_ACEOF
17853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17854 _ACEOF
17858 done
17862 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17863 ## interlock access to the mail spool. The alternative is a lock file named
17864 ## /usr/spool/mail/$USER.lock.
17865 mail_lock=no
17866 case "$opsys" in
17867 aix4-2) mail_lock="lockf" ;;
17869 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
17871 ## On GNU/Linux systems, both methods are used by various mail programs.
17872 ## I assume most people are using newer mailers that have heard of flock.
17873 ## Change this if you need to.
17874 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17875 ## configure gets the right answers, and that means *NOT* using flock.
17876 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17877 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17878 ## Debian maintainer hasn't provided a clean fix for Emacs.
17879 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17880 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17881 ## correct logic. -- fx
17882 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17883 ## liblockfile is a Free Software replacement for libmail, used on
17884 ## Debian systems and elsewhere. -rfr.
17885 gnu-*)
17886 mail_lock="flock"
17887 if test $have_mail = yes || test $have_lockfile = yes; then
17888 test $ac_cv_header_maillock_h = yes && mail_lock=no
17891 esac
17893 BLESSMAIL_TARGET=
17894 case "$mail_lock" in
17895 flock)
17896 cat >>confdefs.h <<\_ACEOF
17897 #define MAIL_USE_FLOCK 1
17898 _ACEOF
17901 lockf)
17902 cat >>confdefs.h <<\_ACEOF
17903 #define MAIL_USE_LOCKF 1
17904 _ACEOF
17907 *) BLESSMAIL_TARGET="need-blessmail" ;;
17908 esac
17985 for ac_func in gethostname getdomainname dup2 \
17986 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17987 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17988 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17989 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17990 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17991 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17992 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17993 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17994 cfmakeraw cfsetspeed isnan copysign
17996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17997 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17998 $as_echo_n "checking for $ac_func... " >&6; }
17999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18000 $as_echo_n "(cached) " >&6
18001 else
18002 cat >conftest.$ac_ext <<_ACEOF
18003 /* confdefs.h. */
18004 _ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18010 #define $ac_func innocuous_$ac_func
18012 /* System header to define __stub macros and hopefully few prototypes,
18013 which can conflict with char $ac_func (); below.
18014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18015 <limits.h> exists even on freestanding compilers. */
18017 #ifdef __STDC__
18018 # include <limits.h>
18019 #else
18020 # include <assert.h>
18021 #endif
18023 #undef $ac_func
18025 /* Override any GCC internal prototype to avoid an error.
18026 Use char because int might match the return type of a GCC
18027 builtin and then its argument prototype would still apply. */
18028 #ifdef __cplusplus
18029 extern "C"
18030 #endif
18031 char $ac_func ();
18032 /* The GNU C library defines this for functions which it implements
18033 to always fail with ENOSYS. Some functions are actually named
18034 something starting with __ and the normal name is an alias. */
18035 #if defined __stub_$ac_func || defined __stub___$ac_func
18036 choke me
18037 #endif
18040 main ()
18042 return $ac_func ();
18044 return 0;
18046 _ACEOF
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (ac_try="$ac_link"
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_link") 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); } && {
18062 test -z "$ac_c_werror_flag" ||
18063 test ! -s conftest.err
18064 } && test -s conftest$ac_exeext && {
18065 test "$cross_compiling" = yes ||
18066 $as_test_x conftest$ac_exeext
18067 }; then
18068 eval "$as_ac_var=yes"
18069 else
18070 $as_echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 eval "$as_ac_var=no"
18076 rm -rf conftest.dSYM
18077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18078 conftest$ac_exeext conftest.$ac_ext
18080 ac_res=`eval 'as_val=${'$as_ac_var'}
18081 $as_echo "$as_val"'`
18082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18083 $as_echo "$ac_res" >&6; }
18084 as_val=`eval 'as_val=${'$as_ac_var'}
18085 $as_echo "$as_val"'`
18086 if test "x$as_val" = x""yes; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18089 _ACEOF
18092 done
18096 for ac_header in sys/un.h
18098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18100 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18101 $as_echo_n "checking for $ac_header... " >&6; }
18102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18103 $as_echo_n "(cached) " >&6
18105 ac_res=`eval 'as_val=${'$as_ac_Header'}
18106 $as_echo "$as_val"'`
18107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18108 $as_echo "$ac_res" >&6; }
18109 else
18110 # Is the header compilable?
18111 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18112 $as_echo_n "checking $ac_header usability... " >&6; }
18113 cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h. */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119 $ac_includes_default
18120 #include <$ac_header>
18121 _ACEOF
18122 rm -f conftest.$ac_objext
18123 if { (ac_try="$ac_compile"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127 esac
18128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18129 $as_echo "$ac_try_echo") >&5
18130 (eval "$ac_compile") 2>conftest.er1
18131 ac_status=$?
18132 grep -v '^ *+' conftest.er1 >conftest.err
18133 rm -f conftest.er1
18134 cat conftest.err >&5
18135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest.$ac_objext; then
18140 ac_header_compiler=yes
18141 else
18142 $as_echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 ac_header_compiler=no
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18150 $as_echo "$ac_header_compiler" >&6; }
18152 # Is the header present?
18153 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18154 $as_echo_n "checking $ac_header presence... " >&6; }
18155 cat >conftest.$ac_ext <<_ACEOF
18156 /* confdefs.h. */
18157 _ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18161 #include <$ac_header>
18162 _ACEOF
18163 if { (ac_try="$ac_cpp conftest.$ac_ext"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167 esac
18168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18169 $as_echo "$ac_try_echo") >&5
18170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18171 ac_status=$?
18172 grep -v '^ *+' conftest.er1 >conftest.err
18173 rm -f conftest.er1
18174 cat conftest.err >&5
18175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } >/dev/null && {
18177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18178 test ! -s conftest.err
18179 }; then
18180 ac_header_preproc=yes
18181 else
18182 $as_echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 ac_header_preproc=no
18188 rm -f conftest.err conftest.$ac_ext
18189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18190 $as_echo "$ac_header_preproc" >&6; }
18192 # So? What about this header?
18193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18194 yes:no: )
18195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18196 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18199 ac_header_preproc=yes
18201 no:yes:* )
18202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18203 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18205 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18207 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18209 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18213 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18216 esac
18217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18218 $as_echo_n "checking for $ac_header... " >&6; }
18219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18220 $as_echo_n "(cached) " >&6
18221 else
18222 eval "$as_ac_Header=\$ac_header_preproc"
18224 ac_res=`eval 'as_val=${'$as_ac_Header'}
18225 $as_echo "$as_val"'`
18226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18227 $as_echo "$ac_res" >&6; }
18230 as_val=`eval 'as_val=${'$as_ac_Header'}
18231 $as_echo "$as_val"'`
18232 if test "x$as_val" = x""yes; then
18233 cat >>confdefs.h <<_ACEOF
18234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18235 _ACEOF
18239 done
18246 for ac_header in $ac_header_list
18248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18251 $as_echo_n "checking for $ac_header... " >&6; }
18252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18253 $as_echo_n "(cached) " >&6
18255 ac_res=`eval 'as_val=${'$as_ac_Header'}
18256 $as_echo "$as_val"'`
18257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18258 $as_echo "$ac_res" >&6; }
18259 else
18260 # Is the header compilable?
18261 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18262 $as_echo_n "checking $ac_header usability... " >&6; }
18263 cat >conftest.$ac_ext <<_ACEOF
18264 /* confdefs.h. */
18265 _ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18269 $ac_includes_default
18270 #include <$ac_header>
18271 _ACEOF
18272 rm -f conftest.$ac_objext
18273 if { (ac_try="$ac_compile"
18274 case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18277 esac
18278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18279 $as_echo "$ac_try_echo") >&5
18280 (eval "$ac_compile") 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } && {
18287 test -z "$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18289 } && test -s conftest.$ac_objext; then
18290 ac_header_compiler=yes
18291 else
18292 $as_echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 ac_header_compiler=no
18298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18299 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18300 $as_echo "$ac_header_compiler" >&6; }
18302 # Is the header present?
18303 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18304 $as_echo_n "checking $ac_header presence... " >&6; }
18305 cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h. */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18311 #include <$ac_header>
18312 _ACEOF
18313 if { (ac_try="$ac_cpp conftest.$ac_ext"
18314 case "(($ac_try" in
18315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316 *) ac_try_echo=$ac_try;;
18317 esac
18318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18319 $as_echo "$ac_try_echo") >&5
18320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18321 ac_status=$?
18322 grep -v '^ *+' conftest.er1 >conftest.err
18323 rm -f conftest.er1
18324 cat conftest.err >&5
18325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } >/dev/null && {
18327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18328 test ! -s conftest.err
18329 }; then
18330 ac_header_preproc=yes
18331 else
18332 $as_echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18335 ac_header_preproc=no
18338 rm -f conftest.err conftest.$ac_ext
18339 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18340 $as_echo "$ac_header_preproc" >&6; }
18342 # So? What about this header?
18343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18344 yes:no: )
18345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18346 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18349 ac_header_preproc=yes
18351 no:yes:* )
18352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18353 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18355 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18357 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18359 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18363 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18366 esac
18367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18368 $as_echo_n "checking for $ac_header... " >&6; }
18369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18370 $as_echo_n "(cached) " >&6
18371 else
18372 eval "$as_ac_Header=\$ac_header_preproc"
18374 ac_res=`eval 'as_val=${'$as_ac_Header'}
18375 $as_echo "$as_val"'`
18376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18377 $as_echo "$ac_res" >&6; }
18380 as_val=`eval 'as_val=${'$as_ac_Header'}
18381 $as_echo "$as_val"'`
18382 if test "x$as_val" = x""yes; then
18383 cat >>confdefs.h <<_ACEOF
18384 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18385 _ACEOF
18389 done
18411 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18412 $as_echo_n "checking for working mktime... " >&6; }
18413 if test "${ac_cv_func_working_mktime+set}" = set; then
18414 $as_echo_n "(cached) " >&6
18415 else
18416 if test "$cross_compiling" = yes; then
18417 ac_cv_func_working_mktime=no
18418 else
18419 cat >conftest.$ac_ext <<_ACEOF
18420 /* confdefs.h. */
18421 _ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h. */
18425 /* Test program from Paul Eggert and Tony Leneis. */
18426 #ifdef TIME_WITH_SYS_TIME
18427 # include <sys/time.h>
18428 # include <time.h>
18429 #else
18430 # ifdef HAVE_SYS_TIME_H
18431 # include <sys/time.h>
18432 # else
18433 # include <time.h>
18434 # endif
18435 #endif
18437 #include <limits.h>
18438 #include <stdlib.h>
18440 #ifdef HAVE_UNISTD_H
18441 # include <unistd.h>
18442 #endif
18444 #ifndef HAVE_ALARM
18445 # define alarm(X) /* empty */
18446 #endif
18448 /* Work around redefinition to rpl_putenv by other config tests. */
18449 #undef putenv
18451 static time_t time_t_max;
18452 static time_t time_t_min;
18454 /* Values we'll use to set the TZ environment variable. */
18455 static char *tz_strings[] = {
18456 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18457 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18459 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18461 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18462 Based on a problem report from Andreas Jaeger. */
18463 static int
18464 spring_forward_gap ()
18466 /* glibc (up to about 1998-10-07) failed this test. */
18467 struct tm tm;
18469 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18470 instead of "TZ=America/Vancouver" in order to detect the bug even
18471 on systems that don't support the Olson extension, or don't have the
18472 full zoneinfo tables installed. */
18473 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18475 tm.tm_year = 98;
18476 tm.tm_mon = 3;
18477 tm.tm_mday = 5;
18478 tm.tm_hour = 2;
18479 tm.tm_min = 0;
18480 tm.tm_sec = 0;
18481 tm.tm_isdst = -1;
18482 return mktime (&tm) != (time_t) -1;
18485 static int
18486 mktime_test1 (now)
18487 time_t now;
18489 struct tm *lt;
18490 return ! (lt = localtime (&now)) || mktime (lt) == now;
18493 static int
18494 mktime_test (now)
18495 time_t now;
18497 return (mktime_test1 (now)
18498 && mktime_test1 ((time_t) (time_t_max - now))
18499 && mktime_test1 ((time_t) (time_t_min + now)));
18502 static int
18503 irix_6_4_bug ()
18505 /* Based on code from Ariel Faigon. */
18506 struct tm tm;
18507 tm.tm_year = 96;
18508 tm.tm_mon = 3;
18509 tm.tm_mday = 0;
18510 tm.tm_hour = 0;
18511 tm.tm_min = 0;
18512 tm.tm_sec = 0;
18513 tm.tm_isdst = -1;
18514 mktime (&tm);
18515 return tm.tm_mon == 2 && tm.tm_mday == 31;
18518 static int
18519 bigtime_test (j)
18520 int j;
18522 struct tm tm;
18523 time_t now;
18524 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18525 now = mktime (&tm);
18526 if (now != (time_t) -1)
18528 struct tm *lt = localtime (&now);
18529 if (! (lt
18530 && lt->tm_year == tm.tm_year
18531 && lt->tm_mon == tm.tm_mon
18532 && lt->tm_mday == tm.tm_mday
18533 && lt->tm_hour == tm.tm_hour
18534 && lt->tm_min == tm.tm_min
18535 && lt->tm_sec == tm.tm_sec
18536 && lt->tm_yday == tm.tm_yday
18537 && lt->tm_wday == tm.tm_wday
18538 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18539 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18540 return 0;
18542 return 1;
18545 static int
18546 year_2050_test ()
18548 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18549 ignoring leap seconds. */
18550 unsigned long int answer = 2527315200UL;
18552 struct tm tm;
18553 time_t t;
18554 tm.tm_year = 2050 - 1900;
18555 tm.tm_mon = 2 - 1;
18556 tm.tm_mday = 1;
18557 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18558 tm.tm_isdst = -1;
18560 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18561 instead of "TZ=America/Vancouver" in order to detect the bug even
18562 on systems that don't support the Olson extension, or don't have the
18563 full zoneinfo tables installed. */
18564 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18566 t = mktime (&tm);
18568 /* Check that the result is either a failure, or close enough
18569 to the correct answer that we can assume the discrepancy is
18570 due to leap seconds. */
18571 return (t == (time_t) -1
18572 || (0 < t && answer - 120 <= t && t <= answer + 120));
18576 main ()
18578 time_t t, delta;
18579 int i, j;
18581 /* This test makes some buggy mktime implementations loop.
18582 Give up after 60 seconds; a mktime slower than that
18583 isn't worth using anyway. */
18584 alarm (60);
18586 for (;;)
18588 t = (time_t_max << 1) + 1;
18589 if (t <= time_t_max)
18590 break;
18591 time_t_max = t;
18593 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18595 delta = time_t_max / 997; /* a suitable prime number */
18596 for (i = 0; i < N_STRINGS; i++)
18598 if (tz_strings[i])
18599 putenv (tz_strings[i]);
18601 for (t = 0; t <= time_t_max - delta; t += delta)
18602 if (! mktime_test (t))
18603 return 1;
18604 if (! (mktime_test ((time_t) 1)
18605 && mktime_test ((time_t) (60 * 60))
18606 && mktime_test ((time_t) (60 * 60 * 24))))
18607 return 1;
18609 for (j = 1; ; j <<= 1)
18610 if (! bigtime_test (j))
18611 return 1;
18612 else if (INT_MAX / 2 < j)
18613 break;
18614 if (! bigtime_test (INT_MAX))
18615 return 1;
18617 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18619 _ACEOF
18620 rm -f conftest$ac_exeext
18621 if { (ac_try="$ac_link"
18622 case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625 esac
18626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18627 $as_echo "$ac_try_echo") >&5
18628 (eval "$ac_link") 2>&5
18629 ac_status=$?
18630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18635 esac
18636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18637 $as_echo "$ac_try_echo") >&5
18638 (eval "$ac_try") 2>&5
18639 ac_status=$?
18640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_cv_func_working_mktime=yes
18643 else
18644 $as_echo "$as_me: program exited with status $ac_status" >&5
18645 $as_echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 ( exit $ac_status )
18649 ac_cv_func_working_mktime=no
18651 rm -rf conftest.dSYM
18652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18657 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18658 $as_echo "$ac_cv_func_working_mktime" >&6; }
18659 if test $ac_cv_func_working_mktime = no; then
18660 case " $LIBOBJS " in
18661 *" mktime.$ac_objext "* ) ;;
18662 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18664 esac
18668 if test "$ac_cv_func_working_mktime" = no; then
18670 cat >>confdefs.h <<\_ACEOF
18671 #define BROKEN_MKTIME 1
18672 _ACEOF
18676 ac_have_func=no # yes means we've found a way to get the load average.
18678 # Make sure getloadavg.c is where it belongs, at configure-time.
18679 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18680 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18681 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18682 { (exit 1); exit 1; }; }
18684 ac_save_LIBS=$LIBS
18686 # Check for getloadavg, but be sure not to touch the cache variable.
18687 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18688 $as_echo_n "checking for getloadavg... " >&6; }
18689 if test "${ac_cv_func_getloadavg+set}" = set; then
18690 $as_echo_n "(cached) " >&6
18691 else
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h. */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18700 #define getloadavg innocuous_getloadavg
18702 /* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char getloadavg (); below.
18704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 <limits.h> exists even on freestanding compilers. */
18707 #ifdef __STDC__
18708 # include <limits.h>
18709 #else
18710 # include <assert.h>
18711 #endif
18713 #undef getloadavg
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18718 #ifdef __cplusplus
18719 extern "C"
18720 #endif
18721 char getloadavg ();
18722 /* The GNU C library defines this for functions which it implements
18723 to always fail with ENOSYS. Some functions are actually named
18724 something starting with __ and the normal name is an alias. */
18725 #if defined __stub_getloadavg || defined __stub___getloadavg
18726 choke me
18727 #endif
18730 main ()
18732 return getloadavg ();
18734 return 0;
18736 _ACEOF
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742 esac
18743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18744 $as_echo "$ac_try_echo") >&5
18745 (eval "$ac_link") 2>conftest.er1
18746 ac_status=$?
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
18750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } && {
18752 test -z "$ac_c_werror_flag" ||
18753 test ! -s conftest.err
18754 } && test -s conftest$ac_exeext && {
18755 test "$cross_compiling" = yes ||
18756 $as_test_x conftest$ac_exeext
18757 }; then
18758 ac_cv_func_getloadavg=yes
18759 else
18760 $as_echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18763 ac_cv_func_getloadavg=no
18766 rm -rf conftest.dSYM
18767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18768 conftest$ac_exeext conftest.$ac_ext
18770 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18771 $as_echo "$ac_cv_func_getloadavg" >&6; }
18772 if test "x$ac_cv_func_getloadavg" = x""yes; then
18773 exit 0
18774 else
18775 exit 1
18777 ) && ac_have_func=yes
18779 # On HPUX9, an unprivileged user can get load averages through this function.
18781 for ac_func in pstat_getdynamic
18783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18784 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18785 $as_echo_n "checking for $ac_func... " >&6; }
18786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18787 $as_echo_n "(cached) " >&6
18788 else
18789 cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h. */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18797 #define $ac_func innocuous_$ac_func
18799 /* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char $ac_func (); below.
18801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 <limits.h> exists even on freestanding compilers. */
18804 #ifdef __STDC__
18805 # include <limits.h>
18806 #else
18807 # include <assert.h>
18808 #endif
18810 #undef $ac_func
18812 /* Override any GCC internal prototype to avoid an error.
18813 Use char because int might match the return type of a GCC
18814 builtin and then its argument prototype would still apply. */
18815 #ifdef __cplusplus
18816 extern "C"
18817 #endif
18818 char $ac_func ();
18819 /* The GNU C library defines this for functions which it implements
18820 to always fail with ENOSYS. Some functions are actually named
18821 something starting with __ and the normal name is an alias. */
18822 #if defined __stub_$ac_func || defined __stub___$ac_func
18823 choke me
18824 #endif
18827 main ()
18829 return $ac_func ();
18831 return 0;
18833 _ACEOF
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18839 esac
18840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18841 $as_echo "$ac_try_echo") >&5
18842 (eval "$ac_link") 2>conftest.er1
18843 ac_status=$?
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
18847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } && {
18849 test -z "$ac_c_werror_flag" ||
18850 test ! -s conftest.err
18851 } && test -s conftest$ac_exeext && {
18852 test "$cross_compiling" = yes ||
18853 $as_test_x conftest$ac_exeext
18854 }; then
18855 eval "$as_ac_var=yes"
18856 else
18857 $as_echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18860 eval "$as_ac_var=no"
18863 rm -rf conftest.dSYM
18864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18865 conftest$ac_exeext conftest.$ac_ext
18867 ac_res=`eval 'as_val=${'$as_ac_var'}
18868 $as_echo "$as_val"'`
18869 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18870 $as_echo "$ac_res" >&6; }
18871 as_val=`eval 'as_val=${'$as_ac_var'}
18872 $as_echo "$as_val"'`
18873 if test "x$as_val" = x""yes; then
18874 cat >>confdefs.h <<_ACEOF
18875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18876 _ACEOF
18879 done
18882 # Solaris has libkstat which does not require root.
18884 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18885 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18886 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18887 $as_echo_n "(cached) " >&6
18888 else
18889 ac_check_lib_save_LIBS=$LIBS
18890 LIBS="-lkstat $LIBS"
18891 cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h. */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18898 /* Override any GCC internal prototype to avoid an error.
18899 Use char because int might match the return type of a GCC
18900 builtin and then its argument prototype would still apply. */
18901 #ifdef __cplusplus
18902 extern "C"
18903 #endif
18904 char kstat_open ();
18906 main ()
18908 return kstat_open ();
18910 return 0;
18912 _ACEOF
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (ac_try="$ac_link"
18915 case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18918 esac
18919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18920 $as_echo "$ac_try_echo") >&5
18921 (eval "$ac_link") 2>conftest.er1
18922 ac_status=$?
18923 grep -v '^ *+' conftest.er1 >conftest.err
18924 rm -f conftest.er1
18925 cat conftest.err >&5
18926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } && {
18928 test -z "$ac_c_werror_flag" ||
18929 test ! -s conftest.err
18930 } && test -s conftest$ac_exeext && {
18931 test "$cross_compiling" = yes ||
18932 $as_test_x conftest$ac_exeext
18933 }; then
18934 ac_cv_lib_kstat_kstat_open=yes
18935 else
18936 $as_echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18939 ac_cv_lib_kstat_kstat_open=no
18942 rm -rf conftest.dSYM
18943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18944 conftest$ac_exeext conftest.$ac_ext
18945 LIBS=$ac_check_lib_save_LIBS
18947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18948 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18949 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then
18950 cat >>confdefs.h <<_ACEOF
18951 #define HAVE_LIBKSTAT 1
18952 _ACEOF
18954 LIBS="-lkstat $LIBS"
18958 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18960 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18961 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18962 # to get the right answer into the cache.
18963 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18964 if test $ac_have_func = no; then
18965 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18966 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18967 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18968 $as_echo_n "(cached) " >&6
18969 else
18970 ac_check_lib_save_LIBS=$LIBS
18971 LIBS="-lelf $LIBS"
18972 cat >conftest.$ac_ext <<_ACEOF
18973 /* confdefs.h. */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18979 /* Override any GCC internal prototype to avoid an error.
18980 Use char because int might match the return type of a GCC
18981 builtin and then its argument prototype would still apply. */
18982 #ifdef __cplusplus
18983 extern "C"
18984 #endif
18985 char elf_begin ();
18987 main ()
18989 return elf_begin ();
18991 return 0;
18993 _ACEOF
18994 rm -f conftest.$ac_objext conftest$ac_exeext
18995 if { (ac_try="$ac_link"
18996 case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
18999 esac
19000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19001 $as_echo "$ac_try_echo") >&5
19002 (eval "$ac_link") 2>conftest.er1
19003 ac_status=$?
19004 grep -v '^ *+' conftest.er1 >conftest.err
19005 rm -f conftest.er1
19006 cat conftest.err >&5
19007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest$ac_exeext && {
19012 test "$cross_compiling" = yes ||
19013 $as_test_x conftest$ac_exeext
19014 }; then
19015 ac_cv_lib_elf_elf_begin=yes
19016 else
19017 $as_echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 ac_cv_lib_elf_elf_begin=no
19023 rm -rf conftest.dSYM
19024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19025 conftest$ac_exeext conftest.$ac_ext
19026 LIBS=$ac_check_lib_save_LIBS
19028 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19029 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19030 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then
19031 LIBS="-lelf $LIBS"
19035 if test $ac_have_func = no; then
19036 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
19037 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19038 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
19039 $as_echo_n "(cached) " >&6
19040 else
19041 ac_check_lib_save_LIBS=$LIBS
19042 LIBS="-lkvm $LIBS"
19043 cat >conftest.$ac_ext <<_ACEOF
19044 /* confdefs.h. */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19050 /* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19053 #ifdef __cplusplus
19054 extern "C"
19055 #endif
19056 char kvm_open ();
19058 main ()
19060 return kvm_open ();
19062 return 0;
19064 _ACEOF
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (ac_try="$ac_link"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19070 esac
19071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19072 $as_echo "$ac_try_echo") >&5
19073 (eval "$ac_link") 2>conftest.er1
19074 ac_status=$?
19075 grep -v '^ *+' conftest.er1 >conftest.err
19076 rm -f conftest.er1
19077 cat conftest.err >&5
19078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } && {
19080 test -z "$ac_c_werror_flag" ||
19081 test ! -s conftest.err
19082 } && test -s conftest$ac_exeext && {
19083 test "$cross_compiling" = yes ||
19084 $as_test_x conftest$ac_exeext
19085 }; then
19086 ac_cv_lib_kvm_kvm_open=yes
19087 else
19088 $as_echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.$ac_ext >&5
19091 ac_cv_lib_kvm_kvm_open=no
19094 rm -rf conftest.dSYM
19095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19096 conftest$ac_exeext conftest.$ac_ext
19097 LIBS=$ac_check_lib_save_LIBS
19099 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
19100 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19101 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then
19102 LIBS="-lkvm $LIBS"
19105 # Check for the 4.4BSD definition of getloadavg.
19106 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
19107 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19108 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
19109 $as_echo_n "(cached) " >&6
19110 else
19111 ac_check_lib_save_LIBS=$LIBS
19112 LIBS="-lutil $LIBS"
19113 cat >conftest.$ac_ext <<_ACEOF
19114 /* confdefs.h. */
19115 _ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19120 /* Override any GCC internal prototype to avoid an error.
19121 Use char because int might match the return type of a GCC
19122 builtin and then its argument prototype would still apply. */
19123 #ifdef __cplusplus
19124 extern "C"
19125 #endif
19126 char getloadavg ();
19128 main ()
19130 return getloadavg ();
19132 return 0;
19134 _ACEOF
19135 rm -f conftest.$ac_objext conftest$ac_exeext
19136 if { (ac_try="$ac_link"
19137 case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19140 esac
19141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19142 $as_echo "$ac_try_echo") >&5
19143 (eval "$ac_link") 2>conftest.er1
19144 ac_status=$?
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
19148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } && {
19150 test -z "$ac_c_werror_flag" ||
19151 test ! -s conftest.err
19152 } && test -s conftest$ac_exeext && {
19153 test "$cross_compiling" = yes ||
19154 $as_test_x conftest$ac_exeext
19155 }; then
19156 ac_cv_lib_util_getloadavg=yes
19157 else
19158 $as_echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19161 ac_cv_lib_util_getloadavg=no
19164 rm -rf conftest.dSYM
19165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19166 conftest$ac_exeext conftest.$ac_ext
19167 LIBS=$ac_check_lib_save_LIBS
19169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
19170 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19171 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then
19172 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19177 if test $ac_have_func = no; then
19178 # There is a commonly available library for RS/6000 AIX.
19179 # Since it is not a standard part of AIX, it might be installed locally.
19180 ac_getloadavg_LIBS=$LIBS
19181 LIBS="-L/usr/local/lib $LIBS"
19182 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
19183 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19184 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19185 $as_echo_n "(cached) " >&6
19186 else
19187 ac_check_lib_save_LIBS=$LIBS
19188 LIBS="-lgetloadavg $LIBS"
19189 cat >conftest.$ac_ext <<_ACEOF
19190 /* confdefs.h. */
19191 _ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h. */
19196 /* Override any GCC internal prototype to avoid an error.
19197 Use char because int might match the return type of a GCC
19198 builtin and then its argument prototype would still apply. */
19199 #ifdef __cplusplus
19200 extern "C"
19201 #endif
19202 char getloadavg ();
19204 main ()
19206 return getloadavg ();
19208 return 0;
19210 _ACEOF
19211 rm -f conftest.$ac_objext conftest$ac_exeext
19212 if { (ac_try="$ac_link"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19216 esac
19217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19218 $as_echo "$ac_try_echo") >&5
19219 (eval "$ac_link") 2>conftest.er1
19220 ac_status=$?
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
19224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } && {
19226 test -z "$ac_c_werror_flag" ||
19227 test ! -s conftest.err
19228 } && test -s conftest$ac_exeext && {
19229 test "$cross_compiling" = yes ||
19230 $as_test_x conftest$ac_exeext
19231 }; then
19232 ac_cv_lib_getloadavg_getloadavg=yes
19233 else
19234 $as_echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19237 ac_cv_lib_getloadavg_getloadavg=no
19240 rm -rf conftest.dSYM
19241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19242 conftest$ac_exeext conftest.$ac_ext
19243 LIBS=$ac_check_lib_save_LIBS
19245 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19246 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19247 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then
19248 LIBS="-lgetloadavg $LIBS"
19249 else
19250 LIBS=$ac_getloadavg_LIBS
19255 # Make sure it is really in the library, if we think we found it,
19256 # otherwise set up the replacement function.
19258 for ac_func in getloadavg
19260 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19261 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19262 $as_echo_n "checking for $ac_func... " >&6; }
19263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19264 $as_echo_n "(cached) " >&6
19265 else
19266 cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h. */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19274 #define $ac_func innocuous_$ac_func
19276 /* System header to define __stub macros and hopefully few prototypes,
19277 which can conflict with char $ac_func (); below.
19278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19279 <limits.h> exists even on freestanding compilers. */
19281 #ifdef __STDC__
19282 # include <limits.h>
19283 #else
19284 # include <assert.h>
19285 #endif
19287 #undef $ac_func
19289 /* Override any GCC internal prototype to avoid an error.
19290 Use char because int might match the return type of a GCC
19291 builtin and then its argument prototype would still apply. */
19292 #ifdef __cplusplus
19293 extern "C"
19294 #endif
19295 char $ac_func ();
19296 /* The GNU C library defines this for functions which it implements
19297 to always fail with ENOSYS. Some functions are actually named
19298 something starting with __ and the normal name is an alias. */
19299 #if defined __stub_$ac_func || defined __stub___$ac_func
19300 choke me
19301 #endif
19304 main ()
19306 return $ac_func ();
19308 return 0;
19310 _ACEOF
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (ac_try="$ac_link"
19313 case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19316 esac
19317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19318 $as_echo "$ac_try_echo") >&5
19319 (eval "$ac_link") 2>conftest.er1
19320 ac_status=$?
19321 grep -v '^ *+' conftest.er1 >conftest.err
19322 rm -f conftest.er1
19323 cat conftest.err >&5
19324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } && {
19326 test -z "$ac_c_werror_flag" ||
19327 test ! -s conftest.err
19328 } && test -s conftest$ac_exeext && {
19329 test "$cross_compiling" = yes ||
19330 $as_test_x conftest$ac_exeext
19331 }; then
19332 eval "$as_ac_var=yes"
19333 else
19334 $as_echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 eval "$as_ac_var=no"
19340 rm -rf conftest.dSYM
19341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19342 conftest$ac_exeext conftest.$ac_ext
19344 ac_res=`eval 'as_val=${'$as_ac_var'}
19345 $as_echo "$as_val"'`
19346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19347 $as_echo "$ac_res" >&6; }
19348 as_val=`eval 'as_val=${'$as_ac_var'}
19349 $as_echo "$as_val"'`
19350 if test "x$as_val" = x""yes; then
19351 cat >>confdefs.h <<_ACEOF
19352 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19353 _ACEOF
19355 else
19356 case " $LIBOBJS " in
19357 *" getloadavg.$ac_objext "* ) ;;
19358 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19360 esac
19363 cat >>confdefs.h <<\_ACEOF
19364 #define C_GETLOADAVG 1
19365 _ACEOF
19367 # Figure out what our getloadavg.c needs.
19368 ac_have_func=no
19369 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19370 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19371 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19372 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19373 $as_echo_n "(cached) " >&6
19375 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19376 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19377 else
19378 # Is the header compilable?
19379 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19380 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19381 cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h. */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19387 $ac_includes_default
19388 #include <sys/dg_sys_info.h>
19389 _ACEOF
19390 rm -f conftest.$ac_objext
19391 if { (ac_try="$ac_compile"
19392 case "(($ac_try" in
19393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19395 esac
19396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19397 $as_echo "$ac_try_echo") >&5
19398 (eval "$ac_compile") 2>conftest.er1
19399 ac_status=$?
19400 grep -v '^ *+' conftest.er1 >conftest.err
19401 rm -f conftest.er1
19402 cat conftest.err >&5
19403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } && {
19405 test -z "$ac_c_werror_flag" ||
19406 test ! -s conftest.err
19407 } && test -s conftest.$ac_objext; then
19408 ac_header_compiler=yes
19409 else
19410 $as_echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 ac_header_compiler=no
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19418 $as_echo "$ac_header_compiler" >&6; }
19420 # Is the header present?
19421 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19422 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19423 cat >conftest.$ac_ext <<_ACEOF
19424 /* confdefs.h. */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19429 #include <sys/dg_sys_info.h>
19430 _ACEOF
19431 if { (ac_try="$ac_cpp conftest.$ac_ext"
19432 case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435 esac
19436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19437 $as_echo "$ac_try_echo") >&5
19438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19439 ac_status=$?
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
19443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } >/dev/null && {
19445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 }; then
19448 ac_header_preproc=yes
19449 else
19450 $as_echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19453 ac_header_preproc=no
19456 rm -f conftest.err conftest.$ac_ext
19457 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19458 $as_echo "$ac_header_preproc" >&6; }
19460 # So? What about this header?
19461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19462 yes:no: )
19463 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19464 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19465 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19466 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19467 ac_header_preproc=yes
19469 no:yes:* )
19470 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19471 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19472 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19473 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19474 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19475 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19476 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19477 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19478 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19479 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19480 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19481 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19484 esac
19485 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19486 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19487 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19488 $as_echo_n "(cached) " >&6
19489 else
19490 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19492 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19493 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19496 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then
19497 ac_have_func=yes
19499 cat >>confdefs.h <<\_ACEOF
19500 #define DGUX 1
19501 _ACEOF
19504 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19505 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19506 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19507 $as_echo_n "(cached) " >&6
19508 else
19509 ac_check_lib_save_LIBS=$LIBS
19510 LIBS="-ldgc $LIBS"
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h. */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19518 /* Override any GCC internal prototype to avoid an error.
19519 Use char because int might match the return type of a GCC
19520 builtin and then its argument prototype would still apply. */
19521 #ifdef __cplusplus
19522 extern "C"
19523 #endif
19524 char dg_sys_info ();
19526 main ()
19528 return dg_sys_info ();
19530 return 0;
19532 _ACEOF
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (ac_try="$ac_link"
19535 case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538 esac
19539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19540 $as_echo "$ac_try_echo") >&5
19541 (eval "$ac_link") 2>conftest.er1
19542 ac_status=$?
19543 grep -v '^ *+' conftest.er1 >conftest.err
19544 rm -f conftest.er1
19545 cat conftest.err >&5
19546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } && {
19548 test -z "$ac_c_werror_flag" ||
19549 test ! -s conftest.err
19550 } && test -s conftest$ac_exeext && {
19551 test "$cross_compiling" = yes ||
19552 $as_test_x conftest$ac_exeext
19553 }; then
19554 ac_cv_lib_dgc_dg_sys_info=yes
19555 else
19556 $as_echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19559 ac_cv_lib_dgc_dg_sys_info=no
19562 rm -rf conftest.dSYM
19563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19564 conftest$ac_exeext conftest.$ac_ext
19565 LIBS=$ac_check_lib_save_LIBS
19567 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19568 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19569 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then
19570 cat >>confdefs.h <<_ACEOF
19571 #define HAVE_LIBDGC 1
19572 _ACEOF
19574 LIBS="-ldgc $LIBS"
19582 if test "${ac_cv_header_locale_h+set}" = set; then
19583 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19584 $as_echo_n "checking for locale.h... " >&6; }
19585 if test "${ac_cv_header_locale_h+set}" = set; then
19586 $as_echo_n "(cached) " >&6
19588 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19589 $as_echo "$ac_cv_header_locale_h" >&6; }
19590 else
19591 # Is the header compilable?
19592 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19593 $as_echo_n "checking locale.h usability... " >&6; }
19594 cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h. */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 $ac_includes_default
19601 #include <locale.h>
19602 _ACEOF
19603 rm -f conftest.$ac_objext
19604 if { (ac_try="$ac_compile"
19605 case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19608 esac
19609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19610 $as_echo "$ac_try_echo") >&5
19611 (eval "$ac_compile") 2>conftest.er1
19612 ac_status=$?
19613 grep -v '^ *+' conftest.er1 >conftest.err
19614 rm -f conftest.er1
19615 cat conftest.err >&5
19616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } && {
19618 test -z "$ac_c_werror_flag" ||
19619 test ! -s conftest.err
19620 } && test -s conftest.$ac_objext; then
19621 ac_header_compiler=yes
19622 else
19623 $as_echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 ac_header_compiler=no
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19631 $as_echo "$ac_header_compiler" >&6; }
19633 # Is the header present?
19634 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19635 $as_echo_n "checking locale.h presence... " >&6; }
19636 cat >conftest.$ac_ext <<_ACEOF
19637 /* confdefs.h. */
19638 _ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19642 #include <locale.h>
19643 _ACEOF
19644 if { (ac_try="$ac_cpp conftest.$ac_ext"
19645 case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19648 esac
19649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19650 $as_echo "$ac_try_echo") >&5
19651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19652 ac_status=$?
19653 grep -v '^ *+' conftest.er1 >conftest.err
19654 rm -f conftest.er1
19655 cat conftest.err >&5
19656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } >/dev/null && {
19658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19659 test ! -s conftest.err
19660 }; then
19661 ac_header_preproc=yes
19662 else
19663 $as_echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 ac_header_preproc=no
19669 rm -f conftest.err conftest.$ac_ext
19670 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19671 $as_echo "$ac_header_preproc" >&6; }
19673 # So? What about this header?
19674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19675 yes:no: )
19676 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19677 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19678 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19679 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19680 ac_header_preproc=yes
19682 no:yes:* )
19683 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19684 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19685 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19686 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19687 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19688 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19689 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19690 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19691 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19692 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19693 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19694 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19697 esac
19698 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19699 $as_echo_n "checking for locale.h... " >&6; }
19700 if test "${ac_cv_header_locale_h+set}" = set; then
19701 $as_echo_n "(cached) " >&6
19702 else
19703 ac_cv_header_locale_h=$ac_header_preproc
19705 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19706 $as_echo "$ac_cv_header_locale_h" >&6; }
19712 for ac_func in setlocale
19714 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19715 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19716 $as_echo_n "checking for $ac_func... " >&6; }
19717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19718 $as_echo_n "(cached) " >&6
19719 else
19720 cat >conftest.$ac_ext <<_ACEOF
19721 /* confdefs.h. */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19728 #define $ac_func innocuous_$ac_func
19730 /* System header to define __stub macros and hopefully few prototypes,
19731 which can conflict with char $ac_func (); below.
19732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19733 <limits.h> exists even on freestanding compilers. */
19735 #ifdef __STDC__
19736 # include <limits.h>
19737 #else
19738 # include <assert.h>
19739 #endif
19741 #undef $ac_func
19743 /* Override any GCC internal prototype to avoid an error.
19744 Use char because int might match the return type of a GCC
19745 builtin and then its argument prototype would still apply. */
19746 #ifdef __cplusplus
19747 extern "C"
19748 #endif
19749 char $ac_func ();
19750 /* The GNU C library defines this for functions which it implements
19751 to always fail with ENOSYS. Some functions are actually named
19752 something starting with __ and the normal name is an alias. */
19753 #if defined __stub_$ac_func || defined __stub___$ac_func
19754 choke me
19755 #endif
19758 main ()
19760 return $ac_func ();
19762 return 0;
19764 _ACEOF
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (ac_try="$ac_link"
19767 case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19770 esac
19771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19772 $as_echo "$ac_try_echo") >&5
19773 (eval "$ac_link") 2>conftest.er1
19774 ac_status=$?
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
19778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } && {
19780 test -z "$ac_c_werror_flag" ||
19781 test ! -s conftest.err
19782 } && test -s conftest$ac_exeext && {
19783 test "$cross_compiling" = yes ||
19784 $as_test_x conftest$ac_exeext
19785 }; then
19786 eval "$as_ac_var=yes"
19787 else
19788 $as_echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19791 eval "$as_ac_var=no"
19794 rm -rf conftest.dSYM
19795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19796 conftest$ac_exeext conftest.$ac_ext
19798 ac_res=`eval 'as_val=${'$as_ac_var'}
19799 $as_echo "$as_val"'`
19800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19801 $as_echo "$ac_res" >&6; }
19802 as_val=`eval 'as_val=${'$as_ac_var'}
19803 $as_echo "$as_val"'`
19804 if test "x$as_val" = x""yes; then
19805 cat >>confdefs.h <<_ACEOF
19806 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19807 _ACEOF
19810 done
19813 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19814 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19815 # Irix 4.0.5F has the header but not the library.
19816 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19817 ac_have_func=yes
19819 cat >>confdefs.h <<\_ACEOF
19820 #define SVR4 1
19821 _ACEOF
19825 if test $ac_have_func = no; then
19826 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19827 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19828 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19829 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19830 $as_echo_n "(cached) " >&6
19832 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19833 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19834 else
19835 # Is the header compilable?
19836 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19837 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h. */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 $ac_includes_default
19845 #include <inq_stats/cpustats.h>
19846 _ACEOF
19847 rm -f conftest.$ac_objext
19848 if { (ac_try="$ac_compile"
19849 case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19852 esac
19853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19854 $as_echo "$ac_try_echo") >&5
19855 (eval "$ac_compile") 2>conftest.er1
19856 ac_status=$?
19857 grep -v '^ *+' conftest.er1 >conftest.err
19858 rm -f conftest.er1
19859 cat conftest.err >&5
19860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } && {
19862 test -z "$ac_c_werror_flag" ||
19863 test ! -s conftest.err
19864 } && test -s conftest.$ac_objext; then
19865 ac_header_compiler=yes
19866 else
19867 $as_echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19870 ac_header_compiler=no
19873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19875 $as_echo "$ac_header_compiler" >&6; }
19877 # Is the header present?
19878 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19879 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19880 cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h. */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 #include <inq_stats/cpustats.h>
19887 _ACEOF
19888 if { (ac_try="$ac_cpp conftest.$ac_ext"
19889 case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19892 esac
19893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19894 $as_echo "$ac_try_echo") >&5
19895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19896 ac_status=$?
19897 grep -v '^ *+' conftest.er1 >conftest.err
19898 rm -f conftest.er1
19899 cat conftest.err >&5
19900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } >/dev/null && {
19902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19904 }; then
19905 ac_header_preproc=yes
19906 else
19907 $as_echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_header_preproc=no
19913 rm -f conftest.err conftest.$ac_ext
19914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19915 $as_echo "$ac_header_preproc" >&6; }
19917 # So? What about this header?
19918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19919 yes:no: )
19920 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19921 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19922 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19923 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19924 ac_header_preproc=yes
19926 no:yes:* )
19927 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19928 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19929 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19930 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19931 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19932 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19933 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19934 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19935 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19936 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19937 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19938 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19941 esac
19942 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19943 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19944 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19945 $as_echo_n "(cached) " >&6
19946 else
19947 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19949 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19950 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19953 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then
19954 ac_have_func=yes
19956 cat >>confdefs.h <<\_ACEOF
19957 #define UMAX 1
19958 _ACEOF
19961 cat >>confdefs.h <<\_ACEOF
19962 #define UMAX4_3 1
19963 _ACEOF
19970 if test $ac_have_func = no; then
19971 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19972 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19973 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19974 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19975 $as_echo_n "(cached) " >&6
19977 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19978 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19979 else
19980 # Is the header compilable?
19981 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19982 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19983 cat >conftest.$ac_ext <<_ACEOF
19984 /* confdefs.h. */
19985 _ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 $ac_includes_default
19990 #include <sys/cpustats.h>
19991 _ACEOF
19992 rm -f conftest.$ac_objext
19993 if { (ac_try="$ac_compile"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997 esac
19998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19999 $as_echo "$ac_try_echo") >&5
20000 (eval "$ac_compile") 2>conftest.er1
20001 ac_status=$?
20002 grep -v '^ *+' conftest.er1 >conftest.err
20003 rm -f conftest.er1
20004 cat conftest.err >&5
20005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest.$ac_objext; then
20010 ac_header_compiler=yes
20011 else
20012 $as_echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 ac_header_compiler=no
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20020 $as_echo "$ac_header_compiler" >&6; }
20022 # Is the header present?
20023 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
20024 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
20025 cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h. */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031 #include <sys/cpustats.h>
20032 _ACEOF
20033 if { (ac_try="$ac_cpp conftest.$ac_ext"
20034 case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037 esac
20038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20039 $as_echo "$ac_try_echo") >&5
20040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20041 ac_status=$?
20042 grep -v '^ *+' conftest.er1 >conftest.err
20043 rm -f conftest.er1
20044 cat conftest.err >&5
20045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } >/dev/null && {
20047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20048 test ! -s conftest.err
20049 }; then
20050 ac_header_preproc=yes
20051 else
20052 $as_echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20055 ac_header_preproc=no
20058 rm -f conftest.err conftest.$ac_ext
20059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20060 $as_echo "$ac_header_preproc" >&6; }
20062 # So? What about this header?
20063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20064 yes:no: )
20065 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
20066 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20067 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
20068 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
20069 ac_header_preproc=yes
20071 no:yes:* )
20072 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
20073 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
20074 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
20075 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
20076 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
20077 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
20078 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
20079 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
20080 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
20081 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
20082 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
20083 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
20086 esac
20087 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
20088 $as_echo_n "checking for sys/cpustats.h... " >&6; }
20089 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
20090 $as_echo_n "(cached) " >&6
20091 else
20092 ac_cv_header_sys_cpustats_h=$ac_header_preproc
20094 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
20095 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
20098 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then
20099 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
20100 #define UMAX 1
20101 _ACEOF
20108 if test $ac_have_func = no; then
20110 for ac_header in mach/mach.h
20112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20114 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20115 $as_echo_n "checking for $ac_header... " >&6; }
20116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20117 $as_echo_n "(cached) " >&6
20119 ac_res=`eval 'as_val=${'$as_ac_Header'}
20120 $as_echo "$as_val"'`
20121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20122 $as_echo "$ac_res" >&6; }
20123 else
20124 # Is the header compilable?
20125 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20126 $as_echo_n "checking $ac_header usability... " >&6; }
20127 cat >conftest.$ac_ext <<_ACEOF
20128 /* confdefs.h. */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20133 $ac_includes_default
20134 #include <$ac_header>
20135 _ACEOF
20136 rm -f conftest.$ac_objext
20137 if { (ac_try="$ac_compile"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141 esac
20142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20143 $as_echo "$ac_try_echo") >&5
20144 (eval "$ac_compile") 2>conftest.er1
20145 ac_status=$?
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
20149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } && {
20151 test -z "$ac_c_werror_flag" ||
20152 test ! -s conftest.err
20153 } && test -s conftest.$ac_objext; then
20154 ac_header_compiler=yes
20155 else
20156 $as_echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 ac_header_compiler=no
20162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20164 $as_echo "$ac_header_compiler" >&6; }
20166 # Is the header present?
20167 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20168 $as_echo_n "checking $ac_header presence... " >&6; }
20169 cat >conftest.$ac_ext <<_ACEOF
20170 /* confdefs.h. */
20171 _ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20175 #include <$ac_header>
20176 _ACEOF
20177 if { (ac_try="$ac_cpp conftest.$ac_ext"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181 esac
20182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20183 $as_echo "$ac_try_echo") >&5
20184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20185 ac_status=$?
20186 grep -v '^ *+' conftest.er1 >conftest.err
20187 rm -f conftest.er1
20188 cat conftest.err >&5
20189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } >/dev/null && {
20191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 }; then
20194 ac_header_preproc=yes
20195 else
20196 $as_echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20199 ac_header_preproc=no
20202 rm -f conftest.err conftest.$ac_ext
20203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20204 $as_echo "$ac_header_preproc" >&6; }
20206 # So? What about this header?
20207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20208 yes:no: )
20209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20210 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20213 ac_header_preproc=yes
20215 no:yes:* )
20216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20217 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20219 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20221 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20223 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20227 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20230 esac
20231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20232 $as_echo_n "checking for $ac_header... " >&6; }
20233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20234 $as_echo_n "(cached) " >&6
20235 else
20236 eval "$as_ac_Header=\$ac_header_preproc"
20238 ac_res=`eval 'as_val=${'$as_ac_Header'}
20239 $as_echo "$as_val"'`
20240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20241 $as_echo "$ac_res" >&6; }
20244 as_val=`eval 'as_val=${'$as_ac_Header'}
20245 $as_echo "$as_val"'`
20246 if test "x$as_val" = x""yes; then
20247 cat >>confdefs.h <<_ACEOF
20248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20249 _ACEOF
20253 done
20258 for ac_header in nlist.h
20260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20262 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20263 $as_echo_n "checking for $ac_header... " >&6; }
20264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20265 $as_echo_n "(cached) " >&6
20267 ac_res=`eval 'as_val=${'$as_ac_Header'}
20268 $as_echo "$as_val"'`
20269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20270 $as_echo "$ac_res" >&6; }
20271 else
20272 # Is the header compilable?
20273 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20274 $as_echo_n "checking $ac_header usability... " >&6; }
20275 cat >conftest.$ac_ext <<_ACEOF
20276 /* confdefs.h. */
20277 _ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20281 $ac_includes_default
20282 #include <$ac_header>
20283 _ACEOF
20284 rm -f conftest.$ac_objext
20285 if { (ac_try="$ac_compile"
20286 case "(($ac_try" in
20287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288 *) ac_try_echo=$ac_try;;
20289 esac
20290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20291 $as_echo "$ac_try_echo") >&5
20292 (eval "$ac_compile") 2>conftest.er1
20293 ac_status=$?
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
20297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } && {
20299 test -z "$ac_c_werror_flag" ||
20300 test ! -s conftest.err
20301 } && test -s conftest.$ac_objext; then
20302 ac_header_compiler=yes
20303 else
20304 $as_echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20307 ac_header_compiler=no
20310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20312 $as_echo "$ac_header_compiler" >&6; }
20314 # Is the header present?
20315 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20316 $as_echo_n "checking $ac_header presence... " >&6; }
20317 cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h. */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20323 #include <$ac_header>
20324 _ACEOF
20325 if { (ac_try="$ac_cpp conftest.$ac_ext"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20329 esac
20330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20331 $as_echo "$ac_try_echo") >&5
20332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20333 ac_status=$?
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
20337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } >/dev/null && {
20339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20341 }; then
20342 ac_header_preproc=yes
20343 else
20344 $as_echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 ac_header_preproc=no
20350 rm -f conftest.err conftest.$ac_ext
20351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20352 $as_echo "$ac_header_preproc" >&6; }
20354 # So? What about this header?
20355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20356 yes:no: )
20357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20358 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20361 ac_header_preproc=yes
20363 no:yes:* )
20364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20365 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20367 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20369 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20371 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20375 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20378 esac
20379 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20380 $as_echo_n "checking for $ac_header... " >&6; }
20381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20382 $as_echo_n "(cached) " >&6
20383 else
20384 eval "$as_ac_Header=\$ac_header_preproc"
20386 ac_res=`eval 'as_val=${'$as_ac_Header'}
20387 $as_echo "$as_val"'`
20388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20389 $as_echo "$ac_res" >&6; }
20392 as_val=`eval 'as_val=${'$as_ac_Header'}
20393 $as_echo "$as_val"'`
20394 if test "x$as_val" = x""yes; then
20395 cat >>confdefs.h <<_ACEOF
20396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20397 _ACEOF
20398 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20399 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20400 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20401 $as_echo_n "(cached) " >&6
20402 else
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h. */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 #include <nlist.h>
20412 main ()
20414 static struct nlist ac_aggr;
20415 if (ac_aggr.n_un.n_name)
20416 return 0;
20418 return 0;
20420 _ACEOF
20421 rm -f conftest.$ac_objext
20422 if { (ac_try="$ac_compile"
20423 case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20426 esac
20427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20428 $as_echo "$ac_try_echo") >&5
20429 (eval "$ac_compile") 2>conftest.er1
20430 ac_status=$?
20431 grep -v '^ *+' conftest.er1 >conftest.err
20432 rm -f conftest.er1
20433 cat conftest.err >&5
20434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } && {
20436 test -z "$ac_c_werror_flag" ||
20437 test ! -s conftest.err
20438 } && test -s conftest.$ac_objext; then
20439 ac_cv_member_struct_nlist_n_un_n_name=yes
20440 else
20441 $as_echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h. */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 #include <nlist.h>
20453 main ()
20455 static struct nlist ac_aggr;
20456 if (sizeof ac_aggr.n_un.n_name)
20457 return 0;
20459 return 0;
20461 _ACEOF
20462 rm -f conftest.$ac_objext
20463 if { (ac_try="$ac_compile"
20464 case "(($ac_try" in
20465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20466 *) ac_try_echo=$ac_try;;
20467 esac
20468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20469 $as_echo "$ac_try_echo") >&5
20470 (eval "$ac_compile") 2>conftest.er1
20471 ac_status=$?
20472 grep -v '^ *+' conftest.er1 >conftest.err
20473 rm -f conftest.er1
20474 cat conftest.err >&5
20475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); } && {
20477 test -z "$ac_c_werror_flag" ||
20478 test ! -s conftest.err
20479 } && test -s conftest.$ac_objext; then
20480 ac_cv_member_struct_nlist_n_un_n_name=yes
20481 else
20482 $as_echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_cv_member_struct_nlist_n_un_n_name=no
20488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20494 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20495 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then
20497 cat >>confdefs.h <<_ACEOF
20498 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20499 _ACEOF
20502 cat >>confdefs.h <<\_ACEOF
20503 #define NLIST_NAME_UNION 1
20504 _ACEOF
20511 done
20514 done
20517 # Some definitions of getloadavg require that the program be installed setgid.
20518 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20519 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20520 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20521 $as_echo_n "(cached) " >&6
20522 else
20523 cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h. */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20530 #ifdef LDAV_PRIVILEGED
20531 Yowza Am I SETGID yet
20532 #endif
20533 _ACEOF
20534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20535 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20536 ac_cv_func_getloadavg_setgid=yes
20537 else
20538 ac_cv_func_getloadavg_setgid=no
20540 rm -f conftest*
20543 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20544 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20545 if test $ac_cv_func_getloadavg_setgid = yes; then
20546 NEED_SETGID=true
20548 cat >>confdefs.h <<\_ACEOF
20549 #define GETLOADAVG_PRIVILEGED 1
20550 _ACEOF
20552 else
20553 NEED_SETGID=false
20556 if test $ac_cv_func_getloadavg_setgid = yes; then
20557 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20558 $as_echo_n "checking group of /dev/kmem... " >&6; }
20559 if test "${ac_cv_group_kmem+set}" = set; then
20560 $as_echo_n "(cached) " >&6
20561 else
20562 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20563 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20564 # If we got an error (system does not support symlinks), try without -L.
20565 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20566 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20567 | sed -ne 's/[ ][ ]*/ /g;
20568 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20569 / /s/.* //;p;'`
20572 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20573 $as_echo "$ac_cv_group_kmem" >&6; }
20574 KMEM_GROUP=$ac_cv_group_kmem
20576 if test "x$ac_save_LIBS" = x; then
20577 GETLOADAVG_LIBS=$LIBS
20578 else
20579 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20581 LIBS=$ac_save_LIBS
20585 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20586 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20587 if test "${ac_cv_sys_largefile_source+set}" = set; then
20588 $as_echo_n "(cached) " >&6
20589 else
20590 while :; do
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 #include <sys/types.h> /* for off_t */
20598 #include <stdio.h>
20600 main ()
20602 int (*fp) (FILE *, off_t, int) = fseeko;
20603 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20605 return 0;
20607 _ACEOF
20608 rm -f conftest.$ac_objext conftest$ac_exeext
20609 if { (ac_try="$ac_link"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20613 esac
20614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20615 $as_echo "$ac_try_echo") >&5
20616 (eval "$ac_link") 2>conftest.er1
20617 ac_status=$?
20618 grep -v '^ *+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
20621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } && {
20623 test -z "$ac_c_werror_flag" ||
20624 test ! -s conftest.err
20625 } && test -s conftest$ac_exeext && {
20626 test "$cross_compiling" = yes ||
20627 $as_test_x conftest$ac_exeext
20628 }; then
20629 ac_cv_sys_largefile_source=no; break
20630 else
20631 $as_echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20637 rm -rf conftest.dSYM
20638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20639 conftest$ac_exeext conftest.$ac_ext
20640 cat >conftest.$ac_ext <<_ACEOF
20641 /* confdefs.h. */
20642 _ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20646 #define _LARGEFILE_SOURCE 1
20647 #include <sys/types.h> /* for off_t */
20648 #include <stdio.h>
20650 main ()
20652 int (*fp) (FILE *, off_t, int) = fseeko;
20653 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20655 return 0;
20657 _ACEOF
20658 rm -f conftest.$ac_objext conftest$ac_exeext
20659 if { (ac_try="$ac_link"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20663 esac
20664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20665 $as_echo "$ac_try_echo") >&5
20666 (eval "$ac_link") 2>conftest.er1
20667 ac_status=$?
20668 grep -v '^ *+' conftest.er1 >conftest.err
20669 rm -f conftest.er1
20670 cat conftest.err >&5
20671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } && {
20673 test -z "$ac_c_werror_flag" ||
20674 test ! -s conftest.err
20675 } && test -s conftest$ac_exeext && {
20676 test "$cross_compiling" = yes ||
20677 $as_test_x conftest$ac_exeext
20678 }; then
20679 ac_cv_sys_largefile_source=1; break
20680 else
20681 $as_echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20687 rm -rf conftest.dSYM
20688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20689 conftest$ac_exeext conftest.$ac_ext
20690 ac_cv_sys_largefile_source=unknown
20691 break
20692 done
20694 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20695 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20696 case $ac_cv_sys_largefile_source in #(
20697 no | unknown) ;;
20699 cat >>confdefs.h <<_ACEOF
20700 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20701 _ACEOF
20703 esac
20704 rm -rf conftest*
20706 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20707 # in glibc 2.1.3, but that breaks too many other things.
20708 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20709 if test $ac_cv_sys_largefile_source != unknown; then
20711 cat >>confdefs.h <<\_ACEOF
20712 #define HAVE_FSEEKO 1
20713 _ACEOF
20718 # Configure getopt.
20719 # getopt.m4 serial 10
20721 # The getopt module assume you want GNU getopt, with getopt_long etc,
20722 # rather than vanilla POSIX getopt. This means your your code should
20723 # always include <getopt.h> for the getopt prototypes.
20735 # Prerequisites of lib/getopt*.
20740 GETOPT_H=
20742 for ac_header in getopt.h
20744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20746 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20747 $as_echo_n "checking for $ac_header... " >&6; }
20748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20749 $as_echo_n "(cached) " >&6
20751 ac_res=`eval 'as_val=${'$as_ac_Header'}
20752 $as_echo "$as_val"'`
20753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20754 $as_echo "$ac_res" >&6; }
20755 else
20756 # Is the header compilable?
20757 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20758 $as_echo_n "checking $ac_header usability... " >&6; }
20759 cat >conftest.$ac_ext <<_ACEOF
20760 /* confdefs.h. */
20761 _ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20765 $ac_includes_default
20766 #include <$ac_header>
20767 _ACEOF
20768 rm -f conftest.$ac_objext
20769 if { (ac_try="$ac_compile"
20770 case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20773 esac
20774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20775 $as_echo "$ac_try_echo") >&5
20776 (eval "$ac_compile") 2>conftest.er1
20777 ac_status=$?
20778 grep -v '^ *+' conftest.er1 >conftest.err
20779 rm -f conftest.er1
20780 cat conftest.err >&5
20781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } && {
20783 test -z "$ac_c_werror_flag" ||
20784 test ! -s conftest.err
20785 } && test -s conftest.$ac_objext; then
20786 ac_header_compiler=yes
20787 else
20788 $as_echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20791 ac_header_compiler=no
20794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20795 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20796 $as_echo "$ac_header_compiler" >&6; }
20798 # Is the header present?
20799 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20800 $as_echo_n "checking $ac_header presence... " >&6; }
20801 cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h. */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807 #include <$ac_header>
20808 _ACEOF
20809 if { (ac_try="$ac_cpp conftest.$ac_ext"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20813 esac
20814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20815 $as_echo "$ac_try_echo") >&5
20816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20817 ac_status=$?
20818 grep -v '^ *+' conftest.er1 >conftest.err
20819 rm -f conftest.er1
20820 cat conftest.err >&5
20821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } >/dev/null && {
20823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20824 test ! -s conftest.err
20825 }; then
20826 ac_header_preproc=yes
20827 else
20828 $as_echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 ac_header_preproc=no
20834 rm -f conftest.err conftest.$ac_ext
20835 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20836 $as_echo "$ac_header_preproc" >&6; }
20838 # So? What about this header?
20839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20840 yes:no: )
20841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20842 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20845 ac_header_preproc=yes
20847 no:yes:* )
20848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20849 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20851 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20853 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20855 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20857 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20859 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20862 esac
20863 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20864 $as_echo_n "checking for $ac_header... " >&6; }
20865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20866 $as_echo_n "(cached) " >&6
20867 else
20868 eval "$as_ac_Header=\$ac_header_preproc"
20870 ac_res=`eval 'as_val=${'$as_ac_Header'}
20871 $as_echo "$as_val"'`
20872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20873 $as_echo "$ac_res" >&6; }
20876 as_val=`eval 'as_val=${'$as_ac_Header'}
20877 $as_echo "$as_val"'`
20878 if test "x$as_val" = x""yes; then
20879 cat >>confdefs.h <<_ACEOF
20880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20881 _ACEOF
20883 else
20884 GETOPT_H=getopt.h
20887 done
20889 if test -z "$GETOPT_H"; then
20891 for ac_func in getopt_long_only
20893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20894 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20895 $as_echo_n "checking for $ac_func... " >&6; }
20896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20897 $as_echo_n "(cached) " >&6
20898 else
20899 cat >conftest.$ac_ext <<_ACEOF
20900 /* confdefs.h. */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20907 #define $ac_func innocuous_$ac_func
20909 /* System header to define __stub macros and hopefully few prototypes,
20910 which can conflict with char $ac_func (); below.
20911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20912 <limits.h> exists even on freestanding compilers. */
20914 #ifdef __STDC__
20915 # include <limits.h>
20916 #else
20917 # include <assert.h>
20918 #endif
20920 #undef $ac_func
20922 /* Override any GCC internal prototype to avoid an error.
20923 Use char because int might match the return type of a GCC
20924 builtin and then its argument prototype would still apply. */
20925 #ifdef __cplusplus
20926 extern "C"
20927 #endif
20928 char $ac_func ();
20929 /* The GNU C library defines this for functions which it implements
20930 to always fail with ENOSYS. Some functions are actually named
20931 something starting with __ and the normal name is an alias. */
20932 #if defined __stub_$ac_func || defined __stub___$ac_func
20933 choke me
20934 #endif
20937 main ()
20939 return $ac_func ();
20941 return 0;
20943 _ACEOF
20944 rm -f conftest.$ac_objext conftest$ac_exeext
20945 if { (ac_try="$ac_link"
20946 case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20949 esac
20950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20951 $as_echo "$ac_try_echo") >&5
20952 (eval "$ac_link") 2>conftest.er1
20953 ac_status=$?
20954 grep -v '^ *+' conftest.er1 >conftest.err
20955 rm -f conftest.er1
20956 cat conftest.err >&5
20957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } && {
20959 test -z "$ac_c_werror_flag" ||
20960 test ! -s conftest.err
20961 } && test -s conftest$ac_exeext && {
20962 test "$cross_compiling" = yes ||
20963 $as_test_x conftest$ac_exeext
20964 }; then
20965 eval "$as_ac_var=yes"
20966 else
20967 $as_echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20970 eval "$as_ac_var=no"
20973 rm -rf conftest.dSYM
20974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20975 conftest$ac_exeext conftest.$ac_ext
20977 ac_res=`eval 'as_val=${'$as_ac_var'}
20978 $as_echo "$as_val"'`
20979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20980 $as_echo "$ac_res" >&6; }
20981 as_val=`eval 'as_val=${'$as_ac_var'}
20982 $as_echo "$as_val"'`
20983 if test "x$as_val" = x""yes; then
20984 cat >>confdefs.h <<_ACEOF
20985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20986 _ACEOF
20988 else
20989 GETOPT_H=getopt.h
20991 done
20995 if test -z "$GETOPT_H"; then
20996 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20997 $as_echo_n "checking whether optreset is declared... " >&6; }
20998 if test "${ac_cv_have_decl_optreset+set}" = set; then
20999 $as_echo_n "(cached) " >&6
21000 else
21001 cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h. */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21007 #include <getopt.h>
21010 main ()
21012 #ifndef optreset
21013 (void) optreset;
21014 #endif
21017 return 0;
21019 _ACEOF
21020 rm -f conftest.$ac_objext
21021 if { (ac_try="$ac_compile"
21022 case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21025 esac
21026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21027 $as_echo "$ac_try_echo") >&5
21028 (eval "$ac_compile") 2>conftest.er1
21029 ac_status=$?
21030 grep -v '^ *+' conftest.er1 >conftest.err
21031 rm -f conftest.er1
21032 cat conftest.err >&5
21033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); } && {
21035 test -z "$ac_c_werror_flag" ||
21036 test ! -s conftest.err
21037 } && test -s conftest.$ac_objext; then
21038 ac_cv_have_decl_optreset=yes
21039 else
21040 $as_echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21043 ac_cv_have_decl_optreset=no
21046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
21049 $as_echo "$ac_cv_have_decl_optreset" >&6; }
21050 if test "x$ac_cv_have_decl_optreset" = x""yes; then
21051 GETOPT_H=getopt.h
21056 if test -z "$GETOPT_H"; then
21057 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
21058 $as_echo_n "checking for working GNU getopt function... " >&6; }
21059 if test "${gl_cv_func_gnu_getopt+set}" = set; then
21060 $as_echo_n "(cached) " >&6
21061 else
21062 if test "$cross_compiling" = yes; then
21063 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
21064 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
21065 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
21066 $as_echo_n "(cached) " >&6
21067 else
21068 cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h. */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 #include <getopt.h>
21077 main ()
21079 #ifndef getopt_clip
21080 (void) getopt_clip;
21081 #endif
21084 return 0;
21086 _ACEOF
21087 rm -f conftest.$ac_objext
21088 if { (ac_try="$ac_compile"
21089 case "(($ac_try" in
21090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091 *) ac_try_echo=$ac_try;;
21092 esac
21093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21094 $as_echo "$ac_try_echo") >&5
21095 (eval "$ac_compile") 2>conftest.er1
21096 ac_status=$?
21097 grep -v '^ *+' conftest.er1 >conftest.err
21098 rm -f conftest.er1
21099 cat conftest.err >&5
21100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } && {
21102 test -z "$ac_c_werror_flag" ||
21103 test ! -s conftest.err
21104 } && test -s conftest.$ac_objext; then
21105 ac_cv_have_decl_getopt_clip=yes
21106 else
21107 $as_echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21110 ac_cv_have_decl_getopt_clip=no
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
21116 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
21117 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
21118 gl_cv_func_gnu_getopt=no
21119 else
21120 gl_cv_func_gnu_getopt=yes
21123 else
21124 cat >conftest.$ac_ext <<_ACEOF
21125 /* confdefs.h. */
21126 _ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h. */
21130 #include <getopt.h>
21132 main ()
21135 char *myargv[3];
21136 myargv[0] = "conftest";
21137 myargv[1] = "-+";
21138 myargv[2] = 0;
21139 return getopt (2, myargv, "+a") != '?';
21142 return 0;
21144 _ACEOF
21145 rm -f conftest$ac_exeext
21146 if { (ac_try="$ac_link"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21150 esac
21151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21152 $as_echo "$ac_try_echo") >&5
21153 (eval "$ac_link") 2>&5
21154 ac_status=$?
21155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21164 ac_status=$?
21165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; }; then
21167 gl_cv_func_gnu_getopt=yes
21168 else
21169 $as_echo "$as_me: program exited with status $ac_status" >&5
21170 $as_echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ( exit $ac_status )
21174 gl_cv_func_gnu_getopt=no
21176 rm -rf conftest.dSYM
21177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21182 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
21183 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21184 if test "$gl_cv_func_gnu_getopt" = "no"; then
21185 GETOPT_H=getopt.h
21191 if test -n "$GETOPT_H"; then
21194 GETOPT_H=getopt.h
21196 cat >>confdefs.h <<\_ACEOF
21197 #define __GETOPT_PREFIX rpl_
21198 _ACEOF
21203 GETOPTOBJS='getopt.o getopt1.o'
21210 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
21211 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21212 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21213 $as_echo_n "(cached) " >&6
21214 else
21215 # Use it with a single arg.
21216 cat >conftest.$ac_ext <<_ACEOF
21217 /* confdefs.h. */
21218 _ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 $ac_includes_default
21224 main ()
21226 getpgrp (0);
21228 return 0;
21230 _ACEOF
21231 rm -f conftest.$ac_objext
21232 if { (ac_try="$ac_compile"
21233 case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21236 esac
21237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21238 $as_echo "$ac_try_echo") >&5
21239 (eval "$ac_compile") 2>conftest.er1
21240 ac_status=$?
21241 grep -v '^ *+' conftest.er1 >conftest.err
21242 rm -f conftest.er1
21243 cat conftest.err >&5
21244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } && {
21246 test -z "$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21248 } && test -s conftest.$ac_objext; then
21249 ac_cv_func_getpgrp_void=no
21250 else
21251 $as_echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21254 ac_cv_func_getpgrp_void=yes
21257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
21261 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21262 if test $ac_cv_func_getpgrp_void = yes; then
21264 cat >>confdefs.h <<\_ACEOF
21265 #define GETPGRP_VOID 1
21266 _ACEOF
21272 for ac_func in strftime
21274 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21275 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21276 $as_echo_n "checking for $ac_func... " >&6; }
21277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21278 $as_echo_n "(cached) " >&6
21279 else
21280 cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h. */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21288 #define $ac_func innocuous_$ac_func
21290 /* System header to define __stub macros and hopefully few prototypes,
21291 which can conflict with char $ac_func (); below.
21292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21293 <limits.h> exists even on freestanding compilers. */
21295 #ifdef __STDC__
21296 # include <limits.h>
21297 #else
21298 # include <assert.h>
21299 #endif
21301 #undef $ac_func
21303 /* Override any GCC internal prototype to avoid an error.
21304 Use char because int might match the return type of a GCC
21305 builtin and then its argument prototype would still apply. */
21306 #ifdef __cplusplus
21307 extern "C"
21308 #endif
21309 char $ac_func ();
21310 /* The GNU C library defines this for functions which it implements
21311 to always fail with ENOSYS. Some functions are actually named
21312 something starting with __ and the normal name is an alias. */
21313 #if defined __stub_$ac_func || defined __stub___$ac_func
21314 choke me
21315 #endif
21318 main ()
21320 return $ac_func ();
21322 return 0;
21324 _ACEOF
21325 rm -f conftest.$ac_objext conftest$ac_exeext
21326 if { (ac_try="$ac_link"
21327 case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21330 esac
21331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21332 $as_echo "$ac_try_echo") >&5
21333 (eval "$ac_link") 2>conftest.er1
21334 ac_status=$?
21335 grep -v '^ *+' conftest.er1 >conftest.err
21336 rm -f conftest.er1
21337 cat conftest.err >&5
21338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); } && {
21340 test -z "$ac_c_werror_flag" ||
21341 test ! -s conftest.err
21342 } && test -s conftest$ac_exeext && {
21343 test "$cross_compiling" = yes ||
21344 $as_test_x conftest$ac_exeext
21345 }; then
21346 eval "$as_ac_var=yes"
21347 else
21348 $as_echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21351 eval "$as_ac_var=no"
21354 rm -rf conftest.dSYM
21355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21356 conftest$ac_exeext conftest.$ac_ext
21358 ac_res=`eval 'as_val=${'$as_ac_var'}
21359 $as_echo "$as_val"'`
21360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21361 $as_echo "$ac_res" >&6; }
21362 as_val=`eval 'as_val=${'$as_ac_var'}
21363 $as_echo "$as_val"'`
21364 if test "x$as_val" = x""yes; then
21365 cat >>confdefs.h <<_ACEOF
21366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21367 _ACEOF
21369 else
21370 # strftime is in -lintl on SCO UNIX.
21371 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21372 $as_echo_n "checking for strftime in -lintl... " >&6; }
21373 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21374 $as_echo_n "(cached) " >&6
21375 else
21376 ac_check_lib_save_LIBS=$LIBS
21377 LIBS="-lintl $LIBS"
21378 cat >conftest.$ac_ext <<_ACEOF
21379 /* confdefs.h. */
21380 _ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21385 /* Override any GCC internal prototype to avoid an error.
21386 Use char because int might match the return type of a GCC
21387 builtin and then its argument prototype would still apply. */
21388 #ifdef __cplusplus
21389 extern "C"
21390 #endif
21391 char strftime ();
21393 main ()
21395 return strftime ();
21397 return 0;
21399 _ACEOF
21400 rm -f conftest.$ac_objext conftest$ac_exeext
21401 if { (ac_try="$ac_link"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21405 esac
21406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21407 $as_echo "$ac_try_echo") >&5
21408 (eval "$ac_link") 2>conftest.er1
21409 ac_status=$?
21410 grep -v '^ *+' conftest.er1 >conftest.err
21411 rm -f conftest.er1
21412 cat conftest.err >&5
21413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } && {
21415 test -z "$ac_c_werror_flag" ||
21416 test ! -s conftest.err
21417 } && test -s conftest$ac_exeext && {
21418 test "$cross_compiling" = yes ||
21419 $as_test_x conftest$ac_exeext
21420 }; then
21421 ac_cv_lib_intl_strftime=yes
21422 else
21423 $as_echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ac_cv_lib_intl_strftime=no
21429 rm -rf conftest.dSYM
21430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21431 conftest$ac_exeext conftest.$ac_ext
21432 LIBS=$ac_check_lib_save_LIBS
21434 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21435 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21436 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
21437 cat >>confdefs.h <<\_ACEOF
21438 #define HAVE_STRFTIME 1
21439 _ACEOF
21441 LIBS="-lintl $LIBS"
21445 done
21448 # UNIX98 PTYs.
21450 for ac_func in grantpt
21452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21453 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21454 $as_echo_n "checking for $ac_func... " >&6; }
21455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21456 $as_echo_n "(cached) " >&6
21457 else
21458 cat >conftest.$ac_ext <<_ACEOF
21459 /* confdefs.h. */
21460 _ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21466 #define $ac_func innocuous_$ac_func
21468 /* System header to define __stub macros and hopefully few prototypes,
21469 which can conflict with char $ac_func (); below.
21470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21471 <limits.h> exists even on freestanding compilers. */
21473 #ifdef __STDC__
21474 # include <limits.h>
21475 #else
21476 # include <assert.h>
21477 #endif
21479 #undef $ac_func
21481 /* Override any GCC internal prototype to avoid an error.
21482 Use char because int might match the return type of a GCC
21483 builtin and then its argument prototype would still apply. */
21484 #ifdef __cplusplus
21485 extern "C"
21486 #endif
21487 char $ac_func ();
21488 /* The GNU C library defines this for functions which it implements
21489 to always fail with ENOSYS. Some functions are actually named
21490 something starting with __ and the normal name is an alias. */
21491 #if defined __stub_$ac_func || defined __stub___$ac_func
21492 choke me
21493 #endif
21496 main ()
21498 return $ac_func ();
21500 return 0;
21502 _ACEOF
21503 rm -f conftest.$ac_objext conftest$ac_exeext
21504 if { (ac_try="$ac_link"
21505 case "(($ac_try" in
21506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507 *) ac_try_echo=$ac_try;;
21508 esac
21509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21510 $as_echo "$ac_try_echo") >&5
21511 (eval "$ac_link") 2>conftest.er1
21512 ac_status=$?
21513 grep -v '^ *+' conftest.er1 >conftest.err
21514 rm -f conftest.er1
21515 cat conftest.err >&5
21516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } && {
21518 test -z "$ac_c_werror_flag" ||
21519 test ! -s conftest.err
21520 } && test -s conftest$ac_exeext && {
21521 test "$cross_compiling" = yes ||
21522 $as_test_x conftest$ac_exeext
21523 }; then
21524 eval "$as_ac_var=yes"
21525 else
21526 $as_echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 eval "$as_ac_var=no"
21532 rm -rf conftest.dSYM
21533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21534 conftest$ac_exeext conftest.$ac_ext
21536 ac_res=`eval 'as_val=${'$as_ac_var'}
21537 $as_echo "$as_val"'`
21538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21539 $as_echo "$ac_res" >&6; }
21540 as_val=`eval 'as_val=${'$as_ac_var'}
21541 $as_echo "$as_val"'`
21542 if test "x$as_val" = x""yes; then
21543 cat >>confdefs.h <<_ACEOF
21544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21545 _ACEOF
21548 done
21551 # PTY-related GNU extensions.
21553 for ac_func in getpt
21555 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21556 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21557 $as_echo_n "checking for $ac_func... " >&6; }
21558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21559 $as_echo_n "(cached) " >&6
21560 else
21561 cat >conftest.$ac_ext <<_ACEOF
21562 /* confdefs.h. */
21563 _ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h. */
21567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21569 #define $ac_func innocuous_$ac_func
21571 /* System header to define __stub macros and hopefully few prototypes,
21572 which can conflict with char $ac_func (); below.
21573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21574 <limits.h> exists even on freestanding compilers. */
21576 #ifdef __STDC__
21577 # include <limits.h>
21578 #else
21579 # include <assert.h>
21580 #endif
21582 #undef $ac_func
21584 /* Override any GCC internal prototype to avoid an error.
21585 Use char because int might match the return type of a GCC
21586 builtin and then its argument prototype would still apply. */
21587 #ifdef __cplusplus
21588 extern "C"
21589 #endif
21590 char $ac_func ();
21591 /* The GNU C library defines this for functions which it implements
21592 to always fail with ENOSYS. Some functions are actually named
21593 something starting with __ and the normal name is an alias. */
21594 #if defined __stub_$ac_func || defined __stub___$ac_func
21595 choke me
21596 #endif
21599 main ()
21601 return $ac_func ();
21603 return 0;
21605 _ACEOF
21606 rm -f conftest.$ac_objext conftest$ac_exeext
21607 if { (ac_try="$ac_link"
21608 case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21611 esac
21612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21613 $as_echo "$ac_try_echo") >&5
21614 (eval "$ac_link") 2>conftest.er1
21615 ac_status=$?
21616 grep -v '^ *+' conftest.er1 >conftest.err
21617 rm -f conftest.er1
21618 cat conftest.err >&5
21619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest$ac_exeext && {
21624 test "$cross_compiling" = yes ||
21625 $as_test_x conftest$ac_exeext
21626 }; then
21627 eval "$as_ac_var=yes"
21628 else
21629 $as_echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 eval "$as_ac_var=no"
21635 rm -rf conftest.dSYM
21636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21637 conftest$ac_exeext conftest.$ac_ext
21639 ac_res=`eval 'as_val=${'$as_ac_var'}
21640 $as_echo "$as_val"'`
21641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21642 $as_echo "$ac_res" >&6; }
21643 as_val=`eval 'as_val=${'$as_ac_var'}
21644 $as_echo "$as_val"'`
21645 if test "x$as_val" = x""yes; then
21646 cat >>confdefs.h <<_ACEOF
21647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21648 _ACEOF
21651 done
21654 # Check this now, so that we will NOT find the above functions in ncurses.
21655 # That is because we have not set up to link ncurses in lib-src.
21656 # It's better to believe a function is not available
21657 # than to expect to find it in ncurses.
21658 # Also we need tputs and friends to be able to build at all.
21659 have_tputs_et_al=true
21660 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21661 $as_echo_n "checking for library containing tputs... " >&6; }
21662 if test "${ac_cv_search_tputs+set}" = set; then
21663 $as_echo_n "(cached) " >&6
21664 else
21665 ac_func_search_save_LIBS=$LIBS
21666 cat >conftest.$ac_ext <<_ACEOF
21667 /* confdefs.h. */
21668 _ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21673 /* Override any GCC internal prototype to avoid an error.
21674 Use char because int might match the return type of a GCC
21675 builtin and then its argument prototype would still apply. */
21676 #ifdef __cplusplus
21677 extern "C"
21678 #endif
21679 char tputs ();
21681 main ()
21683 return tputs ();
21685 return 0;
21687 _ACEOF
21688 for ac_lib in '' ncurses terminfo termcap; do
21689 if test -z "$ac_lib"; then
21690 ac_res="none required"
21691 else
21692 ac_res=-l$ac_lib
21693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21695 rm -f conftest.$ac_objext conftest$ac_exeext
21696 if { (ac_try="$ac_link"
21697 case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21700 esac
21701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21702 $as_echo "$ac_try_echo") >&5
21703 (eval "$ac_link") 2>conftest.er1
21704 ac_status=$?
21705 grep -v '^ *+' conftest.er1 >conftest.err
21706 rm -f conftest.er1
21707 cat conftest.err >&5
21708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } && {
21710 test -z "$ac_c_werror_flag" ||
21711 test ! -s conftest.err
21712 } && test -s conftest$ac_exeext && {
21713 test "$cross_compiling" = yes ||
21714 $as_test_x conftest$ac_exeext
21715 }; then
21716 ac_cv_search_tputs=$ac_res
21717 else
21718 $as_echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21724 rm -rf conftest.dSYM
21725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21726 conftest$ac_exeext
21727 if test "${ac_cv_search_tputs+set}" = set; then
21728 break
21730 done
21731 if test "${ac_cv_search_tputs+set}" = set; then
21733 else
21734 ac_cv_search_tputs=no
21736 rm conftest.$ac_ext
21737 LIBS=$ac_func_search_save_LIBS
21739 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21740 $as_echo "$ac_cv_search_tputs" >&6; }
21741 ac_res=$ac_cv_search_tputs
21742 if test "$ac_res" != no; then
21743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21745 else
21746 have_tputs_et_al=false
21749 if test "$have_tputs_et_al" != true; then
21750 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21751 Maybe some development libraries/packages are missing? Try installing
21752 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21753 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21754 Maybe some development libraries/packages are missing? Try installing
21755 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21756 { (exit 1); exit 1; }; }
21758 # Must define this when any termcap library is found.
21760 cat >>confdefs.h <<\_ACEOF
21761 #define HAVE_LIBNCURSES 1
21762 _ACEOF
21764 ## FIXME This was the cpp logic, but I am not sure it is right.
21765 ## The above test has not necessarily found libncurses.
21766 HAVE_LIBNCURSES=yes
21768 ## Use terminfo instead of termcap?
21769 ## Note only system files NOT using terminfo are:
21770 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
21771 ## darwin|gnu without ncurses.
21772 TERMINFO=no
21773 LIBS_TERMCAP=
21774 case "$opsys" in
21775 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21776 ## hpux10-20: Use the system provided termcap(3) library.
21777 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21778 ## is necessary. Otherwise Emacs dumps core when run -nw.
21779 aix4-2|cygwin|hpux*|irix6-5|openbsd|usg5-4|sol2*|unixware) TERMINFO=yes ;;
21781 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21782 ## The ncurses library has been moved out of the System framework in
21783 ## Mac OS X 10.2. So if configure detects it, set the command-line
21784 ## option to use it.
21785 darwin|gnu*)
21786 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21787 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21788 TERMINFO=yes
21789 LIBS_TERMCAP="-lncurses"
21793 freebsd)
21794 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
21795 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21796 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21797 $as_echo_n "(cached) " >&6
21798 else
21799 cat >conftest.$ac_ext <<_ACEOF
21800 /* confdefs.h. */
21801 _ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21805 #include <osreldate.h>
21807 main ()
21809 #if __FreeBSD_version < 400000
21810 fail;
21811 #endif
21814 return 0;
21816 _ACEOF
21817 rm -f conftest.$ac_objext conftest$ac_exeext
21818 if { (ac_try="$ac_link"
21819 case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21822 esac
21823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21824 $as_echo "$ac_try_echo") >&5
21825 (eval "$ac_link") 2>conftest.er1
21826 ac_status=$?
21827 grep -v '^ *+' conftest.er1 >conftest.err
21828 rm -f conftest.er1
21829 cat conftest.err >&5
21830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } && {
21832 test -z "$ac_c_werror_flag" ||
21833 test ! -s conftest.err
21834 } && test -s conftest$ac_exeext && {
21835 test "$cross_compiling" = yes ||
21836 $as_test_x conftest$ac_exeext
21837 }; then
21838 emacs_cv_freebsd_terminfo=yes
21839 else
21840 $as_echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21843 emacs_cv_freebsd_terminfo=no
21846 rm -rf conftest.dSYM
21847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21848 conftest$ac_exeext conftest.$ac_ext
21852 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
21853 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21855 if test $emacs_cv_freebsd_terminfo = yes; then
21856 TERMINFO=yes
21857 LIBS_TERMCAP="-lncurses"
21858 else
21859 LIBS_TERMCAP="-ltermcap"
21863 esac
21865 case "$opsys" in
21866 ## hpux: Make sure we get select from libc rather than from libcurses
21867 ## because libcurses on HPUX 10.10 has a broken version of select.
21868 ## We used to use -lc -lcurses, but this may be cleaner.
21869 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21871 openbsd) LIBS_TERMCAP="-lncurses" ;;
21873 ## Must use system termcap, if we use any termcap. It does special things.
21874 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21875 esac
21877 TERMCAP_OBJ=tparam.o
21878 if test $TERMINFO = yes; then
21880 cat >>confdefs.h <<\_ACEOF
21881 #define TERMINFO 1
21882 _ACEOF
21885 ## Default used to be -ltermcap. Add a case above if need something else.
21886 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
21888 TERMCAP_OBJ=terminfo.o
21894 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21895 resolv=no
21896 cat >conftest.$ac_ext <<_ACEOF
21897 /* confdefs.h. */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h. */
21902 #include <netinet/in.h>
21903 #include <arpa/nameser.h>
21904 #include <resolv.h>
21906 main ()
21908 return res_init();
21910 return 0;
21912 _ACEOF
21913 rm -f conftest.$ac_objext conftest$ac_exeext
21914 if { (ac_try="$ac_link"
21915 case "(($ac_try" in
21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917 *) ac_try_echo=$ac_try;;
21918 esac
21919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21920 $as_echo "$ac_try_echo") >&5
21921 (eval "$ac_link") 2>conftest.er1
21922 ac_status=$?
21923 grep -v '^ *+' conftest.er1 >conftest.err
21924 rm -f conftest.er1
21925 cat conftest.err >&5
21926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } && {
21928 test -z "$ac_c_werror_flag" ||
21929 test ! -s conftest.err
21930 } && test -s conftest$ac_exeext && {
21931 test "$cross_compiling" = yes ||
21932 $as_test_x conftest$ac_exeext
21933 }; then
21934 have_res_init=yes
21935 else
21936 $as_echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 have_res_init=no
21942 rm -rf conftest.dSYM
21943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21944 conftest$ac_exeext conftest.$ac_ext
21945 if test "$have_res_init" = no; then
21946 OLIBS="$LIBS"
21947 LIBS="$LIBS -lresolv"
21948 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21949 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21950 cat >conftest.$ac_ext <<_ACEOF
21951 /* confdefs.h. */
21952 _ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h. */
21956 #include <netinet/in.h>
21957 #include <arpa/nameser.h>
21958 #include <resolv.h>
21960 main ()
21962 return res_init();
21964 return 0;
21966 _ACEOF
21967 rm -f conftest.$ac_objext conftest$ac_exeext
21968 if { (ac_try="$ac_link"
21969 case "(($ac_try" in
21970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971 *) ac_try_echo=$ac_try;;
21972 esac
21973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21974 $as_echo "$ac_try_echo") >&5
21975 (eval "$ac_link") 2>conftest.er1
21976 ac_status=$?
21977 grep -v '^ *+' conftest.er1 >conftest.err
21978 rm -f conftest.er1
21979 cat conftest.err >&5
21980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); } && {
21982 test -z "$ac_c_werror_flag" ||
21983 test ! -s conftest.err
21984 } && test -s conftest$ac_exeext && {
21985 test "$cross_compiling" = yes ||
21986 $as_test_x conftest$ac_exeext
21987 }; then
21988 have_res_init=yes
21989 else
21990 $as_echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21993 have_res_init=no
21996 rm -rf conftest.dSYM
21997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21998 conftest$ac_exeext conftest.$ac_ext
21999 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
22000 $as_echo "$have_res_init" >&6; }
22001 if test "$have_res_init" = yes ; then
22002 resolv=yes
22004 LIBS="$OLIBS"
22007 if test "$have_res_init" = yes; then
22009 cat >>confdefs.h <<\_ACEOF
22010 #define HAVE_RES_INIT 1
22011 _ACEOF
22015 # Do we need the Hesiod library to provide the support routines?
22016 LIBHESIOD=
22017 if test "$with_hesiod" != no ; then
22018 # Don't set $LIBS here -- see comments above. FIXME which comments?
22019 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
22020 $as_echo_n "checking for res_send... " >&6; }
22021 if test "${ac_cv_func_res_send+set}" = set; then
22022 $as_echo_n "(cached) " >&6
22023 else
22024 cat >conftest.$ac_ext <<_ACEOF
22025 /* confdefs.h. */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h. */
22030 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
22031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22032 #define res_send innocuous_res_send
22034 /* System header to define __stub macros and hopefully few prototypes,
22035 which can conflict with char res_send (); below.
22036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22037 <limits.h> exists even on freestanding compilers. */
22039 #ifdef __STDC__
22040 # include <limits.h>
22041 #else
22042 # include <assert.h>
22043 #endif
22045 #undef res_send
22047 /* Override any GCC internal prototype to avoid an error.
22048 Use char because int might match the return type of a GCC
22049 builtin and then its argument prototype would still apply. */
22050 #ifdef __cplusplus
22051 extern "C"
22052 #endif
22053 char res_send ();
22054 /* The GNU C library defines this for functions which it implements
22055 to always fail with ENOSYS. Some functions are actually named
22056 something starting with __ and the normal name is an alias. */
22057 #if defined __stub_res_send || defined __stub___res_send
22058 choke me
22059 #endif
22062 main ()
22064 return res_send ();
22066 return 0;
22068 _ACEOF
22069 rm -f conftest.$ac_objext conftest$ac_exeext
22070 if { (ac_try="$ac_link"
22071 case "(($ac_try" in
22072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073 *) ac_try_echo=$ac_try;;
22074 esac
22075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22076 $as_echo "$ac_try_echo") >&5
22077 (eval "$ac_link") 2>conftest.er1
22078 ac_status=$?
22079 grep -v '^ *+' conftest.er1 >conftest.err
22080 rm -f conftest.er1
22081 cat conftest.err >&5
22082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } && {
22084 test -z "$ac_c_werror_flag" ||
22085 test ! -s conftest.err
22086 } && test -s conftest$ac_exeext && {
22087 test "$cross_compiling" = yes ||
22088 $as_test_x conftest$ac_exeext
22089 }; then
22090 ac_cv_func_res_send=yes
22091 else
22092 $as_echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22095 ac_cv_func_res_send=no
22098 rm -rf conftest.dSYM
22099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22100 conftest$ac_exeext conftest.$ac_ext
22102 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
22103 $as_echo "$ac_cv_func_res_send" >&6; }
22104 if test "x$ac_cv_func_res_send" = x""yes; then
22106 else
22107 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
22108 $as_echo_n "checking for __res_send... " >&6; }
22109 if test "${ac_cv_func___res_send+set}" = set; then
22110 $as_echo_n "(cached) " >&6
22111 else
22112 cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h. */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
22119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22120 #define __res_send innocuous___res_send
22122 /* System header to define __stub macros and hopefully few prototypes,
22123 which can conflict with char __res_send (); below.
22124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22125 <limits.h> exists even on freestanding compilers. */
22127 #ifdef __STDC__
22128 # include <limits.h>
22129 #else
22130 # include <assert.h>
22131 #endif
22133 #undef __res_send
22135 /* Override any GCC internal prototype to avoid an error.
22136 Use char because int might match the return type of a GCC
22137 builtin and then its argument prototype would still apply. */
22138 #ifdef __cplusplus
22139 extern "C"
22140 #endif
22141 char __res_send ();
22142 /* The GNU C library defines this for functions which it implements
22143 to always fail with ENOSYS. Some functions are actually named
22144 something starting with __ and the normal name is an alias. */
22145 #if defined __stub___res_send || defined __stub_____res_send
22146 choke me
22147 #endif
22150 main ()
22152 return __res_send ();
22154 return 0;
22156 _ACEOF
22157 rm -f conftest.$ac_objext conftest$ac_exeext
22158 if { (ac_try="$ac_link"
22159 case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22162 esac
22163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22164 $as_echo "$ac_try_echo") >&5
22165 (eval "$ac_link") 2>conftest.er1
22166 ac_status=$?
22167 grep -v '^ *+' conftest.er1 >conftest.err
22168 rm -f conftest.er1
22169 cat conftest.err >&5
22170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); } && {
22172 test -z "$ac_c_werror_flag" ||
22173 test ! -s conftest.err
22174 } && test -s conftest$ac_exeext && {
22175 test "$cross_compiling" = yes ||
22176 $as_test_x conftest$ac_exeext
22177 }; then
22178 ac_cv_func___res_send=yes
22179 else
22180 $as_echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22183 ac_cv_func___res_send=no
22186 rm -rf conftest.dSYM
22187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22188 conftest$ac_exeext conftest.$ac_ext
22190 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
22191 $as_echo "$ac_cv_func___res_send" >&6; }
22192 if test "x$ac_cv_func___res_send" = x""yes; then
22194 else
22195 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
22196 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22197 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22198 $as_echo_n "(cached) " >&6
22199 else
22200 ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-lresolv $LIBS"
22202 cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h. */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22209 /* Override any GCC internal prototype to avoid an error.
22210 Use char because int might match the return type of a GCC
22211 builtin and then its argument prototype would still apply. */
22212 #ifdef __cplusplus
22213 extern "C"
22214 #endif
22215 char res_send ();
22217 main ()
22219 return res_send ();
22221 return 0;
22223 _ACEOF
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22229 esac
22230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22231 $as_echo "$ac_try_echo") >&5
22232 (eval "$ac_link") 2>conftest.er1
22233 ac_status=$?
22234 grep -v '^ *+' conftest.er1 >conftest.err
22235 rm -f conftest.er1
22236 cat conftest.err >&5
22237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest$ac_exeext && {
22242 test "$cross_compiling" = yes ||
22243 $as_test_x conftest$ac_exeext
22244 }; then
22245 ac_cv_lib_resolv_res_send=yes
22246 else
22247 $as_echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 ac_cv_lib_resolv_res_send=no
22253 rm -rf conftest.dSYM
22254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22255 conftest$ac_exeext conftest.$ac_ext
22256 LIBS=$ac_check_lib_save_LIBS
22258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
22259 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22260 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then
22261 resolv=yes
22262 else
22263 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
22264 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22265 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22266 $as_echo_n "(cached) " >&6
22267 else
22268 ac_check_lib_save_LIBS=$LIBS
22269 LIBS="-lresolv $LIBS"
22270 cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h. */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22277 /* Override any GCC internal prototype to avoid an error.
22278 Use char because int might match the return type of a GCC
22279 builtin and then its argument prototype would still apply. */
22280 #ifdef __cplusplus
22281 extern "C"
22282 #endif
22283 char __res_send ();
22285 main ()
22287 return __res_send ();
22289 return 0;
22291 _ACEOF
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22297 esac
22298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22299 $as_echo "$ac_try_echo") >&5
22300 (eval "$ac_link") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest$ac_exeext && {
22310 test "$cross_compiling" = yes ||
22311 $as_test_x conftest$ac_exeext
22312 }; then
22313 ac_cv_lib_resolv___res_send=yes
22314 else
22315 $as_echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22318 ac_cv_lib_resolv___res_send=no
22321 rm -rf conftest.dSYM
22322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22323 conftest$ac_exeext conftest.$ac_ext
22324 LIBS=$ac_check_lib_save_LIBS
22326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
22327 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22328 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then
22329 resolv=yes
22338 if test "$resolv" = yes ; then
22339 RESOLVLIB=-lresolv
22340 else
22341 RESOLVLIB=
22343 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
22344 $as_echo_n "checking for hes_getmailhost... " >&6; }
22345 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22346 $as_echo_n "(cached) " >&6
22347 else
22348 cat >conftest.$ac_ext <<_ACEOF
22349 /* confdefs.h. */
22350 _ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22354 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22356 #define hes_getmailhost innocuous_hes_getmailhost
22358 /* System header to define __stub macros and hopefully few prototypes,
22359 which can conflict with char hes_getmailhost (); below.
22360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22361 <limits.h> exists even on freestanding compilers. */
22363 #ifdef __STDC__
22364 # include <limits.h>
22365 #else
22366 # include <assert.h>
22367 #endif
22369 #undef hes_getmailhost
22371 /* Override any GCC internal prototype to avoid an error.
22372 Use char because int might match the return type of a GCC
22373 builtin and then its argument prototype would still apply. */
22374 #ifdef __cplusplus
22375 extern "C"
22376 #endif
22377 char hes_getmailhost ();
22378 /* The GNU C library defines this for functions which it implements
22379 to always fail with ENOSYS. Some functions are actually named
22380 something starting with __ and the normal name is an alias. */
22381 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22382 choke me
22383 #endif
22386 main ()
22388 return hes_getmailhost ();
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_func_hes_getmailhost=yes
22415 else
22416 $as_echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22419 ac_cv_func_hes_getmailhost=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
22426 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22427 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22428 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then
22430 else
22431 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
22432 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22433 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22434 $as_echo_n "(cached) " >&6
22435 else
22436 ac_check_lib_save_LIBS=$LIBS
22437 LIBS="-lhesiod $RESOLVLIB $LIBS"
22438 cat >conftest.$ac_ext <<_ACEOF
22439 /* confdefs.h. */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22445 /* Override any GCC internal prototype to avoid an error.
22446 Use char because int might match the return type of a GCC
22447 builtin and then its argument prototype would still apply. */
22448 #ifdef __cplusplus
22449 extern "C"
22450 #endif
22451 char hes_getmailhost ();
22453 main ()
22455 return hes_getmailhost ();
22457 return 0;
22459 _ACEOF
22460 rm -f conftest.$ac_objext conftest$ac_exeext
22461 if { (ac_try="$ac_link"
22462 case "(($ac_try" in
22463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22465 esac
22466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22467 $as_echo "$ac_try_echo") >&5
22468 (eval "$ac_link") 2>conftest.er1
22469 ac_status=$?
22470 grep -v '^ *+' conftest.er1 >conftest.err
22471 rm -f conftest.er1
22472 cat conftest.err >&5
22473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } && {
22475 test -z "$ac_c_werror_flag" ||
22476 test ! -s conftest.err
22477 } && test -s conftest$ac_exeext && {
22478 test "$cross_compiling" = yes ||
22479 $as_test_x conftest$ac_exeext
22480 }; then
22481 ac_cv_lib_hesiod_hes_getmailhost=yes
22482 else
22483 $as_echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22486 ac_cv_lib_hesiod_hes_getmailhost=no
22489 rm -rf conftest.dSYM
22490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22491 conftest$ac_exeext conftest.$ac_ext
22492 LIBS=$ac_check_lib_save_LIBS
22494 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22495 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22496 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then
22497 hesiod=yes
22498 else
22505 if test x"$hesiod" = xyes; then
22507 cat >>confdefs.h <<\_ACEOF
22508 #define HAVE_LIBHESIOD 1
22509 _ACEOF
22511 LIBHESIOD=-lhesiod
22516 # Do we need libresolv (due to res_init or Hesiod)?
22517 if test "$resolv" = yes ; then
22519 cat >>confdefs.h <<\_ACEOF
22520 #define HAVE_LIBRESOLV 1
22521 _ACEOF
22523 LIBRESOLV=-lresolv
22524 else
22525 LIBRESOLV=
22529 # These tell us which Kerberos-related libraries to use.
22530 COM_ERRLIB=
22531 CRYPTOLIB=
22532 KRB5LIB=
22533 DESLIB=
22534 KRB4LIB=
22536 if test "${with_kerberos}" != no; then
22537 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22538 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22539 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22540 $as_echo_n "(cached) " >&6
22541 else
22542 ac_check_lib_save_LIBS=$LIBS
22543 LIBS="-lcom_err $LIBS"
22544 cat >conftest.$ac_ext <<_ACEOF
22545 /* confdefs.h. */
22546 _ACEOF
22547 cat confdefs.h >>conftest.$ac_ext
22548 cat >>conftest.$ac_ext <<_ACEOF
22549 /* end confdefs.h. */
22551 /* Override any GCC internal prototype to avoid an error.
22552 Use char because int might match the return type of a GCC
22553 builtin and then its argument prototype would still apply. */
22554 #ifdef __cplusplus
22555 extern "C"
22556 #endif
22557 char com_err ();
22559 main ()
22561 return com_err ();
22563 return 0;
22565 _ACEOF
22566 rm -f conftest.$ac_objext conftest$ac_exeext
22567 if { (ac_try="$ac_link"
22568 case "(($ac_try" in
22569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570 *) ac_try_echo=$ac_try;;
22571 esac
22572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22573 $as_echo "$ac_try_echo") >&5
22574 (eval "$ac_link") 2>conftest.er1
22575 ac_status=$?
22576 grep -v '^ *+' conftest.er1 >conftest.err
22577 rm -f conftest.er1
22578 cat conftest.err >&5
22579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } && {
22581 test -z "$ac_c_werror_flag" ||
22582 test ! -s conftest.err
22583 } && test -s conftest$ac_exeext && {
22584 test "$cross_compiling" = yes ||
22585 $as_test_x conftest$ac_exeext
22586 }; then
22587 ac_cv_lib_com_err_com_err=yes
22588 else
22589 $as_echo "$as_me: failed program was:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22592 ac_cv_lib_com_err_com_err=no
22595 rm -rf conftest.dSYM
22596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22597 conftest$ac_exeext conftest.$ac_ext
22598 LIBS=$ac_check_lib_save_LIBS
22600 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22601 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22602 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then
22603 have_com_err=yes
22604 else
22605 have_com_err=no
22608 if test $have_com_err = yes; then
22609 COM_ERRLIB=-lcom_err
22610 LIBS="$COM_ERRLIB $LIBS"
22612 cat >>confdefs.h <<\_ACEOF
22613 #define HAVE_LIBCOM_ERR 1
22614 _ACEOF
22617 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22618 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22619 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22620 $as_echo_n "(cached) " >&6
22621 else
22622 ac_check_lib_save_LIBS=$LIBS
22623 LIBS="-lcrypto $LIBS"
22624 cat >conftest.$ac_ext <<_ACEOF
22625 /* confdefs.h. */
22626 _ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h. */
22631 /* Override any GCC internal prototype to avoid an error.
22632 Use char because int might match the return type of a GCC
22633 builtin and then its argument prototype would still apply. */
22634 #ifdef __cplusplus
22635 extern "C"
22636 #endif
22637 char mit_des_cbc_encrypt ();
22639 main ()
22641 return mit_des_cbc_encrypt ();
22643 return 0;
22645 _ACEOF
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22651 esac
22652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22653 $as_echo "$ac_try_echo") >&5
22654 (eval "$ac_link") 2>conftest.er1
22655 ac_status=$?
22656 grep -v '^ *+' conftest.er1 >conftest.err
22657 rm -f conftest.er1
22658 cat conftest.err >&5
22659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); } && {
22661 test -z "$ac_c_werror_flag" ||
22662 test ! -s conftest.err
22663 } && test -s conftest$ac_exeext && {
22664 test "$cross_compiling" = yes ||
22665 $as_test_x conftest$ac_exeext
22666 }; then
22667 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22668 else
22669 $as_echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22672 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22675 rm -rf conftest.dSYM
22676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22677 conftest$ac_exeext conftest.$ac_ext
22678 LIBS=$ac_check_lib_save_LIBS
22680 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22681 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22682 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then
22683 have_crypto=yes
22684 else
22685 have_crypto=no
22688 if test $have_crypto = yes; then
22689 CRYPTOLIB=-lcrypto
22690 LIBS="$CRYPTOLIB $LIBS"
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_LIBCRYPTO 1
22694 _ACEOF
22697 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22698 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22699 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22700 $as_echo_n "(cached) " >&6
22701 else
22702 ac_check_lib_save_LIBS=$LIBS
22703 LIBS="-lk5crypto $LIBS"
22704 cat >conftest.$ac_ext <<_ACEOF
22705 /* confdefs.h. */
22706 _ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22711 /* Override any GCC internal prototype to avoid an error.
22712 Use char because int might match the return type of a GCC
22713 builtin and then its argument prototype would still apply. */
22714 #ifdef __cplusplus
22715 extern "C"
22716 #endif
22717 char mit_des_cbc_encrypt ();
22719 main ()
22721 return mit_des_cbc_encrypt ();
22723 return 0;
22725 _ACEOF
22726 rm -f conftest.$ac_objext conftest$ac_exeext
22727 if { (ac_try="$ac_link"
22728 case "(($ac_try" in
22729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730 *) ac_try_echo=$ac_try;;
22731 esac
22732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22733 $as_echo "$ac_try_echo") >&5
22734 (eval "$ac_link") 2>conftest.er1
22735 ac_status=$?
22736 grep -v '^ *+' conftest.er1 >conftest.err
22737 rm -f conftest.er1
22738 cat conftest.err >&5
22739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } && {
22741 test -z "$ac_c_werror_flag" ||
22742 test ! -s conftest.err
22743 } && test -s conftest$ac_exeext && {
22744 test "$cross_compiling" = yes ||
22745 $as_test_x conftest$ac_exeext
22746 }; then
22747 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22748 else
22749 $as_echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22752 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22755 rm -rf conftest.dSYM
22756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22757 conftest$ac_exeext conftest.$ac_ext
22758 LIBS=$ac_check_lib_save_LIBS
22760 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22761 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22762 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then
22763 have_k5crypto=yes
22764 else
22765 have_k5crypto=no
22768 if test $have_k5crypto = yes; then
22769 CRYPTOLIB=-lk5crypto
22770 LIBS="$CRYPTOLIB $LIBS"
22772 cat >>confdefs.h <<\_ACEOF
22773 #define HAVE_LIBK5CRYPTO 1
22774 _ACEOF
22777 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22778 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22779 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22780 $as_echo_n "(cached) " >&6
22781 else
22782 ac_check_lib_save_LIBS=$LIBS
22783 LIBS="-lkrb5 $LIBS"
22784 cat >conftest.$ac_ext <<_ACEOF
22785 /* confdefs.h. */
22786 _ACEOF
22787 cat confdefs.h >>conftest.$ac_ext
22788 cat >>conftest.$ac_ext <<_ACEOF
22789 /* end confdefs.h. */
22791 /* Override any GCC internal prototype to avoid an error.
22792 Use char because int might match the return type of a GCC
22793 builtin and then its argument prototype would still apply. */
22794 #ifdef __cplusplus
22795 extern "C"
22796 #endif
22797 char krb5_init_context ();
22799 main ()
22801 return krb5_init_context ();
22803 return 0;
22805 _ACEOF
22806 rm -f conftest.$ac_objext conftest$ac_exeext
22807 if { (ac_try="$ac_link"
22808 case "(($ac_try" in
22809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810 *) ac_try_echo=$ac_try;;
22811 esac
22812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22813 $as_echo "$ac_try_echo") >&5
22814 (eval "$ac_link") 2>conftest.er1
22815 ac_status=$?
22816 grep -v '^ *+' conftest.er1 >conftest.err
22817 rm -f conftest.er1
22818 cat conftest.err >&5
22819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); } && {
22821 test -z "$ac_c_werror_flag" ||
22822 test ! -s conftest.err
22823 } && test -s conftest$ac_exeext && {
22824 test "$cross_compiling" = yes ||
22825 $as_test_x conftest$ac_exeext
22826 }; then
22827 ac_cv_lib_krb5_krb5_init_context=yes
22828 else
22829 $as_echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22832 ac_cv_lib_krb5_krb5_init_context=no
22835 rm -rf conftest.dSYM
22836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22837 conftest$ac_exeext conftest.$ac_ext
22838 LIBS=$ac_check_lib_save_LIBS
22840 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22841 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22842 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then
22843 have_krb5=yes
22844 else
22845 have_krb5=no
22848 if test $have_krb5=yes; then
22849 KRB5LIB=-lkrb5
22850 LIBS="$KRB5LIB $LIBS"
22852 cat >>confdefs.h <<\_ACEOF
22853 #define HAVE_LIBKRB5 1
22854 _ACEOF
22857 if test "${with_kerberos5}" = no; then
22858 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22859 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22860 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22861 $as_echo_n "(cached) " >&6
22862 else
22863 ac_check_lib_save_LIBS=$LIBS
22864 LIBS="-ldes425 $LIBS"
22865 cat >conftest.$ac_ext <<_ACEOF
22866 /* confdefs.h. */
22867 _ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22872 /* Override any GCC internal prototype to avoid an error.
22873 Use char because int might match the return type of a GCC
22874 builtin and then its argument prototype would still apply. */
22875 #ifdef __cplusplus
22876 extern "C"
22877 #endif
22878 char des_cbc_encrypt ();
22880 main ()
22882 return des_cbc_encrypt ();
22884 return 0;
22886 _ACEOF
22887 rm -f conftest.$ac_objext conftest$ac_exeext
22888 if { (ac_try="$ac_link"
22889 case "(($ac_try" in
22890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22891 *) ac_try_echo=$ac_try;;
22892 esac
22893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22894 $as_echo "$ac_try_echo") >&5
22895 (eval "$ac_link") 2>conftest.er1
22896 ac_status=$?
22897 grep -v '^ *+' conftest.er1 >conftest.err
22898 rm -f conftest.er1
22899 cat conftest.err >&5
22900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); } && {
22902 test -z "$ac_c_werror_flag" ||
22903 test ! -s conftest.err
22904 } && test -s conftest$ac_exeext && {
22905 test "$cross_compiling" = yes ||
22906 $as_test_x conftest$ac_exeext
22907 }; then
22908 ac_cv_lib_des425_des_cbc_encrypt=yes
22909 else
22910 $as_echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22913 ac_cv_lib_des425_des_cbc_encrypt=no
22916 rm -rf conftest.dSYM
22917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22918 conftest$ac_exeext conftest.$ac_ext
22919 LIBS=$ac_check_lib_save_LIBS
22921 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22922 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22923 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then
22924 have_des425=yes
22925 else
22926 have_des425=no
22929 if test $have_des425 = yes; then
22930 DESLIB=-ldes425
22931 LIBS="$DESLIB $LIBS"
22933 cat >>confdefs.h <<\_ACEOF
22934 #define HAVE_LIBDES425 1
22935 _ACEOF
22937 else
22938 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22939 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22940 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22941 $as_echo_n "(cached) " >&6
22942 else
22943 ac_check_lib_save_LIBS=$LIBS
22944 LIBS="-ldes $LIBS"
22945 cat >conftest.$ac_ext <<_ACEOF
22946 /* confdefs.h. */
22947 _ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h. */
22952 /* Override any GCC internal prototype to avoid an error.
22953 Use char because int might match the return type of a GCC
22954 builtin and then its argument prototype would still apply. */
22955 #ifdef __cplusplus
22956 extern "C"
22957 #endif
22958 char des_cbc_encrypt ();
22960 main ()
22962 return des_cbc_encrypt ();
22964 return 0;
22966 _ACEOF
22967 rm -f conftest.$ac_objext conftest$ac_exeext
22968 if { (ac_try="$ac_link"
22969 case "(($ac_try" in
22970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971 *) ac_try_echo=$ac_try;;
22972 esac
22973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22974 $as_echo "$ac_try_echo") >&5
22975 (eval "$ac_link") 2>conftest.er1
22976 ac_status=$?
22977 grep -v '^ *+' conftest.er1 >conftest.err
22978 rm -f conftest.er1
22979 cat conftest.err >&5
22980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); } && {
22982 test -z "$ac_c_werror_flag" ||
22983 test ! -s conftest.err
22984 } && test -s conftest$ac_exeext && {
22985 test "$cross_compiling" = yes ||
22986 $as_test_x conftest$ac_exeext
22987 }; then
22988 ac_cv_lib_des_des_cbc_encrypt=yes
22989 else
22990 $as_echo "$as_me: failed program was:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22993 ac_cv_lib_des_des_cbc_encrypt=no
22996 rm -rf conftest.dSYM
22997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22998 conftest$ac_exeext conftest.$ac_ext
22999 LIBS=$ac_check_lib_save_LIBS
23001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
23002 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
23003 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then
23004 have_des=yes
23005 else
23006 have_des=no
23009 if test $have_des = yes; then
23010 DESLIB=-ldes
23011 LIBS="$DESLIB $LIBS"
23013 cat >>confdefs.h <<\_ACEOF
23014 #define HAVE_LIBDES 1
23015 _ACEOF
23019 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
23020 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
23021 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
23022 $as_echo_n "(cached) " >&6
23023 else
23024 ac_check_lib_save_LIBS=$LIBS
23025 LIBS="-lkrb4 $LIBS"
23026 cat >conftest.$ac_ext <<_ACEOF
23027 /* confdefs.h. */
23028 _ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h. */
23033 /* Override any GCC internal prototype to avoid an error.
23034 Use char because int might match the return type of a GCC
23035 builtin and then its argument prototype would still apply. */
23036 #ifdef __cplusplus
23037 extern "C"
23038 #endif
23039 char krb_get_cred ();
23041 main ()
23043 return krb_get_cred ();
23045 return 0;
23047 _ACEOF
23048 rm -f conftest.$ac_objext conftest$ac_exeext
23049 if { (ac_try="$ac_link"
23050 case "(($ac_try" in
23051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23052 *) ac_try_echo=$ac_try;;
23053 esac
23054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23055 $as_echo "$ac_try_echo") >&5
23056 (eval "$ac_link") 2>conftest.er1
23057 ac_status=$?
23058 grep -v '^ *+' conftest.er1 >conftest.err
23059 rm -f conftest.er1
23060 cat conftest.err >&5
23061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } && {
23063 test -z "$ac_c_werror_flag" ||
23064 test ! -s conftest.err
23065 } && test -s conftest$ac_exeext && {
23066 test "$cross_compiling" = yes ||
23067 $as_test_x conftest$ac_exeext
23068 }; then
23069 ac_cv_lib_krb4_krb_get_cred=yes
23070 else
23071 $as_echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23074 ac_cv_lib_krb4_krb_get_cred=no
23077 rm -rf conftest.dSYM
23078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23079 conftest$ac_exeext conftest.$ac_ext
23080 LIBS=$ac_check_lib_save_LIBS
23082 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
23083 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
23084 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then
23085 have_krb4=yes
23086 else
23087 have_krb4=no
23090 if test $have_krb4 = yes; then
23091 KRB4LIB=-lkrb4
23092 LIBS="$KRB4LIB $LIBS"
23094 cat >>confdefs.h <<\_ACEOF
23095 #define HAVE_LIBKRB4 1
23096 _ACEOF
23098 else
23099 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
23100 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
23101 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
23102 $as_echo_n "(cached) " >&6
23103 else
23104 ac_check_lib_save_LIBS=$LIBS
23105 LIBS="-lkrb $LIBS"
23106 cat >conftest.$ac_ext <<_ACEOF
23107 /* confdefs.h. */
23108 _ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23113 /* Override any GCC internal prototype to avoid an error.
23114 Use char because int might match the return type of a GCC
23115 builtin and then its argument prototype would still apply. */
23116 #ifdef __cplusplus
23117 extern "C"
23118 #endif
23119 char krb_get_cred ();
23121 main ()
23123 return krb_get_cred ();
23125 return 0;
23127 _ACEOF
23128 rm -f conftest.$ac_objext conftest$ac_exeext
23129 if { (ac_try="$ac_link"
23130 case "(($ac_try" in
23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132 *) ac_try_echo=$ac_try;;
23133 esac
23134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23135 $as_echo "$ac_try_echo") >&5
23136 (eval "$ac_link") 2>conftest.er1
23137 ac_status=$?
23138 grep -v '^ *+' conftest.er1 >conftest.err
23139 rm -f conftest.er1
23140 cat conftest.err >&5
23141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } && {
23143 test -z "$ac_c_werror_flag" ||
23144 test ! -s conftest.err
23145 } && test -s conftest$ac_exeext && {
23146 test "$cross_compiling" = yes ||
23147 $as_test_x conftest$ac_exeext
23148 }; then
23149 ac_cv_lib_krb_krb_get_cred=yes
23150 else
23151 $as_echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 ac_cv_lib_krb_krb_get_cred=no
23157 rm -rf conftest.dSYM
23158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23159 conftest$ac_exeext conftest.$ac_ext
23160 LIBS=$ac_check_lib_save_LIBS
23162 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
23163 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23164 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then
23165 have_krb=yes
23166 else
23167 have_krb=no
23170 if test $have_krb = yes; then
23171 KRB4LIB=-lkrb
23172 LIBS="$KRB4LIB $LIBS"
23174 cat >>confdefs.h <<\_ACEOF
23175 #define HAVE_LIBKRB 1
23176 _ACEOF
23182 if test "${with_kerberos5}" != no; then
23184 for ac_header in krb5.h
23186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23188 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23189 $as_echo_n "checking for $ac_header... " >&6; }
23190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23191 $as_echo_n "(cached) " >&6
23193 ac_res=`eval 'as_val=${'$as_ac_Header'}
23194 $as_echo "$as_val"'`
23195 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23196 $as_echo "$ac_res" >&6; }
23197 else
23198 # Is the header compilable?
23199 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23200 $as_echo_n "checking $ac_header usability... " >&6; }
23201 cat >conftest.$ac_ext <<_ACEOF
23202 /* confdefs.h. */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 $ac_includes_default
23208 #include <$ac_header>
23209 _ACEOF
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23215 esac
23216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23217 $as_echo "$ac_try_echo") >&5
23218 (eval "$ac_compile") 2>conftest.er1
23219 ac_status=$?
23220 grep -v '^ *+' conftest.er1 >conftest.err
23221 rm -f conftest.er1
23222 cat conftest.err >&5
23223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } && {
23225 test -z "$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23227 } && test -s conftest.$ac_objext; then
23228 ac_header_compiler=yes
23229 else
23230 $as_echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ac_header_compiler=no
23236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23238 $as_echo "$ac_header_compiler" >&6; }
23240 # Is the header present?
23241 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23242 $as_echo_n "checking $ac_header presence... " >&6; }
23243 cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h. */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23249 #include <$ac_header>
23250 _ACEOF
23251 if { (ac_try="$ac_cpp conftest.$ac_ext"
23252 case "(($ac_try" in
23253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254 *) ac_try_echo=$ac_try;;
23255 esac
23256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23257 $as_echo "$ac_try_echo") >&5
23258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23259 ac_status=$?
23260 grep -v '^ *+' conftest.er1 >conftest.err
23261 rm -f conftest.er1
23262 cat conftest.err >&5
23263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } >/dev/null && {
23265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23266 test ! -s conftest.err
23267 }; then
23268 ac_header_preproc=yes
23269 else
23270 $as_echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23273 ac_header_preproc=no
23276 rm -f conftest.err conftest.$ac_ext
23277 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23278 $as_echo "$ac_header_preproc" >&6; }
23280 # So? What about this header?
23281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23282 yes:no: )
23283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23284 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23287 ac_header_preproc=yes
23289 no:yes:* )
23290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23291 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23293 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23295 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23297 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23301 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23304 esac
23305 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23306 $as_echo_n "checking for $ac_header... " >&6; }
23307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23308 $as_echo_n "(cached) " >&6
23309 else
23310 eval "$as_ac_Header=\$ac_header_preproc"
23312 ac_res=`eval 'as_val=${'$as_ac_Header'}
23313 $as_echo "$as_val"'`
23314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23315 $as_echo "$ac_res" >&6; }
23318 as_val=`eval 'as_val=${'$as_ac_Header'}
23319 $as_echo "$as_val"'`
23320 if test "x$as_val" = x""yes; then
23321 cat >>confdefs.h <<_ACEOF
23322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23323 _ACEOF
23324 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
23325 $as_echo_n "checking for krb5_error.text... " >&6; }
23326 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23327 $as_echo_n "(cached) " >&6
23328 else
23329 cat >conftest.$ac_ext <<_ACEOF
23330 /* confdefs.h. */
23331 _ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h. */
23335 #include <krb5.h>
23338 main ()
23340 static krb5_error ac_aggr;
23341 if (ac_aggr.text)
23342 return 0;
23344 return 0;
23346 _ACEOF
23347 rm -f conftest.$ac_objext
23348 if { (ac_try="$ac_compile"
23349 case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23352 esac
23353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23354 $as_echo "$ac_try_echo") >&5
23355 (eval "$ac_compile") 2>conftest.er1
23356 ac_status=$?
23357 grep -v '^ *+' conftest.er1 >conftest.err
23358 rm -f conftest.er1
23359 cat conftest.err >&5
23360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); } && {
23362 test -z "$ac_c_werror_flag" ||
23363 test ! -s conftest.err
23364 } && test -s conftest.$ac_objext; then
23365 ac_cv_member_krb5_error_text=yes
23366 else
23367 $as_echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23370 cat >conftest.$ac_ext <<_ACEOF
23371 /* confdefs.h. */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h. */
23376 #include <krb5.h>
23379 main ()
23381 static krb5_error ac_aggr;
23382 if (sizeof ac_aggr.text)
23383 return 0;
23385 return 0;
23387 _ACEOF
23388 rm -f conftest.$ac_objext
23389 if { (ac_try="$ac_compile"
23390 case "(($ac_try" in
23391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392 *) ac_try_echo=$ac_try;;
23393 esac
23394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23395 $as_echo "$ac_try_echo") >&5
23396 (eval "$ac_compile") 2>conftest.er1
23397 ac_status=$?
23398 grep -v '^ *+' conftest.er1 >conftest.err
23399 rm -f conftest.er1
23400 cat conftest.err >&5
23401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); } && {
23403 test -z "$ac_c_werror_flag" ||
23404 test ! -s conftest.err
23405 } && test -s conftest.$ac_objext; then
23406 ac_cv_member_krb5_error_text=yes
23407 else
23408 $as_echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23411 ac_cv_member_krb5_error_text=no
23414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23420 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23421 if test "x$ac_cv_member_krb5_error_text" = x""yes; then
23423 cat >>confdefs.h <<_ACEOF
23424 #define HAVE_KRB5_ERROR_TEXT 1
23425 _ACEOF
23429 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
23430 $as_echo_n "checking for krb5_error.e_text... " >&6; }
23431 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23432 $as_echo_n "(cached) " >&6
23433 else
23434 cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h. */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h. */
23440 #include <krb5.h>
23443 main ()
23445 static krb5_error ac_aggr;
23446 if (ac_aggr.e_text)
23447 return 0;
23449 return 0;
23451 _ACEOF
23452 rm -f conftest.$ac_objext
23453 if { (ac_try="$ac_compile"
23454 case "(($ac_try" in
23455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456 *) ac_try_echo=$ac_try;;
23457 esac
23458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23459 $as_echo "$ac_try_echo") >&5
23460 (eval "$ac_compile") 2>conftest.er1
23461 ac_status=$?
23462 grep -v '^ *+' conftest.er1 >conftest.err
23463 rm -f conftest.er1
23464 cat conftest.err >&5
23465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); } && {
23467 test -z "$ac_c_werror_flag" ||
23468 test ! -s conftest.err
23469 } && test -s conftest.$ac_objext; then
23470 ac_cv_member_krb5_error_e_text=yes
23471 else
23472 $as_echo "$as_me: failed program was:" >&5
23473 sed 's/^/| /' conftest.$ac_ext >&5
23475 cat >conftest.$ac_ext <<_ACEOF
23476 /* confdefs.h. */
23477 _ACEOF
23478 cat confdefs.h >>conftest.$ac_ext
23479 cat >>conftest.$ac_ext <<_ACEOF
23480 /* end confdefs.h. */
23481 #include <krb5.h>
23484 main ()
23486 static krb5_error ac_aggr;
23487 if (sizeof ac_aggr.e_text)
23488 return 0;
23490 return 0;
23492 _ACEOF
23493 rm -f conftest.$ac_objext
23494 if { (ac_try="$ac_compile"
23495 case "(($ac_try" in
23496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497 *) ac_try_echo=$ac_try;;
23498 esac
23499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23500 $as_echo "$ac_try_echo") >&5
23501 (eval "$ac_compile") 2>conftest.er1
23502 ac_status=$?
23503 grep -v '^ *+' conftest.er1 >conftest.err
23504 rm -f conftest.er1
23505 cat conftest.err >&5
23506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } && {
23508 test -z "$ac_c_werror_flag" ||
23509 test ! -s conftest.err
23510 } && test -s conftest.$ac_objext; then
23511 ac_cv_member_krb5_error_e_text=yes
23512 else
23513 $as_echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23516 ac_cv_member_krb5_error_e_text=no
23519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23524 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23525 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23526 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then
23528 cat >>confdefs.h <<_ACEOF
23529 #define HAVE_KRB5_ERROR_E_TEXT 1
23530 _ACEOF
23537 done
23539 else
23541 for ac_header in des.h
23543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23545 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23546 $as_echo_n "checking for $ac_header... " >&6; }
23547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23548 $as_echo_n "(cached) " >&6
23550 ac_res=`eval 'as_val=${'$as_ac_Header'}
23551 $as_echo "$as_val"'`
23552 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23553 $as_echo "$ac_res" >&6; }
23554 else
23555 # Is the header compilable?
23556 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23557 $as_echo_n "checking $ac_header usability... " >&6; }
23558 cat >conftest.$ac_ext <<_ACEOF
23559 /* confdefs.h. */
23560 _ACEOF
23561 cat confdefs.h >>conftest.$ac_ext
23562 cat >>conftest.$ac_ext <<_ACEOF
23563 /* end confdefs.h. */
23564 $ac_includes_default
23565 #include <$ac_header>
23566 _ACEOF
23567 rm -f conftest.$ac_objext
23568 if { (ac_try="$ac_compile"
23569 case "(($ac_try" in
23570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571 *) ac_try_echo=$ac_try;;
23572 esac
23573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23574 $as_echo "$ac_try_echo") >&5
23575 (eval "$ac_compile") 2>conftest.er1
23576 ac_status=$?
23577 grep -v '^ *+' conftest.er1 >conftest.err
23578 rm -f conftest.er1
23579 cat conftest.err >&5
23580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } && {
23582 test -z "$ac_c_werror_flag" ||
23583 test ! -s conftest.err
23584 } && test -s conftest.$ac_objext; then
23585 ac_header_compiler=yes
23586 else
23587 $as_echo "$as_me: failed program was:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23590 ac_header_compiler=no
23593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23594 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23595 $as_echo "$ac_header_compiler" >&6; }
23597 # Is the header present?
23598 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23599 $as_echo_n "checking $ac_header presence... " >&6; }
23600 cat >conftest.$ac_ext <<_ACEOF
23601 /* confdefs.h. */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h. */
23606 #include <$ac_header>
23607 _ACEOF
23608 if { (ac_try="$ac_cpp conftest.$ac_ext"
23609 case "(($ac_try" in
23610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23611 *) ac_try_echo=$ac_try;;
23612 esac
23613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23614 $as_echo "$ac_try_echo") >&5
23615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23616 ac_status=$?
23617 grep -v '^ *+' conftest.er1 >conftest.err
23618 rm -f conftest.er1
23619 cat conftest.err >&5
23620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); } >/dev/null && {
23622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23623 test ! -s conftest.err
23624 }; then
23625 ac_header_preproc=yes
23626 else
23627 $as_echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23630 ac_header_preproc=no
23633 rm -f conftest.err conftest.$ac_ext
23634 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23635 $as_echo "$ac_header_preproc" >&6; }
23637 # So? What about this header?
23638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23639 yes:no: )
23640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23641 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23643 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23644 ac_header_preproc=yes
23646 no:yes:* )
23647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23648 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23650 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23652 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23654 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23656 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23658 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23661 esac
23662 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23663 $as_echo_n "checking for $ac_header... " >&6; }
23664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23665 $as_echo_n "(cached) " >&6
23666 else
23667 eval "$as_ac_Header=\$ac_header_preproc"
23669 ac_res=`eval 'as_val=${'$as_ac_Header'}
23670 $as_echo "$as_val"'`
23671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23672 $as_echo "$ac_res" >&6; }
23675 as_val=`eval 'as_val=${'$as_ac_Header'}
23676 $as_echo "$as_val"'`
23677 if test "x$as_val" = x""yes; then
23678 cat >>confdefs.h <<_ACEOF
23679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23680 _ACEOF
23682 else
23684 for ac_header in kerberosIV/des.h
23686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23689 $as_echo_n "checking for $ac_header... " >&6; }
23690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23691 $as_echo_n "(cached) " >&6
23693 ac_res=`eval 'as_val=${'$as_ac_Header'}
23694 $as_echo "$as_val"'`
23695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23696 $as_echo "$ac_res" >&6; }
23697 else
23698 # Is the header compilable?
23699 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23700 $as_echo_n "checking $ac_header usability... " >&6; }
23701 cat >conftest.$ac_ext <<_ACEOF
23702 /* confdefs.h. */
23703 _ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h. */
23707 $ac_includes_default
23708 #include <$ac_header>
23709 _ACEOF
23710 rm -f conftest.$ac_objext
23711 if { (ac_try="$ac_compile"
23712 case "(($ac_try" in
23713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714 *) ac_try_echo=$ac_try;;
23715 esac
23716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23717 $as_echo "$ac_try_echo") >&5
23718 (eval "$ac_compile") 2>conftest.er1
23719 ac_status=$?
23720 grep -v '^ *+' conftest.er1 >conftest.err
23721 rm -f conftest.er1
23722 cat conftest.err >&5
23723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } && {
23725 test -z "$ac_c_werror_flag" ||
23726 test ! -s conftest.err
23727 } && test -s conftest.$ac_objext; then
23728 ac_header_compiler=yes
23729 else
23730 $as_echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23733 ac_header_compiler=no
23736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23738 $as_echo "$ac_header_compiler" >&6; }
23740 # Is the header present?
23741 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23742 $as_echo_n "checking $ac_header presence... " >&6; }
23743 cat >conftest.$ac_ext <<_ACEOF
23744 /* confdefs.h. */
23745 _ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h. */
23749 #include <$ac_header>
23750 _ACEOF
23751 if { (ac_try="$ac_cpp conftest.$ac_ext"
23752 case "(($ac_try" in
23753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754 *) ac_try_echo=$ac_try;;
23755 esac
23756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23757 $as_echo "$ac_try_echo") >&5
23758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23759 ac_status=$?
23760 grep -v '^ *+' conftest.er1 >conftest.err
23761 rm -f conftest.er1
23762 cat conftest.err >&5
23763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764 (exit $ac_status); } >/dev/null && {
23765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23766 test ! -s conftest.err
23767 }; then
23768 ac_header_preproc=yes
23769 else
23770 $as_echo "$as_me: failed program was:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23773 ac_header_preproc=no
23776 rm -f conftest.err conftest.$ac_ext
23777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23778 $as_echo "$ac_header_preproc" >&6; }
23780 # So? What about this header?
23781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23782 yes:no: )
23783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23784 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23786 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23787 ac_header_preproc=yes
23789 no:yes:* )
23790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23791 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23793 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23795 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23797 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23799 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23801 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23804 esac
23805 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23806 $as_echo_n "checking for $ac_header... " >&6; }
23807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23808 $as_echo_n "(cached) " >&6
23809 else
23810 eval "$as_ac_Header=\$ac_header_preproc"
23812 ac_res=`eval 'as_val=${'$as_ac_Header'}
23813 $as_echo "$as_val"'`
23814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23815 $as_echo "$ac_res" >&6; }
23818 as_val=`eval 'as_val=${'$as_ac_Header'}
23819 $as_echo "$as_val"'`
23820 if test "x$as_val" = x""yes; then
23821 cat >>confdefs.h <<_ACEOF
23822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23823 _ACEOF
23825 else
23827 for ac_header in kerberos/des.h
23829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23831 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23832 $as_echo_n "checking for $ac_header... " >&6; }
23833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23834 $as_echo_n "(cached) " >&6
23836 ac_res=`eval 'as_val=${'$as_ac_Header'}
23837 $as_echo "$as_val"'`
23838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23839 $as_echo "$ac_res" >&6; }
23840 else
23841 # Is the header compilable?
23842 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23843 $as_echo_n "checking $ac_header usability... " >&6; }
23844 cat >conftest.$ac_ext <<_ACEOF
23845 /* confdefs.h. */
23846 _ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23850 $ac_includes_default
23851 #include <$ac_header>
23852 _ACEOF
23853 rm -f conftest.$ac_objext
23854 if { (ac_try="$ac_compile"
23855 case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857 *) ac_try_echo=$ac_try;;
23858 esac
23859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23860 $as_echo "$ac_try_echo") >&5
23861 (eval "$ac_compile") 2>conftest.er1
23862 ac_status=$?
23863 grep -v '^ *+' conftest.er1 >conftest.err
23864 rm -f conftest.er1
23865 cat conftest.err >&5
23866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); } && {
23868 test -z "$ac_c_werror_flag" ||
23869 test ! -s conftest.err
23870 } && test -s conftest.$ac_objext; then
23871 ac_header_compiler=yes
23872 else
23873 $as_echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23876 ac_header_compiler=no
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23881 $as_echo "$ac_header_compiler" >&6; }
23883 # Is the header present?
23884 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23885 $as_echo_n "checking $ac_header presence... " >&6; }
23886 cat >conftest.$ac_ext <<_ACEOF
23887 /* confdefs.h. */
23888 _ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h. */
23892 #include <$ac_header>
23893 _ACEOF
23894 if { (ac_try="$ac_cpp conftest.$ac_ext"
23895 case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23898 esac
23899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23900 $as_echo "$ac_try_echo") >&5
23901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23902 ac_status=$?
23903 grep -v '^ *+' conftest.er1 >conftest.err
23904 rm -f conftest.er1
23905 cat conftest.err >&5
23906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); } >/dev/null && {
23908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23909 test ! -s conftest.err
23910 }; then
23911 ac_header_preproc=yes
23912 else
23913 $as_echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23916 ac_header_preproc=no
23919 rm -f conftest.err conftest.$ac_ext
23920 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23921 $as_echo "$ac_header_preproc" >&6; }
23923 # So? What about this header?
23924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23925 yes:no: )
23926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23927 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23930 ac_header_preproc=yes
23932 no:yes:* )
23933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23934 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23936 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23938 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23940 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23942 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23944 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23947 esac
23948 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23949 $as_echo_n "checking for $ac_header... " >&6; }
23950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23951 $as_echo_n "(cached) " >&6
23952 else
23953 eval "$as_ac_Header=\$ac_header_preproc"
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; }
23961 as_val=`eval 'as_val=${'$as_ac_Header'}
23962 $as_echo "$as_val"'`
23963 if test "x$as_val" = x""yes; then
23964 cat >>confdefs.h <<_ACEOF
23965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23966 _ACEOF
23970 done
23974 done
23978 done
23981 for ac_header in krb.h
23983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23986 $as_echo_n "checking for $ac_header... " >&6; }
23987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23988 $as_echo_n "(cached) " >&6
23990 ac_res=`eval 'as_val=${'$as_ac_Header'}
23991 $as_echo "$as_val"'`
23992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23993 $as_echo "$ac_res" >&6; }
23994 else
23995 # Is the header compilable?
23996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23997 $as_echo_n "checking $ac_header usability... " >&6; }
23998 cat >conftest.$ac_ext <<_ACEOF
23999 /* confdefs.h. */
24000 _ACEOF
24001 cat confdefs.h >>conftest.$ac_ext
24002 cat >>conftest.$ac_ext <<_ACEOF
24003 /* end confdefs.h. */
24004 $ac_includes_default
24005 #include <$ac_header>
24006 _ACEOF
24007 rm -f conftest.$ac_objext
24008 if { (ac_try="$ac_compile"
24009 case "(($ac_try" in
24010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24011 *) ac_try_echo=$ac_try;;
24012 esac
24013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24014 $as_echo "$ac_try_echo") >&5
24015 (eval "$ac_compile") 2>conftest.er1
24016 ac_status=$?
24017 grep -v '^ *+' conftest.er1 >conftest.err
24018 rm -f conftest.er1
24019 cat conftest.err >&5
24020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021 (exit $ac_status); } && {
24022 test -z "$ac_c_werror_flag" ||
24023 test ! -s conftest.err
24024 } && test -s conftest.$ac_objext; then
24025 ac_header_compiler=yes
24026 else
24027 $as_echo "$as_me: failed program was:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24030 ac_header_compiler=no
24033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24035 $as_echo "$ac_header_compiler" >&6; }
24037 # Is the header present?
24038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24039 $as_echo_n "checking $ac_header presence... " >&6; }
24040 cat >conftest.$ac_ext <<_ACEOF
24041 /* confdefs.h. */
24042 _ACEOF
24043 cat confdefs.h >>conftest.$ac_ext
24044 cat >>conftest.$ac_ext <<_ACEOF
24045 /* end confdefs.h. */
24046 #include <$ac_header>
24047 _ACEOF
24048 if { (ac_try="$ac_cpp conftest.$ac_ext"
24049 case "(($ac_try" in
24050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24051 *) ac_try_echo=$ac_try;;
24052 esac
24053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24054 $as_echo "$ac_try_echo") >&5
24055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24056 ac_status=$?
24057 grep -v '^ *+' conftest.er1 >conftest.err
24058 rm -f conftest.er1
24059 cat conftest.err >&5
24060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); } >/dev/null && {
24062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24063 test ! -s conftest.err
24064 }; then
24065 ac_header_preproc=yes
24066 else
24067 $as_echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24070 ac_header_preproc=no
24073 rm -f conftest.err conftest.$ac_ext
24074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24075 $as_echo "$ac_header_preproc" >&6; }
24077 # So? What about this header?
24078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24079 yes:no: )
24080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24084 ac_header_preproc=yes
24086 no:yes:* )
24087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24090 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24094 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24101 esac
24102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24103 $as_echo_n "checking for $ac_header... " >&6; }
24104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24105 $as_echo_n "(cached) " >&6
24106 else
24107 eval "$as_ac_Header=\$ac_header_preproc"
24109 ac_res=`eval 'as_val=${'$as_ac_Header'}
24110 $as_echo "$as_val"'`
24111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24112 $as_echo "$ac_res" >&6; }
24115 as_val=`eval 'as_val=${'$as_ac_Header'}
24116 $as_echo "$as_val"'`
24117 if test "x$as_val" = x""yes; then
24118 cat >>confdefs.h <<_ACEOF
24119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24120 _ACEOF
24122 else
24124 for ac_header in kerberosIV/krb.h
24126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24129 $as_echo_n "checking for $ac_header... " >&6; }
24130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24131 $as_echo_n "(cached) " >&6
24133 ac_res=`eval 'as_val=${'$as_ac_Header'}
24134 $as_echo "$as_val"'`
24135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24136 $as_echo "$ac_res" >&6; }
24137 else
24138 # Is the header compilable?
24139 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24140 $as_echo_n "checking $ac_header usability... " >&6; }
24141 cat >conftest.$ac_ext <<_ACEOF
24142 /* confdefs.h. */
24143 _ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24147 $ac_includes_default
24148 #include <$ac_header>
24149 _ACEOF
24150 rm -f conftest.$ac_objext
24151 if { (ac_try="$ac_compile"
24152 case "(($ac_try" in
24153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154 *) ac_try_echo=$ac_try;;
24155 esac
24156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24157 $as_echo "$ac_try_echo") >&5
24158 (eval "$ac_compile") 2>conftest.er1
24159 ac_status=$?
24160 grep -v '^ *+' conftest.er1 >conftest.err
24161 rm -f conftest.er1
24162 cat conftest.err >&5
24163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } && {
24165 test -z "$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24167 } && test -s conftest.$ac_objext; then
24168 ac_header_compiler=yes
24169 else
24170 $as_echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24173 ac_header_compiler=no
24176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24177 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24178 $as_echo "$ac_header_compiler" >&6; }
24180 # Is the header present?
24181 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24182 $as_echo_n "checking $ac_header presence... " >&6; }
24183 cat >conftest.$ac_ext <<_ACEOF
24184 /* confdefs.h. */
24185 _ACEOF
24186 cat confdefs.h >>conftest.$ac_ext
24187 cat >>conftest.$ac_ext <<_ACEOF
24188 /* end confdefs.h. */
24189 #include <$ac_header>
24190 _ACEOF
24191 if { (ac_try="$ac_cpp conftest.$ac_ext"
24192 case "(($ac_try" in
24193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194 *) ac_try_echo=$ac_try;;
24195 esac
24196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24197 $as_echo "$ac_try_echo") >&5
24198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24199 ac_status=$?
24200 grep -v '^ *+' conftest.er1 >conftest.err
24201 rm -f conftest.er1
24202 cat conftest.err >&5
24203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); } >/dev/null && {
24205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24206 test ! -s conftest.err
24207 }; then
24208 ac_header_preproc=yes
24209 else
24210 $as_echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24213 ac_header_preproc=no
24216 rm -f conftest.err conftest.$ac_ext
24217 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24218 $as_echo "$ac_header_preproc" >&6; }
24220 # So? What about this header?
24221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24222 yes:no: )
24223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24224 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24227 ac_header_preproc=yes
24229 no:yes:* )
24230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24231 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24233 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24235 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24237 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24241 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24244 esac
24245 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24246 $as_echo_n "checking for $ac_header... " >&6; }
24247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24248 $as_echo_n "(cached) " >&6
24249 else
24250 eval "$as_ac_Header=\$ac_header_preproc"
24252 ac_res=`eval 'as_val=${'$as_ac_Header'}
24253 $as_echo "$as_val"'`
24254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24255 $as_echo "$ac_res" >&6; }
24258 as_val=`eval 'as_val=${'$as_ac_Header'}
24259 $as_echo "$as_val"'`
24260 if test "x$as_val" = x""yes; then
24261 cat >>confdefs.h <<_ACEOF
24262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24263 _ACEOF
24265 else
24267 for ac_header in kerberos/krb.h
24269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24272 $as_echo_n "checking for $ac_header... " >&6; }
24273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24274 $as_echo_n "(cached) " >&6
24276 ac_res=`eval 'as_val=${'$as_ac_Header'}
24277 $as_echo "$as_val"'`
24278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24279 $as_echo "$ac_res" >&6; }
24280 else
24281 # Is the header compilable?
24282 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24283 $as_echo_n "checking $ac_header usability... " >&6; }
24284 cat >conftest.$ac_ext <<_ACEOF
24285 /* confdefs.h. */
24286 _ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h. */
24290 $ac_includes_default
24291 #include <$ac_header>
24292 _ACEOF
24293 rm -f conftest.$ac_objext
24294 if { (ac_try="$ac_compile"
24295 case "(($ac_try" in
24296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24298 esac
24299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24300 $as_echo "$ac_try_echo") >&5
24301 (eval "$ac_compile") 2>conftest.er1
24302 ac_status=$?
24303 grep -v '^ *+' conftest.er1 >conftest.err
24304 rm -f conftest.er1
24305 cat conftest.err >&5
24306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307 (exit $ac_status); } && {
24308 test -z "$ac_c_werror_flag" ||
24309 test ! -s conftest.err
24310 } && test -s conftest.$ac_objext; then
24311 ac_header_compiler=yes
24312 else
24313 $as_echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24316 ac_header_compiler=no
24319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24320 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24321 $as_echo "$ac_header_compiler" >&6; }
24323 # Is the header present?
24324 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24325 $as_echo_n "checking $ac_header presence... " >&6; }
24326 cat >conftest.$ac_ext <<_ACEOF
24327 /* confdefs.h. */
24328 _ACEOF
24329 cat confdefs.h >>conftest.$ac_ext
24330 cat >>conftest.$ac_ext <<_ACEOF
24331 /* end confdefs.h. */
24332 #include <$ac_header>
24333 _ACEOF
24334 if { (ac_try="$ac_cpp conftest.$ac_ext"
24335 case "(($ac_try" in
24336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337 *) ac_try_echo=$ac_try;;
24338 esac
24339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24340 $as_echo "$ac_try_echo") >&5
24341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24342 ac_status=$?
24343 grep -v '^ *+' conftest.er1 >conftest.err
24344 rm -f conftest.er1
24345 cat conftest.err >&5
24346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); } >/dev/null && {
24348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24349 test ! -s conftest.err
24350 }; then
24351 ac_header_preproc=yes
24352 else
24353 $as_echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24356 ac_header_preproc=no
24359 rm -f conftest.err conftest.$ac_ext
24360 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24361 $as_echo "$ac_header_preproc" >&6; }
24363 # So? What about this header?
24364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24365 yes:no: )
24366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24367 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24370 ac_header_preproc=yes
24372 no:yes:* )
24373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24374 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24376 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24378 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24380 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24384 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24387 esac
24388 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24389 $as_echo_n "checking for $ac_header... " >&6; }
24390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24391 $as_echo_n "(cached) " >&6
24392 else
24393 eval "$as_ac_Header=\$ac_header_preproc"
24395 ac_res=`eval 'as_val=${'$as_ac_Header'}
24396 $as_echo "$as_val"'`
24397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24398 $as_echo "$ac_res" >&6; }
24401 as_val=`eval 'as_val=${'$as_ac_Header'}
24402 $as_echo "$as_val"'`
24403 if test "x$as_val" = x""yes; then
24404 cat >>confdefs.h <<_ACEOF
24405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24406 _ACEOF
24410 done
24414 done
24418 done
24422 for ac_header in com_err.h
24424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24427 $as_echo_n "checking for $ac_header... " >&6; }
24428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24429 $as_echo_n "(cached) " >&6
24431 ac_res=`eval 'as_val=${'$as_ac_Header'}
24432 $as_echo "$as_val"'`
24433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24434 $as_echo "$ac_res" >&6; }
24435 else
24436 # Is the header compilable?
24437 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24438 $as_echo_n "checking $ac_header usability... " >&6; }
24439 cat >conftest.$ac_ext <<_ACEOF
24440 /* confdefs.h. */
24441 _ACEOF
24442 cat confdefs.h >>conftest.$ac_ext
24443 cat >>conftest.$ac_ext <<_ACEOF
24444 /* end confdefs.h. */
24445 $ac_includes_default
24446 #include <$ac_header>
24447 _ACEOF
24448 rm -f conftest.$ac_objext
24449 if { (ac_try="$ac_compile"
24450 case "(($ac_try" in
24451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24452 *) ac_try_echo=$ac_try;;
24453 esac
24454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24455 $as_echo "$ac_try_echo") >&5
24456 (eval "$ac_compile") 2>conftest.er1
24457 ac_status=$?
24458 grep -v '^ *+' conftest.er1 >conftest.err
24459 rm -f conftest.er1
24460 cat conftest.err >&5
24461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); } && {
24463 test -z "$ac_c_werror_flag" ||
24464 test ! -s conftest.err
24465 } && test -s conftest.$ac_objext; then
24466 ac_header_compiler=yes
24467 else
24468 $as_echo "$as_me: failed program was:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24471 ac_header_compiler=no
24474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24476 $as_echo "$ac_header_compiler" >&6; }
24478 # Is the header present?
24479 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24480 $as_echo_n "checking $ac_header presence... " >&6; }
24481 cat >conftest.$ac_ext <<_ACEOF
24482 /* confdefs.h. */
24483 _ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24487 #include <$ac_header>
24488 _ACEOF
24489 if { (ac_try="$ac_cpp conftest.$ac_ext"
24490 case "(($ac_try" in
24491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24492 *) ac_try_echo=$ac_try;;
24493 esac
24494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24495 $as_echo "$ac_try_echo") >&5
24496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24497 ac_status=$?
24498 grep -v '^ *+' conftest.er1 >conftest.err
24499 rm -f conftest.er1
24500 cat conftest.err >&5
24501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 (exit $ac_status); } >/dev/null && {
24503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24504 test ! -s conftest.err
24505 }; then
24506 ac_header_preproc=yes
24507 else
24508 $as_echo "$as_me: failed program was:" >&5
24509 sed 's/^/| /' conftest.$ac_ext >&5
24511 ac_header_preproc=no
24514 rm -f conftest.err conftest.$ac_ext
24515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24516 $as_echo "$ac_header_preproc" >&6; }
24518 # So? What about this header?
24519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24520 yes:no: )
24521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24522 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24524 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24525 ac_header_preproc=yes
24527 no:yes:* )
24528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24529 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24531 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24533 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24535 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24537 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24539 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24542 esac
24543 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24544 $as_echo_n "checking for $ac_header... " >&6; }
24545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24546 $as_echo_n "(cached) " >&6
24547 else
24548 eval "$as_ac_Header=\$ac_header_preproc"
24550 ac_res=`eval 'as_val=${'$as_ac_Header'}
24551 $as_echo "$as_val"'`
24552 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24553 $as_echo "$ac_res" >&6; }
24556 as_val=`eval 'as_val=${'$as_ac_Header'}
24557 $as_echo "$as_val"'`
24558 if test "x$as_val" = x""yes; then
24559 cat >>confdefs.h <<_ACEOF
24560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24561 _ACEOF
24565 done
24575 # Solaris requires -lintl if you want strerror (which calls dgettext)
24576 # to return localized messages.
24578 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24579 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24580 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24581 $as_echo_n "(cached) " >&6
24582 else
24583 ac_check_lib_save_LIBS=$LIBS
24584 LIBS="-lintl $LIBS"
24585 cat >conftest.$ac_ext <<_ACEOF
24586 /* confdefs.h. */
24587 _ACEOF
24588 cat confdefs.h >>conftest.$ac_ext
24589 cat >>conftest.$ac_ext <<_ACEOF
24590 /* end confdefs.h. */
24592 /* Override any GCC internal prototype to avoid an error.
24593 Use char because int might match the return type of a GCC
24594 builtin and then its argument prototype would still apply. */
24595 #ifdef __cplusplus
24596 extern "C"
24597 #endif
24598 char dgettext ();
24600 main ()
24602 return dgettext ();
24604 return 0;
24606 _ACEOF
24607 rm -f conftest.$ac_objext conftest$ac_exeext
24608 if { (ac_try="$ac_link"
24609 case "(($ac_try" in
24610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611 *) ac_try_echo=$ac_try;;
24612 esac
24613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24614 $as_echo "$ac_try_echo") >&5
24615 (eval "$ac_link") 2>conftest.er1
24616 ac_status=$?
24617 grep -v '^ *+' conftest.er1 >conftest.err
24618 rm -f conftest.er1
24619 cat conftest.err >&5
24620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); } && {
24622 test -z "$ac_c_werror_flag" ||
24623 test ! -s conftest.err
24624 } && test -s conftest$ac_exeext && {
24625 test "$cross_compiling" = yes ||
24626 $as_test_x conftest$ac_exeext
24627 }; then
24628 ac_cv_lib_intl_dgettext=yes
24629 else
24630 $as_echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24633 ac_cv_lib_intl_dgettext=no
24636 rm -rf conftest.dSYM
24637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24638 conftest$ac_exeext conftest.$ac_ext
24639 LIBS=$ac_check_lib_save_LIBS
24641 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24642 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24643 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
24644 cat >>confdefs.h <<_ACEOF
24645 #define HAVE_LIBINTL 1
24646 _ACEOF
24648 LIBS="-lintl $LIBS"
24653 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24654 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24655 if test "${emacs_cv_localtime_cache+set}" = set; then
24656 $as_echo_n "(cached) " >&6
24657 else
24658 if test x$ac_cv_func_tzset = xyes; then
24659 if test "$cross_compiling" = yes; then
24660 # If we have tzset, assume the worst when cross-compiling.
24661 emacs_cv_localtime_cache=yes
24662 else
24663 cat >conftest.$ac_ext <<_ACEOF
24664 /* confdefs.h. */
24665 _ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24669 #include <time.h>
24670 extern char **environ;
24671 unset_TZ ()
24673 char **from, **to;
24674 for (to = from = environ; (*to = *from); from++)
24675 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24676 to++;
24678 char TZ_GMT0[] = "TZ=GMT0";
24679 char TZ_PST8[] = "TZ=PST8";
24680 main()
24682 time_t now = time ((time_t *) 0);
24683 int hour_GMT0, hour_unset;
24684 if (putenv (TZ_GMT0) != 0)
24685 exit (1);
24686 hour_GMT0 = localtime (&now)->tm_hour;
24687 unset_TZ ();
24688 hour_unset = localtime (&now)->tm_hour;
24689 if (putenv (TZ_PST8) != 0)
24690 exit (1);
24691 if (localtime (&now)->tm_hour == hour_GMT0)
24692 exit (1);
24693 unset_TZ ();
24694 if (localtime (&now)->tm_hour != hour_unset)
24695 exit (1);
24696 exit (0);
24698 _ACEOF
24699 rm -f conftest$ac_exeext
24700 if { (ac_try="$ac_link"
24701 case "(($ac_try" in
24702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703 *) ac_try_echo=$ac_try;;
24704 esac
24705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24706 $as_echo "$ac_try_echo") >&5
24707 (eval "$ac_link") 2>&5
24708 ac_status=$?
24709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24711 { (case "(($ac_try" in
24712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713 *) ac_try_echo=$ac_try;;
24714 esac
24715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24716 $as_echo "$ac_try_echo") >&5
24717 (eval "$ac_try") 2>&5
24718 ac_status=$?
24719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); }; }; then
24721 emacs_cv_localtime_cache=no
24722 else
24723 $as_echo "$as_me: program exited with status $ac_status" >&5
24724 $as_echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24727 ( exit $ac_status )
24728 emacs_cv_localtime_cache=yes
24730 rm -rf conftest.dSYM
24731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24735 else
24736 # If we lack tzset, report that localtime does not cache TZ,
24737 # since we can't invalidate the cache if we don't have tzset.
24738 emacs_cv_localtime_cache=no
24741 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24742 $as_echo "$emacs_cv_localtime_cache" >&6; }
24743 if test $emacs_cv_localtime_cache = yes; then
24745 cat >>confdefs.h <<\_ACEOF
24746 #define LOCALTIME_CACHE 1
24747 _ACEOF
24751 if test "x$HAVE_TIMEVAL" = xyes; then
24753 for ac_func in gettimeofday
24755 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24756 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24757 $as_echo_n "checking for $ac_func... " >&6; }
24758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24759 $as_echo_n "(cached) " >&6
24760 else
24761 cat >conftest.$ac_ext <<_ACEOF
24762 /* confdefs.h. */
24763 _ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h. */
24767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24769 #define $ac_func innocuous_$ac_func
24771 /* System header to define __stub macros and hopefully few prototypes,
24772 which can conflict with char $ac_func (); below.
24773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24774 <limits.h> exists even on freestanding compilers. */
24776 #ifdef __STDC__
24777 # include <limits.h>
24778 #else
24779 # include <assert.h>
24780 #endif
24782 #undef $ac_func
24784 /* Override any GCC internal prototype to avoid an error.
24785 Use char because int might match the return type of a GCC
24786 builtin and then its argument prototype would still apply. */
24787 #ifdef __cplusplus
24788 extern "C"
24789 #endif
24790 char $ac_func ();
24791 /* The GNU C library defines this for functions which it implements
24792 to always fail with ENOSYS. Some functions are actually named
24793 something starting with __ and the normal name is an alias. */
24794 #if defined __stub_$ac_func || defined __stub___$ac_func
24795 choke me
24796 #endif
24799 main ()
24801 return $ac_func ();
24803 return 0;
24805 _ACEOF
24806 rm -f conftest.$ac_objext conftest$ac_exeext
24807 if { (ac_try="$ac_link"
24808 case "(($ac_try" in
24809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24810 *) ac_try_echo=$ac_try;;
24811 esac
24812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24813 $as_echo "$ac_try_echo") >&5
24814 (eval "$ac_link") 2>conftest.er1
24815 ac_status=$?
24816 grep -v '^ *+' conftest.er1 >conftest.err
24817 rm -f conftest.er1
24818 cat conftest.err >&5
24819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); } && {
24821 test -z "$ac_c_werror_flag" ||
24822 test ! -s conftest.err
24823 } && test -s conftest$ac_exeext && {
24824 test "$cross_compiling" = yes ||
24825 $as_test_x conftest$ac_exeext
24826 }; then
24827 eval "$as_ac_var=yes"
24828 else
24829 $as_echo "$as_me: failed program was:" >&5
24830 sed 's/^/| /' conftest.$ac_ext >&5
24832 eval "$as_ac_var=no"
24835 rm -rf conftest.dSYM
24836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24837 conftest$ac_exeext conftest.$ac_ext
24839 ac_res=`eval 'as_val=${'$as_ac_var'}
24840 $as_echo "$as_val"'`
24841 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24842 $as_echo "$ac_res" >&6; }
24843 as_val=`eval 'as_val=${'$as_ac_var'}
24844 $as_echo "$as_val"'`
24845 if test "x$as_val" = x""yes; then
24846 cat >>confdefs.h <<_ACEOF
24847 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24848 _ACEOF
24851 done
24853 if test $ac_cv_func_gettimeofday = yes; then
24854 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24855 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24856 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24857 $as_echo_n "(cached) " >&6
24858 else
24859 cat >conftest.$ac_ext <<_ACEOF
24860 /* confdefs.h. */
24861 _ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h. */
24866 #ifdef TIME_WITH_SYS_TIME
24867 #include <sys/time.h>
24868 #include <time.h>
24869 #else
24870 #ifdef HAVE_SYS_TIME_H
24871 #include <sys/time.h>
24872 #else
24873 #include <time.h>
24874 #endif
24875 #endif
24877 main ()
24879 struct timeval time;
24880 gettimeofday (&time, 0);
24882 return 0;
24884 _ACEOF
24885 rm -f conftest.$ac_objext
24886 if { (ac_try="$ac_compile"
24887 case "(($ac_try" in
24888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24889 *) ac_try_echo=$ac_try;;
24890 esac
24891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24892 $as_echo "$ac_try_echo") >&5
24893 (eval "$ac_compile") 2>conftest.er1
24894 ac_status=$?
24895 grep -v '^ *+' conftest.er1 >conftest.err
24896 rm -f conftest.er1
24897 cat conftest.err >&5
24898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); } && {
24900 test -z "$ac_c_werror_flag" ||
24901 test ! -s conftest.err
24902 } && test -s conftest.$ac_objext; then
24903 emacs_cv_gettimeofday_two_arguments=yes
24904 else
24905 $as_echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24908 emacs_cv_gettimeofday_two_arguments=no
24911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24913 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24914 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24915 if test $emacs_cv_gettimeofday_two_arguments = no; then
24917 cat >>confdefs.h <<\_ACEOF
24918 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24919 _ACEOF
24925 ok_so_far=yes
24926 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24927 $as_echo_n "checking for socket... " >&6; }
24928 if test "${ac_cv_func_socket+set}" = set; then
24929 $as_echo_n "(cached) " >&6
24930 else
24931 cat >conftest.$ac_ext <<_ACEOF
24932 /* confdefs.h. */
24933 _ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24937 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24939 #define socket innocuous_socket
24941 /* System header to define __stub macros and hopefully few prototypes,
24942 which can conflict with char socket (); below.
24943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24944 <limits.h> exists even on freestanding compilers. */
24946 #ifdef __STDC__
24947 # include <limits.h>
24948 #else
24949 # include <assert.h>
24950 #endif
24952 #undef socket
24954 /* Override any GCC internal prototype to avoid an error.
24955 Use char because int might match the return type of a GCC
24956 builtin and then its argument prototype would still apply. */
24957 #ifdef __cplusplus
24958 extern "C"
24959 #endif
24960 char socket ();
24961 /* The GNU C library defines this for functions which it implements
24962 to always fail with ENOSYS. Some functions are actually named
24963 something starting with __ and the normal name is an alias. */
24964 #if defined __stub_socket || defined __stub___socket
24965 choke me
24966 #endif
24969 main ()
24971 return socket ();
24973 return 0;
24975 _ACEOF
24976 rm -f conftest.$ac_objext conftest$ac_exeext
24977 if { (ac_try="$ac_link"
24978 case "(($ac_try" in
24979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24980 *) ac_try_echo=$ac_try;;
24981 esac
24982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24983 $as_echo "$ac_try_echo") >&5
24984 (eval "$ac_link") 2>conftest.er1
24985 ac_status=$?
24986 grep -v '^ *+' conftest.er1 >conftest.err
24987 rm -f conftest.er1
24988 cat conftest.err >&5
24989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990 (exit $ac_status); } && {
24991 test -z "$ac_c_werror_flag" ||
24992 test ! -s conftest.err
24993 } && test -s conftest$ac_exeext && {
24994 test "$cross_compiling" = yes ||
24995 $as_test_x conftest$ac_exeext
24996 }; then
24997 ac_cv_func_socket=yes
24998 else
24999 $as_echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25002 ac_cv_func_socket=no
25005 rm -rf conftest.dSYM
25006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25007 conftest$ac_exeext conftest.$ac_ext
25009 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
25010 $as_echo "$ac_cv_func_socket" >&6; }
25011 if test "x$ac_cv_func_socket" = x""yes; then
25013 else
25014 ok_so_far=no
25017 if test $ok_so_far = yes; then
25018 if test "${ac_cv_header_netinet_in_h+set}" = set; then
25019 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
25020 $as_echo_n "checking for netinet/in.h... " >&6; }
25021 if test "${ac_cv_header_netinet_in_h+set}" = set; then
25022 $as_echo_n "(cached) " >&6
25024 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
25025 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
25026 else
25027 # Is the header compilable?
25028 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
25029 $as_echo_n "checking netinet/in.h usability... " >&6; }
25030 cat >conftest.$ac_ext <<_ACEOF
25031 /* confdefs.h. */
25032 _ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h. */
25036 $ac_includes_default
25037 #include <netinet/in.h>
25038 _ACEOF
25039 rm -f conftest.$ac_objext
25040 if { (ac_try="$ac_compile"
25041 case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25044 esac
25045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25046 $as_echo "$ac_try_echo") >&5
25047 (eval "$ac_compile") 2>conftest.er1
25048 ac_status=$?
25049 grep -v '^ *+' conftest.er1 >conftest.err
25050 rm -f conftest.er1
25051 cat conftest.err >&5
25052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); } && {
25054 test -z "$ac_c_werror_flag" ||
25055 test ! -s conftest.err
25056 } && test -s conftest.$ac_objext; then
25057 ac_header_compiler=yes
25058 else
25059 $as_echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25062 ac_header_compiler=no
25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25067 $as_echo "$ac_header_compiler" >&6; }
25069 # Is the header present?
25070 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
25071 $as_echo_n "checking netinet/in.h presence... " >&6; }
25072 cat >conftest.$ac_ext <<_ACEOF
25073 /* confdefs.h. */
25074 _ACEOF
25075 cat confdefs.h >>conftest.$ac_ext
25076 cat >>conftest.$ac_ext <<_ACEOF
25077 /* end confdefs.h. */
25078 #include <netinet/in.h>
25079 _ACEOF
25080 if { (ac_try="$ac_cpp conftest.$ac_ext"
25081 case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25084 esac
25085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25086 $as_echo "$ac_try_echo") >&5
25087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25088 ac_status=$?
25089 grep -v '^ *+' conftest.er1 >conftest.err
25090 rm -f conftest.er1
25091 cat conftest.err >&5
25092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); } >/dev/null && {
25094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25095 test ! -s conftest.err
25096 }; then
25097 ac_header_preproc=yes
25098 else
25099 $as_echo "$as_me: failed program was:" >&5
25100 sed 's/^/| /' conftest.$ac_ext >&5
25102 ac_header_preproc=no
25105 rm -f conftest.err conftest.$ac_ext
25106 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25107 $as_echo "$ac_header_preproc" >&6; }
25109 # So? What about this header?
25110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25111 yes:no: )
25112 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
25113 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25114 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
25115 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
25116 ac_header_preproc=yes
25118 no:yes:* )
25119 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
25120 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
25121 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
25122 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
25123 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
25124 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
25125 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
25126 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
25127 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
25128 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
25129 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
25130 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
25133 esac
25134 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
25135 $as_echo_n "checking for netinet/in.h... " >&6; }
25136 if test "${ac_cv_header_netinet_in_h+set}" = set; then
25137 $as_echo_n "(cached) " >&6
25138 else
25139 ac_cv_header_netinet_in_h=$ac_header_preproc
25141 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
25142 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
25145 if test "x$ac_cv_header_netinet_in_h" = x""yes; then
25147 else
25148 ok_so_far=no
25153 if test $ok_so_far = yes; then
25154 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25155 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25156 $as_echo_n "checking for arpa/inet.h... " >&6; }
25157 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25158 $as_echo_n "(cached) " >&6
25160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25161 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25162 else
25163 # Is the header compilable?
25164 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
25165 $as_echo_n "checking arpa/inet.h usability... " >&6; }
25166 cat >conftest.$ac_ext <<_ACEOF
25167 /* confdefs.h. */
25168 _ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25172 $ac_includes_default
25173 #include <arpa/inet.h>
25174 _ACEOF
25175 rm -f conftest.$ac_objext
25176 if { (ac_try="$ac_compile"
25177 case "(($ac_try" in
25178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179 *) ac_try_echo=$ac_try;;
25180 esac
25181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25182 $as_echo "$ac_try_echo") >&5
25183 (eval "$ac_compile") 2>conftest.er1
25184 ac_status=$?
25185 grep -v '^ *+' conftest.er1 >conftest.err
25186 rm -f conftest.er1
25187 cat conftest.err >&5
25188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); } && {
25190 test -z "$ac_c_werror_flag" ||
25191 test ! -s conftest.err
25192 } && test -s conftest.$ac_objext; then
25193 ac_header_compiler=yes
25194 else
25195 $as_echo "$as_me: failed program was:" >&5
25196 sed 's/^/| /' conftest.$ac_ext >&5
25198 ac_header_compiler=no
25201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25202 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25203 $as_echo "$ac_header_compiler" >&6; }
25205 # Is the header present?
25206 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
25207 $as_echo_n "checking arpa/inet.h presence... " >&6; }
25208 cat >conftest.$ac_ext <<_ACEOF
25209 /* confdefs.h. */
25210 _ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h. */
25214 #include <arpa/inet.h>
25215 _ACEOF
25216 if { (ac_try="$ac_cpp conftest.$ac_ext"
25217 case "(($ac_try" in
25218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219 *) ac_try_echo=$ac_try;;
25220 esac
25221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25222 $as_echo "$ac_try_echo") >&5
25223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25224 ac_status=$?
25225 grep -v '^ *+' conftest.er1 >conftest.err
25226 rm -f conftest.er1
25227 cat conftest.err >&5
25228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); } >/dev/null && {
25230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25231 test ! -s conftest.err
25232 }; then
25233 ac_header_preproc=yes
25234 else
25235 $as_echo "$as_me: failed program was:" >&5
25236 sed 's/^/| /' conftest.$ac_ext >&5
25238 ac_header_preproc=no
25241 rm -f conftest.err conftest.$ac_ext
25242 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25243 $as_echo "$ac_header_preproc" >&6; }
25245 # So? What about this header?
25246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25247 yes:no: )
25248 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
25249 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25250 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
25251 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
25252 ac_header_preproc=yes
25254 no:yes:* )
25255 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
25256 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
25257 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
25258 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
25259 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
25260 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
25261 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
25262 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25263 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25264 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25265 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25266 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25269 esac
25270 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25271 $as_echo_n "checking for arpa/inet.h... " >&6; }
25272 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25273 $as_echo_n "(cached) " >&6
25274 else
25275 ac_cv_header_arpa_inet_h=$ac_header_preproc
25277 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25278 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25281 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then
25283 else
25284 ok_so_far=no
25289 if test $ok_so_far = yes; then
25291 cat >>confdefs.h <<\_ACEOF
25292 #define HAVE_INET_SOCKETS 1
25293 _ACEOF
25298 for ac_header in sys/ioctl.h
25300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25303 $as_echo_n "checking for $ac_header... " >&6; }
25304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25305 $as_echo_n "(cached) " >&6
25307 ac_res=`eval 'as_val=${'$as_ac_Header'}
25308 $as_echo "$as_val"'`
25309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25310 $as_echo "$ac_res" >&6; }
25311 else
25312 # Is the header compilable?
25313 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25314 $as_echo_n "checking $ac_header usability... " >&6; }
25315 cat >conftest.$ac_ext <<_ACEOF
25316 /* confdefs.h. */
25317 _ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h. */
25321 $ac_includes_default
25322 #include <$ac_header>
25323 _ACEOF
25324 rm -f conftest.$ac_objext
25325 if { (ac_try="$ac_compile"
25326 case "(($ac_try" in
25327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25328 *) ac_try_echo=$ac_try;;
25329 esac
25330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25331 $as_echo "$ac_try_echo") >&5
25332 (eval "$ac_compile") 2>conftest.er1
25333 ac_status=$?
25334 grep -v '^ *+' conftest.er1 >conftest.err
25335 rm -f conftest.er1
25336 cat conftest.err >&5
25337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } && {
25339 test -z "$ac_c_werror_flag" ||
25340 test ! -s conftest.err
25341 } && test -s conftest.$ac_objext; then
25342 ac_header_compiler=yes
25343 else
25344 $as_echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25347 ac_header_compiler=no
25350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25351 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25352 $as_echo "$ac_header_compiler" >&6; }
25354 # Is the header present?
25355 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25356 $as_echo_n "checking $ac_header presence... " >&6; }
25357 cat >conftest.$ac_ext <<_ACEOF
25358 /* confdefs.h. */
25359 _ACEOF
25360 cat confdefs.h >>conftest.$ac_ext
25361 cat >>conftest.$ac_ext <<_ACEOF
25362 /* end confdefs.h. */
25363 #include <$ac_header>
25364 _ACEOF
25365 if { (ac_try="$ac_cpp conftest.$ac_ext"
25366 case "(($ac_try" in
25367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25368 *) ac_try_echo=$ac_try;;
25369 esac
25370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25371 $as_echo "$ac_try_echo") >&5
25372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25373 ac_status=$?
25374 grep -v '^ *+' conftest.er1 >conftest.err
25375 rm -f conftest.er1
25376 cat conftest.err >&5
25377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378 (exit $ac_status); } >/dev/null && {
25379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25380 test ! -s conftest.err
25381 }; then
25382 ac_header_preproc=yes
25383 else
25384 $as_echo "$as_me: failed program was:" >&5
25385 sed 's/^/| /' conftest.$ac_ext >&5
25387 ac_header_preproc=no
25390 rm -f conftest.err conftest.$ac_ext
25391 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25392 $as_echo "$ac_header_preproc" >&6; }
25394 # So? What about this header?
25395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25396 yes:no: )
25397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25398 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25400 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25401 ac_header_preproc=yes
25403 no:yes:* )
25404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25405 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25407 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25409 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25411 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25413 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25415 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25418 esac
25419 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25420 $as_echo_n "checking for $ac_header... " >&6; }
25421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25422 $as_echo_n "(cached) " >&6
25423 else
25424 eval "$as_ac_Header=\$ac_header_preproc"
25426 ac_res=`eval 'as_val=${'$as_ac_Header'}
25427 $as_echo "$as_val"'`
25428 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25429 $as_echo "$ac_res" >&6; }
25432 as_val=`eval 'as_val=${'$as_ac_Header'}
25433 $as_echo "$as_val"'`
25434 if test "x$as_val" = x""yes; then
25435 cat >>confdefs.h <<_ACEOF
25436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25437 _ACEOF
25441 done
25444 if test -f /usr/lpp/X11/bin/smt.exp; then
25446 cat >>confdefs.h <<\_ACEOF
25447 #define HAVE_AIX_SMT_EXP 1
25448 _ACEOF
25452 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
25453 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
25454 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25455 { $as_echo "$as_me:$LINENO: result: yes" >&5
25456 $as_echo "yes" >&6; }
25458 cat >>confdefs.h <<\_ACEOF
25459 #define HAVE_DEV_PTMX 1
25460 _ACEOF
25462 else
25463 { $as_echo "$as_me:$LINENO: result: no" >&5
25464 $as_echo "no" >&6; }
25467 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
25468 $as_echo_n "checking for pid_t... " >&6; }
25469 if test "${ac_cv_type_pid_t+set}" = set; then
25470 $as_echo_n "(cached) " >&6
25471 else
25472 ac_cv_type_pid_t=no
25473 cat >conftest.$ac_ext <<_ACEOF
25474 /* confdefs.h. */
25475 _ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25479 $ac_includes_default
25481 main ()
25483 if (sizeof (pid_t))
25484 return 0;
25486 return 0;
25488 _ACEOF
25489 rm -f conftest.$ac_objext
25490 if { (ac_try="$ac_compile"
25491 case "(($ac_try" in
25492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493 *) ac_try_echo=$ac_try;;
25494 esac
25495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25496 $as_echo "$ac_try_echo") >&5
25497 (eval "$ac_compile") 2>conftest.er1
25498 ac_status=$?
25499 grep -v '^ *+' conftest.er1 >conftest.err
25500 rm -f conftest.er1
25501 cat conftest.err >&5
25502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); } && {
25504 test -z "$ac_c_werror_flag" ||
25505 test ! -s conftest.err
25506 } && test -s conftest.$ac_objext; then
25507 cat >conftest.$ac_ext <<_ACEOF
25508 /* confdefs.h. */
25509 _ACEOF
25510 cat confdefs.h >>conftest.$ac_ext
25511 cat >>conftest.$ac_ext <<_ACEOF
25512 /* end confdefs.h. */
25513 $ac_includes_default
25515 main ()
25517 if (sizeof ((pid_t)))
25518 return 0;
25520 return 0;
25522 _ACEOF
25523 rm -f conftest.$ac_objext
25524 if { (ac_try="$ac_compile"
25525 case "(($ac_try" in
25526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25527 *) ac_try_echo=$ac_try;;
25528 esac
25529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25530 $as_echo "$ac_try_echo") >&5
25531 (eval "$ac_compile") 2>conftest.er1
25532 ac_status=$?
25533 grep -v '^ *+' conftest.er1 >conftest.err
25534 rm -f conftest.er1
25535 cat conftest.err >&5
25536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); } && {
25538 test -z "$ac_c_werror_flag" ||
25539 test ! -s conftest.err
25540 } && test -s conftest.$ac_objext; then
25542 else
25543 $as_echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25546 ac_cv_type_pid_t=yes
25549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25550 else
25551 $as_echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25559 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25560 $as_echo "$ac_cv_type_pid_t" >&6; }
25561 if test "x$ac_cv_type_pid_t" = x""yes; then
25563 else
25565 cat >>confdefs.h <<_ACEOF
25566 #define pid_t int
25567 _ACEOF
25572 for ac_header in vfork.h
25574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25576 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25577 $as_echo_n "checking for $ac_header... " >&6; }
25578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25579 $as_echo_n "(cached) " >&6
25581 ac_res=`eval 'as_val=${'$as_ac_Header'}
25582 $as_echo "$as_val"'`
25583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25584 $as_echo "$ac_res" >&6; }
25585 else
25586 # Is the header compilable?
25587 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25588 $as_echo_n "checking $ac_header usability... " >&6; }
25589 cat >conftest.$ac_ext <<_ACEOF
25590 /* confdefs.h. */
25591 _ACEOF
25592 cat confdefs.h >>conftest.$ac_ext
25593 cat >>conftest.$ac_ext <<_ACEOF
25594 /* end confdefs.h. */
25595 $ac_includes_default
25596 #include <$ac_header>
25597 _ACEOF
25598 rm -f conftest.$ac_objext
25599 if { (ac_try="$ac_compile"
25600 case "(($ac_try" in
25601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25602 *) ac_try_echo=$ac_try;;
25603 esac
25604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25605 $as_echo "$ac_try_echo") >&5
25606 (eval "$ac_compile") 2>conftest.er1
25607 ac_status=$?
25608 grep -v '^ *+' conftest.er1 >conftest.err
25609 rm -f conftest.er1
25610 cat conftest.err >&5
25611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); } && {
25613 test -z "$ac_c_werror_flag" ||
25614 test ! -s conftest.err
25615 } && test -s conftest.$ac_objext; then
25616 ac_header_compiler=yes
25617 else
25618 $as_echo "$as_me: failed program was:" >&5
25619 sed 's/^/| /' conftest.$ac_ext >&5
25621 ac_header_compiler=no
25624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25625 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25626 $as_echo "$ac_header_compiler" >&6; }
25628 # Is the header present?
25629 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25630 $as_echo_n "checking $ac_header presence... " >&6; }
25631 cat >conftest.$ac_ext <<_ACEOF
25632 /* confdefs.h. */
25633 _ACEOF
25634 cat confdefs.h >>conftest.$ac_ext
25635 cat >>conftest.$ac_ext <<_ACEOF
25636 /* end confdefs.h. */
25637 #include <$ac_header>
25638 _ACEOF
25639 if { (ac_try="$ac_cpp conftest.$ac_ext"
25640 case "(($ac_try" in
25641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642 *) ac_try_echo=$ac_try;;
25643 esac
25644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25645 $as_echo "$ac_try_echo") >&5
25646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25647 ac_status=$?
25648 grep -v '^ *+' conftest.er1 >conftest.err
25649 rm -f conftest.er1
25650 cat conftest.err >&5
25651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652 (exit $ac_status); } >/dev/null && {
25653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25654 test ! -s conftest.err
25655 }; then
25656 ac_header_preproc=yes
25657 else
25658 $as_echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25661 ac_header_preproc=no
25664 rm -f conftest.err conftest.$ac_ext
25665 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25666 $as_echo "$ac_header_preproc" >&6; }
25668 # So? What about this header?
25669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25670 yes:no: )
25671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25672 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25674 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25675 ac_header_preproc=yes
25677 no:yes:* )
25678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25679 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25681 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25683 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25685 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25687 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25689 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25692 esac
25693 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25694 $as_echo_n "checking for $ac_header... " >&6; }
25695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25696 $as_echo_n "(cached) " >&6
25697 else
25698 eval "$as_ac_Header=\$ac_header_preproc"
25700 ac_res=`eval 'as_val=${'$as_ac_Header'}
25701 $as_echo "$as_val"'`
25702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25703 $as_echo "$ac_res" >&6; }
25706 as_val=`eval 'as_val=${'$as_ac_Header'}
25707 $as_echo "$as_val"'`
25708 if test "x$as_val" = x""yes; then
25709 cat >>confdefs.h <<_ACEOF
25710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25711 _ACEOF
25715 done
25719 for ac_func in fork vfork
25721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25722 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25723 $as_echo_n "checking for $ac_func... " >&6; }
25724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25725 $as_echo_n "(cached) " >&6
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25735 #define $ac_func innocuous_$ac_func
25737 /* System header to define __stub macros and hopefully few prototypes,
25738 which can conflict with char $ac_func (); below.
25739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25740 <limits.h> exists even on freestanding compilers. */
25742 #ifdef __STDC__
25743 # include <limits.h>
25744 #else
25745 # include <assert.h>
25746 #endif
25748 #undef $ac_func
25750 /* Override any GCC internal prototype to avoid an error.
25751 Use char because int might match the return type of a GCC
25752 builtin and then its argument prototype would still apply. */
25753 #ifdef __cplusplus
25754 extern "C"
25755 #endif
25756 char $ac_func ();
25757 /* The GNU C library defines this for functions which it implements
25758 to always fail with ENOSYS. Some functions are actually named
25759 something starting with __ and the normal name is an alias. */
25760 #if defined __stub_$ac_func || defined __stub___$ac_func
25761 choke me
25762 #endif
25765 main ()
25767 return $ac_func ();
25769 return 0;
25771 _ACEOF
25772 rm -f conftest.$ac_objext conftest$ac_exeext
25773 if { (ac_try="$ac_link"
25774 case "(($ac_try" in
25775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776 *) ac_try_echo=$ac_try;;
25777 esac
25778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25779 $as_echo "$ac_try_echo") >&5
25780 (eval "$ac_link") 2>conftest.er1
25781 ac_status=$?
25782 grep -v '^ *+' conftest.er1 >conftest.err
25783 rm -f conftest.er1
25784 cat conftest.err >&5
25785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); } && {
25787 test -z "$ac_c_werror_flag" ||
25788 test ! -s conftest.err
25789 } && test -s conftest$ac_exeext && {
25790 test "$cross_compiling" = yes ||
25791 $as_test_x conftest$ac_exeext
25792 }; then
25793 eval "$as_ac_var=yes"
25794 else
25795 $as_echo "$as_me: failed program was:" >&5
25796 sed 's/^/| /' conftest.$ac_ext >&5
25798 eval "$as_ac_var=no"
25801 rm -rf conftest.dSYM
25802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25803 conftest$ac_exeext conftest.$ac_ext
25805 ac_res=`eval 'as_val=${'$as_ac_var'}
25806 $as_echo "$as_val"'`
25807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25808 $as_echo "$ac_res" >&6; }
25809 as_val=`eval 'as_val=${'$as_ac_var'}
25810 $as_echo "$as_val"'`
25811 if test "x$as_val" = x""yes; then
25812 cat >>confdefs.h <<_ACEOF
25813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25814 _ACEOF
25817 done
25819 if test "x$ac_cv_func_fork" = xyes; then
25820 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25821 $as_echo_n "checking for working fork... " >&6; }
25822 if test "${ac_cv_func_fork_works+set}" = set; then
25823 $as_echo_n "(cached) " >&6
25824 else
25825 if test "$cross_compiling" = yes; then
25826 ac_cv_func_fork_works=cross
25827 else
25828 cat >conftest.$ac_ext <<_ACEOF
25829 /* confdefs.h. */
25830 _ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h. */
25834 $ac_includes_default
25836 main ()
25839 /* By Ruediger Kuhlmann. */
25840 return fork () < 0;
25843 return 0;
25845 _ACEOF
25846 rm -f conftest$ac_exeext
25847 if { (ac_try="$ac_link"
25848 case "(($ac_try" in
25849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25850 *) ac_try_echo=$ac_try;;
25851 esac
25852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25853 $as_echo "$ac_try_echo") >&5
25854 (eval "$ac_link") 2>&5
25855 ac_status=$?
25856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25858 { (case "(($ac_try" in
25859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860 *) ac_try_echo=$ac_try;;
25861 esac
25862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25863 $as_echo "$ac_try_echo") >&5
25864 (eval "$ac_try") 2>&5
25865 ac_status=$?
25866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867 (exit $ac_status); }; }; then
25868 ac_cv_func_fork_works=yes
25869 else
25870 $as_echo "$as_me: program exited with status $ac_status" >&5
25871 $as_echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25874 ( exit $ac_status )
25875 ac_cv_func_fork_works=no
25877 rm -rf conftest.dSYM
25878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25883 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25884 $as_echo "$ac_cv_func_fork_works" >&6; }
25886 else
25887 ac_cv_func_fork_works=$ac_cv_func_fork
25889 if test "x$ac_cv_func_fork_works" = xcross; then
25890 case $host in
25891 *-*-amigaos* | *-*-msdosdjgpp*)
25892 # Override, as these systems have only a dummy fork() stub
25893 ac_cv_func_fork_works=no
25896 ac_cv_func_fork_works=yes
25898 esac
25899 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25900 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25902 ac_cv_func_vfork_works=$ac_cv_func_vfork
25903 if test "x$ac_cv_func_vfork" = xyes; then
25904 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25905 $as_echo_n "checking for working vfork... " >&6; }
25906 if test "${ac_cv_func_vfork_works+set}" = set; then
25907 $as_echo_n "(cached) " >&6
25908 else
25909 if test "$cross_compiling" = yes; then
25910 ac_cv_func_vfork_works=cross
25911 else
25912 cat >conftest.$ac_ext <<_ACEOF
25913 /* confdefs.h. */
25914 _ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h. */
25918 /* Thanks to Paul Eggert for this test. */
25919 $ac_includes_default
25920 #include <sys/wait.h>
25921 #ifdef HAVE_VFORK_H
25922 # include <vfork.h>
25923 #endif
25924 /* On some sparc systems, changes by the child to local and incoming
25925 argument registers are propagated back to the parent. The compiler
25926 is told about this with #include <vfork.h>, but some compilers
25927 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25928 static variable whose address is put into a register that is
25929 clobbered by the vfork. */
25930 static void
25931 #ifdef __cplusplus
25932 sparc_address_test (int arg)
25933 # else
25934 sparc_address_test (arg) int arg;
25935 #endif
25937 static pid_t child;
25938 if (!child) {
25939 child = vfork ();
25940 if (child < 0) {
25941 perror ("vfork");
25942 _exit(2);
25944 if (!child) {
25945 arg = getpid();
25946 write(-1, "", 0);
25947 _exit (arg);
25953 main ()
25955 pid_t parent = getpid ();
25956 pid_t child;
25958 sparc_address_test (0);
25960 child = vfork ();
25962 if (child == 0) {
25963 /* Here is another test for sparc vfork register problems. This
25964 test uses lots of local variables, at least as many local
25965 variables as main has allocated so far including compiler
25966 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25967 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25968 reuse the register of parent for one of the local variables,
25969 since it will think that parent can't possibly be used any more
25970 in this routine. Assigning to the local variable will thus
25971 munge parent in the parent process. */
25972 pid_t
25973 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25974 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25975 /* Convince the compiler that p..p7 are live; otherwise, it might
25976 use the same hardware register for all 8 local variables. */
25977 if (p != p1 || p != p2 || p != p3 || p != p4
25978 || p != p5 || p != p6 || p != p7)
25979 _exit(1);
25981 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25982 from child file descriptors. If the child closes a descriptor
25983 before it execs or exits, this munges the parent's descriptor
25984 as well. Test for this by closing stdout in the child. */
25985 _exit(close(fileno(stdout)) != 0);
25986 } else {
25987 int status;
25988 struct stat st;
25990 while (wait(&status) != child)
25992 return (
25993 /* Was there some problem with vforking? */
25994 child < 0
25996 /* Did the child fail? (This shouldn't happen.) */
25997 || status
25999 /* Did the vfork/compiler bug occur? */
26000 || parent != getpid()
26002 /* Did the file descriptor bug occur? */
26003 || fstat(fileno(stdout), &st) != 0
26007 _ACEOF
26008 rm -f conftest$ac_exeext
26009 if { (ac_try="$ac_link"
26010 case "(($ac_try" in
26011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012 *) ac_try_echo=$ac_try;;
26013 esac
26014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26015 $as_echo "$ac_try_echo") >&5
26016 (eval "$ac_link") 2>&5
26017 ac_status=$?
26018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26020 { (case "(($ac_try" in
26021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26022 *) ac_try_echo=$ac_try;;
26023 esac
26024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26025 $as_echo "$ac_try_echo") >&5
26026 (eval "$ac_try") 2>&5
26027 ac_status=$?
26028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); }; }; then
26030 ac_cv_func_vfork_works=yes
26031 else
26032 $as_echo "$as_me: program exited with status $ac_status" >&5
26033 $as_echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26036 ( exit $ac_status )
26037 ac_cv_func_vfork_works=no
26039 rm -rf conftest.dSYM
26040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26045 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26046 $as_echo "$ac_cv_func_vfork_works" >&6; }
26049 if test "x$ac_cv_func_fork_works" = xcross; then
26050 ac_cv_func_vfork_works=$ac_cv_func_vfork
26051 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26052 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26055 if test "x$ac_cv_func_vfork_works" = xyes; then
26057 cat >>confdefs.h <<\_ACEOF
26058 #define HAVE_WORKING_VFORK 1
26059 _ACEOF
26061 else
26063 cat >>confdefs.h <<\_ACEOF
26064 #define vfork fork
26065 _ACEOF
26068 if test "x$ac_cv_func_fork_works" = xyes; then
26070 cat >>confdefs.h <<\_ACEOF
26071 #define HAVE_WORKING_FORK 1
26072 _ACEOF
26077 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
26078 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
26079 if test "${emacs_cv_langinfo_codeset+set}" = set; then
26080 $as_echo_n "(cached) " >&6
26081 else
26082 cat >conftest.$ac_ext <<_ACEOF
26083 /* confdefs.h. */
26084 _ACEOF
26085 cat confdefs.h >>conftest.$ac_ext
26086 cat >>conftest.$ac_ext <<_ACEOF
26087 /* end confdefs.h. */
26088 #include <langinfo.h>
26090 main ()
26092 char* cs = nl_langinfo(CODESET);
26094 return 0;
26096 _ACEOF
26097 rm -f conftest.$ac_objext conftest$ac_exeext
26098 if { (ac_try="$ac_link"
26099 case "(($ac_try" in
26100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26101 *) ac_try_echo=$ac_try;;
26102 esac
26103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26104 $as_echo "$ac_try_echo") >&5
26105 (eval "$ac_link") 2>conftest.er1
26106 ac_status=$?
26107 grep -v '^ *+' conftest.er1 >conftest.err
26108 rm -f conftest.er1
26109 cat conftest.err >&5
26110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); } && {
26112 test -z "$ac_c_werror_flag" ||
26113 test ! -s conftest.err
26114 } && test -s conftest$ac_exeext && {
26115 test "$cross_compiling" = yes ||
26116 $as_test_x conftest$ac_exeext
26117 }; then
26118 emacs_cv_langinfo_codeset=yes
26119 else
26120 $as_echo "$as_me: failed program was:" >&5
26121 sed 's/^/| /' conftest.$ac_ext >&5
26123 emacs_cv_langinfo_codeset=no
26126 rm -rf conftest.dSYM
26127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26128 conftest$ac_exeext conftest.$ac_ext
26131 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
26132 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
26133 if test $emacs_cv_langinfo_codeset = yes; then
26135 cat >>confdefs.h <<\_ACEOF
26136 #define HAVE_LANGINFO_CODESET 1
26137 _ACEOF
26141 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
26142 $as_echo_n "checking for size_t... " >&6; }
26143 if test "${ac_cv_type_size_t+set}" = set; then
26144 $as_echo_n "(cached) " >&6
26145 else
26146 ac_cv_type_size_t=no
26147 cat >conftest.$ac_ext <<_ACEOF
26148 /* confdefs.h. */
26149 _ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h. */
26153 $ac_includes_default
26155 main ()
26157 if (sizeof (size_t))
26158 return 0;
26160 return 0;
26162 _ACEOF
26163 rm -f conftest.$ac_objext
26164 if { (ac_try="$ac_compile"
26165 case "(($ac_try" in
26166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167 *) ac_try_echo=$ac_try;;
26168 esac
26169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26170 $as_echo "$ac_try_echo") >&5
26171 (eval "$ac_compile") 2>conftest.er1
26172 ac_status=$?
26173 grep -v '^ *+' conftest.er1 >conftest.err
26174 rm -f conftest.er1
26175 cat conftest.err >&5
26176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); } && {
26178 test -z "$ac_c_werror_flag" ||
26179 test ! -s conftest.err
26180 } && test -s conftest.$ac_objext; then
26181 cat >conftest.$ac_ext <<_ACEOF
26182 /* confdefs.h. */
26183 _ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h. */
26187 $ac_includes_default
26189 main ()
26191 if (sizeof ((size_t)))
26192 return 0;
26194 return 0;
26196 _ACEOF
26197 rm -f conftest.$ac_objext
26198 if { (ac_try="$ac_compile"
26199 case "(($ac_try" in
26200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26201 *) ac_try_echo=$ac_try;;
26202 esac
26203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26204 $as_echo "$ac_try_echo") >&5
26205 (eval "$ac_compile") 2>conftest.er1
26206 ac_status=$?
26207 grep -v '^ *+' conftest.er1 >conftest.err
26208 rm -f conftest.er1
26209 cat conftest.err >&5
26210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); } && {
26212 test -z "$ac_c_werror_flag" ||
26213 test ! -s conftest.err
26214 } && test -s conftest.$ac_objext; then
26216 else
26217 $as_echo "$as_me: failed program was:" >&5
26218 sed 's/^/| /' conftest.$ac_ext >&5
26220 ac_cv_type_size_t=yes
26223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26224 else
26225 $as_echo "$as_me: failed program was:" >&5
26226 sed 's/^/| /' conftest.$ac_ext >&5
26231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26233 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26234 $as_echo "$ac_cv_type_size_t" >&6; }
26235 if test "x$ac_cv_type_size_t" = x""yes; then
26237 cat >>confdefs.h <<_ACEOF
26238 #define HAVE_SIZE_T 1
26239 _ACEOF
26245 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
26246 $as_echo_n "checking for mbstate_t... " >&6; }
26247 if test "${ac_cv_type_mbstate_t+set}" = set; then
26248 $as_echo_n "(cached) " >&6
26249 else
26250 cat >conftest.$ac_ext <<_ACEOF
26251 /* confdefs.h. */
26252 _ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h. */
26256 $ac_includes_default
26257 # include <wchar.h>
26259 main ()
26261 mbstate_t x; return sizeof x;
26263 return 0;
26265 _ACEOF
26266 rm -f conftest.$ac_objext
26267 if { (ac_try="$ac_compile"
26268 case "(($ac_try" in
26269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26270 *) ac_try_echo=$ac_try;;
26271 esac
26272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26273 $as_echo "$ac_try_echo") >&5
26274 (eval "$ac_compile") 2>conftest.er1
26275 ac_status=$?
26276 grep -v '^ *+' conftest.er1 >conftest.err
26277 rm -f conftest.er1
26278 cat conftest.err >&5
26279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); } && {
26281 test -z "$ac_c_werror_flag" ||
26282 test ! -s conftest.err
26283 } && test -s conftest.$ac_objext; then
26284 ac_cv_type_mbstate_t=yes
26285 else
26286 $as_echo "$as_me: failed program was:" >&5
26287 sed 's/^/| /' conftest.$ac_ext >&5
26289 ac_cv_type_mbstate_t=no
26292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26294 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26295 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26296 if test $ac_cv_type_mbstate_t = yes; then
26298 cat >>confdefs.h <<\_ACEOF
26299 #define HAVE_MBSTATE_T 1
26300 _ACEOF
26302 else
26304 cat >>confdefs.h <<\_ACEOF
26305 #define mbstate_t int
26306 _ACEOF
26310 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
26311 $as_echo_n "checking for C restrict keyword... " >&6; }
26312 if test "${emacs_cv_c_restrict+set}" = set; then
26313 $as_echo_n "(cached) " >&6
26314 else
26315 cat >conftest.$ac_ext <<_ACEOF
26316 /* confdefs.h. */
26317 _ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h. */
26321 void fred (int *restrict x);
26323 main ()
26327 return 0;
26329 _ACEOF
26330 rm -f conftest.$ac_objext
26331 if { (ac_try="$ac_compile"
26332 case "(($ac_try" in
26333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334 *) ac_try_echo=$ac_try;;
26335 esac
26336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26337 $as_echo "$ac_try_echo") >&5
26338 (eval "$ac_compile") 2>conftest.er1
26339 ac_status=$?
26340 grep -v '^ *+' conftest.er1 >conftest.err
26341 rm -f conftest.er1
26342 cat conftest.err >&5
26343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } && {
26345 test -z "$ac_c_werror_flag" ||
26346 test ! -s conftest.err
26347 } && test -s conftest.$ac_objext; then
26348 emacs_cv_c_restrict=yes
26349 else
26350 $as_echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26353 cat >conftest.$ac_ext <<_ACEOF
26354 /* confdefs.h. */
26355 _ACEOF
26356 cat confdefs.h >>conftest.$ac_ext
26357 cat >>conftest.$ac_ext <<_ACEOF
26358 /* end confdefs.h. */
26359 void fred (int *__restrict x);
26361 main ()
26365 return 0;
26367 _ACEOF
26368 rm -f conftest.$ac_objext
26369 if { (ac_try="$ac_compile"
26370 case "(($ac_try" in
26371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26372 *) ac_try_echo=$ac_try;;
26373 esac
26374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26375 $as_echo "$ac_try_echo") >&5
26376 (eval "$ac_compile") 2>conftest.er1
26377 ac_status=$?
26378 grep -v '^ *+' conftest.er1 >conftest.err
26379 rm -f conftest.er1
26380 cat conftest.err >&5
26381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); } && {
26383 test -z "$ac_c_werror_flag" ||
26384 test ! -s conftest.err
26385 } && test -s conftest.$ac_objext; then
26386 emacs_cv_c_restrict=__restrict
26387 else
26388 $as_echo "$as_me: failed program was:" >&5
26389 sed 's/^/| /' conftest.$ac_ext >&5
26391 emacs_cv_c_restrict=no
26394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26399 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
26400 $as_echo "$emacs_cv_c_restrict" >&6; }
26401 case "$emacs_cv_c_restrict" in
26402 yes) emacs_restrict=restrict;;
26403 no) emacs_restrict="";;
26404 *) emacs_restrict="$emacs_cv_c_restrict";;
26405 esac
26406 if test "$emacs_restrict" != __restrict; then
26408 cat >>confdefs.h <<_ACEOF
26409 #define __restrict $emacs_restrict
26410 _ACEOF
26414 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
26415 $as_echo_n "checking for C restricted array declarations... " >&6; }
26416 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26417 $as_echo_n "(cached) " >&6
26418 else
26419 cat >conftest.$ac_ext <<_ACEOF
26420 /* confdefs.h. */
26421 _ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h. */
26425 void fred (int x[__restrict]);
26427 main ()
26431 return 0;
26433 _ACEOF
26434 rm -f conftest.$ac_objext
26435 if { (ac_try="$ac_compile"
26436 case "(($ac_try" in
26437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438 *) ac_try_echo=$ac_try;;
26439 esac
26440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26441 $as_echo "$ac_try_echo") >&5
26442 (eval "$ac_compile") 2>conftest.er1
26443 ac_status=$?
26444 grep -v '^ *+' conftest.er1 >conftest.err
26445 rm -f conftest.er1
26446 cat conftest.err >&5
26447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); } && {
26449 test -z "$ac_c_werror_flag" ||
26450 test ! -s conftest.err
26451 } && test -s conftest.$ac_objext; then
26452 emacs_cv_c_restrict_arr=yes
26453 else
26454 $as_echo "$as_me: failed program was:" >&5
26455 sed 's/^/| /' conftest.$ac_ext >&5
26457 emacs_cv_c_restrict_arr=no
26460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26462 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
26463 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26464 if test "$emacs_cv_c_restrict_arr" = yes; then
26466 cat >>confdefs.h <<\_ACEOF
26467 #define __restrict_arr __restrict
26468 _ACEOF
26474 # Set up the CFLAGS for real compilation, so we can substitute it.
26475 CFLAGS="$REAL_CFLAGS"
26476 CPPFLAGS="$REAL_CPPFLAGS"
26478 ## Hack to detect a buggy GCC version.
26479 if test "x$GCC" = xyes \
26480 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26481 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26482 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26483 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
26484 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
26485 { (exit 1); exit 1; }; }
26488 #### Find out which version of Emacs this is.
26489 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
26490 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
26491 if test x"${version}" = x; then
26492 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
26493 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
26494 { (exit 1); exit 1; }; }
26496 if test x"${version}" != x"$PACKAGE_VERSION"; then
26497 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
26498 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
26501 ### Specify what sort of things we'll be editing into Makefile and config.h.
26502 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26530 ## Used in lwlib/Makefile.in.
26546 cat >>confdefs.h <<_ACEOF
26547 #define EMACS_CONFIGURATION "${canonical}"
26548 _ACEOF
26551 cat >>confdefs.h <<_ACEOF
26552 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26553 _ACEOF
26556 cat >>confdefs.h <<_ACEOF
26557 #define config_machfile "${machfile}"
26558 _ACEOF
26561 cat >>confdefs.h <<_ACEOF
26562 #define config_opsysfile "${opsysfile}"
26563 _ACEOF
26566 cat >>confdefs.h <<_ACEOF
26567 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26568 _ACEOF
26571 cat >>confdefs.h <<_ACEOF
26572 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26573 _ACEOF
26576 XMENU_OBJ=
26577 XOBJ=
26578 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26580 cat >>confdefs.h <<\_ACEOF
26581 #define HAVE_X_WINDOWS 1
26582 _ACEOF
26584 XMENU_OBJ=xmenu.o
26585 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26590 WIDGET_OBJ=
26591 MOTIF_LIBW=
26592 if test "${USE_X_TOOLKIT}" != "none" ; then
26593 WIDGET_OBJ=widget.o
26595 cat >>confdefs.h <<\_ACEOF
26596 #define USE_X_TOOLKIT 1
26597 _ACEOF
26599 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26601 cat >>confdefs.h <<\_ACEOF
26602 #define USE_LUCID 1
26603 _ACEOF
26605 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26607 cat >>confdefs.h <<\_ACEOF
26608 #define USE_MOTIF 1
26609 _ACEOF
26611 MOTIF_LIBW=-lXm
26612 case "$opsys" in
26613 gnu-linux)
26614 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26615 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26618 unixware)
26619 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26620 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26621 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26624 aix4-2)
26625 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26626 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26628 esac
26629 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26634 TOOLKIT_LIBW=
26635 case "$USE_X_TOOLKIT" in
26636 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26637 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26638 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26639 esac
26642 if test "$USE_X_TOOLKIT" = "none"; then
26643 LIBXT_OTHER="\$(LIBXSM)"
26644 else
26645 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26649 ## The X Menu stuff is present in the X10 distribution, but missing
26650 ## from X11. If we have X10, just use the installed library;
26651 ## otherwise, use our own copy.
26652 if test "${HAVE_X11}" = "yes" ; then
26654 cat >>confdefs.h <<\_ACEOF
26655 #define HAVE_X11 1
26656 _ACEOF
26659 if test "$USE_X_TOOLKIT" = "none"; then
26660 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26661 else
26662 OLDXMENU="\${lwlibdir}liblw.a"
26664 LIBXMENU="\$(OLDXMENU)"
26665 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26666 else
26667 OLDXMENU=
26668 LIBXMENU="-lXMenu"
26669 LIBX_OTHER=
26672 if test "$HAVE_GTK" = "yes"; then
26673 OLDXMENU=
26674 LIBXMENU=
26681 if test "${HAVE_MENUS}" = "yes" ; then
26683 cat >>confdefs.h <<\_ACEOF
26684 #define HAVE_MENUS 1
26685 _ACEOF
26688 if test "${GNU_MALLOC}" = "yes" ; then
26690 cat >>confdefs.h <<\_ACEOF
26691 #define GNU_MALLOC 1
26692 _ACEOF
26695 if test "${REL_ALLOC}" = "yes" ; then
26697 cat >>confdefs.h <<\_ACEOF
26698 #define REL_ALLOC 1
26699 _ACEOF
26704 if test "$opsys" = "cygwin"; then
26705 CYGWIN_OBJ="sheap.o"
26706 ## Cygwin differs because of its unexec().
26707 PRE_ALLOC_OBJ=
26708 POST_ALLOC_OBJ="lastfile.o vm-limit.o"
26709 else
26710 CYGWIN_OBJ=
26711 PRE_ALLOC_OBJ=lastfile.o
26712 POST_ALLOC_OBJ="\$(vmlimitobj)"
26719 case "$opsys" in
26720 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26722 darwin)
26723 ## The -headerpad option tells ld (see man page) to leave room at the
26724 ## end of the header for adding load commands. Needed for dumping.
26725 ## 0x690 is the total size of 30 segment load commands (at 56
26726 ## each); under Cocoa 31 commands are required.
26727 if test "$HAVE_NS" = "yes"; then
26728 libs_nsgui="-framework AppKit"
26729 headerpad_extra=6C8
26730 else
26731 libs_nsgui=
26732 headerpad_extra=690
26734 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26737 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26738 esac
26742 ## This exists because src/Makefile.in did some extra fiddling around
26743 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26744 ## #ifndef LD_SWITCH_SYSTEM
26745 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26746 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26747 ## not using gcc, darwin system not on an alpha (ie darwin, since
26748 ## darwin + alpha does not occur).
26749 ## Note that unlike L_S_S, this is not used in ac_link.
26750 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26751 test "$opsys" = "darwin"; then
26752 LD_SWITCH_SYSTEM_EXTRA="-X"
26753 else
26754 LD_SWITCH_SYSTEM_EXTRA=
26759 LIB_GCC=
26760 if test "x$GCC" = "xyes"; then
26762 case "$opsys" in
26763 ## cygwin: don't link against static libgcc.
26764 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
26766 gnu-*)
26767 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26768 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26769 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26770 if test "$machine" = "arm"; then
26771 LIB_GCC="-lgcc_s"
26772 else
26773 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26774 ## immediately undefine it again and redefine it to empty.
26775 ## Was the C_SWITCH_X_SITE part really necessary?
26776 ## LIB_GCC=`$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name`
26777 LIB_GCC=
26781 ## Ask GCC where to find libgcc.a.
26782 *) LIB_GCC=`$(CC) -print-libgcc-file-name 2> /dev/null` ;;
26783 esac
26791 #### Report on what we decided to do.
26792 #### Report GTK as a toolkit, even if it doesn't use Xt.
26793 #### It makes printing result more understandable as using GTK sets
26794 #### toolkit_scroll_bars to yes by default.
26795 if test "${HAVE_GTK}" = "yes"; then
26796 USE_X_TOOLKIT=GTK
26799 echo "
26800 Configured for \`${canonical}'.
26802 Where should the build process find the source code? ${srcdir}
26803 What operating system and machine description files should Emacs use?
26804 \`${opsysfile}' and \`${machfile}'
26805 What compiler should emacs be built with? ${CC} ${CFLAGS}
26806 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26807 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26808 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26809 What window system should Emacs use? ${window_system}
26810 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26812 if test -n "${x_includes}"; then
26813 echo " Where do we find X Windows header files? ${x_includes}"
26814 else
26815 echo " Where do we find X Windows header files? Standard dirs"
26817 if test -n "${x_libraries}"; then
26818 echo " Where do we find X Windows libraries? ${x_libraries}"
26819 else
26820 echo " Where do we find X Windows libraries? Standard dirs"
26823 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26824 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26825 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26826 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26827 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26828 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26829 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26830 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26831 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26832 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26833 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26834 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26836 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26837 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26838 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26839 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26841 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26842 echo
26844 if test $USE_XASSERTS = yes; then
26845 echo " Compiling with asserts turned on."
26846 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26849 echo
26851 if test "$HAVE_NS" = "yes"; then
26852 echo
26853 echo "You must run \"make install\" in order to test the built application.
26854 The installed application will go to nextstep/Emacs.app and can be
26855 run or moved from there."
26856 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26857 echo "The application will be fully self-contained."
26858 else
26859 echo "The lisp resources for the application will be installed under ${prefix}.
26860 You may need to run \"make install\" with sudo. The application will fail
26861 to run if these resources are not installed."
26863 echo
26866 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26867 echo "D-Bus integration has been tested for GNU/Linux only."
26868 echo
26872 # Remove any trailing slashes in these variables.
26873 test "${prefix}" != NONE &&
26874 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26875 test "${exec_prefix}" != NONE &&
26876 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26878 # Now get this: Some word that is part of the ${srcdir} directory name
26879 # or the ${configuration} value might, just might, happen to be an
26880 # identifier like `sun4' or `i386' or something, and be predefined by
26881 # the C preprocessor to some helpful value like 1, or maybe the empty
26882 # string. Needless to say consequent macro substitutions are less
26883 # than conducive to the makefile finding the correct directory.
26884 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26885 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26886 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26888 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26889 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26890 ## from Makefile.c can correctly provide the arg `-traditional' to the
26891 ## C preprocessor.
26893 cat >conftest.$ac_ext <<_ACEOF
26894 /* confdefs.h. */
26895 _ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h. */
26899 yes..yes
26900 _ACEOF
26901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26902 $EGREP "yes..yes" >/dev/null 2>&1; then
26903 CPP_NEED_TRADITIONAL=no
26904 else
26905 CPP_NEED_TRADITIONAL=yes
26907 rm -f conftest*
26910 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"
26912 ac_config_commands="$ac_config_commands default"
26914 cat >confcache <<\_ACEOF
26915 # This file is a shell script that caches the results of configure
26916 # tests run on this system so they can be shared between configure
26917 # scripts and configure runs, see configure's option --config-cache.
26918 # It is not useful on other systems. If it contains results you don't
26919 # want to keep, you may remove or edit it.
26921 # config.status only pays attention to the cache file if you give it
26922 # the --recheck option to rerun configure.
26924 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26925 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26926 # following values.
26928 _ACEOF
26930 # The following way of writing the cache mishandles newlines in values,
26931 # but we know of no workaround that is simple, portable, and efficient.
26932 # So, we kill variables containing newlines.
26933 # Ultrix sh set writes to stderr and can't be redirected directly,
26934 # and sets the high bit in the cache file unless we assign to the vars.
26936 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26937 eval ac_val=\$$ac_var
26938 case $ac_val in #(
26939 *${as_nl}*)
26940 case $ac_var in #(
26941 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26943 esac
26944 case $ac_var in #(
26945 _ | IFS | as_nl) ;; #(
26946 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26947 *) $as_unset $ac_var ;;
26948 esac ;;
26949 esac
26950 done
26952 (set) 2>&1 |
26953 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26954 *${as_nl}ac_space=\ *)
26955 # `set' does not quote correctly, so add quotes (double-quote
26956 # substitution turns \\\\ into \\, and sed turns \\ into \).
26957 sed -n \
26958 "s/'/'\\\\''/g;
26959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26960 ;; #(
26962 # `set' quotes correctly as required by POSIX, so do not add quotes.
26963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26965 esac |
26966 sort
26968 sed '
26969 /^ac_cv_env_/b end
26970 t clear
26971 :clear
26972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26973 t end
26974 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26975 :end' >>confcache
26976 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26977 if test -w "$cache_file"; then
26978 test "x$cache_file" != "x/dev/null" &&
26979 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26980 $as_echo "$as_me: updating cache $cache_file" >&6;}
26981 cat confcache >$cache_file
26982 else
26983 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26984 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26987 rm -f confcache
26989 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26990 # Let make expand exec_prefix.
26991 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26993 DEFS=-DHAVE_CONFIG_H
26995 ac_libobjs=
26996 ac_ltlibobjs=
26997 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26998 # 1. Remove the extension, and $U if already installed.
26999 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27000 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27001 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27002 # will be set to the directory where LIBOBJS objects are built.
27003 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27004 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27005 done
27006 LIBOBJS=$ac_libobjs
27008 LTLIBOBJS=$ac_ltlibobjs
27012 : ${CONFIG_STATUS=./config.status}
27013 ac_write_fail=0
27014 ac_clean_files_save=$ac_clean_files
27015 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27016 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27017 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27018 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27019 #! $SHELL
27020 # Generated by $as_me.
27021 # Run this file to recreate the current configuration.
27022 # Compiler output produced by configure, useful for debugging
27023 # configure, is in config.log if it exists.
27025 debug=false
27026 ac_cs_recheck=false
27027 ac_cs_silent=false
27028 SHELL=\${CONFIG_SHELL-$SHELL}
27029 _ACEOF
27031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27032 ## --------------------- ##
27033 ## M4sh Initialization. ##
27034 ## --------------------- ##
27036 # Be more Bourne compatible
27037 DUALCASE=1; export DUALCASE # for MKS sh
27038 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27039 emulate sh
27040 NULLCMD=:
27041 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27042 # is contrary to our usage. Disable this feature.
27043 alias -g '${1+"$@"}'='"$@"'
27044 setopt NO_GLOB_SUBST
27045 else
27046 case `(set -o) 2>/dev/null` in
27047 *posix*) set -o posix ;;
27048 esac
27055 # PATH needs CR
27056 # Avoid depending upon Character Ranges.
27057 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27058 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27059 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27060 as_cr_digits='0123456789'
27061 as_cr_alnum=$as_cr_Letters$as_cr_digits
27063 as_nl='
27065 export as_nl
27066 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27067 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27070 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27071 as_echo='printf %s\n'
27072 as_echo_n='printf %s'
27073 else
27074 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27075 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27076 as_echo_n='/usr/ucb/echo -n'
27077 else
27078 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27079 as_echo_n_body='eval
27080 arg=$1;
27081 case $arg in
27082 *"$as_nl"*)
27083 expr "X$arg" : "X\\(.*\\)$as_nl";
27084 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27085 esac;
27086 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27088 export as_echo_n_body
27089 as_echo_n='sh -c $as_echo_n_body as_echo'
27091 export as_echo_body
27092 as_echo='sh -c $as_echo_body as_echo'
27095 # The user is always right.
27096 if test "${PATH_SEPARATOR+set}" != set; then
27097 PATH_SEPARATOR=:
27098 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27099 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27100 PATH_SEPARATOR=';'
27104 # Support unset when possible.
27105 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27106 as_unset=unset
27107 else
27108 as_unset=false
27112 # IFS
27113 # We need space, tab and new line, in precisely that order. Quoting is
27114 # there to prevent editors from complaining about space-tab.
27115 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27116 # splitting by setting IFS to empty value.)
27117 IFS=" "" $as_nl"
27119 # Find who we are. Look in the path if we contain no directory separator.
27120 case $0 in
27121 *[\\/]* ) as_myself=$0 ;;
27122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27123 for as_dir in $PATH
27125 IFS=$as_save_IFS
27126 test -z "$as_dir" && as_dir=.
27127 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27128 done
27129 IFS=$as_save_IFS
27132 esac
27133 # We did not find ourselves, most probably we were run as `sh COMMAND'
27134 # in which case we are not to be found in the path.
27135 if test "x$as_myself" = x; then
27136 as_myself=$0
27138 if test ! -f "$as_myself"; then
27139 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27140 { (exit 1); exit 1; }
27143 # Work around bugs in pre-3.0 UWIN ksh.
27144 for as_var in ENV MAIL MAILPATH
27145 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27146 done
27147 PS1='$ '
27148 PS2='> '
27149 PS4='+ '
27151 # NLS nuisances.
27152 LC_ALL=C
27153 export LC_ALL
27154 LANGUAGE=C
27155 export LANGUAGE
27157 # Required to use basename.
27158 if expr a : '\(a\)' >/dev/null 2>&1 &&
27159 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27160 as_expr=expr
27161 else
27162 as_expr=false
27165 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27166 as_basename=basename
27167 else
27168 as_basename=false
27172 # Name of the executable.
27173 as_me=`$as_basename -- "$0" ||
27174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27175 X"$0" : 'X\(//\)$' \| \
27176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27177 $as_echo X/"$0" |
27178 sed '/^.*\/\([^/][^/]*\)\/*$/{
27179 s//\1/
27182 /^X\/\(\/\/\)$/{
27183 s//\1/
27186 /^X\/\(\/\).*/{
27187 s//\1/
27190 s/.*/./; q'`
27192 # CDPATH.
27193 $as_unset CDPATH
27197 as_lineno_1=$LINENO
27198 as_lineno_2=$LINENO
27199 test "x$as_lineno_1" != "x$as_lineno_2" &&
27200 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27202 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27203 # uniformly replaced by the line number. The first 'sed' inserts a
27204 # line-number line after each line using $LINENO; the second 'sed'
27205 # does the real work. The second script uses 'N' to pair each
27206 # line-number line with the line containing $LINENO, and appends
27207 # trailing '-' during substitution so that $LINENO is not a special
27208 # case at line end.
27209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27210 # scripts with optimization help from Paolo Bonzini. Blame Lee
27211 # E. McMahon (1931-1989) for sed's syntax. :-)
27212 sed -n '
27214 /[$]LINENO/=
27215 ' <$as_myself |
27216 sed '
27217 s/[$]LINENO.*/&-/
27218 t lineno
27220 :lineno
27222 :loop
27223 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27224 t loop
27225 s/-\n.*//
27226 ' >$as_me.lineno &&
27227 chmod +x "$as_me.lineno" ||
27228 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27229 { (exit 1); exit 1; }; }
27231 # Don't try to exec as it changes $[0], causing all sort of problems
27232 # (the dirname of $[0] is not the place where we might find the
27233 # original and so on. Autoconf is especially sensitive to this).
27234 . "./$as_me.lineno"
27235 # Exit status is that of the last command.
27236 exit
27240 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27241 as_dirname=dirname
27242 else
27243 as_dirname=false
27246 ECHO_C= ECHO_N= ECHO_T=
27247 case `echo -n x` in
27248 -n*)
27249 case `echo 'x\c'` in
27250 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27251 *) ECHO_C='\c';;
27252 esac;;
27254 ECHO_N='-n';;
27255 esac
27256 if expr a : '\(a\)' >/dev/null 2>&1 &&
27257 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27258 as_expr=expr
27259 else
27260 as_expr=false
27263 rm -f conf$$ conf$$.exe conf$$.file
27264 if test -d conf$$.dir; then
27265 rm -f conf$$.dir/conf$$.file
27266 else
27267 rm -f conf$$.dir
27268 mkdir conf$$.dir 2>/dev/null
27270 if (echo >conf$$.file) 2>/dev/null; then
27271 if ln -s conf$$.file conf$$ 2>/dev/null; then
27272 as_ln_s='ln -s'
27273 # ... but there are two gotchas:
27274 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27275 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27276 # In both cases, we have to default to `cp -p'.
27277 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27278 as_ln_s='cp -p'
27279 elif ln conf$$.file conf$$ 2>/dev/null; then
27280 as_ln_s=ln
27281 else
27282 as_ln_s='cp -p'
27284 else
27285 as_ln_s='cp -p'
27287 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27288 rmdir conf$$.dir 2>/dev/null
27290 if mkdir -p . 2>/dev/null; then
27291 as_mkdir_p=:
27292 else
27293 test -d ./-p && rmdir ./-p
27294 as_mkdir_p=false
27297 if test -x / >/dev/null 2>&1; then
27298 as_test_x='test -x'
27299 else
27300 if ls -dL / >/dev/null 2>&1; then
27301 as_ls_L_option=L
27302 else
27303 as_ls_L_option=
27305 as_test_x='
27306 eval sh -c '\''
27307 if test -d "$1"; then
27308 test -d "$1/.";
27309 else
27310 case $1 in
27311 -*)set "./$1";;
27312 esac;
27313 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27314 ???[sx]*):;;*)false;;esac;fi
27315 '\'' sh
27318 as_executable_p=$as_test_x
27320 # Sed expression to map a string onto a valid CPP name.
27321 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27323 # Sed expression to map a string onto a valid variable name.
27324 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27327 exec 6>&1
27329 # Save the log message, to keep $[0] and so on meaningful, and to
27330 # report actual input values of CONFIG_FILES etc. instead of their
27331 # values after options handling.
27332 ac_log="
27333 This file was extended by emacs $as_me 24.0.50, which was
27334 generated by GNU Autoconf 2.63. Invocation command line was
27336 CONFIG_FILES = $CONFIG_FILES
27337 CONFIG_HEADERS = $CONFIG_HEADERS
27338 CONFIG_LINKS = $CONFIG_LINKS
27339 CONFIG_COMMANDS = $CONFIG_COMMANDS
27340 $ $0 $@
27342 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27345 _ACEOF
27347 case $ac_config_files in *"
27348 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27349 esac
27351 case $ac_config_headers in *"
27352 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27353 esac
27356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27357 # Files that config.status was made for.
27358 config_files="$ac_config_files"
27359 config_headers="$ac_config_headers"
27360 config_commands="$ac_config_commands"
27362 _ACEOF
27364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27365 ac_cs_usage="\
27366 \`$as_me' instantiates files from templates according to the
27367 current configuration.
27369 Usage: $0 [OPTION]... [FILE]...
27371 -h, --help print this help, then exit
27372 -V, --version print version number and configuration settings, then exit
27373 -q, --quiet, --silent
27374 do not print progress messages
27375 -d, --debug don't remove temporary files
27376 --recheck update $as_me by reconfiguring in the same conditions
27377 --file=FILE[:TEMPLATE]
27378 instantiate the configuration file FILE
27379 --header=FILE[:TEMPLATE]
27380 instantiate the configuration header FILE
27382 Configuration files:
27383 $config_files
27385 Configuration headers:
27386 $config_headers
27388 Configuration commands:
27389 $config_commands
27391 Report bugs to <bug-autoconf@gnu.org>."
27393 _ACEOF
27394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27395 ac_cs_version="\\
27396 emacs config.status 24.0.50
27397 configured by $0, generated by GNU Autoconf 2.63,
27398 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27400 Copyright (C) 2008 Free Software Foundation, Inc.
27401 This config.status script is free software; the Free Software Foundation
27402 gives unlimited permission to copy, distribute and modify it."
27404 ac_pwd='$ac_pwd'
27405 srcdir='$srcdir'
27406 INSTALL='$INSTALL'
27407 test -n "\$AWK" || AWK=awk
27408 _ACEOF
27410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27411 # The default lists apply if the user does not specify any file.
27412 ac_need_defaults=:
27413 while test $# != 0
27415 case $1 in
27416 --*=*)
27417 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27418 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27419 ac_shift=:
27422 ac_option=$1
27423 ac_optarg=$2
27424 ac_shift=shift
27426 esac
27428 case $ac_option in
27429 # Handling of the options.
27430 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27431 ac_cs_recheck=: ;;
27432 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27433 $as_echo "$ac_cs_version"; exit ;;
27434 --debug | --debu | --deb | --de | --d | -d )
27435 debug=: ;;
27436 --file | --fil | --fi | --f )
27437 $ac_shift
27438 case $ac_optarg in
27439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27440 esac
27441 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27442 ac_need_defaults=false;;
27443 --header | --heade | --head | --hea )
27444 $ac_shift
27445 case $ac_optarg in
27446 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27447 esac
27448 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27449 ac_need_defaults=false;;
27450 --he | --h)
27451 # Conflict between --help and --header
27452 { $as_echo "$as_me: error: ambiguous option: $1
27453 Try \`$0 --help' for more information." >&2
27454 { (exit 1); exit 1; }; };;
27455 --help | --hel | -h )
27456 $as_echo "$ac_cs_usage"; exit ;;
27457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27458 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27459 ac_cs_silent=: ;;
27461 # This is an error.
27462 -*) { $as_echo "$as_me: error: unrecognized option: $1
27463 Try \`$0 --help' for more information." >&2
27464 { (exit 1); exit 1; }; } ;;
27466 *) ac_config_targets="$ac_config_targets $1"
27467 ac_need_defaults=false ;;
27469 esac
27470 shift
27471 done
27473 ac_configure_extra_args=
27475 if $ac_cs_silent; then
27476 exec 6>/dev/null
27477 ac_configure_extra_args="$ac_configure_extra_args --silent"
27480 _ACEOF
27481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27482 if \$ac_cs_recheck; then
27483 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27484 shift
27485 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27486 CONFIG_SHELL='$SHELL'
27487 export CONFIG_SHELL
27488 exec "\$@"
27491 _ACEOF
27492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27493 exec 5>>config.log
27495 echo
27496 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27497 ## Running $as_me. ##
27498 _ASBOX
27499 $as_echo "$ac_log"
27500 } >&5
27502 _ACEOF
27503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27505 # INIT-COMMANDS
27507 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27509 _ACEOF
27511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27513 # Handling of arguments.
27514 for ac_config_target in $ac_config_targets
27516 case $ac_config_target in
27517 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27518 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27519 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27520 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27521 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27522 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27523 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27524 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27525 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27526 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27527 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27528 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27529 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27531 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27532 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27533 { (exit 1); exit 1; }; };;
27534 esac
27535 done
27538 # If the user did not use the arguments to specify the items to instantiate,
27539 # then the envvar interface is used. Set only those that are not.
27540 # We use the long form for the default assignment because of an extremely
27541 # bizarre bug on SunOS 4.1.3.
27542 if $ac_need_defaults; then
27543 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27544 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27545 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27548 # Have a temporary directory for convenience. Make it in the build tree
27549 # simply because there is no reason against having it here, and in addition,
27550 # creating and moving files from /tmp can sometimes cause problems.
27551 # Hook for its removal unless debugging.
27552 # Note that there is a small window in which the directory will not be cleaned:
27553 # after its creation but before its name has been assigned to `$tmp'.
27554 $debug ||
27556 tmp=
27557 trap 'exit_status=$?
27558 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27560 trap '{ (exit 1); exit 1; }' 1 2 13 15
27562 # Create a (secure) tmp directory for tmp files.
27565 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27566 test -n "$tmp" && test -d "$tmp"
27567 } ||
27569 tmp=./conf$$-$RANDOM
27570 (umask 077 && mkdir "$tmp")
27571 } ||
27573 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27574 { (exit 1); exit 1; }
27577 # Set up the scripts for CONFIG_FILES section.
27578 # No need to generate them if there are no CONFIG_FILES.
27579 # This happens for instance with `./config.status config.h'.
27580 if test -n "$CONFIG_FILES"; then
27583 ac_cr=' '
27584 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27585 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27586 ac_cs_awk_cr='\\r'
27587 else
27588 ac_cs_awk_cr=$ac_cr
27591 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27592 _ACEOF
27596 echo "cat >conf$$subs.awk <<_ACEOF" &&
27597 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27598 echo "_ACEOF"
27599 } >conf$$subs.sh ||
27600 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27601 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27602 { (exit 1); exit 1; }; }
27603 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27604 ac_delim='%!_!# '
27605 for ac_last_try in false false false false false :; do
27606 . ./conf$$subs.sh ||
27607 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27608 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27609 { (exit 1); exit 1; }; }
27611 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27612 if test $ac_delim_n = $ac_delim_num; then
27613 break
27614 elif $ac_last_try; then
27615 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27616 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27617 { (exit 1); exit 1; }; }
27618 else
27619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27621 done
27622 rm -f conf$$subs.sh
27624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27625 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27626 _ACEOF
27627 sed -n '
27629 s/^/S["/; s/!.*/"]=/
27632 s/^[^!]*!//
27633 :repl
27634 t repl
27635 s/'"$ac_delim"'$//
27636 t delim
27639 s/\(.\{148\}\).*/\1/
27640 t more1
27641 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27644 b repl
27645 :more1
27646 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27649 s/.\{148\}//
27650 t nl
27651 :delim
27653 s/\(.\{148\}\).*/\1/
27654 t more2
27655 s/["\\]/\\&/g; s/^/"/; s/$/"/
27658 :more2
27659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27662 s/.\{148\}//
27663 t delim
27664 ' <conf$$subs.awk | sed '
27665 /^[^""]/{
27667 s/\n//
27669 ' >>$CONFIG_STATUS || ac_write_fail=1
27670 rm -f conf$$subs.awk
27671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27672 _ACAWK
27673 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27674 for (key in S) S_is_set[key] = 1
27675 FS = "\a"
27679 line = $ 0
27680 nfields = split(line, field, "@")
27681 substed = 0
27682 len = length(field[1])
27683 for (i = 2; i < nfields; i++) {
27684 key = field[i]
27685 keylen = length(key)
27686 if (S_is_set[key]) {
27687 value = S[key]
27688 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27689 len += length(value) + length(field[++i])
27690 substed = 1
27691 } else
27692 len += 1 + keylen
27695 print line
27698 _ACAWK
27699 _ACEOF
27700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27701 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27702 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27703 else
27705 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27706 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27707 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27708 { (exit 1); exit 1; }; }
27709 _ACEOF
27711 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27712 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27713 # trailing colons and then remove the whole line if VPATH becomes empty
27714 # (actually we leave an empty line to preserve line numbers).
27715 if test "x$srcdir" = x.; then
27716 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27717 s/:*\$(srcdir):*/:/
27718 s/:*\${srcdir}:*/:/
27719 s/:*@srcdir@:*/:/
27720 s/^\([^=]*=[ ]*\):*/\1/
27721 s/:*$//
27722 s/^[^=]*=[ ]*$//
27726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27727 fi # test -n "$CONFIG_FILES"
27729 # Set up the scripts for CONFIG_HEADERS section.
27730 # No need to generate them if there are no CONFIG_HEADERS.
27731 # This happens for instance with `./config.status Makefile'.
27732 if test -n "$CONFIG_HEADERS"; then
27733 cat >"$tmp/defines.awk" <<\_ACAWK ||
27734 BEGIN {
27735 _ACEOF
27737 # Transform confdefs.h into an awk script `defines.awk', embedded as
27738 # here-document in config.status, that substitutes the proper values into
27739 # config.h.in to produce config.h.
27741 # Create a delimiter string that does not exist in confdefs.h, to ease
27742 # handling of long lines.
27743 ac_delim='%!_!# '
27744 for ac_last_try in false false :; do
27745 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27746 if test -z "$ac_t"; then
27747 break
27748 elif $ac_last_try; then
27749 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27750 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27751 { (exit 1); exit 1; }; }
27752 else
27753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27755 done
27757 # For the awk script, D is an array of macro values keyed by name,
27758 # likewise P contains macro parameters if any. Preserve backslash
27759 # newline sequences.
27761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27762 sed -n '
27763 s/.\{148\}/&'"$ac_delim"'/g
27764 t rset
27765 :rset
27766 s/^[ ]*#[ ]*define[ ][ ]*/ /
27767 t def
27769 :def
27770 s/\\$//
27771 t bsnl
27772 s/["\\]/\\&/g
27773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27774 D["\1"]=" \3"/p
27775 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27777 :bsnl
27778 s/["\\]/\\&/g
27779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27780 D["\1"]=" \3\\\\\\n"\\/p
27781 t cont
27782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27783 t cont
27785 :cont
27787 s/.\{148\}/&'"$ac_delim"'/g
27788 t clear
27789 :clear
27790 s/\\$//
27791 t bsnlc
27792 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27794 :bsnlc
27795 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27796 b cont
27797 ' <confdefs.h | sed '
27798 s/'"$ac_delim"'/"\\\
27799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27802 for (key in D) D_is_set[key] = 1
27803 FS = "\a"
27805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27806 line = \$ 0
27807 split(line, arg, " ")
27808 if (arg[1] == "#") {
27809 defundef = arg[2]
27810 mac1 = arg[3]
27811 } else {
27812 defundef = substr(arg[1], 2)
27813 mac1 = arg[2]
27815 split(mac1, mac2, "(") #)
27816 macro = mac2[1]
27817 prefix = substr(line, 1, index(line, defundef) - 1)
27818 if (D_is_set[macro]) {
27819 # Preserve the white space surrounding the "#".
27820 print prefix "define", macro P[macro] D[macro]
27821 next
27822 } else {
27823 # Replace #undef with comments. This is necessary, for example,
27824 # in the case of _POSIX_SOURCE, which is predefined and required
27825 # on some systems where configure will not decide to define it.
27826 if (defundef == "undef") {
27827 print "/*", prefix defundef, macro, "*/"
27828 next
27832 { print }
27833 _ACAWK
27834 _ACEOF
27835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27836 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27837 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27838 { (exit 1); exit 1; }; }
27839 fi # test -n "$CONFIG_HEADERS"
27842 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27843 shift
27844 for ac_tag
27846 case $ac_tag in
27847 :[FHLC]) ac_mode=$ac_tag; continue;;
27848 esac
27849 case $ac_mode$ac_tag in
27850 :[FHL]*:*);;
27851 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27852 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27853 { (exit 1); exit 1; }; };;
27854 :[FH]-) ac_tag=-:-;;
27855 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27856 esac
27857 ac_save_IFS=$IFS
27858 IFS=:
27859 set x $ac_tag
27860 IFS=$ac_save_IFS
27861 shift
27862 ac_file=$1
27863 shift
27865 case $ac_mode in
27866 :L) ac_source=$1;;
27867 :[FH])
27868 ac_file_inputs=
27869 for ac_f
27871 case $ac_f in
27872 -) ac_f="$tmp/stdin";;
27873 *) # Look for the file first in the build tree, then in the source tree
27874 # (if the path is not absolute). The absolute path cannot be DOS-style,
27875 # because $ac_f cannot contain `:'.
27876 test -f "$ac_f" ||
27877 case $ac_f in
27878 [\\/$]*) false;;
27879 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27880 esac ||
27881 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27882 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27883 { (exit 1); exit 1; }; };;
27884 esac
27885 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27886 ac_file_inputs="$ac_file_inputs '$ac_f'"
27887 done
27889 # Let's still pretend it is `configure' which instantiates (i.e., don't
27890 # use $as_me), people would be surprised to read:
27891 # /* config.h. Generated by config.status. */
27892 configure_input='Generated from '`
27893 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27894 `' by configure.'
27895 if test x"$ac_file" != x-; then
27896 configure_input="$ac_file. $configure_input"
27897 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27898 $as_echo "$as_me: creating $ac_file" >&6;}
27900 # Neutralize special characters interpreted by sed in replacement strings.
27901 case $configure_input in #(
27902 *\&* | *\|* | *\\* )
27903 ac_sed_conf_input=`$as_echo "$configure_input" |
27904 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27905 *) ac_sed_conf_input=$configure_input;;
27906 esac
27908 case $ac_tag in
27909 *:-:* | *:-) cat >"$tmp/stdin" \
27910 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27911 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27912 { (exit 1); exit 1; }; } ;;
27913 esac
27915 esac
27917 ac_dir=`$as_dirname -- "$ac_file" ||
27918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27919 X"$ac_file" : 'X\(//\)[^/]' \| \
27920 X"$ac_file" : 'X\(//\)$' \| \
27921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27922 $as_echo X"$ac_file" |
27923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27924 s//\1/
27927 /^X\(\/\/\)[^/].*/{
27928 s//\1/
27931 /^X\(\/\/\)$/{
27932 s//\1/
27935 /^X\(\/\).*/{
27936 s//\1/
27939 s/.*/./; q'`
27940 { as_dir="$ac_dir"
27941 case $as_dir in #(
27942 -*) as_dir=./$as_dir;;
27943 esac
27944 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27945 as_dirs=
27946 while :; do
27947 case $as_dir in #(
27948 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27949 *) as_qdir=$as_dir;;
27950 esac
27951 as_dirs="'$as_qdir' $as_dirs"
27952 as_dir=`$as_dirname -- "$as_dir" ||
27953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27954 X"$as_dir" : 'X\(//\)[^/]' \| \
27955 X"$as_dir" : 'X\(//\)$' \| \
27956 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27957 $as_echo X"$as_dir" |
27958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27959 s//\1/
27962 /^X\(\/\/\)[^/].*/{
27963 s//\1/
27966 /^X\(\/\/\)$/{
27967 s//\1/
27970 /^X\(\/\).*/{
27971 s//\1/
27974 s/.*/./; q'`
27975 test -d "$as_dir" && break
27976 done
27977 test -z "$as_dirs" || eval "mkdir $as_dirs"
27978 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27979 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27980 { (exit 1); exit 1; }; }; }
27981 ac_builddir=.
27983 case "$ac_dir" in
27984 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27986 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27987 # A ".." for each directory in $ac_dir_suffix.
27988 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27989 case $ac_top_builddir_sub in
27990 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27991 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27992 esac ;;
27993 esac
27994 ac_abs_top_builddir=$ac_pwd
27995 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27996 # for backward compatibility:
27997 ac_top_builddir=$ac_top_build_prefix
27999 case $srcdir in
28000 .) # We are building in place.
28001 ac_srcdir=.
28002 ac_top_srcdir=$ac_top_builddir_sub
28003 ac_abs_top_srcdir=$ac_pwd ;;
28004 [\\/]* | ?:[\\/]* ) # Absolute name.
28005 ac_srcdir=$srcdir$ac_dir_suffix;
28006 ac_top_srcdir=$srcdir
28007 ac_abs_top_srcdir=$srcdir ;;
28008 *) # Relative name.
28009 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28010 ac_top_srcdir=$ac_top_build_prefix$srcdir
28011 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28012 esac
28013 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28016 case $ac_mode in
28019 # CONFIG_FILE
28022 case $INSTALL in
28023 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28024 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28025 esac
28026 _ACEOF
28028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28029 # If the template does not know about datarootdir, expand it.
28030 # FIXME: This hack should be removed a few years after 2.60.
28031 ac_datarootdir_hack=; ac_datarootdir_seen=
28033 ac_sed_dataroot='
28034 /datarootdir/ {
28038 /@datadir@/p
28039 /@docdir@/p
28040 /@infodir@/p
28041 /@localedir@/p
28042 /@mandir@/p
28044 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28045 *datarootdir*) ac_datarootdir_seen=yes;;
28046 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28047 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28048 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28049 _ACEOF
28050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28051 ac_datarootdir_hack='
28052 s&@datadir@&$datadir&g
28053 s&@docdir@&$docdir&g
28054 s&@infodir@&$infodir&g
28055 s&@localedir@&$localedir&g
28056 s&@mandir@&$mandir&g
28057 s&\\\${datarootdir}&$datarootdir&g' ;;
28058 esac
28059 _ACEOF
28061 # Neutralize VPATH when `$srcdir' = `.'.
28062 # Shell code in configure.ac might set extrasub.
28063 # FIXME: do we really want to maintain this feature?
28064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28065 ac_sed_extra="$ac_vpsub
28066 $extrasub
28067 _ACEOF
28068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28071 s|@configure_input@|$ac_sed_conf_input|;t t
28072 s&@top_builddir@&$ac_top_builddir_sub&;t t
28073 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28074 s&@srcdir@&$ac_srcdir&;t t
28075 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28076 s&@top_srcdir@&$ac_top_srcdir&;t t
28077 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28078 s&@builddir@&$ac_builddir&;t t
28079 s&@abs_builddir@&$ac_abs_builddir&;t t
28080 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28081 s&@INSTALL@&$ac_INSTALL&;t t
28082 $ac_datarootdir_hack
28084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28085 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28086 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28087 { (exit 1); exit 1; }; }
28089 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28090 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28091 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28092 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28093 which seems to be undefined. Please make sure it is defined." >&5
28094 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28095 which seems to be undefined. Please make sure it is defined." >&2;}
28097 rm -f "$tmp/stdin"
28098 case $ac_file in
28099 -) cat "$tmp/out" && rm -f "$tmp/out";;
28100 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28101 esac \
28102 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28103 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28104 { (exit 1); exit 1; }; }
28108 # CONFIG_HEADER
28110 if test x"$ac_file" != x-; then
28112 $as_echo "/* $configure_input */" \
28113 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28114 } >"$tmp/config.h" \
28115 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28116 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28117 { (exit 1); exit 1; }; }
28118 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28119 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28121 else
28122 rm -f "$ac_file"
28123 mv "$tmp/config.h" "$ac_file" \
28124 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28125 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28126 { (exit 1); exit 1; }; }
28128 else
28129 $as_echo "/* $configure_input */" \
28130 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28131 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28132 $as_echo "$as_me: error: could not create -" >&2;}
28133 { (exit 1); exit 1; }; }
28137 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28138 $as_echo "$as_me: executing $ac_file commands" >&6;}
28140 esac
28143 case $ac_file$ac_mode in
28144 "default":C)
28146 ### Make the necessary directories, if they don't exist.
28147 for dir in etc lisp ; do
28148 test -d ${dir} || mkdir ${dir}
28149 done
28151 # Build src/Makefile from ${srcdir}/src/Makefile.c
28152 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28153 # This must be done after src/config.h is built, since we rely on that file.
28155 echo creating src/epaths.h
28156 ${MAKE-make} epaths-force
28158 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28159 # `..' to `. .' unless invoked with -traditional
28161 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
28162 CPPFLAGS="$CPPFLAGS -traditional"
28165 echo creating src/Makefile
28166 ( cd src
28167 rm -f junk.c junk1.c junk2.c
28168 sed -e '/start of cpp stuff/q' \
28169 < Makefile.c > junk1.c
28170 sed -e '1,/start of cpp stuff/d'\
28171 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28172 < Makefile.c > junk.c
28173 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
28174 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28175 cat junk1.c junk2.c > Makefile.new
28176 rm -f junk.c junk1.c junk2.c
28177 chmod 444 Makefile.new
28178 mv -f Makefile.new Makefile
28181 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
28182 echo creating src/.gdbinit
28183 echo source $srcdir/src/.gdbinit > src/.gdbinit
28188 esac
28189 done # for ac_tag
28192 { (exit 0); exit 0; }
28193 _ACEOF
28194 chmod +x $CONFIG_STATUS
28195 ac_clean_files=$ac_clean_files_save
28197 test $ac_write_fail = 0 ||
28198 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28199 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28200 { (exit 1); exit 1; }; }
28203 # configure is writing to config.log, and then calls config.status.
28204 # config.status does its own redirection, appending to config.log.
28205 # Unfortunately, on DOS this fails, as config.log is still kept open
28206 # by configure, so config.status won't be able to write to it; its
28207 # output is simply discarded. So we exec the FD to /dev/null,
28208 # effectively closing config.log, so it can be properly (re)opened and
28209 # appended to by config.status. When coming back to configure, we
28210 # need to make the FD available again.
28211 if test "$no_create" != yes; then
28212 ac_cs_success=:
28213 ac_config_status_args=
28214 test "$silent" = yes &&
28215 ac_config_status_args="$ac_config_status_args --quiet"
28216 exec 5>/dev/null
28217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28218 exec 5>>config.log
28219 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28220 # would make configure fail if this is the last instruction.
28221 $ac_cs_success || { (exit 1); exit 1; }
28223 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28224 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28225 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}