(cvs-bury-buffer): Use quit-window instead of the
[emacs.git] / configure
blob745eb22ce7ca5f4dc902ca8c0966577a3b0462df
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.60'
576 PACKAGE_STRING='emacs 23.0.60'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_config_libobj_dir=src
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
748 XMKMF'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1326 esac
1327 cat <<\_ACEOF
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --disable-font-backend don't compile font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-pop don't support POP mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version 5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server host
1352 --without-sound don't compile with sound support
1353 --without-sync-input Process async input synchronously
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1355 motif, gtk, no)
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don't compile with SVG image support
1362 --without-freetype don't use Freetype for local font support
1363 --without-xft don't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf for OpenType font support
1365 --without-m17n-flt don't use m17n-flt for text shaping
1366 --without-toolkit-scroll-bars
1367 don't use Motif or Xaw3d scroll bars
1368 --without-xaw3d don't use Xaw3d
1369 --without-xim don't use X11 XIM
1370 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1371 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1372 console
1373 --without-dbus don't compile with D-Bus support
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config for finding GTK and librsvg
1377 --with-x use the X Window System
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CPP C preprocessor
1388 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 _ACEOF
1394 ac_status=$?
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1401 ac_builddir=.
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 emacs configure 23.0.60
1454 generated by GNU Autoconf 2.61
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1467 It was created by emacs $as_me 23.0.60, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1470 $ $0 $@
1472 _ACEOF
1473 exec 5>>config.log
1475 cat <<_ASUNAME
1476 ## --------- ##
1477 ## Platform. ##
1478 ## --------- ##
1480 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1489 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1493 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1497 _ASUNAME
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 for as_dir in $PATH
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1505 done
1506 IFS=$as_save_IFS
1508 } >&5
1510 cat >&5 <<_ACEOF
1513 ## ----------- ##
1514 ## Core tests. ##
1515 ## ----------- ##
1517 _ACEOF
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1525 ac_configure_args=
1526 ac_configure_args0=
1527 ac_configure_args1=
1528 ac_must_keep_next=false
1529 for ac_pass in 1 2
1531 for ac_arg
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
1538 *\'*)
1539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 esac
1541 case $ac_pass in
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1562 esac
1563 done
1564 done
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1576 echo
1578 cat <<\_ASBOX
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1582 _ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1597 esac ;;
1598 esac
1599 done
1600 (set) 2>&1 |
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1603 sed -n \
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1610 esac |
1611 sort
1613 echo
1615 cat <<\_ASBOX
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1636 _ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
1645 done | sort
1646 echo
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651 ## ----------- ##
1652 ## confdefs.h. ##
1653 ## ----------- ##
1654 _ASBOX
1655 echo
1656 cat confdefs.h
1657 echo
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1662 } >&5
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 exit $exit_status
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669 done
1670 ac_signal=0
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699 _ACEOF
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708 else
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1712 shift
1713 for ac_site_file
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1719 . "$ac_site_file"
1721 done
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1732 esac
1734 else
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1744 # value.
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1752 set,)
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,set)
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1760 ,);;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1766 echo "$as_me: former value: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1768 echo "$as_me: current value: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1770 fi;;
1771 esac
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1774 case $ac_new_val in
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1777 esac
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781 esac
1783 done
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s,x,x', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1836 _ACEOF
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1838 rm -f conftest.sed
1841 lispdir='${datadir}/emacs/${version}/lisp'
1842 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1843 '${datadir}/emacs/site-lisp'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1845 etcdir='${datadir}/emacs/${version}/etc'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs/${version}/etc'
1848 gamedir='${localstatedir}/games/emacs'
1850 gameuser=games
1855 # Check whether --with-pop was given.
1856 if test "${with_pop+set}" = set; then
1857 withval=$with_pop;
1858 else
1859 with_pop=yes
1862 if test "$with_pop" = yes; then
1863 cat >>confdefs.h <<\_ACEOF
1864 #define MAIL_USE_POP 1
1865 _ACEOF
1871 # Check whether --with-kerberos was given.
1872 if test "${with_kerberos+set}" = set; then
1873 withval=$with_kerberos;
1874 else
1875 with_kerberos=no
1878 if test "$with_kerberos" = yes; then
1879 cat >>confdefs.h <<\_ACEOF
1880 #define KERBEROS 1
1881 _ACEOF
1887 # Check whether --with-kerberos5 was given.
1888 if test "${with_kerberos5+set}" = set; then
1889 withval=$with_kerberos5;
1890 else
1891 with_kerberos5=no
1894 if test "${with_kerberos5}" = yes; then
1895 if test "${with_kerberos}" != yes; then
1896 with_kerberos=yes
1897 cat >>confdefs.h <<\_ACEOF
1898 #define KERBEROS 1
1899 _ACEOF
1903 cat >>confdefs.h <<\_ACEOF
1904 #define KERBEROS5 1
1905 _ACEOF
1910 # Check whether --with-hesiod was given.
1911 if test "${with_hesiod+set}" = set; then
1912 withval=$with_hesiod;
1913 else
1914 with_hesiod=no
1917 if test "$with_hesiod" = yes; then
1919 cat >>confdefs.h <<\_ACEOF
1920 #define HESIOD 1
1921 _ACEOF
1926 # Check whether --with-sound was given.
1927 if test "${with_sound+set}" = set; then
1928 withval=$with_sound;
1929 else
1930 with_sound=yes
1935 # Check whether --with-sync-input was given.
1936 if test "${with_sync_input+set}" = set; then
1937 withval=$with_sync_input;
1938 else
1939 with_sync_input=yes
1942 if test "$with_sync_input" = yes; then
1944 cat >>confdefs.h <<\_ACEOF
1945 #define SYNC_INPUT 1
1946 _ACEOF
1951 # Check whether --with-x-toolkit was given.
1952 if test "${with_x_toolkit+set}" = set; then
1953 withval=$with_x_toolkit; case "${withval}" in
1954 y | ye | yes ) val=gtk ;;
1955 n | no ) val=no ;;
1956 l | lu | luc | luci | lucid ) val=lucid ;;
1957 a | at | ath | athe | athen | athena ) val=athena ;;
1958 m | mo | mot | moti | motif ) val=motif ;;
1959 g | gt | gtk ) val=gtk ;;
1961 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1962 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1963 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1964 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1965 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1966 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1967 { (exit 1); exit 1; }; }
1969 esac
1970 with_x_toolkit=$val
1976 # Check whether --with-xpm was given.
1977 if test "${with_xpm+set}" = set; then
1978 withval=$with_xpm;
1979 else
1980 with_xpm=yes
1984 # Check whether --with-jpeg was given.
1985 if test "${with_jpeg+set}" = set; then
1986 withval=$with_jpeg;
1987 else
1988 with_jpeg=yes
1992 # Check whether --with-tiff was given.
1993 if test "${with_tiff+set}" = set; then
1994 withval=$with_tiff;
1995 else
1996 with_tiff=yes
2000 # Check whether --with-gif was given.
2001 if test "${with_gif+set}" = set; then
2002 withval=$with_gif;
2003 else
2004 with_gif=yes
2008 # Check whether --with-png was given.
2009 if test "${with_png+set}" = set; then
2010 withval=$with_png;
2011 else
2012 with_png=yes
2016 # Check whether --with-rsvg was given.
2017 if test "${with_rsvg+set}" = set; then
2018 withval=$with_rsvg;
2019 else
2020 with_rsvg=yes
2025 # Check whether --with-freetype was given.
2026 if test "${with_freetype+set}" = set; then
2027 withval=$with_freetype;
2028 else
2029 with_freetype=yes
2033 # Check whether --with-xft was given.
2034 if test "${with_xft+set}" = set; then
2035 withval=$with_xft;
2036 else
2037 with_xft=yes
2041 # Check whether --with-libotf was given.
2042 if test "${with_libotf+set}" = set; then
2043 withval=$with_libotf;
2044 else
2045 with_libotf=yes
2049 # Check whether --with-m17n-flt was given.
2050 if test "${with_m17n_flt+set}" = set; then
2051 withval=$with_m17n_flt;
2052 else
2053 with_m17n_flt=yes
2058 # Check whether --with-toolkit-scroll-bars was given.
2059 if test "${with_toolkit_scroll_bars+set}" = set; then
2060 withval=$with_toolkit_scroll_bars;
2061 else
2062 with_toolkit_scroll_bars=yes
2066 # Check whether --with-xaw3d was given.
2067 if test "${with_xaw3d+set}" = set; then
2068 withval=$with_xaw3d;
2069 else
2070 with_xaw3d=yes
2074 # Check whether --with-xim was given.
2075 if test "${with_xim+set}" = set; then
2076 withval=$with_xim;
2077 else
2078 with_xim=yes
2082 # Check whether --with-carbon was given.
2083 if test "${with_carbon+set}" = set; then
2084 withval=$with_carbon;
2085 else
2086 with_carbon=no
2091 # Check whether --with-gpm was given.
2092 if test "${with_gpm+set}" = set; then
2093 withval=$with_gpm;
2094 else
2095 with_gpm=yes
2099 # Check whether --with-dbus was given.
2100 if test "${with_dbus+set}" = set; then
2101 withval=$with_dbus;
2102 else
2103 with_dbus=yes
2108 # Check whether --with-gtk was given.
2109 if test "${with_gtk+set}" = set; then
2110 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2111 specify a toolkit." >&5
2112 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2113 specify a toolkit." >&2;}
2114 { (exit 1); exit 1; }; }
2119 # Check whether --with-gcc was given.
2120 if test "${with_gcc+set}" = set; then
2121 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2122 variable to specify a compiler." >&5
2123 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2124 variable to specify a compiler." >&2;}
2125 { (exit 1); exit 1; }; }
2130 # Check whether --with-pkg-config-prog was given.
2131 if test "${with_pkg_config_prog+set}" = set; then
2132 withval=$with_pkg_config_prog;
2135 if test "X${with_pkg_config_prog}" != X; then
2136 if test "${with_pkg_config_prog}" != yes; then
2137 PKG_CONFIG="${with_pkg_config_prog}"
2141 # Check whether --enable-carbon-app was given.
2142 if test "${enable_carbon_app+set}" = set; then
2143 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2147 ## Enabled by default.
2148 # Check whether --enable-font-backend was given.
2149 if test "${enable_font_backend+set}" = set; then
2150 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2151 else
2152 USE_FONT_BACKEND=yes
2156 # Check whether --enable-asserts was given.
2157 if test "${enable_asserts+set}" = set; then
2158 enableval=$enable_asserts; USE_XASSERTS=$enableval
2159 else
2160 USE_XASSERTS=no
2164 # Check whether --enable-maintainer-mode was given.
2165 if test "${enable_maintainer_mode+set}" = set; then
2166 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2167 else
2168 USE_MAINTAINER_MODE=no
2171 if test $USE_MAINTAINER_MODE = yes; then
2172 MAINT=
2173 else
2174 MAINT=#
2178 # Check whether --enable-locallisppath was given.
2179 if test "${enable_locallisppath+set}" = set; then
2180 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2181 locallisppath=
2182 elif test "${enableval}" != "yes"; then
2183 locallisppath=${enableval}
2188 #### Make srcdir absolute, if it isn't already. It's important to
2189 #### avoid running the path through pwd unnecessarily, since pwd can
2190 #### give you automounter prefixes, which can go away. We do all this
2191 #### so Emacs can find its files when run uninstalled.
2192 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2193 unset CDPATH
2194 case "${srcdir}" in
2195 /* ) ;;
2197 ## We may be able to use the $PWD environment variable to make this
2198 ## absolute. But sometimes PWD is inaccurate.
2199 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2200 ## but that tested only for a well-formed and valid PWD,
2201 ## it did not object when PWD was well-formed and valid but just wrong.
2202 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2203 then
2204 srcdir="$PWD"
2205 else
2206 srcdir="`(cd ${srcdir}; pwd)`"
2209 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2210 esac
2212 #### Check if the source directory already has a configured system in it.
2213 if test `pwd` != `(cd ${srcdir} && pwd)` \
2214 && test -f "${srcdir}/src/config.h" ; then
2215 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2216 as a build directory right now; it has been configured in its own
2217 right. To configure in another directory as well, you MUST
2218 use GNU make. If you do not have GNU make, then you must
2219 now do \`make distclean' in ${srcdir},
2220 and then run $0 again." >&5
2221 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2222 as a build directory right now; it has been configured in its own
2223 right. To configure in another directory as well, you MUST
2224 use GNU make. If you do not have GNU make, then you must
2225 now do \`make distclean' in ${srcdir},
2226 and then run $0 again." >&2;}
2229 #### Given the configuration name, set machfile and opsysfile to the
2230 #### names of the m/*.h and s/*.h files we should use.
2232 ### Canonicalize the configuration name.
2234 ac_aux_dir=
2235 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2236 if test -f "$ac_dir/install-sh"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/install-sh -c"
2239 break
2240 elif test -f "$ac_dir/install.sh"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/install.sh -c"
2243 break
2244 elif test -f "$ac_dir/shtool"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/shtool install -c"
2247 break
2249 done
2250 if test -z "$ac_aux_dir"; then
2251 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2252 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2253 { (exit 1); exit 1; }; }
2256 # These three variables are undocumented and unsupported,
2257 # and are intended to be withdrawn in a future Autoconf release.
2258 # They can cause serious problems if a builder's source tree is in a directory
2259 # whose full name contains unusual characters.
2260 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2261 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2262 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2265 # Make sure we can run config.sub.
2266 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2267 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2268 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2269 { (exit 1); exit 1; }; }
2271 { echo "$as_me:$LINENO: checking build system type" >&5
2272 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2273 if test "${ac_cv_build+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276 ac_build_alias=$build_alias
2277 test "x$ac_build_alias" = x &&
2278 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2279 test "x$ac_build_alias" = x &&
2280 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2281 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2282 { (exit 1); exit 1; }; }
2283 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2284 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2285 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2286 { (exit 1); exit 1; }; }
2289 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2290 echo "${ECHO_T}$ac_cv_build" >&6; }
2291 case $ac_cv_build in
2292 *-*-*) ;;
2293 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2294 echo "$as_me: error: invalid value of canonical build" >&2;}
2295 { (exit 1); exit 1; }; };;
2296 esac
2297 build=$ac_cv_build
2298 ac_save_IFS=$IFS; IFS='-'
2299 set x $ac_cv_build
2300 shift
2301 build_cpu=$1
2302 build_vendor=$2
2303 shift; shift
2304 # Remember, the first character of IFS is used to create $*,
2305 # except with old shells:
2306 build_os=$*
2307 IFS=$ac_save_IFS
2308 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2311 { echo "$as_me:$LINENO: checking host system type" >&5
2312 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2313 if test "${ac_cv_host+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 if test "x$host_alias" = x; then
2317 ac_cv_host=$ac_cv_build
2318 else
2319 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2320 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2321 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2322 { (exit 1); exit 1; }; }
2326 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2327 echo "${ECHO_T}$ac_cv_host" >&6; }
2328 case $ac_cv_host in
2329 *-*-*) ;;
2330 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2331 echo "$as_me: error: invalid value of canonical host" >&2;}
2332 { (exit 1); exit 1; }; };;
2333 esac
2334 host=$ac_cv_host
2335 ac_save_IFS=$IFS; IFS='-'
2336 set x $ac_cv_host
2337 shift
2338 host_cpu=$1
2339 host_vendor=$2
2340 shift; shift
2341 # Remember, the first character of IFS is used to create $*,
2342 # except with old shells:
2343 host_os=$*
2344 IFS=$ac_save_IFS
2345 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2348 canonical=$host
2349 configuration=${host_alias-${build_alias-$host}}
2353 ### If you add support for a new configuration, add code to this
2354 ### switch statement to recognize your configuration name and select
2355 ### the appropriate operating system and machine description files.
2357 ### You would hope that you could choose an m/*.h file pretty much
2358 ### based on the machine portion of the configuration name, and an s-
2359 ### file based on the operating system portion. However, it turns out
2360 ### that each m/*.h file is pretty manufacturer-specific - for
2361 ### example hp9000s300.h is a 68000 machine;
2362 ### mips.h, pmax.h are all MIPS
2363 ### machines. So we basically have to have a special case for each
2364 ### configuration name.
2366 ### As far as handling version numbers on operating systems is
2367 ### concerned, make sure things will fail in a fixable way. If
2368 ### /etc/MACHINES doesn't say anything about version numbers, be
2369 ### prepared to handle anything reasonably. If version numbers
2370 ### matter, be sure /etc/MACHINES says something about it.
2372 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2373 ### "System V Release 4"; he writes, "The old convention encouraged
2374 ### confusion between `system' and `release' levels'."
2376 machine='' opsys='' unported=no
2377 case "${canonical}" in
2379 ## FreeBSD ports
2380 *-*-freebsd* )
2381 opsys=freebsd
2382 case "${canonical}" in
2383 alpha*-*-freebsd*) machine=alpha ;;
2384 arm*-*-freebsd*) machine=arm ;;
2385 ia64-*-freebsd*) machine=ia64 ;;
2386 sparc64-*-freebsd*) machine=sparc ;;
2387 powerpc-*-freebsd*) machine=macppc ;;
2388 i[3456]86-*-freebsd*) machine=intel386 ;;
2389 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2390 esac
2393 ## FreeBSD kernel + glibc based userland
2394 *-*-kfreebsd*gnu* )
2395 opsys=gnu-kfreebsd
2396 case "${canonical}" in
2397 alpha*-*-kfreebsd*) machine=alpha ;;
2398 ia64-*-kfreebsd*) machine=ia64 ;;
2399 sparc64-*-kfreebsd*) machine=sparc ;;
2400 powerpc-*-kfreebsd*) machine=macppc ;;
2401 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2402 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2403 esac
2406 ## NetBSD ports
2407 *-*-netbsd* )
2408 opsys=netbsd
2409 if test -f /usr/lib/crti.o; then
2411 cat >>confdefs.h <<\_ACEOF
2412 #define HAVE_CRTIN
2413 _ACEOF
2417 case "${canonical}" in
2418 alpha*-*-netbsd*) machine=alpha ;;
2419 i[3456]86-*-netbsd*) machine=intel386 ;;
2420 m68k-*-netbsd*)
2421 # This is somewhat bogus.
2422 machine=hp9000s300 ;;
2423 mips-*-netbsd*) machine=pmax ;;
2424 mipsel-*-netbsd*) machine=pmax ;;
2425 mipseb-*-netbsd*) machine=pmax ;;
2426 powerpc-*-netbsd*) machine=macppc ;;
2427 sparc*-*-netbsd*) machine=sparc ;;
2428 vax-*-netbsd*) machine=vax ;;
2429 arm-*-netbsd*) machine=arm ;;
2430 x86_64-*-netbsd*) machine=amdx86-64 ;;
2431 hppa-*-netbsd*) machine=hp800 ;;
2432 esac
2435 ## OpenBSD ports
2436 *-*-openbsd* )
2437 opsys=openbsd
2438 case "${canonical}" in
2439 alpha*-*-openbsd*) machine=alpha ;;
2440 arm-*-openbsd*) machine=arm ;;
2441 hppa-*-openbsd*) machine=hp9000s300 ;;
2442 i386-*-openbsd*) machine=intel386 ;;
2443 m68k-*-openbsd*) machine=hp9000s300 ;;
2444 powerpc-*-openbsd*) machine=macppc ;;
2445 sparc*-*-openbsd*) machine=sparc ;;
2446 vax-*-openbsd*) machine=vax ;;
2447 x86_64-*-openbsd*) machine=amdx86-64 ;;
2448 esac
2451 ## LynxOS ports
2452 *-*-lynxos* )
2453 opsys=lynxos
2454 case "${canonical}" in
2455 i[3456]86-*-lynxos*) machine=intel386 ;;
2456 powerpc-*-lynxos*) machine=powerpc ;;
2457 esac
2460 ## BSDI ports
2461 *-*-bsdi* )
2462 opsys=bsdi
2463 case "${canonical}" in
2464 i[345]86-*-bsdi*) machine=intel386 ;;
2465 sparc-*-bsdi*) machine=sparc ;;
2466 powerpc-*-bsdi*) machine=macppc ;;
2467 esac
2468 case "${canonical}" in
2469 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2470 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2471 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2472 *-*-bsdi3* ) opsys=bsdos3 ;;
2473 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2474 esac
2477 alpha*-*-linux-gnu* )
2478 machine=alpha opsys=gnu-linux
2481 arm*-*-linux-gnu* )
2482 machine=arm opsys=gnu-linux
2485 ## Apple Darwin / Mac OS X
2486 *-apple-darwin* )
2487 case "${canonical}" in
2488 i[3456]86-* ) machine=intel386 ;;
2489 powerpc-* ) machine=powermac ;;
2490 * ) unported=yes ;;
2491 esac
2492 opsys=darwin
2493 # Define CPP as follows to make autoconf work correctly.
2494 CPP="${CC-cc} -E -no-cpp-precomp"
2495 # Use fink packages if available.
2496 if test -d /sw/include && test -d /sw/lib; then
2497 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2498 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2499 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2503 ## Cubix QBx/386
2504 i[3456]86-cubix-sysv* )
2505 machine=intel386 opsys=usg5-3
2508 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2509 machine=pmax opsys=bsd4-2
2511 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2512 machine=pmax opsys=bsd4-3
2514 mips-dec-ultrix* )
2515 machine=pmax opsys=ultrix4-3
2517 ## HP 9000 series 200 or 300
2518 m68*-hp-bsd* )
2519 machine=hp9000s300 opsys=bsd4-3
2521 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2522 m68*-hp-hpux* )
2523 case "`uname -r`" in
2524 ## Someone's system reports A.B8.05 for this.
2525 ## I wonder what other possibilities there are.
2526 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2527 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2528 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2529 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2530 *) machine=hp9000s300 opsys=hpux ;;
2531 esac
2534 ## HP 9000 series 700 and 800, running HP/UX
2535 hppa*-hp-hpux7* )
2536 machine=hp800 opsys=hpux
2538 hppa*-hp-hpux8* )
2539 machine=hp800 opsys=hpux8
2541 hppa*-hp-hpux9shr* )
2542 machine=hp800 opsys=hpux9shr
2544 hppa*-hp-hpux9* )
2545 machine=hp800 opsys=hpux9
2547 hppa*-hp-hpux10.2* )
2548 machine=hp800 opsys=hpux10-20
2550 hppa*-hp-hpux10* )
2551 machine=hp800 opsys=hpux10
2553 hppa*-hp-hpux1[1-9]* )
2554 machine=hp800 opsys=hpux11
2555 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2558 hppa*-*-linux-gnu* )
2559 machine=hp800 opsys=gnu-linux
2562 ## HP 9000 series 700 and 800, running HP/UX
2563 hppa*-hp-hpux* )
2564 ## Cross-compilation? Nah!
2565 case "`uname -r`" in
2566 ## Someone's system reports A.B8.05 for this.
2567 ## I wonder what other possibilities there are.
2568 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2569 *.08.* ) machine=hp800 opsys=hpux8 ;;
2570 *.09.* ) machine=hp800 opsys=hpux9 ;;
2571 *) machine=hp800 opsys=hpux10 ;;
2572 esac
2574 hppa*-*-nextstep* )
2575 machine=hp800 opsys=nextstep
2578 ## IBM machines
2579 i370-ibm-aix*)
2580 machine=ibm370aix opsys=usg5-3
2582 s390-*-linux-gnu* )
2583 machine=ibms390 opsys=gnu-linux
2585 s390x-*-linux-gnu* )
2586 machine=ibms390x opsys=gnu-linux
2588 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2589 machine=ibmrs6000 opsys=aix3-1
2591 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2592 machine=ibmrs6000 opsys=aix3-2-5
2594 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2595 machine=ibmrs6000 opsys=aix4-1
2597 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2598 machine=ibmrs6000 opsys=aix4-2
2600 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2601 machine=ibmrs6000 opsys=aix4-2
2603 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2604 machine=ibmrs6000 opsys=aix4-2
2606 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2607 machine=ibmrs6000 opsys=aix4-2
2609 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2610 machine=ibmrs6000 opsys=aix4
2612 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2613 machine=ibmrs6000 opsys=aix4-1
2615 rs6000-ibm-aix* | powerpc-ibm-aix* )
2616 machine=ibmrs6000 opsys=aix3-2
2619 ## Prime EXL
2620 i[3456]86-prime-sysv* )
2621 machine=i386 opsys=usg5-3
2624 ## ncr machine running svr4.3.
2625 i[3456]86-ncr-sysv4.3 )
2626 machine=ncr386 opsys=usg5-4-3
2629 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2630 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2631 i[3456]86-ncr-sysv* )
2632 machine=ncr386 opsys=usg5-4-2
2635 ## Macintosh PowerPC
2636 powerpc*-*-linux-gnu* )
2637 machine=macppc opsys=gnu-linux
2640 ## Workstations sold by MIPS
2641 ## This is not necessarily all workstations using the MIPS processor -
2642 ## Irises are produced by SGI, and DECstations by DEC.
2644 mips-mips-bsd* )
2645 machine=mips opsys=bsd4-3
2647 mips-mips-* )
2648 machine=mips opsys=usg5-2-2
2651 ## NeXT
2652 m68*-next-* | m68k-*-nextstep* )
2653 machine=m68k opsys=nextstep
2656 ## NEC EWS4800
2657 mips-nec-sysv4*)
2658 machine=ews4800 opsys=ux4800
2661 ## Siemens Nixdorf
2662 mips-siemens-sysv* | mips-sni-sysv*)
2663 machine=mips-siemens opsys=usg5-4
2664 NON_GNU_CC=/usr/ccs/bin/cc
2665 NON_GNU_CPP=/usr/ccs/lib/cpp
2668 ## Silicon Graphics machines
2669 ## Iris 4D
2670 mips-sgi-irix6.5 )
2671 machine=iris4d opsys=irix6-5
2672 # Without defining _LANGUAGE_C, things get masked out in the headers
2673 # so that, for instance, grepping for `free' in stdlib.h fails and
2674 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2675 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2676 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2679 ## Suns
2680 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2681 machine=sparc opsys=gnu-linux
2684 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2685 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2686 | rs6000-*-solaris2*)
2687 case "${canonical}" in
2688 i[3456]86-*-* ) machine=intel386 ;;
2689 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2690 powerpcle* ) machine=powerpcle ;;
2691 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2692 sparc* ) machine=sparc ;;
2693 * ) unported=yes ;;
2694 esac
2695 case "${canonical}" in
2696 *-sunos5.3* | *-solaris2.3* )
2697 opsys=sol2-3
2698 NON_GNU_CPP=/usr/ccs/lib/cpp
2700 *-sunos5.4* | *-solaris2.4* )
2701 opsys=sol2-4
2702 NON_GNU_CPP=/usr/ccs/lib/cpp
2703 RANLIB="ar -ts"
2705 *-sunos5.5* | *-solaris2.5* )
2706 opsys=sol2-5
2707 NON_GNU_CPP=/usr/ccs/lib/cpp
2708 RANLIB="ar -ts"
2710 *-sunos5.6* | *-solaris2.6* )
2711 opsys=sol2-6
2712 NON_GNU_CPP=/usr/ccs/lib/cpp
2713 RANLIB="ar -ts"
2715 *-sunos5* | *-solaris* )
2716 opsys=sol2-6
2717 emacs_check_sunpro_c=yes
2718 NON_GNU_CPP=/usr/ccs/lib/cpp
2720 * ) opsys=bsd4-2 ;;
2721 esac
2722 ## Watch out for a compiler that we know will not work.
2723 case "${canonical}" in
2724 *-solaris* | *-sunos5* )
2725 if [ "x$CC" = x/usr/ucb/cc ]; then
2726 ## /usr/ucb/cc doesn't work;
2727 ## we should find some other compiler that does work.
2728 unset CC
2731 *) ;;
2732 esac
2734 sparc-*-nextstep* )
2735 machine=sparc opsys=nextstep
2738 ## Tandem Integrity S2
2739 mips-tandem-sysv* )
2740 machine=tandem-s2 opsys=usg5-3
2743 ## Vaxen.
2744 vax-dec-* )
2745 machine=vax
2746 case "${canonical}" in
2747 *-bsd4.1* ) opsys=bsd4-1 ;;
2748 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2749 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2750 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2751 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2752 *-vms* ) opsys=vms ;;
2753 * ) unported=yes
2754 esac
2757 ## IA-64
2758 ia64*-*-linux* )
2759 machine=ia64 opsys=gnu-linux
2762 ## Intel 386 machines where we don't care about the manufacturer
2763 i[3456]86-*-* )
2764 machine=intel386
2765 case "${canonical}" in
2766 *-cygwin ) opsys=cygwin ;;
2767 *-darwin* ) opsys=darwin
2768 CPP="${CC-cc} -E -no-cpp-precomp"
2770 *-linux-gnu* ) opsys=gnu-linux ;;
2771 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2772 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2773 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2774 *-386bsd* ) opsys=386bsd ;;
2775 *-nextstep* ) opsys=nextstep ;;
2776 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2777 esac
2780 ## m68k Linux-based GNU system
2781 m68k-*-linux-gnu* )
2782 machine=m68k opsys=gnu-linux
2785 ## Mips Linux-based GNU system
2786 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2787 machine=mips opsys=gnu-linux
2790 ## UXP/DS
2791 sparc-fujitsu-sysv4* )
2792 machine=sparc opsys=uxpds
2793 NON_GNU_CPP=/usr/ccs/lib/cpp
2794 RANLIB="ar -ts"
2797 ## AMD x86-64 Linux-based GNU system
2798 x86_64-*-linux-gnu* )
2799 machine=amdx86-64 opsys=gnu-linux
2802 ## Tensilica Xtensa Linux-based GNU system
2803 xtensa*-*-linux-gnu* )
2804 machine=xtensa opsys=gnu-linux
2808 unported=yes
2810 esac
2812 ### If the code above didn't choose an operating system, just choose
2813 ### an operating system based on the configuration name. You really
2814 ### only want to use this when you have no idea what the right
2815 ### operating system is; if you know what operating systems a machine
2816 ### runs, it's cleaner to make it explicit in the case statement
2817 ### above.
2818 if test x"${opsys}" = x; then
2819 case "${canonical}" in
2820 *-gnu* ) opsys=gnu ;;
2821 *-bsd4.[01] ) opsys=bsd4-1 ;;
2822 *-bsd4.2 ) opsys=bsd4-2 ;;
2823 *-bsd4.3 ) opsys=bsd4-3 ;;
2824 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2825 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2826 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2827 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2828 *-sysv4.2uw* ) opsys=unixware ;;
2829 *-sysv5uw* ) opsys=unixware ;;
2830 *-sysv5OpenUNIX* ) opsys=unixware ;;
2831 *-sysv4.1* | *-sysvr4.1* )
2832 NON_GNU_CPP=/usr/lib/cpp
2833 opsys=usg5-4 ;;
2834 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2835 if [ x$NON_GNU_CPP = x ]; then
2836 if [ -f /usr/ccs/lib/cpp ]; then
2837 NON_GNU_CPP=/usr/ccs/lib/cpp
2838 else
2839 NON_GNU_CPP=/lib/cpp
2842 opsys=usg5-4-2 ;;
2843 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2845 unported=yes
2847 esac
2850 ### Tests for sytems that we beleive are obsolete and should be desupported.
2852 case "${machine}" in
2853 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
2854 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2855 echo "and it is planned to be desupported in the next version of Emacs"
2856 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2857 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2858 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2859 exit 33
2861 esac
2863 case "${opsys}" in
2864 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | hpux10-20 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv )
2865 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2866 echo "and it is planned to be desupported in the next version of Emacs"
2867 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2868 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2869 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2870 exit 44
2872 esac
2876 if test $unported = yes; then
2877 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2878 Check \`etc/MACHINES' for recognized configuration names." >&5
2879 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2880 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2881 { (exit 1); exit 1; }; }
2884 machfile="m/${machine}.h"
2885 opsysfile="s/${opsys}.h"
2888 #### Choose a compiler.
2889 test -n "$CC" && cc_specified=yes
2891 # Save the value of CFLAGS that the user specified.
2892 SPECIFIED_CFLAGS="$CFLAGS"
2894 ac_ext=c
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2904 if test "${ac_cv_prog_CC+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 else
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2921 done
2922 done
2923 IFS=$as_save_IFS
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { echo "$as_me:$LINENO: result: $CC" >&5
2930 echo "${ECHO_T}$CC" >&6; }
2931 else
2932 { echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6; }
2938 if test -z "$ac_cv_prog_CC"; then
2939 ac_ct_CC=$CC
2940 # Extract the first word of "gcc", so it can be a program name with args.
2941 set dummy gcc; ac_word=$2
2942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947 if test -n "$ac_ct_CC"; then
2948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957 ac_cv_prog_ac_ct_CC="gcc"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2961 done
2962 done
2963 IFS=$as_save_IFS
2967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2968 if test -n "$ac_ct_CC"; then
2969 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2970 echo "${ECHO_T}$ac_ct_CC" >&6; }
2971 else
2972 { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2976 if test "x$ac_ct_CC" = x; then
2977 CC=""
2978 else
2979 case $cross_compiling:$ac_tool_warned in
2980 yes:)
2981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2982 whose name does not start with the host triplet. If you think this
2983 configuration is useful to you, please write to autoconf@gnu.org." >&5
2984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2985 whose name does not start with the host triplet. If you think this
2986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2987 ac_tool_warned=yes ;;
2988 esac
2989 CC=$ac_ct_CC
2991 else
2992 CC="$ac_cv_prog_CC"
2995 if test -z "$CC"; then
2996 if test -n "$ac_tool_prefix"; then
2997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2998 set dummy ${ac_tool_prefix}cc; ac_word=$2
2999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3001 if test "${ac_cv_prog_CC+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_CC="${ac_tool_prefix}cc"
3015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3018 done
3019 done
3020 IFS=$as_save_IFS
3024 CC=$ac_cv_prog_CC
3025 if test -n "$CC"; then
3026 { echo "$as_me:$LINENO: result: $CC" >&5
3027 echo "${ECHO_T}$CC" >&6; }
3028 else
3029 { echo "$as_me:$LINENO: result: no" >&5
3030 echo "${ECHO_T}no" >&6; }
3036 if test -z "$CC"; then
3037 # Extract the first word of "cc", so it can be a program name with args.
3038 set dummy cc; ac_word=$2
3039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 ac_prog_rejected=no
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3056 ac_prog_rejected=yes
3057 continue
3059 ac_cv_prog_CC="cc"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3063 done
3064 done
3065 IFS=$as_save_IFS
3067 if test $ac_prog_rejected = yes; then
3068 # We found a bogon in the path, so make sure we never use it.
3069 set dummy $ac_cv_prog_CC
3070 shift
3071 if test $# != 0; then
3072 # We chose a different compiler from the bogus one.
3073 # However, it has the same basename, so the bogon will be chosen
3074 # first if we set CC to just the basename; use the full file name.
3075 shift
3076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083 { echo "$as_me:$LINENO: result: $CC" >&5
3084 echo "${ECHO_T}$CC" >&6; }
3085 else
3086 { echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6; }
3092 if test -z "$CC"; then
3093 if test -n "$ac_tool_prefix"; then
3094 for ac_prog in cl.exe
3096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3117 done
3118 done
3119 IFS=$as_save_IFS
3123 CC=$ac_cv_prog_CC
3124 if test -n "$CC"; then
3125 { echo "$as_me:$LINENO: result: $CC" >&5
3126 echo "${ECHO_T}$CC" >&6; }
3127 else
3128 { echo "$as_me:$LINENO: result: no" >&5
3129 echo "${ECHO_T}no" >&6; }
3133 test -n "$CC" && break
3134 done
3136 if test -z "$CC"; then
3137 ac_ct_CC=$CC
3138 for ac_prog in cl.exe
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 ac_cv_prog_ac_ct_CC="$ac_prog"
3158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3163 IFS=$as_save_IFS
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3170 echo "${ECHO_T}$ac_ct_CC" >&6; }
3171 else
3172 { echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6; }
3177 test -n "$ac_ct_CC" && break
3178 done
3180 if test "x$ac_ct_CC" = x; then
3181 CC=""
3182 else
3183 case $cross_compiling:$ac_tool_warned in
3184 yes:)
3185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3186 whose name does not start with the host triplet. If you think this
3187 configuration is useful to you, please write to autoconf@gnu.org." >&5
3188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3189 whose name does not start with the host triplet. If you think this
3190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3191 ac_tool_warned=yes ;;
3192 esac
3193 CC=$ac_ct_CC
3200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3201 See \`config.log' for more details." >&5
3202 echo "$as_me: error: no acceptable C compiler found in \$PATH
3203 See \`config.log' for more details." >&2;}
3204 { (exit 1); exit 1; }; }
3206 # Provide some information about the compiler.
3207 echo "$as_me:$LINENO: checking for C compiler version" >&5
3208 ac_compiler=`set X $ac_compile; echo $2`
3209 { (ac_try="$ac_compiler --version >&5"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_compiler --version >&5") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }
3219 { (ac_try="$ac_compiler -v >&5"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_compiler -v >&5") 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }
3229 { (ac_try="$ac_compiler -V >&5"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compiler -V >&5") 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3248 main ()
3252 return 0;
3254 _ACEOF
3255 ac_clean_files_save=$ac_clean_files
3256 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3257 # Try to create an executable without -o first, disregard a.out.
3258 # It will help us diagnose broken compilers, and finding out an intuition
3259 # of exeext.
3260 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3261 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3262 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3264 # List of possible output files, starting from the most likely.
3265 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3266 # only as a last resort. b.out is created by i960 compilers.
3267 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3269 # The IRIX 6 linker writes into existing files which may not be
3270 # executable, retaining their permissions. Remove them first so a
3271 # subsequent execution test works.
3272 ac_rmfiles=
3273 for ac_file in $ac_files
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3278 esac
3279 done
3280 rm -f $ac_rmfiles
3282 if { (ac_try="$ac_link_default"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_link_default") 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; then
3292 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3293 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3294 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3295 # so that the user can short-circuit this test for compilers unknown to
3296 # Autoconf.
3297 for ac_file in $ac_files ''
3299 test -f "$ac_file" || continue
3300 case $ac_file in
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3303 [ab].out )
3304 # We found the default executable, but exeext='' is most
3305 # certainly right.
3306 break;;
3307 *.* )
3308 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3309 then :; else
3310 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312 # We set ac_cv_exeext here because the later test for it is not
3313 # safe: cross compilers may not add the suffix if given an `-o'
3314 # argument, so we may need to know it at that point already.
3315 # Even if this section looks crufty: it has the advantage of
3316 # actually working.
3317 break;;
3319 break;;
3320 esac
3321 done
3322 test "$ac_cv_exeext" = no && ac_cv_exeext=
3324 else
3325 ac_file=''
3328 { echo "$as_me:$LINENO: result: $ac_file" >&5
3329 echo "${ECHO_T}$ac_file" >&6; }
3330 if test -z "$ac_file"; then
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3334 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3335 See \`config.log' for more details." >&5
3336 echo "$as_me: error: C compiler cannot create executables
3337 See \`config.log' for more details." >&2;}
3338 { (exit 77); exit 77; }; }
3341 ac_exeext=$ac_cv_exeext
3343 # Check that the compiler produces executables we can run. If not, either
3344 # the compiler is broken, or we cross compile.
3345 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3346 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3347 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3348 # If not cross compiling, check that we can run a simple program.
3349 if test "$cross_compiling" != yes; then
3350 if { ac_try='./$ac_file'
3351 { (case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_try") 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 cross_compiling=no
3361 else
3362 if test "$cross_compiling" = maybe; then
3363 cross_compiling=yes
3364 else
3365 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3366 If you meant to cross compile, use \`--host'.
3367 See \`config.log' for more details." >&5
3368 echo "$as_me: error: cannot run C compiled programs.
3369 If you meant to cross compile, use \`--host'.
3370 See \`config.log' for more details." >&2;}
3371 { (exit 1); exit 1; }; }
3375 { echo "$as_me:$LINENO: result: yes" >&5
3376 echo "${ECHO_T}yes" >&6; }
3378 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3379 ac_clean_files=$ac_clean_files_save
3380 # Check that the compiler produces executables we can run. If not, either
3381 # the compiler is broken, or we cross compile.
3382 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3383 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3384 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3385 echo "${ECHO_T}$cross_compiling" >&6; }
3387 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3388 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3389 if { (ac_try="$ac_link"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_link") 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; then
3399 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3400 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3401 # work properly (i.e., refer to `conftest.exe'), while it won't with
3402 # `rm'.
3403 for ac_file in conftest.exe conftest conftest.*; do
3404 test -f "$ac_file" || continue
3405 case $ac_file in
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3407 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408 break;;
3409 * ) break;;
3410 esac
3411 done
3412 else
3413 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3414 See \`config.log' for more details." >&5
3415 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3416 See \`config.log' for more details." >&2;}
3417 { (exit 1); exit 1; }; }
3420 rm -f conftest$ac_cv_exeext
3421 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3422 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3424 rm -f conftest.$ac_ext
3425 EXEEXT=$ac_cv_exeext
3426 ac_exeext=$EXEEXT
3427 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3428 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3429 if test "${ac_cv_objext+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3440 main ()
3444 return 0;
3446 _ACEOF
3447 rm -f conftest.o conftest.obj
3448 if { (ac_try="$ac_compile"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_compile") 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; then
3458 for ac_file in conftest.o conftest.obj conftest.*; do
3459 test -f "$ac_file" || continue;
3460 case $ac_file in
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3463 break;;
3464 esac
3465 done
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3471 See \`config.log' for more details." >&5
3472 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3473 See \`config.log' for more details." >&2;}
3474 { (exit 1); exit 1; }; }
3477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3479 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3480 echo "${ECHO_T}$ac_cv_objext" >&6; }
3481 OBJEXT=$ac_cv_objext
3482 ac_objext=$OBJEXT
3483 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3484 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3485 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3496 main ()
3498 #ifndef __GNUC__
3499 choke me
3500 #endif
3503 return 0;
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (ac_try="$ac_compile"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_compile") 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } && {
3520 test -z "$ac_c_werror_flag" ||
3521 test ! -s conftest.err
3522 } && test -s conftest.$ac_objext; then
3523 ac_compiler_gnu=yes
3524 else
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 ac_compiler_gnu=no
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3535 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3537 GCC=`test $ac_compiler_gnu = yes && echo yes`
3538 ac_test_CFLAGS=${CFLAGS+set}
3539 ac_save_CFLAGS=$CFLAGS
3540 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3541 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3542 if test "${ac_cv_prog_cc_g+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 ac_save_c_werror_flag=$ac_c_werror_flag
3546 ac_c_werror_flag=yes
3547 ac_cv_prog_cc_g=no
3548 CFLAGS="-g"
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3557 main ()
3561 return 0;
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (ac_try="$ac_compile"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
3581 ac_cv_prog_cc_g=yes
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 CFLAGS=""
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h. */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3595 main ()
3599 return 0;
3601 _ACEOF
3602 rm -f conftest.$ac_objext
3603 if { (ac_try="$ac_compile"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_compile") 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } && {
3616 test -z "$ac_c_werror_flag" ||
3617 test ! -s conftest.err
3618 } && test -s conftest.$ac_objext; then
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3625 CFLAGS="-g"
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3634 main ()
3638 return 0;
3640 _ACEOF
3641 rm -f conftest.$ac_objext
3642 if { (ac_try="$ac_compile"
3643 case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646 esac
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_compile") 2>conftest.er1
3649 ac_status=$?
3650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } && {
3655 test -z "$ac_c_werror_flag" ||
3656 test ! -s conftest.err
3657 } && test -s conftest.$ac_objext; then
3658 ac_cv_prog_cc_g=yes
3659 else
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 ac_c_werror_flag=$ac_save_c_werror_flag
3675 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3676 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3677 if test "$ac_test_CFLAGS" = set; then
3678 CFLAGS=$ac_save_CFLAGS
3679 elif test $ac_cv_prog_cc_g = yes; then
3680 if test "$GCC" = yes; then
3681 CFLAGS="-g -O2"
3682 else
3683 CFLAGS="-g"
3685 else
3686 if test "$GCC" = yes; then
3687 CFLAGS="-O2"
3688 else
3689 CFLAGS=
3692 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3693 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3694 if test "${ac_cv_prog_cc_c89+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 ac_cv_prog_cc_c89=no
3698 ac_save_CC=$CC
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #include <stdarg.h>
3706 #include <stdio.h>
3707 #include <sys/types.h>
3708 #include <sys/stat.h>
3709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3710 struct buf { int x; };
3711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3712 static char *e (p, i)
3713 char **p;
3714 int i;
3716 return p[i];
3718 static char *f (char * (*g) (char **, int), char **p, ...)
3720 char *s;
3721 va_list v;
3722 va_start (v,p);
3723 s = g (p, va_arg (v,int));
3724 va_end (v);
3725 return s;
3728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3729 function prototypes and stuff, but not '\xHH' hex character constants.
3730 These don't provoke an error unfortunately, instead are silently treated
3731 as 'x'. The following induces an error, until -std is added to get
3732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3733 array size at least. It's necessary to write '\x00'==0 to get something
3734 that's true only with -std. */
3735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3737 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3738 inside strings and character constants. */
3739 #define FOO(x) 'x'
3740 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3742 int test (int i, double x);
3743 struct s1 {int (*f) (int a);};
3744 struct s2 {int (*f) (double a);};
3745 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3746 int argc;
3747 char **argv;
3749 main ()
3751 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3753 return 0;
3755 _ACEOF
3756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3757 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3759 CC="$ac_save_CC $ac_arg"
3760 rm -f conftest.$ac_objext
3761 if { (ac_try="$ac_compile"
3762 case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compile") 2>conftest.er1
3768 ac_status=$?
3769 grep -v '^ *+' conftest.er1 >conftest.err
3770 rm -f conftest.er1
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } && {
3774 test -z "$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 } && test -s conftest.$ac_objext; then
3777 ac_cv_prog_cc_c89=$ac_arg
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3785 rm -f core conftest.err conftest.$ac_objext
3786 test "x$ac_cv_prog_cc_c89" != "xno" && break
3787 done
3788 rm -f conftest.$ac_ext
3789 CC=$ac_save_CC
3792 # AC_CACHE_VAL
3793 case "x$ac_cv_prog_cc_c89" in
3795 { echo "$as_me:$LINENO: result: none needed" >&5
3796 echo "${ECHO_T}none needed" >&6; } ;;
3797 xno)
3798 { echo "$as_me:$LINENO: result: unsupported" >&5
3799 echo "${ECHO_T}unsupported" >&6; } ;;
3801 CC="$CC $ac_cv_prog_cc_c89"
3802 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3803 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3804 esac
3807 ac_ext=c
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 # On Suns, sometimes $CPP names a directory.
3815 if test -n "$CPP" && test -d "$CPP"; then
3816 CPP=
3819 ## If not using gcc, and on Solaris, and no CPP specified, see if
3820 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3821 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3822 test x"$CPP" = x; then
3823 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3824 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3826 if test "${emacs_cv_sunpro_c+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h. */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3837 main ()
3839 #ifndef __SUNPRO_C
3840 fail;
3841 #endif
3844 return 0;
3846 _ACEOF
3847 rm -f conftest.$ac_objext conftest$ac_exeext
3848 if { (ac_try="$ac_link"
3849 case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3852 esac
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854 (eval "$ac_link") 2>conftest.er1
3855 ac_status=$?
3856 grep -v '^ *+' conftest.er1 >conftest.err
3857 rm -f conftest.er1
3858 cat conftest.err >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && {
3861 test -z "$ac_c_werror_flag" ||
3862 test ! -s conftest.err
3863 } && test -s conftest$ac_exeext &&
3864 $as_test_x conftest$ac_exeext; then
3865 emacs_cv_sunpro_c=yes
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 emacs_cv_sunpro_c=no
3873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3874 conftest$ac_exeext conftest.$ac_ext
3877 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3878 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3880 if test x"$emacs_cv_sunpro_c" = xyes; then
3881 NON_GNU_CPP="$CC -E -Xs"
3885 #### Some systems specify a CPP to use unless we are using GCC.
3886 #### Now that we know whether we are using GCC, we can decide whether
3887 #### to use that one.
3888 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3889 then
3890 CPP="$NON_GNU_CPP"
3893 #### Some systems specify a CC to use unless we are using GCC.
3894 #### Now that we know whether we are using GCC, we can decide whether
3895 #### to use that one.
3896 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3897 test x$cc_specified != xyes
3898 then
3899 CC="$NON_GNU_CC"
3902 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3903 then
3904 CC="$CC $GCC_TEST_OPTIONS"
3907 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3908 then
3909 CC="$CC $NON_GCC_TEST_OPTIONS"
3913 cat >>confdefs.h <<\_ACEOF
3914 #define _GNU_SOURCE 1
3915 _ACEOF
3918 ac_ext=c
3919 ac_cpp='$CPP $CPPFLAGS'
3920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3925 # On Suns, sometimes $CPP names a directory.
3926 if test -n "$CPP" && test -d "$CPP"; then
3927 CPP=
3929 if test -z "$CPP"; then
3930 if test "${ac_cv_prog_CPP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933 # Double quotes because CPP needs to be expanded
3934 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3936 ac_preproc_ok=false
3937 for ac_c_preproc_warn_flag in '' yes
3939 # Use a header file that comes with gcc, so configuring glibc
3940 # with a fresh cross-compiler works.
3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 # <limits.h> exists even on freestanding compilers.
3943 # On the NeXT, cc -E runs the code through the compiler's parser,
3944 # not just through cpp. "Syntax error" is here to catch this case.
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #ifdef __STDC__
3952 # include <limits.h>
3953 #else
3954 # include <assert.h>
3955 #endif
3956 Syntax error
3957 _ACEOF
3958 if { (ac_try="$ac_cpp conftest.$ac_ext"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev/null && {
3971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3972 test ! -s conftest.err
3973 }; then
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 # Broken: fails on valid input.
3980 continue
3983 rm -f conftest.err conftest.$ac_ext
3985 # OK, works on sane cases. Now check whether nonexistent headers
3986 # can be detected and how.
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3994 _ACEOF
3995 if { (ac_try="$ac_cpp conftest.$ac_ext"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } >/dev/null && {
4008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 }; then
4011 # Broken: success on invalid input.
4012 continue
4013 else
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 # Passes both tests.
4018 ac_preproc_ok=:
4019 break
4022 rm -f conftest.err conftest.$ac_ext
4024 done
4025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4026 rm -f conftest.err conftest.$ac_ext
4027 if $ac_preproc_ok; then
4028 break
4031 done
4032 ac_cv_prog_CPP=$CPP
4035 CPP=$ac_cv_prog_CPP
4036 else
4037 ac_cv_prog_CPP=$CPP
4039 { echo "$as_me:$LINENO: result: $CPP" >&5
4040 echo "${ECHO_T}$CPP" >&6; }
4041 ac_preproc_ok=false
4042 for ac_c_preproc_warn_flag in '' yes
4044 # Use a header file that comes with gcc, so configuring glibc
4045 # with a fresh cross-compiler works.
4046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4047 # <limits.h> exists even on freestanding compilers.
4048 # On the NeXT, cc -E runs the code through the compiler's parser,
4049 # not just through cpp. "Syntax error" is here to catch this case.
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 #ifdef __STDC__
4057 # include <limits.h>
4058 #else
4059 # include <assert.h>
4060 #endif
4061 Syntax error
4062 _ACEOF
4063 if { (ac_try="$ac_cpp conftest.$ac_ext"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } >/dev/null && {
4076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4077 test ! -s conftest.err
4078 }; then
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 # Broken: fails on valid input.
4085 continue
4088 rm -f conftest.err conftest.$ac_ext
4090 # OK, works on sane cases. Now check whether nonexistent headers
4091 # can be detected and how.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <ac_nonexistent.h>
4099 _ACEOF
4100 if { (ac_try="$ac_cpp conftest.$ac_ext"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } >/dev/null && {
4113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4115 }; then
4116 # Broken: success on invalid input.
4117 continue
4118 else
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 # Passes both tests.
4123 ac_preproc_ok=:
4124 break
4127 rm -f conftest.err conftest.$ac_ext
4129 done
4130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4131 rm -f conftest.err conftest.$ac_ext
4132 if $ac_preproc_ok; then
4134 else
4135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4136 See \`config.log' for more details." >&5
4137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4138 See \`config.log' for more details." >&2;}
4139 { (exit 1); exit 1; }; }
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4150 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4151 if test "${ac_cv_path_GREP+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 # Extract the first word of "grep ggrep" to use in msg output
4155 if test -z "$GREP"; then
4156 set dummy grep ggrep; ac_prog_name=$2
4157 if test "${ac_cv_path_GREP+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 ac_path_GREP_found=false
4161 # Loop through the user's path and test for each of PROGNAME-LIST
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_prog in grep ggrep; do
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4170 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4171 # Check for GNU ac_path_GREP and select it if it is found.
4172 # Check for GNU $ac_path_GREP
4173 case `"$ac_path_GREP" --version 2>&1` in
4174 *GNU*)
4175 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4177 ac_count=0
4178 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4179 while :
4181 cat "conftest.in" "conftest.in" >"conftest.tmp"
4182 mv "conftest.tmp" "conftest.in"
4183 cp "conftest.in" "conftest.nl"
4184 echo 'GREP' >> "conftest.nl"
4185 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187 ac_count=`expr $ac_count + 1`
4188 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4189 # Best one so far, save it but keep looking for a better one
4190 ac_cv_path_GREP="$ac_path_GREP"
4191 ac_path_GREP_max=$ac_count
4193 # 10*(2^10) chars as input seems more than enough
4194 test $ac_count -gt 10 && break
4195 done
4196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197 esac
4200 $ac_path_GREP_found && break 3
4201 done
4202 done
4204 done
4205 IFS=$as_save_IFS
4210 GREP="$ac_cv_path_GREP"
4211 if test -z "$GREP"; then
4212 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4213 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4214 { (exit 1); exit 1; }; }
4217 else
4218 ac_cv_path_GREP=$GREP
4223 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4224 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4225 GREP="$ac_cv_path_GREP"
4228 { echo "$as_me:$LINENO: checking for egrep" >&5
4229 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4230 if test "${ac_cv_path_EGREP+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4234 then ac_cv_path_EGREP="$GREP -E"
4235 else
4236 # Extract the first word of "egrep" to use in msg output
4237 if test -z "$EGREP"; then
4238 set dummy egrep; ac_prog_name=$2
4239 if test "${ac_cv_path_EGREP+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 ac_path_EGREP_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in egrep; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4252 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4253 # Check for GNU ac_path_EGREP and select it if it is found.
4254 # Check for GNU $ac_path_EGREP
4255 case `"$ac_path_EGREP" --version 2>&1` in
4256 *GNU*)
4257 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4259 ac_count=0
4260 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4261 while :
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 echo 'EGREP' >> "conftest.nl"
4267 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 ac_count=`expr $ac_count + 1`
4270 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_EGREP="$ac_path_EGREP"
4273 ac_path_EGREP_max=$ac_count
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4282 $ac_path_EGREP_found && break 3
4283 done
4284 done
4286 done
4287 IFS=$as_save_IFS
4292 EGREP="$ac_cv_path_EGREP"
4293 if test -z "$EGREP"; then
4294 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4295 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4296 { (exit 1); exit 1; }; }
4299 else
4300 ac_cv_path_EGREP=$EGREP
4306 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4307 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4308 EGREP="$ac_cv_path_EGREP"
4312 { echo "$as_me:$LINENO: checking for AIX" >&5
4313 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #ifdef _AIX
4322 #endif
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "yes" >/dev/null 2>&1; then
4327 { echo "$as_me:$LINENO: result: yes" >&5
4328 echo "${ECHO_T}yes" >&6; }
4329 cat >>confdefs.h <<\_ACEOF
4330 #define _ALL_SOURCE 1
4331 _ACEOF
4333 else
4334 { echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6; }
4337 rm -f conftest*
4340 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4341 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4342 if test "${ac_cv_header_stdc+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h. */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 #include <stdlib.h>
4352 #include <stdarg.h>
4353 #include <string.h>
4354 #include <float.h>
4357 main ()
4361 return 0;
4363 _ACEOF
4364 rm -f conftest.$ac_objext
4365 if { (ac_try="$ac_compile"
4366 case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_compile") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && {
4378 test -z "$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 } && test -s conftest.$ac_objext; then
4381 ac_cv_header_stdc=yes
4382 else
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_cv_header_stdc=no
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h. */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 #include <string.h>
4401 _ACEOF
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev/null 2>&1; then
4405 else
4406 ac_cv_header_stdc=no
4408 rm -f conftest*
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #include <stdlib.h>
4422 _ACEOF
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev/null 2>&1; then
4426 else
4427 ac_cv_header_stdc=no
4429 rm -f conftest*
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4437 else
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <ctype.h>
4445 #include <stdlib.h>
4446 #if ((' ' & 0x0FF) == 0x020)
4447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4449 #else
4450 # define ISLOWER(c) \
4451 (('a' <= (c) && (c) <= 'i') \
4452 || ('j' <= (c) && (c) <= 'r') \
4453 || ('s' <= (c) && (c) <= 'z'))
4454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4455 #endif
4457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4459 main ()
4461 int i;
4462 for (i = 0; i < 256; i++)
4463 if (XOR (islower (i), ISLOWER (i))
4464 || toupper (i) != TOUPPER (i))
4465 return 2;
4466 return 0;
4468 _ACEOF
4469 rm -f conftest$ac_exeext
4470 if { (ac_try="$ac_link"
4471 case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_link") 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483 esac
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4490 else
4491 echo "$as_me: program exited with status $ac_status" >&5
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 ( exit $ac_status )
4496 ac_cv_header_stdc=no
4498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4504 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h <<\_ACEOF
4509 #define STDC_HEADERS 1
4510 _ACEOF
4514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4525 inttypes.h stdint.h unistd.h
4527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4541 #include <$ac_header>
4542 _ACEOF
4543 rm -f conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4545 case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_compile") 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && {
4557 test -z "$ac_c_werror_flag" ||
4558 test ! -s conftest.err
4559 } && test -s conftest.$ac_objext; then
4560 eval "$as_ac_Header=yes"
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 eval "$as_ac_Header=no"
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_res=`eval echo '${'$as_ac_Header'}'`
4571 { echo "$as_me:$LINENO: result: $ac_res" >&5
4572 echo "${ECHO_T}$ac_res" >&6; }
4573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4574 cat >>confdefs.h <<_ACEOF
4575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4576 _ACEOF
4580 done
4583 if test "${ac_cv_header_minix_config_h+set}" = set; then
4584 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4585 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4586 if test "${ac_cv_header_minix_config_h+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4590 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4591 else
4592 # Is the header compilable?
4593 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4594 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 $ac_includes_default
4602 #include <minix/config.h>
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_compile") 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } && {
4618 test -z "$ac_c_werror_flag" ||
4619 test ! -s conftest.err
4620 } && test -s conftest.$ac_objext; then
4621 ac_header_compiler=yes
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 ac_header_compiler=no
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4631 echo "${ECHO_T}$ac_header_compiler" >&6; }
4633 # Is the header present?
4634 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4635 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4636 cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h. */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 #include <minix/config.h>
4643 _ACEOF
4644 if { (ac_try="$ac_cpp conftest.$ac_ext"
4645 case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648 esac
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4651 ac_status=$?
4652 grep -v '^ *+' conftest.er1 >conftest.err
4653 rm -f conftest.er1
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } >/dev/null && {
4657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4658 test ! -s conftest.err
4659 }; then
4660 ac_header_preproc=yes
4661 else
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 ac_header_preproc=no
4668 rm -f conftest.err conftest.$ac_ext
4669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4670 echo "${ECHO_T}$ac_header_preproc" >&6; }
4672 # So? What about this header?
4673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4674 yes:no: )
4675 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4676 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4678 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4679 ac_header_preproc=yes
4681 no:yes:* )
4682 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4683 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4685 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4687 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4689 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4691 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4693 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4696 esac
4697 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4698 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4699 if test "${ac_cv_header_minix_config_h+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 ac_cv_header_minix_config_h=$ac_header_preproc
4704 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4705 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4708 if test $ac_cv_header_minix_config_h = yes; then
4709 MINIX=yes
4710 else
4711 MINIX=
4715 if test "$MINIX" = yes; then
4717 cat >>confdefs.h <<\_ACEOF
4718 #define _POSIX_SOURCE 1
4719 _ACEOF
4722 cat >>confdefs.h <<\_ACEOF
4723 #define _POSIX_1_SOURCE 2
4724 _ACEOF
4727 cat >>confdefs.h <<\_ACEOF
4728 #define _MINIX 1
4729 _ACEOF
4743 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4744 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4745 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4755 # define __EXTENSIONS__ 1
4756 $ac_includes_default
4758 main ()
4762 return 0;
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (ac_try="$ac_compile"
4767 case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_compile") 2>conftest.er1
4773 ac_status=$?
4774 grep -v '^ *+' conftest.er1 >conftest.err
4775 rm -f conftest.er1
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } && {
4779 test -z "$ac_c_werror_flag" ||
4780 test ! -s conftest.err
4781 } && test -s conftest.$ac_objext; then
4782 ac_cv_safe_to_define___extensions__=yes
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 ac_cv_safe_to_define___extensions__=no
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4793 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4794 test $ac_cv_safe_to_define___extensions__ = yes &&
4795 cat >>confdefs.h <<\_ACEOF
4796 #define __EXTENSIONS__ 1
4797 _ACEOF
4799 cat >>confdefs.h <<\_ACEOF
4800 #define _POSIX_PTHREAD_SEMANTICS 1
4801 _ACEOF
4803 cat >>confdefs.h <<\_ACEOF
4804 #define _TANDEM_SOURCE 1
4805 _ACEOF
4809 ### Use -Wno-pointer-sign if the compiler supports it
4810 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4811 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4812 SAVE_CFLAGS="$CFLAGS"
4813 CFLAGS="$CFLAGS -Wno-pointer-sign"
4814 cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h. */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4822 main ()
4826 return 0;
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_compile") 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } && {
4843 test -z "$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 } && test -s conftest.$ac_objext; then
4846 has_option=yes
4847 else
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4851 has_option=no
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 if test $has_option = yes; then
4856 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4858 { echo "$as_me:$LINENO: result: $has_option" >&5
4859 echo "${ECHO_T}$has_option" >&6; }
4860 CFLAGS="$SAVE_CFLAGS"
4861 unset has_option
4862 unset SAVE_CFLAGS
4864 #### Some other nice autoconf tests.
4866 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4867 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4868 LN_S=$as_ln_s
4869 if test "$LN_S" = "ln -s"; then
4870 { echo "$as_me:$LINENO: result: yes" >&5
4871 echo "${ECHO_T}yes" >&6; }
4872 else
4873 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4874 echo "${ECHO_T}no, using $LN_S" >&6; }
4877 ac_ext=c
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4883 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4884 # On Suns, sometimes $CPP names a directory.
4885 if test -n "$CPP" && test -d "$CPP"; then
4886 CPP=
4888 if test -z "$CPP"; then
4889 if test "${ac_cv_prog_CPP+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892 # Double quotes because CPP needs to be expanded
4893 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4895 ac_preproc_ok=false
4896 for ac_c_preproc_warn_flag in '' yes
4898 # Use a header file that comes with gcc, so configuring glibc
4899 # with a fresh cross-compiler works.
4900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901 # <limits.h> exists even on freestanding compilers.
4902 # On the NeXT, cc -E runs the code through the compiler's parser,
4903 # not just through cpp. "Syntax error" is here to catch this case.
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 #ifdef __STDC__
4911 # include <limits.h>
4912 #else
4913 # include <assert.h>
4914 #endif
4915 Syntax error
4916 _ACEOF
4917 if { (ac_try="$ac_cpp conftest.$ac_ext"
4918 case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } >/dev/null && {
4930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4931 test ! -s conftest.err
4932 }; then
4934 else
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 # Broken: fails on valid input.
4939 continue
4942 rm -f conftest.err conftest.$ac_ext
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #include <ac_nonexistent.h>
4953 _ACEOF
4954 if { (ac_try="$ac_cpp conftest.$ac_ext"
4955 case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null && {
4967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4969 }; then
4970 # Broken: success on invalid input.
4971 continue
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 # Passes both tests.
4977 ac_preproc_ok=:
4978 break
4981 rm -f conftest.err conftest.$ac_ext
4983 done
4984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985 rm -f conftest.err conftest.$ac_ext
4986 if $ac_preproc_ok; then
4987 break
4990 done
4991 ac_cv_prog_CPP=$CPP
4994 CPP=$ac_cv_prog_CPP
4995 else
4996 ac_cv_prog_CPP=$CPP
4998 { echo "$as_me:$LINENO: result: $CPP" >&5
4999 echo "${ECHO_T}$CPP" >&6; }
5000 ac_preproc_ok=false
5001 for ac_c_preproc_warn_flag in '' yes
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 #ifdef __STDC__
5016 # include <limits.h>
5017 #else
5018 # include <assert.h>
5019 #endif
5020 Syntax error
5021 _ACEOF
5022 if { (ac_try="$ac_cpp conftest.$ac_ext"
5023 case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5029 ac_status=$?
5030 grep -v '^ *+' conftest.er1 >conftest.err
5031 rm -f conftest.er1
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null && {
5035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5036 test ! -s conftest.err
5037 }; then
5039 else
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 # Broken: fails on valid input.
5044 continue
5047 rm -f conftest.err conftest.$ac_ext
5049 # OK, works on sane cases. Now check whether nonexistent headers
5050 # can be detected and how.
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <ac_nonexistent.h>
5058 _ACEOF
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null && {
5072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5073 test ! -s conftest.err
5074 }; then
5075 # Broken: success on invalid input.
5076 continue
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 # Passes both tests.
5082 ac_preproc_ok=:
5083 break
5086 rm -f conftest.err conftest.$ac_ext
5088 done
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.$ac_ext
5091 if $ac_preproc_ok; then
5093 else
5094 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5095 See \`config.log' for more details." >&5
5096 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5097 See \`config.log' for more details." >&2;}
5098 { (exit 1); exit 1; }; }
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107 # Find a good install program. We prefer a C program (faster),
5108 # so one script is as good as another. But avoid the broken or
5109 # incompatible versions:
5110 # SysV /etc/install, /usr/sbin/install
5111 # SunOS /usr/etc/install
5112 # IRIX /sbin/install
5113 # AIX /bin/install
5114 # AmigaOS /C/install, which installs bootblocks on floppy discs
5115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5118 # OS/2's system install, which has a completely different semantic
5119 # ./install, which can be erroneously created by make from ./install.sh.
5120 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5122 if test -z "$INSTALL"; then
5123 if test "${ac_cv_path_install+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 # Account for people who put trailing slashes in PATH elements.
5132 case $as_dir/ in
5133 ./ | .// | /cC/* | \
5134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5135 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5136 /usr/ucb/* ) ;;
5138 # OSF1 and SCO ODT 3.0 have their own names for install.
5139 # Don't use installbsd from OSF since it installs stuff as root
5140 # by default.
5141 for ac_prog in ginstall scoinst install; do
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5144 if test $ac_prog = install &&
5145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5146 # AIX install. It has an incompatible calling convention.
5148 elif test $ac_prog = install &&
5149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5150 # program-specific install script used by HP pwplus--don't use.
5152 else
5153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5154 break 3
5157 done
5158 done
5160 esac
5161 done
5162 IFS=$as_save_IFS
5166 if test "${ac_cv_path_install+set}" = set; then
5167 INSTALL=$ac_cv_path_install
5168 else
5169 # As a last resort, use the slow shell script. Don't cache a
5170 # value for INSTALL within a source directory, because that will
5171 # break other packages using the cache if that directory is
5172 # removed, or if the value is a relative name.
5173 INSTALL=$ac_install_sh
5176 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5177 echo "${ECHO_T}$INSTALL" >&6; }
5179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5180 # It thinks the first close brace ends the variable substitution.
5181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5187 if test "x$RANLIB" = x; then
5188 if test -n "$ac_tool_prefix"; then
5189 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5190 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5193 if test "${ac_cv_prog_RANLIB+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196 if test -n "$RANLIB"; then
5197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5216 RANLIB=$ac_cv_prog_RANLIB
5217 if test -n "$RANLIB"; then
5218 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5219 echo "${ECHO_T}$RANLIB" >&6; }
5220 else
5221 { echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6; }
5227 if test -z "$ac_cv_prog_RANLIB"; then
5228 ac_ct_RANLIB=$RANLIB
5229 # Extract the first word of "ranlib", so it can be a program name with args.
5230 set dummy ranlib; ac_word=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 if test -n "$ac_ct_RANLIB"; then
5237 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_ac_ct_RANLIB="ranlib"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5252 IFS=$as_save_IFS
5256 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5257 if test -n "$ac_ct_RANLIB"; then
5258 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5259 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5260 else
5261 { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5265 if test "x$ac_ct_RANLIB" = x; then
5266 RANLIB=":"
5267 else
5268 case $cross_compiling:$ac_tool_warned in
5269 yes:)
5270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5271 whose name does not start with the host triplet. If you think this
5272 configuration is useful to you, please write to autoconf@gnu.org." >&5
5273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5274 whose name does not start with the host triplet. If you think this
5275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5276 ac_tool_warned=yes ;;
5277 esac
5278 RANLIB=$ac_ct_RANLIB
5280 else
5281 RANLIB="$ac_cv_prog_RANLIB"
5285 # Extract the first word of "install-info", so it can be a program name with args.
5286 set dummy install-info; ac_word=$2
5287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5289 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292 case $INSTALL_INFO in
5293 [\\/]* | ?:[\\/]*)
5294 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5310 IFS=$as_save_IFS
5313 esac
5315 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5316 if test -n "$INSTALL_INFO"; then
5317 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5318 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5319 else
5320 { echo "$as_me:$LINENO: result: no" >&5
5321 echo "${ECHO_T}no" >&6; }
5325 # Extract the first word of "install-info", so it can be a program name with args.
5326 set dummy install-info; ac_word=$2
5327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5329 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 case $INSTALL_INFO in
5333 [\\/]* | ?:[\\/]*)
5334 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in /usr/sbin
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5353 esac
5355 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5356 if test -n "$INSTALL_INFO"; then
5357 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5358 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5359 else
5360 { echo "$as_me:$LINENO: result: no" >&5
5361 echo "${ECHO_T}no" >&6; }
5365 # Extract the first word of "install-info", so it can be a program name with args.
5366 set dummy install-info; ac_word=$2
5367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5369 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372 case $INSTALL_INFO in
5373 [\\/]* | ?:[\\/]*)
5374 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in /sbin
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5388 done
5389 done
5390 IFS=$as_save_IFS
5392 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5394 esac
5396 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5397 if test -n "$INSTALL_INFO"; then
5398 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5399 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5400 else
5401 { echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6; }
5406 # Extract the first word of "gzip", so it can be a program name with args.
5407 set dummy gzip; ac_word=$2
5408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5410 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 case $GZIP_PROG in
5414 [\\/]* | ?:[\\/]*)
5415 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5429 done
5430 done
5431 IFS=$as_save_IFS
5434 esac
5436 GZIP_PROG=$ac_cv_path_GZIP_PROG
5437 if test -n "$GZIP_PROG"; then
5438 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5439 echo "${ECHO_T}$GZIP_PROG" >&6; }
5440 else
5441 { echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6; }
5448 ## Need makeinfo >= 4.6 (?) to build the manuals.
5449 # Extract the first word of "makeinfo", so it can be a program name with args.
5450 set dummy makeinfo; ac_word=$2
5451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5453 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 case $MAKEINFO in
5457 [\\/]* | ?:[\\/]*)
5458 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5472 done
5473 done
5474 IFS=$as_save_IFS
5476 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5478 esac
5480 MAKEINFO=$ac_cv_path_MAKEINFO
5481 if test -n "$MAKEINFO"; then
5482 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5483 echo "${ECHO_T}$MAKEINFO" >&6; }
5484 else
5485 { echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6; }
5490 if test "$MAKEINFO" != "no" && \
5491 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
5492 MAKEINFO=no
5495 if test "$MAKEINFO" = "no"; then
5496 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5497 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5498 { (exit 1); exit 1; }; }
5503 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5504 then
5505 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5508 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5509 then
5510 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5514 late_LDFLAGS=$LDFLAGS
5515 if test "$GCC" = yes; then
5516 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5517 else
5518 LDFLAGS="$LDFLAGS -znocombreloc"
5521 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5522 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5523 cat >conftest.$ac_ext <<_ACEOF
5524 main(){return 0;}
5525 _ACEOF
5526 rm -f conftest.$ac_objext conftest$ac_exeext
5527 if { (ac_try="$ac_link"
5528 case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_link") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_c_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest$ac_exeext &&
5543 $as_test_x conftest$ac_exeext; then
5544 { echo "$as_me:$LINENO: result: yes" >&5
5545 echo "${ECHO_T}yes" >&6; }
5546 else
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 LDFLAGS=$late_LDFLAGS
5551 { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5556 conftest$ac_exeext conftest.$ac_ext
5558 #### Extract some information from the operating system and machine files.
5560 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5561 - which libraries the lib-src programs will want, and
5562 - whether the GNU malloc routines are usable..." >&5
5563 echo "$as_me: checking the machine- and system-dependent files to find out
5564 - which libraries the lib-src programs will want, and
5565 - whether the GNU malloc routines are usable..." >&6;}
5567 ### First figure out CFLAGS (which we use for running the compiler here)
5568 ### and REAL_CFLAGS (which we use for real compilation).
5569 ### The two are the same except on a few systems, where they are made
5570 ### different to work around various lossages. For example,
5571 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5572 ### as implying static linking.
5574 ### If the CFLAGS env var is specified, we use that value
5575 ### instead of the default.
5577 ### It's not important that this name contain the PID; you can't run
5578 ### two configures in the same directory and have anything work
5579 ### anyway.
5580 tempcname="conftest.c"
5582 echo '
5583 #include "'${srcdir}'/src/'${opsysfile}'"
5584 #include "'${srcdir}'/src/'${machfile}'"
5585 #ifndef LIBS_MACHINE
5586 #define LIBS_MACHINE
5587 #endif
5588 #ifndef LIBS_SYSTEM
5589 #define LIBS_SYSTEM
5590 #endif
5591 #ifndef C_SWITCH_SYSTEM
5592 #define C_SWITCH_SYSTEM
5593 #endif
5594 #ifndef C_SWITCH_MACHINE
5595 #define C_SWITCH_MACHINE
5596 #endif
5597 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5598 configure___ c_switch_system=C_SWITCH_SYSTEM
5599 configure___ c_switch_machine=C_SWITCH_MACHINE
5601 #ifndef LIB_X11_LIB
5602 #define LIB_X11_LIB -lX11
5603 #endif
5605 #ifndef LIBX11_SYSTEM
5606 #define LIBX11_SYSTEM
5607 #endif
5608 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5610 #ifdef UNEXEC
5611 configure___ unexec=UNEXEC
5612 #else
5613 configure___ unexec=unexec.o
5614 #endif
5616 #ifdef SYSTEM_MALLOC
5617 configure___ system_malloc=yes
5618 #else
5619 configure___ system_malloc=no
5620 #endif
5622 #ifdef USE_MMAP_FOR_BUFFERS
5623 configure___ use_mmap_for_buffers=yes
5624 #else
5625 configure___ use_mmap_for_buffers=no
5626 #endif
5628 #ifndef C_DEBUG_SWITCH
5629 #define C_DEBUG_SWITCH -g
5630 #endif
5632 #ifndef C_OPTIMIZE_SWITCH
5633 #ifdef __GNUC__
5634 #define C_OPTIMIZE_SWITCH -O2
5635 #else
5636 #define C_OPTIMIZE_SWITCH -O
5637 #endif
5638 #endif
5640 #ifndef C_WARNINGS_SWITCH
5641 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5642 #endif
5644 #ifndef LD_SWITCH_MACHINE
5645 #define LD_SWITCH_MACHINE
5646 #endif
5648 #ifndef LD_SWITCH_SYSTEM
5649 #define LD_SWITCH_SYSTEM
5650 #endif
5652 #ifndef LD_SWITCH_X_SITE_AUX
5653 #define LD_SWITCH_X_SITE_AUX
5654 #endif
5656 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5657 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5659 #ifdef THIS_IS_CONFIGURE
5661 /* Get the CFLAGS for tests in configure. */
5662 #ifdef __GNUC__
5663 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5664 #else
5665 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5666 #endif
5668 #else /* not THIS_IS_CONFIGURE */
5670 /* Get the CFLAGS for real compilation. */
5671 #ifdef __GNUC__
5672 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5673 #else
5674 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5675 #endif
5677 #endif /* not THIS_IS_CONFIGURE */
5678 ' > ${tempcname}
5680 # The value of CPP is a quoted variable reference, so we need to do this
5681 # to get its actual value...
5682 CPP=`eval "echo $CPP"`
5683 eval `${CPP} -Isrc ${tempcname} \
5684 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5685 if test "x$SPECIFIED_CFLAGS" = x; then
5686 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5687 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5688 else
5689 REAL_CFLAGS="$CFLAGS"
5691 rm ${tempcname}
5693 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5695 ### Make sure subsequent tests use flags consistent with the build flags.
5697 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5698 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5699 else
5700 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5705 # Check whether --enable-largefile was given.
5706 if test "${enable_largefile+set}" = set; then
5707 enableval=$enable_largefile;
5710 if test "$enable_largefile" != no; then
5712 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5713 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5714 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717 ac_cv_sys_largefile_CC=no
5718 if test "$GCC" != yes; then
5719 ac_save_CC=$CC
5720 while :; do
5721 # IRIX 6.2 and later do not support large files by default,
5722 # so use the C compiler's -n32 option if that helps.
5723 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 #include <sys/types.h>
5730 /* Check that off_t can represent 2**63 - 1 correctly.
5731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5732 since some C++ compilers masquerading as C compilers
5733 incorrectly reject 9223372036854775807. */
5734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5736 && LARGE_OFF_T % 2147483647 == 1)
5737 ? 1 : -1];
5739 main ()
5743 return 0;
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5748 case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5763 break
5764 else
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5771 rm -f core conftest.err conftest.$ac_objext
5772 CC="$CC -n32"
5773 rm -f conftest.$ac_objext
5774 if { (ac_try="$ac_compile"
5775 case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compile") 2>conftest.er1
5781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } && {
5787 test -z "$ac_c_werror_flag" ||
5788 test ! -s conftest.err
5789 } && test -s conftest.$ac_objext; then
5790 ac_cv_sys_largefile_CC=' -n32'; break
5791 else
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5798 rm -f core conftest.err conftest.$ac_objext
5799 break
5800 done
5801 CC=$ac_save_CC
5802 rm -f conftest.$ac_ext
5805 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5806 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5807 if test "$ac_cv_sys_largefile_CC" != no; then
5808 CC=$CC$ac_cv_sys_largefile_CC
5811 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5812 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5813 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 while :; do
5817 cat >conftest.$ac_ext <<_ACEOF
5818 /* confdefs.h. */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5823 #include <sys/types.h>
5824 /* Check that off_t can represent 2**63 - 1 correctly.
5825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5826 since some C++ compilers masquerading as C compilers
5827 incorrectly reject 9223372036854775807. */
5828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5830 && LARGE_OFF_T % 2147483647 == 1)
5831 ? 1 : -1];
5833 main ()
5837 return 0;
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5842 case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && {
5854 test -z "$ac_c_werror_flag" ||
5855 test ! -s conftest.err
5856 } && test -s conftest.$ac_objext; then
5857 ac_cv_sys_file_offset_bits=no; break
5858 else
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h. */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #define _FILE_OFFSET_BITS 64
5873 #include <sys/types.h>
5874 /* Check that off_t can represent 2**63 - 1 correctly.
5875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5876 since some C++ compilers masquerading as C compilers
5877 incorrectly reject 9223372036854775807. */
5878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5880 && LARGE_OFF_T % 2147483647 == 1)
5881 ? 1 : -1];
5883 main ()
5887 return 0;
5889 _ACEOF
5890 rm -f conftest.$ac_objext
5891 if { (ac_try="$ac_compile"
5892 case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_compile") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest.$ac_objext; then
5907 ac_cv_sys_file_offset_bits=64; break
5908 else
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.$ac_ext >&5
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 ac_cv_sys_file_offset_bits=unknown
5917 break
5918 done
5920 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5921 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5922 case $ac_cv_sys_file_offset_bits in #(
5923 no | unknown) ;;
5925 cat >>confdefs.h <<_ACEOF
5926 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5927 _ACEOF
5929 esac
5930 rm -f conftest*
5931 if test $ac_cv_sys_file_offset_bits = unknown; then
5932 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5933 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5934 if test "${ac_cv_sys_large_files+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937 while :; do
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #include <sys/types.h>
5945 /* Check that off_t can represent 2**63 - 1 correctly.
5946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5947 since some C++ compilers masquerading as C compilers
5948 incorrectly reject 9223372036854775807. */
5949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5951 && LARGE_OFF_T % 2147483647 == 1)
5952 ? 1 : -1];
5954 main ()
5958 return 0;
5960 _ACEOF
5961 rm -f conftest.$ac_objext
5962 if { (ac_try="$ac_compile"
5963 case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_c_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest.$ac_objext; then
5978 ac_cv_sys_large_files=no; break
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987 cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h. */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5993 #define _LARGE_FILES 1
5994 #include <sys/types.h>
5995 /* Check that off_t can represent 2**63 - 1 correctly.
5996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5997 since some C++ compilers masquerading as C compilers
5998 incorrectly reject 9223372036854775807. */
5999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6001 && LARGE_OFF_T % 2147483647 == 1)
6002 ? 1 : -1];
6004 main ()
6008 return 0;
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (ac_try="$ac_compile"
6013 case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_compile") 2>conftest.er1
6019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest.$ac_objext; then
6028 ac_cv_sys_large_files=1; break
6029 else
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 ac_cv_sys_large_files=unknown
6038 break
6039 done
6041 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6042 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6043 case $ac_cv_sys_large_files in #(
6044 no | unknown) ;;
6046 cat >>confdefs.h <<_ACEOF
6047 #define _LARGE_FILES $ac_cv_sys_large_files
6048 _ACEOF
6050 esac
6051 rm -f conftest*
6057 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6058 ### be located in either /usr/lib64 or /usr/lib.
6059 case "${canonical}" in
6060 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6061 if test -d /usr/lib64; then
6063 cat >>confdefs.h <<\_ACEOF
6064 #define HAVE_LIB64_DIR 1
6065 _ACEOF
6068 esac
6073 if test "${with_sound}" != "no"; then
6074 # Sound support for GNU/Linux and the free BSDs.
6078 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 ac_res=`eval echo '${'$as_ac_Header'}'`
6088 { echo "$as_me:$LINENO: result: $ac_res" >&5
6089 echo "${ECHO_T}$ac_res" >&6; }
6090 else
6091 # Is the header compilable?
6092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6094 cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h. */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 $ac_includes_default
6101 #include <$ac_header>
6102 _ACEOF
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6105 case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 ac_header_compiler=yes
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_header_compiler=no
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6130 echo "${ECHO_T}$ac_header_compiler" >&6; }
6132 # Is the header present?
6133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6135 cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h. */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #include <$ac_header>
6142 _ACEOF
6143 if { (ac_try="$ac_cpp conftest.$ac_ext"
6144 case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } >/dev/null && {
6156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6157 test ! -s conftest.err
6158 }; then
6159 ac_header_preproc=yes
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_header_preproc=no
6167 rm -f conftest.err conftest.$ac_ext
6168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6169 echo "${ECHO_T}$ac_header_preproc" >&6; }
6171 # So? What about this header?
6172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6173 yes:no: )
6174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6178 ac_header_preproc=yes
6180 no:yes:* )
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6195 esac
6196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 eval "$as_ac_Header=\$ac_header_preproc"
6203 ac_res=`eval echo '${'$as_ac_Header'}'`
6204 { echo "$as_me:$LINENO: result: $ac_res" >&5
6205 echo "${ECHO_T}$ac_res" >&6; }
6208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6209 cat >>confdefs.h <<_ACEOF
6210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6211 _ACEOF
6215 done
6217 # Emulation library used on NetBSD.
6218 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6219 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6220 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 ac_check_lib_save_LIBS=$LIBS
6224 LIBS="-lossaudio $LIBS"
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6232 /* Override any GCC internal prototype to avoid an error.
6233 Use char because int might match the return type of a GCC
6234 builtin and then its argument prototype would still apply. */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 char _oss_ioctl ();
6240 main ()
6242 return _oss_ioctl ();
6244 return 0;
6246 _ACEOF
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (ac_try="$ac_link"
6249 case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_link") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest$ac_exeext &&
6264 $as_test_x conftest$ac_exeext; then
6265 ac_cv_lib_ossaudio__oss_ioctl=yes
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6270 ac_cv_lib_ossaudio__oss_ioctl=no
6273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6274 conftest$ac_exeext conftest.$ac_ext
6275 LIBS=$ac_check_lib_save_LIBS
6277 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6278 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6279 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6280 LIBSOUND=-lossaudio
6281 else
6282 LIBSOUND=
6287 ALSA_REQUIRED=1.0.0
6288 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6290 succeeded=no
6292 # Extract the first word of "pkg-config", so it can be a program name with args.
6293 set dummy pkg-config; ac_word=$2
6294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6296 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 case $PKG_CONFIG in
6300 [\\/]* | ?:[\\/]*)
6301 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6315 done
6316 done
6317 IFS=$as_save_IFS
6319 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6321 esac
6323 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6324 if test -n "$PKG_CONFIG"; then
6325 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6326 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6327 else
6328 { echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6; }
6334 if test "$PKG_CONFIG" = "no" ; then
6335 HAVE_ALSA=no
6336 else
6337 PKG_CONFIG_MIN_VERSION=0.9.0
6338 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6339 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6340 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6342 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6343 { echo "$as_me:$LINENO: result: yes" >&5
6344 echo "${ECHO_T}yes" >&6; }
6345 succeeded=yes
6347 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6348 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6349 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6350 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6351 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6353 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6354 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6355 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6356 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6357 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6358 else
6359 { echo "$as_me:$LINENO: result: no" >&5
6360 echo "${ECHO_T}no" >&6; }
6361 ALSA_CFLAGS=""
6362 ALSA_LIBS=""
6363 ## If we have a custom action on failure, don't print errors, but
6364 ## do set a variable so people can do so.
6365 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6371 else
6372 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6373 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6377 if test $succeeded = yes; then
6378 HAVE_ALSA=yes
6379 else
6380 HAVE_ALSA=no
6383 if test $HAVE_ALSA = yes; then
6384 SAVE_CFLAGS="$CFLAGS"
6385 SAVE_LDFLAGS="$LDFLAGS"
6386 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6387 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h. */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 #include <asoundlib.h>
6396 main ()
6398 snd_lib_error_set_handler (0);
6400 return 0;
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (ac_try="$ac_compile"
6405 case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408 esac
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420 emacs_alsa_normal=yes
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 emacs_alsa_normal=no
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 if test "$emacs_alsa_normal" != yes; then
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <alsa/asoundlib.h>
6438 main ()
6440 snd_lib_error_set_handler (0);
6442 return 0;
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (ac_try="$ac_compile"
6447 case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest.$ac_objext; then
6462 emacs_alsa_subdir=yes
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 emacs_alsa_subdir=no
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 if test "$emacs_alsa_subdir" != yes; then
6472 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6473 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6474 { (exit 1); exit 1; }; }
6476 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6479 CFLAGS="$SAVE_CFLAGS"
6480 LDFLAGS="$SAVE_LDFLAGS"
6481 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6482 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6484 cat >>confdefs.h <<\_ACEOF
6485 #define HAVE_ALSA 1
6486 _ACEOF
6517 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6518 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6519 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6520 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6521 sys/utsname.h pwd.h
6523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 ac_res=`eval echo '${'$as_ac_Header'}'`
6531 { echo "$as_me:$LINENO: result: $ac_res" >&5
6532 echo "${ECHO_T}$ac_res" >&6; }
6533 else
6534 # Is the header compilable?
6535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h. */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 $ac_includes_default
6544 #include <$ac_header>
6545 _ACEOF
6546 rm -f conftest.$ac_objext
6547 if { (ac_try="$ac_compile"
6548 case "(($ac_try" in
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6551 esac
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_compile") 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } && {
6560 test -z "$ac_c_werror_flag" ||
6561 test ! -s conftest.err
6562 } && test -s conftest.$ac_objext; then
6563 ac_header_compiler=yes
6564 else
6565 echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6568 ac_header_compiler=no
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6573 echo "${ECHO_T}$ac_header_compiler" >&6; }
6575 # Is the header present?
6576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h. */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 #include <$ac_header>
6585 _ACEOF
6586 if { (ac_try="$ac_cpp conftest.$ac_ext"
6587 case "(($ac_try" in
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6590 esac
6591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } >/dev/null && {
6599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 }; then
6602 ac_header_preproc=yes
6603 else
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_header_preproc=no
6610 rm -f conftest.err conftest.$ac_ext
6611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6612 echo "${ECHO_T}$ac_header_preproc" >&6; }
6614 # So? What about this header?
6615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6616 yes:no: )
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6621 ac_header_preproc=yes
6623 no:yes:* )
6624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6638 esac
6639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644 eval "$as_ac_Header=\$ac_header_preproc"
6646 ac_res=`eval echo '${'$as_ac_Header'}'`
6647 { echo "$as_me:$LINENO: result: $ac_res" >&5
6648 echo "${ECHO_T}$ac_res" >&6; }
6651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6652 cat >>confdefs.h <<_ACEOF
6653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6654 _ACEOF
6658 done
6661 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6662 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 #include <sys/personality.h>
6671 main ()
6673 personality (PER_LINUX32)
6675 return 0;
6677 _ACEOF
6678 rm -f conftest.$ac_objext
6679 if { (ac_try="$ac_compile"
6680 case "(($ac_try" in
6681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682 *) ac_try_echo=$ac_try;;
6683 esac
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_compile") 2>conftest.er1
6686 ac_status=$?
6687 grep -v '^ *+' conftest.er1 >conftest.err
6688 rm -f conftest.er1
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } && {
6692 test -z "$ac_c_werror_flag" ||
6693 test ! -s conftest.err
6694 } && test -s conftest.$ac_objext; then
6695 emacs_cv_personality_linux32=yes
6696 else
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6700 emacs_cv_personality_linux32=no
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6705 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6707 if test $emacs_cv_personality_linux32 = yes; then
6709 cat >>confdefs.h <<\_ACEOF
6710 #define HAVE_PERSONALITY_LINUX32 1
6711 _ACEOF
6716 for ac_header in term.h
6718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 #include <$ac_header>
6731 _ACEOF
6732 if { (ac_try="$ac_cpp conftest.$ac_ext"
6733 case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6736 esac
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } >/dev/null && {
6745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 }; then
6748 eval "$as_ac_Header=yes"
6749 else
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 eval "$as_ac_Header=no"
6756 rm -f conftest.err conftest.$ac_ext
6758 ac_res=`eval echo '${'$as_ac_Header'}'`
6759 { echo "$as_me:$LINENO: result: $ac_res" >&5
6760 echo "${ECHO_T}$ac_res" >&6; }
6761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6762 cat >>confdefs.h <<_ACEOF
6763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6764 _ACEOF
6768 done
6770 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6771 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6772 if test "${ac_cv_header_stdc+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775 cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h. */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781 #include <stdlib.h>
6782 #include <stdarg.h>
6783 #include <string.h>
6784 #include <float.h>
6787 main ()
6791 return 0;
6793 _ACEOF
6794 rm -f conftest.$ac_objext
6795 if { (ac_try="$ac_compile"
6796 case "(($ac_try" in
6797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6799 esac
6800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6801 (eval "$ac_compile") 2>conftest.er1
6802 ac_status=$?
6803 grep -v '^ *+' conftest.er1 >conftest.err
6804 rm -f conftest.er1
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } && {
6808 test -z "$ac_c_werror_flag" ||
6809 test ! -s conftest.err
6810 } && test -s conftest.$ac_objext; then
6811 ac_cv_header_stdc=yes
6812 else
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6816 ac_cv_header_stdc=no
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 if test $ac_cv_header_stdc = yes; then
6822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 #include <string.h>
6831 _ACEOF
6832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6833 $EGREP "memchr" >/dev/null 2>&1; then
6835 else
6836 ac_cv_header_stdc=no
6838 rm -f conftest*
6842 if test $ac_cv_header_stdc = yes; then
6843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 #include <stdlib.h>
6852 _ACEOF
6853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854 $EGREP "free" >/dev/null 2>&1; then
6856 else
6857 ac_cv_header_stdc=no
6859 rm -f conftest*
6863 if test $ac_cv_header_stdc = yes; then
6864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6865 if test "$cross_compiling" = yes; then
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 #include <ctype.h>
6875 #include <stdlib.h>
6876 #if ((' ' & 0x0FF) == 0x020)
6877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6879 #else
6880 # define ISLOWER(c) \
6881 (('a' <= (c) && (c) <= 'i') \
6882 || ('j' <= (c) && (c) <= 'r') \
6883 || ('s' <= (c) && (c) <= 'z'))
6884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6885 #endif
6887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6889 main ()
6891 int i;
6892 for (i = 0; i < 256; i++)
6893 if (XOR (islower (i), ISLOWER (i))
6894 || toupper (i) != TOUPPER (i))
6895 return 2;
6896 return 0;
6898 _ACEOF
6899 rm -f conftest$ac_exeext
6900 if { (ac_try="$ac_link"
6901 case "(($ac_try" in
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_link") 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6910 { (case "(($ac_try" in
6911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912 *) ac_try_echo=$ac_try;;
6913 esac
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915 (eval "$ac_try") 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6920 else
6921 echo "$as_me: program exited with status $ac_status" >&5
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6925 ( exit $ac_status )
6926 ac_cv_header_stdc=no
6928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6934 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6935 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6936 if test $ac_cv_header_stdc = yes; then
6938 cat >>confdefs.h <<\_ACEOF
6939 #define STDC_HEADERS 1
6940 _ACEOF
6944 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6945 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6946 if test "${ac_cv_header_time+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #include <sys/types.h>
6956 #include <sys/time.h>
6957 #include <time.h>
6960 main ()
6962 if ((struct tm *) 0)
6963 return 0;
6965 return 0;
6967 _ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (ac_try="$ac_compile"
6970 case "(($ac_try" in
6971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6972 *) ac_try_echo=$ac_try;;
6973 esac
6974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6975 (eval "$ac_compile") 2>conftest.er1
6976 ac_status=$?
6977 grep -v '^ *+' conftest.er1 >conftest.err
6978 rm -f conftest.er1
6979 cat conftest.err >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && {
6982 test -z "$ac_c_werror_flag" ||
6983 test ! -s conftest.err
6984 } && test -s conftest.$ac_objext; then
6985 ac_cv_header_time=yes
6986 else
6987 echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6990 ac_cv_header_time=no
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6996 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6997 if test $ac_cv_header_time = yes; then
6999 cat >>confdefs.h <<\_ACEOF
7000 #define TIME_WITH_SYS_TIME 1
7001 _ACEOF
7005 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7006 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7007 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010 cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h. */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7016 $ac_includes_default
7018 main ()
7020 #ifndef sys_siglist
7021 (void) sys_siglist;
7022 #endif
7025 return 0;
7027 _ACEOF
7028 rm -f conftest.$ac_objext
7029 if { (ac_try="$ac_compile"
7030 case "(($ac_try" in
7031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032 *) ac_try_echo=$ac_try;;
7033 esac
7034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7035 (eval "$ac_compile") 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } && {
7042 test -z "$ac_c_werror_flag" ||
7043 test ! -s conftest.err
7044 } && test -s conftest.$ac_objext; then
7045 ac_cv_have_decl_sys_siglist=yes
7046 else
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7050 ac_cv_have_decl_sys_siglist=no
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7056 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7057 if test $ac_cv_have_decl_sys_siglist = yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define HAVE_DECL_SYS_SIGLIST 1
7061 _ACEOF
7064 else
7065 cat >>confdefs.h <<_ACEOF
7066 #define HAVE_DECL_SYS_SIGLIST 0
7067 _ACEOF
7073 if test $ac_cv_have_decl_sys_siglist != yes; then
7074 # For Tru64, at least:
7075 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7076 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7077 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 else
7080 cat >conftest.$ac_ext <<_ACEOF
7081 /* confdefs.h. */
7082 _ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086 $ac_includes_default
7088 main ()
7090 #ifndef __sys_siglist
7091 (void) __sys_siglist;
7092 #endif
7095 return 0;
7097 _ACEOF
7098 rm -f conftest.$ac_objext
7099 if { (ac_try="$ac_compile"
7100 case "(($ac_try" in
7101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7102 *) ac_try_echo=$ac_try;;
7103 esac
7104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7105 (eval "$ac_compile") 2>conftest.er1
7106 ac_status=$?
7107 grep -v '^ *+' conftest.er1 >conftest.err
7108 rm -f conftest.er1
7109 cat conftest.err >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } && {
7112 test -z "$ac_c_werror_flag" ||
7113 test ! -s conftest.err
7114 } && test -s conftest.$ac_objext; then
7115 ac_cv_have_decl___sys_siglist=yes
7116 else
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7120 ac_cv_have_decl___sys_siglist=no
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7126 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7127 if test $ac_cv_have_decl___sys_siglist = yes; then
7129 cat >>confdefs.h <<_ACEOF
7130 #define HAVE_DECL___SYS_SIGLIST 1
7131 _ACEOF
7134 else
7135 cat >>confdefs.h <<_ACEOF
7136 #define HAVE_DECL___SYS_SIGLIST 0
7137 _ACEOF
7143 if test $ac_cv_have_decl___sys_siglist = yes; then
7145 cat >>confdefs.h <<\_ACEOF
7146 #define sys_siglist __sys_siglist
7147 _ACEOF
7151 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7152 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7153 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <sys/types.h>
7163 #include <sys/wait.h>
7164 #ifndef WEXITSTATUS
7165 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7166 #endif
7167 #ifndef WIFEXITED
7168 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7169 #endif
7172 main ()
7174 int s;
7175 wait (&s);
7176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7178 return 0;
7180 _ACEOF
7181 rm -f conftest.$ac_objext
7182 if { (ac_try="$ac_compile"
7183 case "(($ac_try" in
7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7186 esac
7187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7188 (eval "$ac_compile") 2>conftest.er1
7189 ac_status=$?
7190 grep -v '^ *+' conftest.er1 >conftest.err
7191 rm -f conftest.er1
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } && {
7195 test -z "$ac_c_werror_flag" ||
7196 test ! -s conftest.err
7197 } && test -s conftest.$ac_objext; then
7198 ac_cv_header_sys_wait_h=yes
7199 else
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7203 ac_cv_header_sys_wait_h=no
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7209 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7210 if test $ac_cv_header_sys_wait_h = yes; then
7212 cat >>confdefs.h <<\_ACEOF
7213 #define HAVE_SYS_WAIT_H 1
7214 _ACEOF
7219 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7220 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7221 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224 cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h. */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7230 #ifdef TIME_WITH_SYS_TIME
7231 #include <sys/time.h>
7232 #include <time.h>
7233 #else
7234 #ifdef HAVE_SYS_TIME_H
7235 #include <sys/time.h>
7236 #else
7237 #include <time.h>
7238 #endif
7239 #endif
7240 #ifdef HAVE_UTIME_H
7241 #include <utime.h>
7242 #endif
7244 main ()
7246 static struct utimbuf x; x.actime = x.modtime;
7248 return 0;
7250 _ACEOF
7251 rm -f conftest.$ac_objext
7252 if { (ac_try="$ac_compile"
7253 case "(($ac_try" in
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7256 esac
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258 (eval "$ac_compile") 2>conftest.er1
7259 ac_status=$?
7260 grep -v '^ *+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } && {
7265 test -z "$ac_c_werror_flag" ||
7266 test ! -s conftest.err
7267 } && test -s conftest.$ac_objext; then
7268 emacs_cv_struct_utimbuf=yes
7269 else
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 emacs_cv_struct_utimbuf=no
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7279 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7280 if test $emacs_cv_struct_utimbuf = yes; then
7282 cat >>confdefs.h <<\_ACEOF
7283 #define HAVE_STRUCT_UTIMBUF 1
7284 _ACEOF
7288 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7289 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7290 if test "${ac_cv_type_signal+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293 cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h. */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 #include <sys/types.h>
7300 #include <signal.h>
7303 main ()
7305 return *(signal (0, 0)) (0) == 1;
7307 return 0;
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (ac_try="$ac_compile"
7312 case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315 esac
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_compile") 2>conftest.er1
7318 ac_status=$?
7319 grep -v '^ *+' conftest.er1 >conftest.err
7320 rm -f conftest.er1
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } && {
7324 test -z "$ac_c_werror_flag" ||
7325 test ! -s conftest.err
7326 } && test -s conftest.$ac_objext; then
7327 ac_cv_type_signal=int
7328 else
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 ac_cv_type_signal=void
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7338 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7340 cat >>confdefs.h <<_ACEOF
7341 #define RETSIGTYPE $ac_cv_type_signal
7342 _ACEOF
7346 { echo "$as_me:$LINENO: checking for speed_t" >&5
7347 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7348 if test "${emacs_cv_speed_t+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351 cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h. */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 #include <termios.h>
7359 main ()
7361 speed_t x = 1;
7363 return 0;
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7368 case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7371 esac
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7383 emacs_cv_speed_t=yes
7384 else
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 emacs_cv_speed_t=no
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7394 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7395 if test $emacs_cv_speed_t = yes; then
7397 cat >>confdefs.h <<\_ACEOF
7398 #define HAVE_SPEED_T 1
7399 _ACEOF
7403 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7404 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7405 if test "${emacs_cv_struct_timeval+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 #ifdef TIME_WITH_SYS_TIME
7415 #include <sys/time.h>
7416 #include <time.h>
7417 #else
7418 #ifdef HAVE_SYS_TIME_H
7419 #include <sys/time.h>
7420 #else
7421 #include <time.h>
7422 #endif
7423 #endif
7425 main ()
7427 static struct timeval x; x.tv_sec = x.tv_usec;
7429 return 0;
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (ac_try="$ac_compile"
7434 case "(($ac_try" in
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7437 esac
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_compile") 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest.$ac_objext; then
7449 emacs_cv_struct_timeval=yes
7450 else
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 emacs_cv_struct_timeval=no
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7460 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7461 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7462 if test $emacs_cv_struct_timeval = yes; then
7464 cat >>confdefs.h <<\_ACEOF
7465 #define HAVE_TIMEVAL 1
7466 _ACEOF
7470 { echo "$as_me:$LINENO: checking for struct exception" >&5
7471 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7472 if test "${emacs_cv_struct_exception+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h. */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 #include <math.h>
7483 main ()
7485 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7487 return 0;
7489 _ACEOF
7490 rm -f conftest.$ac_objext
7491 if { (ac_try="$ac_compile"
7492 case "(($ac_try" in
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7495 esac
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_compile") 2>conftest.er1
7498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } && {
7504 test -z "$ac_c_werror_flag" ||
7505 test ! -s conftest.err
7506 } && test -s conftest.$ac_objext; then
7507 emacs_cv_struct_exception=yes
7508 else
7509 echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7512 emacs_cv_struct_exception=no
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7518 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7519 HAVE_EXCEPTION=$emacs_cv_struct_exception
7520 if test $emacs_cv_struct_exception != yes; then
7522 cat >>confdefs.h <<\_ACEOF
7523 #define NO_MATHERR 1
7524 _ACEOF
7529 for ac_header in sys/socket.h
7531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 ac_res=`eval echo '${'$as_ac_Header'}'`
7539 { echo "$as_me:$LINENO: result: $ac_res" >&5
7540 echo "${ECHO_T}$ac_res" >&6; }
7541 else
7542 # Is the header compilable?
7543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7545 cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h. */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 $ac_includes_default
7552 #include <$ac_header>
7553 _ACEOF
7554 rm -f conftest.$ac_objext
7555 if { (ac_try="$ac_compile"
7556 case "(($ac_try" in
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7559 esac
7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_compile") 2>conftest.er1
7562 ac_status=$?
7563 grep -v '^ *+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_c_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest.$ac_objext; then
7571 ac_header_compiler=yes
7572 else
7573 echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 ac_header_compiler=no
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7581 echo "${ECHO_T}$ac_header_compiler" >&6; }
7583 # Is the header present?
7584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7586 cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h. */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 #include <$ac_header>
7593 _ACEOF
7594 if { (ac_try="$ac_cpp conftest.$ac_ext"
7595 case "(($ac_try" in
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7598 esac
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7601 ac_status=$?
7602 grep -v '^ *+' conftest.er1 >conftest.err
7603 rm -f conftest.er1
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } >/dev/null && {
7607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7609 }; then
7610 ac_header_preproc=yes
7611 else
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 ac_header_preproc=no
7618 rm -f conftest.err conftest.$ac_ext
7619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7620 echo "${ECHO_T}$ac_header_preproc" >&6; }
7622 # So? What about this header?
7623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7624 yes:no: )
7625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7629 ac_header_preproc=yes
7631 no:yes:* )
7632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7646 esac
7647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 eval "$as_ac_Header=\$ac_header_preproc"
7654 ac_res=`eval echo '${'$as_ac_Header'}'`
7655 { echo "$as_me:$LINENO: result: $ac_res" >&5
7656 echo "${ECHO_T}$ac_res" >&6; }
7659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7660 cat >>confdefs.h <<_ACEOF
7661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7662 _ACEOF
7666 done
7669 for ac_header in net/if.h
7671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h. */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 $ac_includes_default
7684 #if HAVE_SYS_SOCKET_H
7685 #include <sys/socket.h>
7686 #endif
7688 #include <$ac_header>
7689 _ACEOF
7690 rm -f conftest.$ac_objext
7691 if { (ac_try="$ac_compile"
7692 case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7695 esac
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_c_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest.$ac_objext; then
7707 eval "$as_ac_Header=yes"
7708 else
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 eval "$as_ac_Header=no"
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 ac_res=`eval echo '${'$as_ac_Header'}'`
7718 { echo "$as_me:$LINENO: result: $ac_res" >&5
7719 echo "${ECHO_T}$ac_res" >&6; }
7720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7721 cat >>confdefs.h <<_ACEOF
7722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7723 _ACEOF
7727 done
7730 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7731 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7732 if test "${ac_cv_struct_tm+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735 cat >conftest.$ac_ext <<_ACEOF
7736 /* confdefs.h. */
7737 _ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 #include <sys/types.h>
7742 #include <time.h>
7745 main ()
7747 struct tm tm;
7748 int *p = &tm.tm_sec;
7749 return !p;
7751 return 0;
7753 _ACEOF
7754 rm -f conftest.$ac_objext
7755 if { (ac_try="$ac_compile"
7756 case "(($ac_try" in
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7759 esac
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.$ac_objext; then
7771 ac_cv_struct_tm=time.h
7772 else
7773 echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7776 ac_cv_struct_tm=sys/time.h
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7782 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7783 if test $ac_cv_struct_tm = sys/time.h; then
7785 cat >>confdefs.h <<\_ACEOF
7786 #define TM_IN_SYS_TIME 1
7787 _ACEOF
7791 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7792 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7793 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796 cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h. */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 #include <sys/types.h>
7803 #include <$ac_cv_struct_tm>
7807 main ()
7809 static struct tm ac_aggr;
7810 if (ac_aggr.tm_zone)
7811 return 0;
7813 return 0;
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7818 case "(($ac_try" in
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7821 esac
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_compile") 2>conftest.er1
7824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && {
7830 test -z "$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.$ac_objext; then
7833 ac_cv_member_struct_tm_tm_zone=yes
7834 else
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h. */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844 #include <sys/types.h>
7845 #include <$ac_cv_struct_tm>
7849 main ()
7851 static struct tm ac_aggr;
7852 if (sizeof ac_aggr.tm_zone)
7853 return 0;
7855 return 0;
7857 _ACEOF
7858 rm -f conftest.$ac_objext
7859 if { (ac_try="$ac_compile"
7860 case "(($ac_try" in
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7863 esac
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865 (eval "$ac_compile") 2>conftest.er1
7866 ac_status=$?
7867 grep -v '^ *+' conftest.er1 >conftest.err
7868 rm -f conftest.er1
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } && {
7872 test -z "$ac_c_werror_flag" ||
7873 test ! -s conftest.err
7874 } && test -s conftest.$ac_objext; then
7875 ac_cv_member_struct_tm_tm_zone=yes
7876 else
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7880 ac_cv_member_struct_tm_tm_zone=no
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7889 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7890 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7892 cat >>confdefs.h <<_ACEOF
7893 #define HAVE_STRUCT_TM_TM_ZONE 1
7894 _ACEOF
7899 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7901 cat >>confdefs.h <<\_ACEOF
7902 #define HAVE_TM_ZONE 1
7903 _ACEOF
7905 else
7906 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7907 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7908 if test "${ac_cv_have_decl_tzname+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <time.h>
7920 main ()
7922 #ifndef tzname
7923 (void) tzname;
7924 #endif
7927 return 0;
7929 _ACEOF
7930 rm -f conftest.$ac_objext
7931 if { (ac_try="$ac_compile"
7932 case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_compile") 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest.$ac_objext; then
7947 ac_cv_have_decl_tzname=yes
7948 else
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 ac_cv_have_decl_tzname=no
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7958 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7959 if test $ac_cv_have_decl_tzname = yes; then
7961 cat >>confdefs.h <<_ACEOF
7962 #define HAVE_DECL_TZNAME 1
7963 _ACEOF
7966 else
7967 cat >>confdefs.h <<_ACEOF
7968 #define HAVE_DECL_TZNAME 0
7969 _ACEOF
7975 { echo "$as_me:$LINENO: checking for tzname" >&5
7976 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7977 if test "${ac_cv_var_tzname+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 #include <time.h>
7987 #if !HAVE_DECL_TZNAME
7988 extern char *tzname[];
7989 #endif
7992 main ()
7994 return tzname[0][0];
7996 return 0;
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (ac_try="$ac_link"
8001 case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_link") 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest$ac_exeext &&
8016 $as_test_x conftest$ac_exeext; then
8017 ac_cv_var_tzname=yes
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 ac_cv_var_tzname=no
8025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8026 conftest$ac_exeext conftest.$ac_ext
8028 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8029 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8030 if test $ac_cv_var_tzname = yes; then
8032 cat >>confdefs.h <<\_ACEOF
8033 #define HAVE_TZNAME 1
8034 _ACEOF
8039 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8040 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8041 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044 cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h. */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 #include <time.h>
8053 main ()
8055 static struct tm ac_aggr;
8056 if (ac_aggr.tm_gmtoff)
8057 return 0;
8059 return 0;
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8064 case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
8079 ac_cv_member_struct_tm_tm_gmtoff=yes
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h. */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 #include <time.h>
8093 main ()
8095 static struct tm ac_aggr;
8096 if (sizeof ac_aggr.tm_gmtoff)
8097 return 0;
8099 return 0;
8101 _ACEOF
8102 rm -f conftest.$ac_objext
8103 if { (ac_try="$ac_compile"
8104 case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107 esac
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_compile") 2>conftest.er1
8110 ac_status=$?
8111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } && {
8116 test -z "$ac_c_werror_flag" ||
8117 test ! -s conftest.err
8118 } && test -s conftest.$ac_objext; then
8119 ac_cv_member_struct_tm_tm_gmtoff=yes
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8124 ac_cv_member_struct_tm_tm_gmtoff=no
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8133 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8134 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8136 cat >>confdefs.h <<\_ACEOF
8137 #define HAVE_TM_GMTOFF 1
8138 _ACEOF
8142 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8143 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8144 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 $ac_includes_default
8154 #if HAVE_SYS_SOCKET_H
8155 #include <sys/socket.h>
8156 #endif
8157 #if HAVE_NET_IF_H
8158 #include <net/if.h>
8159 #endif
8162 main ()
8164 static struct ifreq ac_aggr;
8165 if (ac_aggr.ifr_flags)
8166 return 0;
8168 return 0;
8170 _ACEOF
8171 rm -f conftest.$ac_objext
8172 if { (ac_try="$ac_compile"
8173 case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176 esac
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_compile") 2>conftest.er1
8179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && {
8185 test -z "$ac_c_werror_flag" ||
8186 test ! -s conftest.err
8187 } && test -s conftest.$ac_objext; then
8188 ac_cv_member_struct_ifreq_ifr_flags=yes
8189 else
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h. */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 $ac_includes_default
8200 #if HAVE_SYS_SOCKET_H
8201 #include <sys/socket.h>
8202 #endif
8203 #if HAVE_NET_IF_H
8204 #include <net/if.h>
8205 #endif
8208 main ()
8210 static struct ifreq ac_aggr;
8211 if (sizeof ac_aggr.ifr_flags)
8212 return 0;
8214 return 0;
8216 _ACEOF
8217 rm -f conftest.$ac_objext
8218 if { (ac_try="$ac_compile"
8219 case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8222 esac
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_compile") 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } && {
8231 test -z "$ac_c_werror_flag" ||
8232 test ! -s conftest.err
8233 } && test -s conftest.$ac_objext; then
8234 ac_cv_member_struct_ifreq_ifr_flags=yes
8235 else
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_cv_member_struct_ifreq_ifr_flags=no
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8248 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8249 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8251 cat >>confdefs.h <<_ACEOF
8252 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8253 _ACEOF
8257 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8258 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8259 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262 cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h. */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 $ac_includes_default
8269 #if HAVE_SYS_SOCKET_H
8270 #include <sys/socket.h>
8271 #endif
8272 #if HAVE_NET_IF_H
8273 #include <net/if.h>
8274 #endif
8277 main ()
8279 static struct ifreq ac_aggr;
8280 if (ac_aggr.ifr_hwaddr)
8281 return 0;
8283 return 0;
8285 _ACEOF
8286 rm -f conftest.$ac_objext
8287 if { (ac_try="$ac_compile"
8288 case "(($ac_try" in
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8291 esac
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && {
8300 test -z "$ac_c_werror_flag" ||
8301 test ! -s conftest.err
8302 } && test -s conftest.$ac_objext; then
8303 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8304 else
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h. */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 $ac_includes_default
8315 #if HAVE_SYS_SOCKET_H
8316 #include <sys/socket.h>
8317 #endif
8318 #if HAVE_NET_IF_H
8319 #include <net/if.h>
8320 #endif
8323 main ()
8325 static struct ifreq ac_aggr;
8326 if (sizeof ac_aggr.ifr_hwaddr)
8327 return 0;
8329 return 0;
8331 _ACEOF
8332 rm -f conftest.$ac_objext
8333 if { (ac_try="$ac_compile"
8334 case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_compile") 2>conftest.er1
8340 ac_status=$?
8341 grep -v '^ *+' conftest.er1 >conftest.err
8342 rm -f conftest.er1
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest.$ac_objext; then
8349 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8350 else
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8354 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8363 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8364 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8366 cat >>confdefs.h <<_ACEOF
8367 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8368 _ACEOF
8372 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8373 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8374 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 else
8377 cat >conftest.$ac_ext <<_ACEOF
8378 /* confdefs.h. */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 $ac_includes_default
8384 #if HAVE_SYS_SOCKET_H
8385 #include <sys/socket.h>
8386 #endif
8387 #if HAVE_NET_IF_H
8388 #include <net/if.h>
8389 #endif
8392 main ()
8394 static struct ifreq ac_aggr;
8395 if (ac_aggr.ifr_netmask)
8396 return 0;
8398 return 0;
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (ac_try="$ac_compile"
8403 case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
8409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest.$ac_objext; then
8418 ac_cv_member_struct_ifreq_ifr_netmask=yes
8419 else
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 $ac_includes_default
8430 #if HAVE_SYS_SOCKET_H
8431 #include <sys/socket.h>
8432 #endif
8433 #if HAVE_NET_IF_H
8434 #include <net/if.h>
8435 #endif
8438 main ()
8440 static struct ifreq ac_aggr;
8441 if (sizeof ac_aggr.ifr_netmask)
8442 return 0;
8444 return 0;
8446 _ACEOF
8447 rm -f conftest.$ac_objext
8448 if { (ac_try="$ac_compile"
8449 case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_compile") 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } && {
8461 test -z "$ac_c_werror_flag" ||
8462 test ! -s conftest.err
8463 } && test -s conftest.$ac_objext; then
8464 ac_cv_member_struct_ifreq_ifr_netmask=yes
8465 else
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_cv_member_struct_ifreq_ifr_netmask=no
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8478 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8479 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8481 cat >>confdefs.h <<_ACEOF
8482 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8483 _ACEOF
8487 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8488 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8489 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h. */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 $ac_includes_default
8499 #if HAVE_SYS_SOCKET_H
8500 #include <sys/socket.h>
8501 #endif
8502 #if HAVE_NET_IF_H
8503 #include <net/if.h>
8504 #endif
8507 main ()
8509 static struct ifreq ac_aggr;
8510 if (ac_aggr.ifr_broadaddr)
8511 return 0;
8513 return 0;
8515 _ACEOF
8516 rm -f conftest.$ac_objext
8517 if { (ac_try="$ac_compile"
8518 case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8521 esac
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_compile") 2>conftest.er1
8524 ac_status=$?
8525 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && {
8530 test -z "$ac_c_werror_flag" ||
8531 test ! -s conftest.err
8532 } && test -s conftest.$ac_objext; then
8533 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8534 else
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8538 cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h. */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544 $ac_includes_default
8545 #if HAVE_SYS_SOCKET_H
8546 #include <sys/socket.h>
8547 #endif
8548 #if HAVE_NET_IF_H
8549 #include <net/if.h>
8550 #endif
8553 main ()
8555 static struct ifreq ac_aggr;
8556 if (sizeof ac_aggr.ifr_broadaddr)
8557 return 0;
8559 return 0;
8561 _ACEOF
8562 rm -f conftest.$ac_objext
8563 if { (ac_try="$ac_compile"
8564 case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567 esac
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_compile") 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && {
8576 test -z "$ac_c_werror_flag" ||
8577 test ! -s conftest.err
8578 } && test -s conftest.$ac_objext; then
8579 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8580 else
8581 echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8584 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8593 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8594 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8596 cat >>confdefs.h <<_ACEOF
8597 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8598 _ACEOF
8602 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8603 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8604 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h. */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8613 $ac_includes_default
8614 #if HAVE_SYS_SOCKET_H
8615 #include <sys/socket.h>
8616 #endif
8617 #if HAVE_NET_IF_H
8618 #include <net/if.h>
8619 #endif
8622 main ()
8624 static struct ifreq ac_aggr;
8625 if (ac_aggr.ifr_addr)
8626 return 0;
8628 return 0;
8630 _ACEOF
8631 rm -f conftest.$ac_objext
8632 if { (ac_try="$ac_compile"
8633 case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636 esac
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_compile") 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest.$ac_objext; then
8648 ac_cv_member_struct_ifreq_ifr_addr=yes
8649 else
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 $ac_includes_default
8660 #if HAVE_SYS_SOCKET_H
8661 #include <sys/socket.h>
8662 #endif
8663 #if HAVE_NET_IF_H
8664 #include <net/if.h>
8665 #endif
8668 main ()
8670 static struct ifreq ac_aggr;
8671 if (sizeof ac_aggr.ifr_addr)
8672 return 0;
8674 return 0;
8676 _ACEOF
8677 rm -f conftest.$ac_objext
8678 if { (ac_try="$ac_compile"
8679 case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8682 esac
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_compile") 2>conftest.er1
8685 ac_status=$?
8686 grep -v '^ *+' conftest.er1 >conftest.err
8687 rm -f conftest.er1
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } && {
8691 test -z "$ac_c_werror_flag" ||
8692 test ! -s conftest.err
8693 } && test -s conftest.$ac_objext; then
8694 ac_cv_member_struct_ifreq_ifr_addr=yes
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_cv_member_struct_ifreq_ifr_addr=no
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8708 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8709 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8711 cat >>confdefs.h <<_ACEOF
8712 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8713 _ACEOF
8720 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8721 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8722 if test "$ac_cv_prog_cc_c89" != no; then
8723 { echo "$as_me:$LINENO: result: yes" >&5
8724 echo "${ECHO_T}yes" >&6; }
8726 cat >>confdefs.h <<\_ACEOF
8727 #define PROTOTYPES 1
8728 _ACEOF
8731 cat >>confdefs.h <<\_ACEOF
8732 #define __PROTOTYPES 1
8733 _ACEOF
8735 else
8736 { echo "$as_me:$LINENO: result: no" >&5
8737 echo "${ECHO_T}no" >&6; }
8740 { echo "$as_me:$LINENO: checking for working volatile" >&5
8741 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8742 if test "${ac_cv_c_volatile+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h. */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8753 main ()
8756 volatile int x;
8757 int * volatile y = (int *) 0;
8758 return !x && !y;
8760 return 0;
8762 _ACEOF
8763 rm -f conftest.$ac_objext
8764 if { (ac_try="$ac_compile"
8765 case "(($ac_try" in
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8768 esac
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_compile") 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest.$ac_objext; then
8780 ac_cv_c_volatile=yes
8781 else
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_cv_c_volatile=no
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8791 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8792 if test $ac_cv_c_volatile = no; then
8794 cat >>confdefs.h <<\_ACEOF
8795 #define volatile
8796 _ACEOF
8800 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8801 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8802 if test "${ac_cv_c_const+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805 cat >conftest.$ac_ext <<_ACEOF
8806 /* confdefs.h. */
8807 _ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8813 main ()
8815 /* FIXME: Include the comments suggested by Paul. */
8816 #ifndef __cplusplus
8817 /* Ultrix mips cc rejects this. */
8818 typedef int charset[2];
8819 const charset cs;
8820 /* SunOS 4.1.1 cc rejects this. */
8821 char const *const *pcpcc;
8822 char **ppc;
8823 /* NEC SVR4.0.2 mips cc rejects this. */
8824 struct point {int x, y;};
8825 static struct point const zero = {0,0};
8826 /* AIX XL C 1.02.0.0 rejects this.
8827 It does not let you subtract one const X* pointer from another in
8828 an arm of an if-expression whose if-part is not a constant
8829 expression */
8830 const char *g = "string";
8831 pcpcc = &g + (g ? g-g : 0);
8832 /* HPUX 7.0 cc rejects these. */
8833 ++pcpcc;
8834 ppc = (char**) pcpcc;
8835 pcpcc = (char const *const *) ppc;
8836 { /* SCO 3.2v4 cc rejects this. */
8837 char *t;
8838 char const *s = 0 ? (char *) 0 : (char const *) 0;
8840 *t++ = 0;
8841 if (s) return 0;
8843 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8844 int x[] = {25, 17};
8845 const int *foo = &x[0];
8846 ++foo;
8848 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8849 typedef const int *iptr;
8850 iptr p = 0;
8851 ++p;
8853 { /* AIX XL C 1.02.0.0 rejects this saying
8854 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8855 struct s { int j; const int *ap[3]; };
8856 struct s *b; b->j = 5;
8858 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8859 const int foo = 10;
8860 if (!foo) return 0;
8862 return !cs[0] && !zero.x;
8863 #endif
8866 return 0;
8868 _ACEOF
8869 rm -f conftest.$ac_objext
8870 if { (ac_try="$ac_compile"
8871 case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8874 esac
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_compile") 2>conftest.er1
8877 ac_status=$?
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && {
8883 test -z "$ac_c_werror_flag" ||
8884 test ! -s conftest.err
8885 } && test -s conftest.$ac_objext; then
8886 ac_cv_c_const=yes
8887 else
8888 echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.$ac_ext >&5
8891 ac_cv_c_const=no
8894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8896 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8897 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8898 if test $ac_cv_c_const = no; then
8900 cat >>confdefs.h <<\_ACEOF
8901 #define const
8902 _ACEOF
8906 { echo "$as_me:$LINENO: checking for void * support" >&5
8907 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8908 if test "${emacs_cv_void_star+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911 cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h. */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8919 main ()
8921 void * foo;
8923 return 0;
8925 _ACEOF
8926 rm -f conftest.$ac_objext
8927 if { (ac_try="$ac_compile"
8928 case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931 esac
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_compile") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest.$ac_objext; then
8943 emacs_cv_void_star=yes
8944 else
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 emacs_cv_void_star=no
8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8954 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8955 if test $emacs_cv_void_star = yes; then
8956 cat >>confdefs.h <<\_ACEOF
8957 #define POINTER_TYPE void
8958 _ACEOF
8960 else
8961 cat >>confdefs.h <<\_ACEOF
8962 #define POINTER_TYPE char
8963 _ACEOF
8971 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8972 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8973 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8974 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977 cat >conftest.make <<\_ACEOF
8978 SHELL = /bin/sh
8979 all:
8980 @echo '@@@%%%=$(MAKE)=@@@%%%'
8981 _ACEOF
8982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8983 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8984 *@@@%%%=?*=@@@%%%*)
8985 eval ac_cv_prog_make_${ac_make}_set=yes;;
8987 eval ac_cv_prog_make_${ac_make}_set=no;;
8988 esac
8989 rm -f conftest.make
8991 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8992 { echo "$as_me:$LINENO: result: yes" >&5
8993 echo "${ECHO_T}yes" >&6; }
8994 SET_MAKE=
8995 else
8996 { echo "$as_me:$LINENO: result: no" >&5
8997 echo "${ECHO_T}no" >&6; }
8998 SET_MAKE="MAKE=${MAKE-make}"
9002 { echo "$as_me:$LINENO: checking for long file names" >&5
9003 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9004 if test "${ac_cv_sys_long_file_names+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007 ac_cv_sys_long_file_names=yes
9008 # Test for long file names in all the places we know might matter:
9009 # . the current directory, where building will happen
9010 # $prefix/lib where we will be installing things
9011 # $exec_prefix/lib likewise
9012 # $TMPDIR if set, where it might want to write temporary files
9013 # /tmp where it might want to write temporary files
9014 # /var/tmp likewise
9015 # /usr/tmp likewise
9016 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9017 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9018 # in the usual case where exec_prefix is '${prefix}'.
9019 case $ac_dir in #(
9020 . | /* | ?:[\\/]*) ;; #(
9021 *) continue;;
9022 esac
9023 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9024 ac_xdir=$ac_dir/cf$$
9025 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9026 ac_tf1=$ac_xdir/conftest9012345
9027 ac_tf2=$ac_xdir/conftest9012346
9028 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9029 ac_cv_sys_long_file_names=no
9030 rm -f -r "$ac_xdir" 2>/dev/null
9031 test $ac_cv_sys_long_file_names = no && break
9032 done
9034 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9035 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9036 if test $ac_cv_sys_long_file_names = yes; then
9038 cat >>confdefs.h <<\_ACEOF
9039 #define HAVE_LONG_FILE_NAMES 1
9040 _ACEOF
9045 #### Choose a window system.
9047 { echo "$as_me:$LINENO: checking for X" >&5
9048 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9051 # Check whether --with-x was given.
9052 if test "${with_x+set}" = set; then
9053 withval=$with_x;
9056 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9057 if test "x$with_x" = xno; then
9058 # The user explicitly disabled X.
9059 have_x=disabled
9060 else
9061 case $x_includes,$x_libraries in #(
9062 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9063 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9064 { (exit 1); exit 1; }; };; #(
9065 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 else
9068 # One or both of the vars are not set, and there is no cached value.
9069 ac_x_includes=no ac_x_libraries=no
9070 rm -f -r conftest.dir
9071 if mkdir conftest.dir; then
9072 cd conftest.dir
9073 cat >Imakefile <<'_ACEOF'
9074 incroot:
9075 @echo incroot='${INCROOT}'
9076 usrlibdir:
9077 @echo usrlibdir='${USRLIBDIR}'
9078 libdir:
9079 @echo libdir='${LIBDIR}'
9080 _ACEOF
9081 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9082 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9083 for ac_var in incroot usrlibdir libdir; do
9084 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9085 done
9086 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9087 for ac_extension in a so sl; do
9088 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9089 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9090 ac_im_usrlibdir=$ac_im_libdir; break
9092 done
9093 # Screen out bogus values from the imake configuration. They are
9094 # bogus both because they are the default anyway, and because
9095 # using them would break gcc on systems where it needs fixed includes.
9096 case $ac_im_incroot in
9097 /usr/include) ac_x_includes= ;;
9098 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9099 esac
9100 case $ac_im_usrlibdir in
9101 /usr/lib | /lib) ;;
9102 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9103 esac
9105 cd ..
9106 rm -f -r conftest.dir
9109 # Standard set of common directories for X headers.
9110 # Check X11 before X11Rn because it is often a symlink to the current release.
9111 ac_x_header_dirs='
9112 /usr/X11/include
9113 /usr/X11R6/include
9114 /usr/X11R5/include
9115 /usr/X11R4/include
9117 /usr/include/X11
9118 /usr/include/X11R6
9119 /usr/include/X11R5
9120 /usr/include/X11R4
9122 /usr/local/X11/include
9123 /usr/local/X11R6/include
9124 /usr/local/X11R5/include
9125 /usr/local/X11R4/include
9127 /usr/local/include/X11
9128 /usr/local/include/X11R6
9129 /usr/local/include/X11R5
9130 /usr/local/include/X11R4
9132 /usr/X386/include
9133 /usr/x386/include
9134 /usr/XFree86/include/X11
9136 /usr/include
9137 /usr/local/include
9138 /usr/unsupported/include
9139 /usr/athena/include
9140 /usr/local/x11r5/include
9141 /usr/lpp/Xamples/include
9143 /usr/openwin/include
9144 /usr/openwin/share/include'
9146 if test "$ac_x_includes" = no; then
9147 # Guess where to find include files, by looking for Xlib.h.
9148 # First, try using that file with no special directory specified.
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h. */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 #include <X11/Xlib.h>
9156 _ACEOF
9157 if { (ac_try="$ac_cpp conftest.$ac_ext"
9158 case "(($ac_try" in
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9161 esac
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } >/dev/null && {
9170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9171 test ! -s conftest.err
9172 }; then
9173 # We can compile using X headers with no special include directory.
9174 ac_x_includes=
9175 else
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 for ac_dir in $ac_x_header_dirs; do
9180 if test -r "$ac_dir/X11/Xlib.h"; then
9181 ac_x_includes=$ac_dir
9182 break
9184 done
9187 rm -f conftest.err conftest.$ac_ext
9188 fi # $ac_x_includes = no
9190 if test "$ac_x_libraries" = no; then
9191 # Check for the libraries.
9192 # See if we find them without any special options.
9193 # Don't add to $LIBS permanently.
9194 ac_save_LIBS=$LIBS
9195 LIBS="-lX11 $LIBS"
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 #include <X11/Xlib.h>
9204 main ()
9206 XrmInitialize ()
9208 return 0;
9210 _ACEOF
9211 rm -f conftest.$ac_objext conftest$ac_exeext
9212 if { (ac_try="$ac_link"
9213 case "(($ac_try" in
9214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215 *) ac_try_echo=$ac_try;;
9216 esac
9217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218 (eval "$ac_link") 2>conftest.er1
9219 ac_status=$?
9220 grep -v '^ *+' conftest.er1 >conftest.err
9221 rm -f conftest.er1
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } && {
9225 test -z "$ac_c_werror_flag" ||
9226 test ! -s conftest.err
9227 } && test -s conftest$ac_exeext &&
9228 $as_test_x conftest$ac_exeext; then
9229 LIBS=$ac_save_LIBS
9230 # We can link X programs with no special library path.
9231 ac_x_libraries=
9232 else
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 LIBS=$ac_save_LIBS
9237 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9239 # Don't even attempt the hair of trying to link an X program!
9240 for ac_extension in a so sl; do
9241 if test -r "$ac_dir/libX11.$ac_extension"; then
9242 ac_x_libraries=$ac_dir
9243 break 2
9245 done
9246 done
9249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9250 conftest$ac_exeext conftest.$ac_ext
9251 fi # $ac_x_libraries = no
9253 case $ac_x_includes,$ac_x_libraries in #(
9254 no,* | *,no | *\'*)
9255 # Didn't find X, or a directory has "'" in its name.
9256 ac_cv_have_x="have_x=no";; #(
9258 # Record where we found X for the cache.
9259 ac_cv_have_x="have_x=yes\
9260 ac_x_includes='$ac_x_includes'\
9261 ac_x_libraries='$ac_x_libraries'"
9262 esac
9264 ;; #(
9265 *) have_x=yes;;
9266 esac
9267 eval "$ac_cv_have_x"
9268 fi # $with_x != no
9270 if test "$have_x" != yes; then
9271 { echo "$as_me:$LINENO: result: $have_x" >&5
9272 echo "${ECHO_T}$have_x" >&6; }
9273 no_x=yes
9274 else
9275 # If each of the values was on the command line, it overrides each guess.
9276 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9277 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9278 # Update the cache value to reflect the command line values.
9279 ac_cv_have_x="have_x=yes\
9280 ac_x_includes='$x_includes'\
9281 ac_x_libraries='$x_libraries'"
9282 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9283 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9286 if test "$no_x" = yes; then
9287 window_system=none
9288 else
9289 window_system=x11
9292 if test "${x_libraries}" != NONE; then
9293 if test -n "${x_libraries}"; then
9294 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9295 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9297 x_default_search_path=""
9298 x_search_path=${x_libraries}
9299 if test -z "${x_search_path}"; then
9300 x_search_path=/usr/lib
9302 for x_library in `echo ${x_search_path}: | \
9303 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9304 x_search_path="\
9305 ${x_library}/X11/%L/%T/%N%C%S:\
9306 ${x_library}/X11/%l/%T/%N%C%S:\
9307 ${x_library}/X11/%T/%N%C%S:\
9308 ${x_library}/X11/%L/%T/%N%S:\
9309 ${x_library}/X11/%l/%T/%N%S:\
9310 ${x_library}/X11/%T/%N%S"
9311 if test x"${x_default_search_path}" = x; then
9312 x_default_search_path=${x_search_path}
9313 else
9314 x_default_search_path="${x_search_path}:${x_default_search_path}"
9316 done
9318 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9319 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9322 if test x"${x_includes}" = x; then
9323 bitmapdir=/usr/include/X11/bitmaps
9324 else
9325 # accumulate include directories that have X11 bitmap subdirectories
9326 bmd_acc="dummyval"
9327 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9328 if test -d "${bmd}/X11/bitmaps"; then
9329 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9331 if test -d "${bmd}/bitmaps"; then
9332 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9334 done
9335 if test ${bmd_acc} != "dummyval"; then
9336 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9340 HAVE_CARBON=no
9341 if test "${with_carbon}" != no; then
9342 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9343 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9344 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9345 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9349 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9350 else
9351 # Is the header compilable?
9352 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9353 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 $ac_includes_default
9361 #include <Carbon/Carbon.h>
9362 _ACEOF
9363 rm -f conftest.$ac_objext
9364 if { (ac_try="$ac_compile"
9365 case "(($ac_try" in
9366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9368 esac
9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_compile") 2>conftest.er1
9371 ac_status=$?
9372 grep -v '^ *+' conftest.er1 >conftest.err
9373 rm -f conftest.er1
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && {
9377 test -z "$ac_c_werror_flag" ||
9378 test ! -s conftest.err
9379 } && test -s conftest.$ac_objext; then
9380 ac_header_compiler=yes
9381 else
9382 echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9385 ac_header_compiler=no
9388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9390 echo "${ECHO_T}$ac_header_compiler" >&6; }
9392 # Is the header present?
9393 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9394 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h. */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401 #include <Carbon/Carbon.h>
9402 _ACEOF
9403 if { (ac_try="$ac_cpp conftest.$ac_ext"
9404 case "(($ac_try" in
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9407 esac
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } >/dev/null && {
9416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9417 test ! -s conftest.err
9418 }; then
9419 ac_header_preproc=yes
9420 else
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9424 ac_header_preproc=no
9427 rm -f conftest.err conftest.$ac_ext
9428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9429 echo "${ECHO_T}$ac_header_preproc" >&6; }
9431 # So? What about this header?
9432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9433 yes:no: )
9434 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9435 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9436 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9437 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9438 ac_header_preproc=yes
9440 no:yes:* )
9441 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9442 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9444 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9445 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9446 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9448 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9455 esac
9456 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9457 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9458 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 else
9461 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9463 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9464 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9467 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9468 HAVE_CARBON=yes
9473 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9474 if test "${with_carbon+set}" != set \
9475 && test "${carbon_appdir_x+set}" != set; then
9476 for var in with_x with_x_toolkit with_xim \
9477 with_xpm with_jpeg with_tiff with_gif with_png; do
9478 if eval test \"\${$var+set}\" = set; then
9479 HAVE_CARBON=no
9480 break
9482 done
9485 if test "${HAVE_CARBON}" = yes; then
9486 window_system=mac
9489 case "${window_system}" in
9490 x11 )
9491 HAVE_X_WINDOWS=yes
9492 HAVE_X11=yes
9493 case "${with_x_toolkit}" in
9494 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9495 motif ) USE_X_TOOLKIT=MOTIF ;;
9496 gtk ) with_gtk=yes
9497 USE_X_TOOLKIT=none ;;
9498 no ) USE_X_TOOLKIT=none ;;
9499 * ) USE_X_TOOLKIT=maybe ;;
9500 esac
9502 mac | none )
9503 HAVE_X_WINDOWS=no
9504 HAVE_X11=no
9505 USE_X_TOOLKIT=none
9507 esac
9509 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9510 # Extract the first word of "X", so it can be a program name with args.
9511 set dummy X; ac_word=$2
9512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9514 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517 if test -n "$HAVE_XSERVER"; then
9518 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9519 else
9520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521 for as_dir in $PATH
9523 IFS=$as_save_IFS
9524 test -z "$as_dir" && as_dir=.
9525 for ac_exec_ext in '' $ac_executable_extensions; do
9526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9527 ac_cv_prog_HAVE_XSERVER="true"
9528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 break 2
9531 done
9532 done
9533 IFS=$as_save_IFS
9535 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9538 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9539 if test -n "$HAVE_XSERVER"; then
9540 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9541 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9542 else
9543 { echo "$as_me:$LINENO: result: no" >&5
9544 echo "${ECHO_T}no" >&6; }
9548 if test "$HAVE_XSERVER" = true ||
9549 test -n "$DISPLAY" ||
9550 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9551 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9552 were found. You should install the relevant development files for X
9553 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9554 sure you have development files for image handling, i.e.
9555 tiff, gif, jpeg, png and xpm.
9556 If you are sure you want Emacs compiled without X window support, pass
9557 --without-x
9558 to configure." >&5
9559 echo "$as_me: error: You seem to be running X, but no X development libraries
9560 were found. You should install the relevant development files for X
9561 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9562 sure you have development files for image handling, i.e.
9563 tiff, gif, jpeg, png and xpm.
9564 If you are sure you want Emacs compiled without X window support, pass
9565 --without-x
9566 to configure." >&2;}
9567 { (exit 1); exit 1; }; }
9571 ### If we're using X11, we should use the X menu package.
9572 HAVE_MENUS=no
9573 case ${HAVE_X11} in
9574 yes ) HAVE_MENUS=yes ;;
9575 esac
9577 ### Compute the unexec source name from the object name.
9578 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9580 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9581 # Assume not, until told otherwise.
9582 GNU_MALLOC=yes
9583 doug_lea_malloc=yes
9584 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9585 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9586 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9597 #define malloc_get_state innocuous_malloc_get_state
9599 /* System header to define __stub macros and hopefully few prototypes,
9600 which can conflict with char malloc_get_state (); below.
9601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9602 <limits.h> exists even on freestanding compilers. */
9604 #ifdef __STDC__
9605 # include <limits.h>
9606 #else
9607 # include <assert.h>
9608 #endif
9610 #undef malloc_get_state
9612 /* Override any GCC internal prototype to avoid an error.
9613 Use char because int might match the return type of a GCC
9614 builtin and then its argument prototype would still apply. */
9615 #ifdef __cplusplus
9616 extern "C"
9617 #endif
9618 char malloc_get_state ();
9619 /* The GNU C library defines this for functions which it implements
9620 to always fail with ENOSYS. Some functions are actually named
9621 something starting with __ and the normal name is an alias. */
9622 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9623 choke me
9624 #endif
9627 main ()
9629 return malloc_get_state ();
9631 return 0;
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9636 case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_link") 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && {
9648 test -z "$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9650 } && test -s conftest$ac_exeext &&
9651 $as_test_x conftest$ac_exeext; then
9652 ac_cv_func_malloc_get_state=yes
9653 else
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 ac_cv_func_malloc_get_state=no
9660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9661 conftest$ac_exeext conftest.$ac_ext
9663 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9664 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9665 if test $ac_cv_func_malloc_get_state = yes; then
9667 else
9668 doug_lea_malloc=no
9671 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9672 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9673 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676 cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h. */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9684 #define malloc_set_state innocuous_malloc_set_state
9686 /* System header to define __stub macros and hopefully few prototypes,
9687 which can conflict with char malloc_set_state (); below.
9688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9689 <limits.h> exists even on freestanding compilers. */
9691 #ifdef __STDC__
9692 # include <limits.h>
9693 #else
9694 # include <assert.h>
9695 #endif
9697 #undef malloc_set_state
9699 /* Override any GCC internal prototype to avoid an error.
9700 Use char because int might match the return type of a GCC
9701 builtin and then its argument prototype would still apply. */
9702 #ifdef __cplusplus
9703 extern "C"
9704 #endif
9705 char malloc_set_state ();
9706 /* The GNU C library defines this for functions which it implements
9707 to always fail with ENOSYS. Some functions are actually named
9708 something starting with __ and the normal name is an alias. */
9709 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9710 choke me
9711 #endif
9714 main ()
9716 return malloc_set_state ();
9718 return 0;
9720 _ACEOF
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (ac_try="$ac_link"
9723 case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_link") 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest$ac_exeext &&
9738 $as_test_x conftest$ac_exeext; then
9739 ac_cv_func_malloc_set_state=yes
9740 else
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_cv_func_malloc_set_state=no
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748 conftest$ac_exeext conftest.$ac_ext
9750 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9751 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9752 if test $ac_cv_func_malloc_set_state = yes; then
9754 else
9755 doug_lea_malloc=no
9758 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9759 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9760 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h. */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 extern void (* __after_morecore_hook)();
9771 main ()
9773 __after_morecore_hook = 0
9775 return 0;
9777 _ACEOF
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (ac_try="$ac_link"
9780 case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_link") 2>conftest.er1
9786 ac_status=$?
9787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } && {
9792 test -z "$ac_c_werror_flag" ||
9793 test ! -s conftest.err
9794 } && test -s conftest$ac_exeext &&
9795 $as_test_x conftest$ac_exeext; then
9796 emacs_cv_var___after_morecore_hook=yes
9797 else
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9801 emacs_cv_var___after_morecore_hook=no
9804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9805 conftest$ac_exeext conftest.$ac_ext
9807 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9808 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9809 if test $emacs_cv_var___after_morecore_hook = no; then
9810 doug_lea_malloc=no
9812 if test "${system_malloc}" = "yes"; then
9813 GNU_MALLOC=no
9814 GNU_MALLOC_reason="
9815 (The GNU allocators don't work with this system configuration.)"
9817 if test "$doug_lea_malloc" = "yes" ; then
9818 if test "$GNU_MALLOC" = yes ; then
9819 GNU_MALLOC_reason="
9820 (Using Doug Lea's new malloc from the GNU C Library.)"
9823 cat >>confdefs.h <<\_ACEOF
9824 #define DOUG_LEA_MALLOC 1
9825 _ACEOF
9829 if test x"${REL_ALLOC}" = x; then
9830 REL_ALLOC=${GNU_MALLOC}
9836 for ac_header in stdlib.h unistd.h
9838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 ac_res=`eval echo '${'$as_ac_Header'}'`
9846 { echo "$as_me:$LINENO: result: $ac_res" >&5
9847 echo "${ECHO_T}$ac_res" >&6; }
9848 else
9849 # Is the header compilable?
9850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9852 cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h. */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9858 $ac_includes_default
9859 #include <$ac_header>
9860 _ACEOF
9861 rm -f conftest.$ac_objext
9862 if { (ac_try="$ac_compile"
9863 case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_compile") 2>conftest.er1
9869 ac_status=$?
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } && {
9875 test -z "$ac_c_werror_flag" ||
9876 test ! -s conftest.err
9877 } && test -s conftest.$ac_objext; then
9878 ac_header_compiler=yes
9879 else
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ac_header_compiler=no
9886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9888 echo "${ECHO_T}$ac_header_compiler" >&6; }
9890 # Is the header present?
9891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h. */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 #include <$ac_header>
9900 _ACEOF
9901 if { (ac_try="$ac_cpp conftest.$ac_ext"
9902 case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905 esac
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9908 ac_status=$?
9909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } >/dev/null && {
9914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9915 test ! -s conftest.err
9916 }; then
9917 ac_header_preproc=yes
9918 else
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_header_preproc=no
9925 rm -f conftest.err conftest.$ac_ext
9926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9927 echo "${ECHO_T}$ac_header_preproc" >&6; }
9929 # So? What about this header?
9930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9931 yes:no: )
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9936 ac_header_preproc=yes
9938 no:yes:* )
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9953 esac
9954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959 eval "$as_ac_Header=\$ac_header_preproc"
9961 ac_res=`eval echo '${'$as_ac_Header'}'`
9962 { echo "$as_me:$LINENO: result: $ac_res" >&5
9963 echo "${ECHO_T}$ac_res" >&6; }
9966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9967 cat >>confdefs.h <<_ACEOF
9968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9969 _ACEOF
9973 done
9976 for ac_func in getpagesize
9978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9992 #define $ac_func innocuous_$ac_func
9994 /* System header to define __stub macros and hopefully few prototypes,
9995 which can conflict with char $ac_func (); below.
9996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9997 <limits.h> exists even on freestanding compilers. */
9999 #ifdef __STDC__
10000 # include <limits.h>
10001 #else
10002 # include <assert.h>
10003 #endif
10005 #undef $ac_func
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 char $ac_func ();
10014 /* The GNU C library defines this for functions which it implements
10015 to always fail with ENOSYS. Some functions are actually named
10016 something starting with __ and the normal name is an alias. */
10017 #if defined __stub_$ac_func || defined __stub___$ac_func
10018 choke me
10019 #endif
10022 main ()
10024 return $ac_func ();
10026 return 0;
10028 _ACEOF
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10034 esac
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } && {
10043 test -z "$ac_c_werror_flag" ||
10044 test ! -s conftest.err
10045 } && test -s conftest$ac_exeext &&
10046 $as_test_x conftest$ac_exeext; then
10047 eval "$as_ac_var=yes"
10048 else
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 eval "$as_ac_var=no"
10055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10056 conftest$ac_exeext conftest.$ac_ext
10058 ac_res=`eval echo '${'$as_ac_var'}'`
10059 { echo "$as_me:$LINENO: result: $ac_res" >&5
10060 echo "${ECHO_T}$ac_res" >&6; }
10061 if test `eval echo '${'$as_ac_var'}'` = yes; then
10062 cat >>confdefs.h <<_ACEOF
10063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10064 _ACEOF
10067 done
10069 { echo "$as_me:$LINENO: checking for working mmap" >&5
10070 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10071 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074 if test "$cross_compiling" = yes; then
10075 ac_cv_func_mmap_fixed_mapped=no
10076 else
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h. */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 $ac_includes_default
10084 /* malloc might have been renamed as rpl_malloc. */
10085 #undef malloc
10087 /* Thanks to Mike Haertel and Jim Avera for this test.
10088 Here is a matrix of mmap possibilities:
10089 mmap private not fixed
10090 mmap private fixed at somewhere currently unmapped
10091 mmap private fixed at somewhere already mapped
10092 mmap shared not fixed
10093 mmap shared fixed at somewhere currently unmapped
10094 mmap shared fixed at somewhere already mapped
10095 For private mappings, we should verify that changes cannot be read()
10096 back from the file, nor mmap's back from the file at a different
10097 address. (There have been systems where private was not correctly
10098 implemented like the infamous i386 svr4.0, and systems where the
10099 VM page cache was not coherent with the file system buffer cache
10100 like early versions of FreeBSD and possibly contemporary NetBSD.)
10101 For shared mappings, we should conversely verify that changes get
10102 propagated back to all the places they're supposed to be.
10104 Grep wants private fixed already mapped.
10105 The main things grep needs to know about mmap are:
10106 * does it exist and is it safe to write into the mmap'd area
10107 * how to use it (BSD variants) */
10109 #include <fcntl.h>
10110 #include <sys/mman.h>
10112 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10113 char *malloc ();
10114 #endif
10116 /* This mess was copied from the GNU getpagesize.h. */
10117 #ifndef HAVE_GETPAGESIZE
10118 /* Assume that all systems that can run configure have sys/param.h. */
10119 # ifndef HAVE_SYS_PARAM_H
10120 # define HAVE_SYS_PARAM_H 1
10121 # endif
10123 # ifdef _SC_PAGESIZE
10124 # define getpagesize() sysconf(_SC_PAGESIZE)
10125 # else /* no _SC_PAGESIZE */
10126 # ifdef HAVE_SYS_PARAM_H
10127 # include <sys/param.h>
10128 # ifdef EXEC_PAGESIZE
10129 # define getpagesize() EXEC_PAGESIZE
10130 # else /* no EXEC_PAGESIZE */
10131 # ifdef NBPG
10132 # define getpagesize() NBPG * CLSIZE
10133 # ifndef CLSIZE
10134 # define CLSIZE 1
10135 # endif /* no CLSIZE */
10136 # else /* no NBPG */
10137 # ifdef NBPC
10138 # define getpagesize() NBPC
10139 # else /* no NBPC */
10140 # ifdef PAGESIZE
10141 # define getpagesize() PAGESIZE
10142 # endif /* PAGESIZE */
10143 # endif /* no NBPC */
10144 # endif /* no NBPG */
10145 # endif /* no EXEC_PAGESIZE */
10146 # else /* no HAVE_SYS_PARAM_H */
10147 # define getpagesize() 8192 /* punt totally */
10148 # endif /* no HAVE_SYS_PARAM_H */
10149 # endif /* no _SC_PAGESIZE */
10151 #endif /* no HAVE_GETPAGESIZE */
10154 main ()
10156 char *data, *data2, *data3;
10157 int i, pagesize;
10158 int fd;
10160 pagesize = getpagesize ();
10162 /* First, make a file with some known garbage in it. */
10163 data = (char *) malloc (pagesize);
10164 if (!data)
10165 return 1;
10166 for (i = 0; i < pagesize; ++i)
10167 *(data + i) = rand ();
10168 umask (0);
10169 fd = creat ("conftest.mmap", 0600);
10170 if (fd < 0)
10171 return 1;
10172 if (write (fd, data, pagesize) != pagesize)
10173 return 1;
10174 close (fd);
10176 /* Next, try to mmap the file at a fixed address which already has
10177 something else allocated at it. If we can, also make sure that
10178 we see the same garbage. */
10179 fd = open ("conftest.mmap", O_RDWR);
10180 if (fd < 0)
10181 return 1;
10182 data2 = (char *) malloc (2 * pagesize);
10183 if (!data2)
10184 return 1;
10185 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10186 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10187 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10188 return 1;
10189 for (i = 0; i < pagesize; ++i)
10190 if (*(data + i) != *(data2 + i))
10191 return 1;
10193 /* Finally, make sure that changes to the mapped area do not
10194 percolate back to the file as seen by read(). (This is a bug on
10195 some variants of i386 svr4.0.) */
10196 for (i = 0; i < pagesize; ++i)
10197 *(data2 + i) = *(data2 + i) + 1;
10198 data3 = (char *) malloc (pagesize);
10199 if (!data3)
10200 return 1;
10201 if (read (fd, data3, pagesize) != pagesize)
10202 return 1;
10203 for (i = 0; i < pagesize; ++i)
10204 if (*(data + i) != *(data3 + i))
10205 return 1;
10206 close (fd);
10207 return 0;
10209 _ACEOF
10210 rm -f conftest$ac_exeext
10211 if { (ac_try="$ac_link"
10212 case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10215 esac
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_link") 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10221 { (case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10224 esac
10225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_try") 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_func_mmap_fixed_mapped=yes
10231 else
10232 echo "$as_me: program exited with status $ac_status" >&5
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10236 ( exit $ac_status )
10237 ac_cv_func_mmap_fixed_mapped=no
10239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10244 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10245 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10246 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10248 cat >>confdefs.h <<\_ACEOF
10249 #define HAVE_MMAP 1
10250 _ACEOF
10253 rm -f conftest.mmap
10255 if test $use_mmap_for_buffers = yes; then
10256 REL_ALLOC=no
10259 LIBS="$libsrc_libs $LIBS"
10262 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10263 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10264 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 else
10267 ac_check_lib_save_LIBS=$LIBS
10268 LIBS="-ldnet $LIBS"
10269 cat >conftest.$ac_ext <<_ACEOF
10270 /* confdefs.h. */
10271 _ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10276 /* Override any GCC internal prototype to avoid an error.
10277 Use char because int might match the return type of a GCC
10278 builtin and then its argument prototype would still apply. */
10279 #ifdef __cplusplus
10280 extern "C"
10281 #endif
10282 char dnet_ntoa ();
10284 main ()
10286 return dnet_ntoa ();
10288 return 0;
10290 _ACEOF
10291 rm -f conftest.$ac_objext conftest$ac_exeext
10292 if { (ac_try="$ac_link"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_link") 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && {
10305 test -z "$ac_c_werror_flag" ||
10306 test ! -s conftest.err
10307 } && test -s conftest$ac_exeext &&
10308 $as_test_x conftest$ac_exeext; then
10309 ac_cv_lib_dnet_dnet_ntoa=yes
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 ac_cv_lib_dnet_dnet_ntoa=no
10317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10321 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10322 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10323 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10324 cat >>confdefs.h <<_ACEOF
10325 #define HAVE_LIBDNET 1
10326 _ACEOF
10328 LIBS="-ldnet $LIBS"
10333 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10334 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10335 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338 ac_check_lib_save_LIBS=$LIBS
10339 LIBS="-lXbsd $LIBS"
10340 cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h. */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10349 main ()
10351 return main ();
10353 return 0;
10355 _ACEOF
10356 rm -f conftest.$ac_objext conftest$ac_exeext
10357 if { (ac_try="$ac_link"
10358 case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_link") 2>conftest.er1
10364 ac_status=$?
10365 grep -v '^ *+' conftest.er1 >conftest.err
10366 rm -f conftest.er1
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && {
10370 test -z "$ac_c_werror_flag" ||
10371 test ! -s conftest.err
10372 } && test -s conftest$ac_exeext &&
10373 $as_test_x conftest$ac_exeext; then
10374 ac_cv_lib_Xbsd_main=yes
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 ac_cv_lib_Xbsd_main=no
10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_lib_save_LIBS
10386 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10387 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10388 if test $ac_cv_lib_Xbsd_main = yes; then
10389 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10394 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10395 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10396 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399 ac_check_lib_save_LIBS=$LIBS
10400 LIBS="-lpthreads $LIBS"
10401 cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h. */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10408 /* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10411 #ifdef __cplusplus
10412 extern "C"
10413 #endif
10414 char cma_open ();
10416 main ()
10418 return cma_open ();
10420 return 0;
10422 _ACEOF
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (ac_try="$ac_link"
10425 case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_link") 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && {
10437 test -z "$ac_c_werror_flag" ||
10438 test ! -s conftest.err
10439 } && test -s conftest$ac_exeext &&
10440 $as_test_x conftest$ac_exeext; then
10441 ac_cv_lib_pthreads_cma_open=yes
10442 else
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 ac_cv_lib_pthreads_cma_open=no
10449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10450 conftest$ac_exeext conftest.$ac_ext
10451 LIBS=$ac_check_lib_save_LIBS
10453 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10454 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10455 if test $ac_cv_lib_pthreads_cma_open = yes; then
10456 cat >>confdefs.h <<_ACEOF
10457 #define HAVE_LIBPTHREADS 1
10458 _ACEOF
10460 LIBS="-lpthreads $LIBS"
10466 case ${host_os} in
10467 aix*)
10468 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10469 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10470 if test "${gdb_cv_bigtoc+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10474 case $GCC in
10475 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10476 *) gdb_cv_bigtoc=-bbigtoc ;;
10477 esac
10479 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10480 cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h. */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10488 main ()
10490 int i;
10492 return 0;
10494 _ACEOF
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (ac_try="$ac_link"
10497 case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10500 esac
10501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_link") 2>conftest.er1
10503 ac_status=$?
10504 grep -v '^ *+' conftest.er1 >conftest.err
10505 rm -f conftest.er1
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } && {
10509 test -z "$ac_c_werror_flag" ||
10510 test ! -s conftest.err
10511 } && test -s conftest$ac_exeext &&
10512 $as_test_x conftest$ac_exeext; then
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 gdb_cv_bigtoc=
10521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10522 conftest$ac_exeext conftest.$ac_ext
10525 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10526 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10528 esac
10530 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10531 # used for the tests that follow. We set them back to REAL_CFLAGS and
10532 # REAL_CPPFLAGS later on.
10534 REAL_CPPFLAGS="$CPPFLAGS"
10536 if test "${HAVE_X11}" = "yes"; then
10537 DEFS="$C_SWITCH_X_SITE $DEFS"
10538 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10539 LIBS="$LIBX $LIBS"
10540 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10541 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10543 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10544 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10545 # but it's more convenient here to set LD_RUN_PATH
10546 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10547 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10548 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10549 export LD_RUN_PATH
10552 if test "${opsys}" = "gnu-linux"; then
10553 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10554 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h. */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10563 main ()
10565 XOpenDisplay ("foo");
10567 return 0;
10569 _ACEOF
10570 rm -f conftest.$ac_objext conftest$ac_exeext
10571 if { (ac_try="$ac_link"
10572 case "(($ac_try" in
10573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574 *) ac_try_echo=$ac_try;;
10575 esac
10576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_link") 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 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_exeext &&
10587 $as_test_x conftest$ac_exeext; then
10588 xlinux_first_failure=no
10589 else
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 xlinux_first_failure=yes
10596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10597 conftest$ac_exeext conftest.$ac_ext
10598 if test "${xlinux_first_failure}" = "yes"; then
10599 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10600 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10601 OLD_CPPFLAGS="$CPPFLAGS"
10602 OLD_LIBS="$LIBS"
10603 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10604 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10605 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10606 LIBS="$LIBS -b i486-linuxaout"
10607 cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h. */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10615 main ()
10617 XOpenDisplay ("foo");
10619 return 0;
10621 _ACEOF
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10627 esac
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_link") 2>conftest.er1
10630 ac_status=$?
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } && {
10636 test -z "$ac_c_werror_flag" ||
10637 test ! -s conftest.err
10638 } && test -s conftest$ac_exeext &&
10639 $as_test_x conftest$ac_exeext; then
10640 xlinux_second_failure=no
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 xlinux_second_failure=yes
10648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10649 conftest$ac_exeext conftest.$ac_ext
10650 if test "${xlinux_second_failure}" = "yes"; then
10651 # If we get the same failure with -b, there is no use adding -b.
10652 # So take it out. This plays safe.
10653 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10654 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10655 CPPFLAGS="$OLD_CPPFLAGS"
10656 LIBS="$OLD_LIBS"
10657 { echo "$as_me:$LINENO: result: no" >&5
10658 echo "${ECHO_T}no" >&6; }
10659 else
10660 { echo "$as_me:$LINENO: result: yes" >&5
10661 echo "${ECHO_T}yes" >&6; }
10663 else
10664 { echo "$as_me:$LINENO: result: no" >&5
10665 echo "${ECHO_T}no" >&6; }
10669 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10670 # header files included from there.
10671 { echo "$as_me:$LINENO: checking for Xkb" >&5
10672 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10673 cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h. */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 #include <X11/Xlib.h>
10680 #include <X11/XKBlib.h>
10682 main ()
10684 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10686 return 0;
10688 _ACEOF
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (ac_try="$ac_link"
10691 case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694 esac
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_link") 2>conftest.er1
10697 ac_status=$?
10698 grep -v '^ *+' conftest.er1 >conftest.err
10699 rm -f conftest.er1
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && {
10703 test -z "$ac_c_werror_flag" ||
10704 test ! -s conftest.err
10705 } && test -s conftest$ac_exeext &&
10706 $as_test_x conftest$ac_exeext; then
10707 emacs_xkb=yes
10708 else
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 emacs_xkb=no
10715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10716 conftest$ac_exeext conftest.$ac_ext
10717 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10718 echo "${ECHO_T}$emacs_xkb" >&6; }
10719 if test $emacs_xkb = yes; then
10721 cat >>confdefs.h <<\_ACEOF
10722 #define HAVE_XKBGETKEYBOARD 1
10723 _ACEOF
10731 for ac_func in XrmSetDatabase XScreenResourceString \
10732 XScreenNumberOfScreen XSetWMProtocols
10734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h. */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10748 #define $ac_func innocuous_$ac_func
10750 /* System header to define __stub macros and hopefully few prototypes,
10751 which can conflict with char $ac_func (); below.
10752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10753 <limits.h> exists even on freestanding compilers. */
10755 #ifdef __STDC__
10756 # include <limits.h>
10757 #else
10758 # include <assert.h>
10759 #endif
10761 #undef $ac_func
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char $ac_func ();
10770 /* The GNU C library defines this for functions which it implements
10771 to always fail with ENOSYS. Some functions are actually named
10772 something starting with __ and the normal name is an alias. */
10773 #if defined __stub_$ac_func || defined __stub___$ac_func
10774 choke me
10775 #endif
10778 main ()
10780 return $ac_func ();
10782 return 0;
10784 _ACEOF
10785 rm -f conftest.$ac_objext conftest$ac_exeext
10786 if { (ac_try="$ac_link"
10787 case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_link") 2>conftest.er1
10793 ac_status=$?
10794 grep -v '^ *+' conftest.er1 >conftest.err
10795 rm -f conftest.er1
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } && {
10799 test -z "$ac_c_werror_flag" ||
10800 test ! -s conftest.err
10801 } && test -s conftest$ac_exeext &&
10802 $as_test_x conftest$ac_exeext; then
10803 eval "$as_ac_var=yes"
10804 else
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 eval "$as_ac_var=no"
10811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10812 conftest$ac_exeext conftest.$ac_ext
10814 ac_res=`eval echo '${'$as_ac_var'}'`
10815 { echo "$as_me:$LINENO: result: $ac_res" >&5
10816 echo "${ECHO_T}$ac_res" >&6; }
10817 if test `eval echo '${'$as_ac_var'}'` = yes; then
10818 cat >>confdefs.h <<_ACEOF
10819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10820 _ACEOF
10823 done
10827 if test "${window_system}" = "x11"; then
10828 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10829 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10830 if test "${emacs_cv_x11_version_6+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10833 cat >conftest.$ac_ext <<_ACEOF
10834 /* confdefs.h. */
10835 _ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10839 #include <X11/Xlib.h>
10841 main ()
10843 #if XlibSpecificationRelease < 6
10844 fail;
10845 #endif
10848 return 0;
10850 _ACEOF
10851 rm -f conftest.$ac_objext conftest$ac_exeext
10852 if { (ac_try="$ac_link"
10853 case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10856 esac
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_link") 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } && {
10865 test -z "$ac_c_werror_flag" ||
10866 test ! -s conftest.err
10867 } && test -s conftest$ac_exeext &&
10868 $as_test_x conftest$ac_exeext; then
10869 emacs_cv_x11_version_6=yes
10870 else
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10874 emacs_cv_x11_version_6=no
10877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10878 conftest$ac_exeext conftest.$ac_ext
10881 if test $emacs_cv_x11_version_6 = yes; then
10882 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10883 echo "${ECHO_T}6 or newer" >&6; }
10885 cat >>confdefs.h <<\_ACEOF
10886 #define HAVE_X11R6 1
10887 _ACEOF
10889 else
10890 { echo "$as_me:$LINENO: result: before 6" >&5
10891 echo "${ECHO_T}before 6" >&6; }
10896 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10897 HAVE_RSVG=no
10898 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10899 if test "${with_rsvg}" != "no"; then
10900 RSVG_REQUIRED=2.0.0
10901 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10904 succeeded=no
10906 # Extract the first word of "pkg-config", so it can be a program name with args.
10907 set dummy pkg-config; ac_word=$2
10908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10910 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913 case $PKG_CONFIG in
10914 [\\/]* | ?:[\\/]*)
10915 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919 for as_dir in $PATH
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10925 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10929 done
10930 done
10931 IFS=$as_save_IFS
10933 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10935 esac
10937 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10938 if test -n "$PKG_CONFIG"; then
10939 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10940 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10941 else
10942 { echo "$as_me:$LINENO: result: no" >&5
10943 echo "${ECHO_T}no" >&6; }
10948 if test "$PKG_CONFIG" = "no" ; then
10950 else
10951 PKG_CONFIG_MIN_VERSION=0.9.0
10952 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10953 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10954 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10956 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10957 { echo "$as_me:$LINENO: result: yes" >&5
10958 echo "${ECHO_T}yes" >&6; }
10959 succeeded=yes
10961 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10962 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10963 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10964 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10965 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10967 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10968 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10969 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10970 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10971 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10972 else
10973 { echo "$as_me:$LINENO: result: no" >&5
10974 echo "${ECHO_T}no" >&6; }
10975 RSVG_CFLAGS=""
10976 RSVG_LIBS=""
10977 ## If we have a custom action on failure, don't print errors, but
10978 ## do set a variable so people can do so.
10979 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10985 else
10986 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10987 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10991 if test $succeeded = yes; then
10993 else
11000 if test ".${RSVG_CFLAGS}" != "."; then
11001 HAVE_RSVG=yes
11003 cat >>confdefs.h <<\_ACEOF
11004 #define HAVE_RSVG 1
11005 _ACEOF
11007 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11008 LIBS="$RSVG_LIBS $LIBS"
11014 HAVE_GTK=no
11015 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11016 GLIB_REQUIRED=2.6
11017 GTK_REQUIRED=2.6
11018 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11021 succeeded=no
11023 # Extract the first word of "pkg-config", so it can be a program name with args.
11024 set dummy pkg-config; ac_word=$2
11025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030 case $PKG_CONFIG in
11031 [\\/]* | ?:[\\/]*)
11032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11038 IFS=$as_save_IFS
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
11041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11044 break 2
11046 done
11047 done
11048 IFS=$as_save_IFS
11050 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11052 esac
11054 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11055 if test -n "$PKG_CONFIG"; then
11056 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11057 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11058 else
11059 { echo "$as_me:$LINENO: result: no" >&5
11060 echo "${ECHO_T}no" >&6; }
11065 if test "$PKG_CONFIG" = "no" ; then
11066 pkg_check_gtk=no
11067 else
11068 PKG_CONFIG_MIN_VERSION=0.9.0
11069 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11070 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11071 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11073 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11074 { echo "$as_me:$LINENO: result: yes" >&5
11075 echo "${ECHO_T}yes" >&6; }
11076 succeeded=yes
11078 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11079 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11080 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11081 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11082 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11084 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11085 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11086 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11087 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11088 echo "${ECHO_T}$GTK_LIBS" >&6; }
11089 else
11090 { echo "$as_me:$LINENO: result: no" >&5
11091 echo "${ECHO_T}no" >&6; }
11092 GTK_CFLAGS=""
11093 GTK_LIBS=""
11094 ## If we have a custom action on failure, don't print errors, but
11095 ## do set a variable so people can do so.
11096 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11102 else
11103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11108 if test $succeeded = yes; then
11109 pkg_check_gtk=yes
11110 else
11111 pkg_check_gtk=no
11114 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11115 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11116 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11117 { (exit 1); exit 1; }; }
11122 if test x"$pkg_check_gtk" = xyes; then
11126 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11127 CFLAGS="$CFLAGS $GTK_CFLAGS"
11128 LIBS="$GTK_LIBS $LIBS"
11129 GTK_COMPILES=no
11131 for ac_func in gtk_main
11133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h. */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11147 #define $ac_func innocuous_$ac_func
11149 /* System header to define __stub macros and hopefully few prototypes,
11150 which can conflict with char $ac_func (); below.
11151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11152 <limits.h> exists even on freestanding compilers. */
11154 #ifdef __STDC__
11155 # include <limits.h>
11156 #else
11157 # include <assert.h>
11158 #endif
11160 #undef $ac_func
11162 /* Override any GCC internal prototype to avoid an error.
11163 Use char because int might match the return type of a GCC
11164 builtin and then its argument prototype would still apply. */
11165 #ifdef __cplusplus
11166 extern "C"
11167 #endif
11168 char $ac_func ();
11169 /* The GNU C library defines this for functions which it implements
11170 to always fail with ENOSYS. Some functions are actually named
11171 something starting with __ and the normal name is an alias. */
11172 #if defined __stub_$ac_func || defined __stub___$ac_func
11173 choke me
11174 #endif
11177 main ()
11179 return $ac_func ();
11181 return 0;
11183 _ACEOF
11184 rm -f conftest.$ac_objext conftest$ac_exeext
11185 if { (ac_try="$ac_link"
11186 case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11189 esac
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_link") 2>conftest.er1
11192 ac_status=$?
11193 grep -v '^ *+' conftest.er1 >conftest.err
11194 rm -f conftest.er1
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && {
11198 test -z "$ac_c_werror_flag" ||
11199 test ! -s conftest.err
11200 } && test -s conftest$ac_exeext &&
11201 $as_test_x conftest$ac_exeext; then
11202 eval "$as_ac_var=yes"
11203 else
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 eval "$as_ac_var=no"
11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11211 conftest$ac_exeext conftest.$ac_ext
11213 ac_res=`eval echo '${'$as_ac_var'}'`
11214 { echo "$as_me:$LINENO: result: $ac_res" >&5
11215 echo "${ECHO_T}$ac_res" >&6; }
11216 if test `eval echo '${'$as_ac_var'}'` = yes; then
11217 cat >>confdefs.h <<_ACEOF
11218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11219 _ACEOF
11220 GTK_COMPILES=yes
11222 done
11224 if test "${GTK_COMPILES}" != "yes"; then
11225 if test "$USE_X_TOOLKIT" != "maybe"; then
11226 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11227 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11228 { (exit 1); exit 1; }; };
11230 else
11231 HAVE_GTK=yes
11233 cat >>confdefs.h <<\_ACEOF
11234 #define USE_GTK 1
11235 _ACEOF
11237 USE_X_TOOLKIT=none
11238 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11240 else
11241 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11242 closing open displays. This is no problem if you just use
11243 one display, but if you use more than one and close one of them
11244 Emacs may crash." >&5
11245 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11246 closing open displays. This is no problem if you just use
11247 one display, but if you use more than one and close one of them
11248 Emacs may crash." >&2;}
11249 sleep 3
11256 if test "${HAVE_GTK}" = "yes"; then
11258 if test "$with_toolkit_scroll_bars" != no; then
11259 with_toolkit_scroll_bars=yes
11262 HAVE_GTK_MULTIDISPLAY=no
11264 for ac_func in gdk_display_open
11266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272 cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h. */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11280 #define $ac_func innocuous_$ac_func
11282 /* System header to define __stub macros and hopefully few prototypes,
11283 which can conflict with char $ac_func (); below.
11284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11285 <limits.h> exists even on freestanding compilers. */
11287 #ifdef __STDC__
11288 # include <limits.h>
11289 #else
11290 # include <assert.h>
11291 #endif
11293 #undef $ac_func
11295 /* Override any GCC internal prototype to avoid an error.
11296 Use char because int might match the return type of a GCC
11297 builtin and then its argument prototype would still apply. */
11298 #ifdef __cplusplus
11299 extern "C"
11300 #endif
11301 char $ac_func ();
11302 /* The GNU C library defines this for functions which it implements
11303 to always fail with ENOSYS. Some functions are actually named
11304 something starting with __ and the normal name is an alias. */
11305 #if defined __stub_$ac_func || defined __stub___$ac_func
11306 choke me
11307 #endif
11310 main ()
11312 return $ac_func ();
11314 return 0;
11316 _ACEOF
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (ac_try="$ac_link"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_link") 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } && {
11331 test -z "$ac_c_werror_flag" ||
11332 test ! -s conftest.err
11333 } && test -s conftest$ac_exeext &&
11334 $as_test_x conftest$ac_exeext; then
11335 eval "$as_ac_var=yes"
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 eval "$as_ac_var=no"
11343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11344 conftest$ac_exeext conftest.$ac_ext
11346 ac_res=`eval echo '${'$as_ac_var'}'`
11347 { echo "$as_me:$LINENO: result: $ac_res" >&5
11348 echo "${ECHO_T}$ac_res" >&6; }
11349 if test `eval echo '${'$as_ac_var'}'` = yes; then
11350 cat >>confdefs.h <<_ACEOF
11351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11352 _ACEOF
11353 HAVE_GTK_MULTIDISPLAY=yes
11355 done
11357 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11359 cat >>confdefs.h <<\_ACEOF
11360 #define HAVE_GTK_MULTIDISPLAY 1
11361 _ACEOF
11365 HAVE_GTK_FILE_SELECTION=no
11367 for ac_func in gtk_file_selection_new
11369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375 cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h. */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11383 #define $ac_func innocuous_$ac_func
11385 /* System header to define __stub macros and hopefully few prototypes,
11386 which can conflict with char $ac_func (); below.
11387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11388 <limits.h> exists even on freestanding compilers. */
11390 #ifdef __STDC__
11391 # include <limits.h>
11392 #else
11393 # include <assert.h>
11394 #endif
11396 #undef $ac_func
11398 /* Override any GCC internal prototype to avoid an error.
11399 Use char because int might match the return type of a GCC
11400 builtin and then its argument prototype would still apply. */
11401 #ifdef __cplusplus
11402 extern "C"
11403 #endif
11404 char $ac_func ();
11405 /* The GNU C library defines this for functions which it implements
11406 to always fail with ENOSYS. Some functions are actually named
11407 something starting with __ and the normal name is an alias. */
11408 #if defined __stub_$ac_func || defined __stub___$ac_func
11409 choke me
11410 #endif
11413 main ()
11415 return $ac_func ();
11417 return 0;
11419 _ACEOF
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (ac_try="$ac_link"
11422 case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11425 esac
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_link") 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } && {
11434 test -z "$ac_c_werror_flag" ||
11435 test ! -s conftest.err
11436 } && test -s conftest$ac_exeext &&
11437 $as_test_x conftest$ac_exeext; then
11438 eval "$as_ac_var=yes"
11439 else
11440 echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.$ac_ext >&5
11443 eval "$as_ac_var=no"
11446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11447 conftest$ac_exeext conftest.$ac_ext
11449 ac_res=`eval echo '${'$as_ac_var'}'`
11450 { echo "$as_me:$LINENO: result: $ac_res" >&5
11451 echo "${ECHO_T}$ac_res" >&6; }
11452 if test `eval echo '${'$as_ac_var'}'` = yes; then
11453 cat >>confdefs.h <<_ACEOF
11454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11455 _ACEOF
11456 HAVE_GTK_FILE_SELECTION=yes
11458 done
11461 HAVE_GTK_FILE_CHOOSER=no
11463 for ac_func in gtk_file_chooser_dialog_new
11465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 else
11471 cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h. */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11479 #define $ac_func innocuous_$ac_func
11481 /* System header to define __stub macros and hopefully few prototypes,
11482 which can conflict with char $ac_func (); below.
11483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11484 <limits.h> exists even on freestanding compilers. */
11486 #ifdef __STDC__
11487 # include <limits.h>
11488 #else
11489 # include <assert.h>
11490 #endif
11492 #undef $ac_func
11494 /* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11497 #ifdef __cplusplus
11498 extern "C"
11499 #endif
11500 char $ac_func ();
11501 /* The GNU C library defines this for functions which it implements
11502 to always fail with ENOSYS. Some functions are actually named
11503 something starting with __ and the normal name is an alias. */
11504 #if defined __stub_$ac_func || defined __stub___$ac_func
11505 choke me
11506 #endif
11509 main ()
11511 return $ac_func ();
11513 return 0;
11515 _ACEOF
11516 rm -f conftest.$ac_objext conftest$ac_exeext
11517 if { (ac_try="$ac_link"
11518 case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11521 esac
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_link") 2>conftest.er1
11524 ac_status=$?
11525 grep -v '^ *+' conftest.er1 >conftest.err
11526 rm -f conftest.er1
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } && {
11530 test -z "$ac_c_werror_flag" ||
11531 test ! -s conftest.err
11532 } && test -s conftest$ac_exeext &&
11533 $as_test_x conftest$ac_exeext; then
11534 eval "$as_ac_var=yes"
11535 else
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 eval "$as_ac_var=no"
11542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11543 conftest$ac_exeext conftest.$ac_ext
11545 ac_res=`eval echo '${'$as_ac_var'}'`
11546 { echo "$as_me:$LINENO: result: $ac_res" >&5
11547 echo "${ECHO_T}$ac_res" >&6; }
11548 if test `eval echo '${'$as_ac_var'}'` = yes; then
11549 cat >>confdefs.h <<_ACEOF
11550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11551 _ACEOF
11552 HAVE_GTK_FILE_CHOOSER=yes
11554 done
11557 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11558 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11560 cat >>confdefs.h <<\_ACEOF
11561 #define HAVE_GTK_FILE_BOTH 1
11562 _ACEOF
11566 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11567 HAVE_GTK_AND_PTHREAD=no
11569 for ac_header in pthread.h
11571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 ac_res=`eval echo '${'$as_ac_Header'}'`
11579 { echo "$as_me:$LINENO: result: $ac_res" >&5
11580 echo "${ECHO_T}$ac_res" >&6; }
11581 else
11582 # Is the header compilable?
11583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11585 cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h. */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 $ac_includes_default
11592 #include <$ac_header>
11593 _ACEOF
11594 rm -f conftest.$ac_objext
11595 if { (ac_try="$ac_compile"
11596 case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11599 esac
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_compile") 2>conftest.er1
11602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } && {
11608 test -z "$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 } && test -s conftest.$ac_objext; then
11611 ac_header_compiler=yes
11612 else
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_header_compiler=no
11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11621 echo "${ECHO_T}$ac_header_compiler" >&6; }
11623 # Is the header present?
11624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 #include <$ac_header>
11633 _ACEOF
11634 if { (ac_try="$ac_cpp conftest.$ac_ext"
11635 case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } >/dev/null && {
11647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 }; then
11650 ac_header_preproc=yes
11651 else
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_header_preproc=no
11658 rm -f conftest.err conftest.$ac_ext
11659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11660 echo "${ECHO_T}$ac_header_preproc" >&6; }
11662 # So? What about this header?
11663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11664 yes:no: )
11665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11669 ac_header_preproc=yes
11671 no:yes:* )
11672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11686 esac
11687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692 eval "$as_ac_Header=\$ac_header_preproc"
11694 ac_res=`eval echo '${'$as_ac_Header'}'`
11695 { echo "$as_me:$LINENO: result: $ac_res" >&5
11696 echo "${ECHO_T}$ac_res" >&6; }
11699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11700 cat >>confdefs.h <<_ACEOF
11701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11702 _ACEOF
11706 done
11708 if test "$ac_cv_header_pthread_h"; then
11709 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11710 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11711 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714 ac_check_lib_save_LIBS=$LIBS
11715 LIBS="-lpthread $LIBS"
11716 cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h. */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11723 /* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11726 #ifdef __cplusplus
11727 extern "C"
11728 #endif
11729 char pthread_self ();
11731 main ()
11733 return pthread_self ();
11735 return 0;
11737 _ACEOF
11738 rm -f conftest.$ac_objext conftest$ac_exeext
11739 if { (ac_try="$ac_link"
11740 case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11743 esac
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_link") 2>conftest.er1
11746 ac_status=$?
11747 grep -v '^ *+' conftest.er1 >conftest.err
11748 rm -f conftest.er1
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } && {
11752 test -z "$ac_c_werror_flag" ||
11753 test ! -s conftest.err
11754 } && test -s conftest$ac_exeext &&
11755 $as_test_x conftest$ac_exeext; then
11756 ac_cv_lib_pthread_pthread_self=yes
11757 else
11758 echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11761 ac_cv_lib_pthread_pthread_self=no
11764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11765 conftest$ac_exeext conftest.$ac_ext
11766 LIBS=$ac_check_lib_save_LIBS
11768 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11769 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11770 if test $ac_cv_lib_pthread_pthread_self = yes; then
11771 HAVE_GTK_AND_PTHREAD=yes
11775 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11776 case "${canonical}" in
11777 *-hpux*) ;;
11778 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11779 esac
11781 cat >>confdefs.h <<\_ACEOF
11782 #define HAVE_GTK_AND_PTHREAD 1
11783 _ACEOF
11789 HAVE_DBUS=no
11790 if test "${with_dbus}" = "yes"; then
11792 succeeded=no
11794 # Extract the first word of "pkg-config", so it can be a program name with args.
11795 set dummy pkg-config; ac_word=$2
11796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11798 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801 case $PKG_CONFIG in
11802 [\\/]* | ?:[\\/]*)
11803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11815 break 2
11817 done
11818 done
11819 IFS=$as_save_IFS
11821 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11823 esac
11825 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11826 if test -n "$PKG_CONFIG"; then
11827 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11828 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11829 else
11830 { echo "$as_me:$LINENO: result: no" >&5
11831 echo "${ECHO_T}no" >&6; }
11836 if test "$PKG_CONFIG" = "no" ; then
11837 HAVE_DBUS=no
11838 else
11839 PKG_CONFIG_MIN_VERSION=0.9.0
11840 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11841 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11842 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11844 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11845 { echo "$as_me:$LINENO: result: yes" >&5
11846 echo "${ECHO_T}yes" >&6; }
11847 succeeded=yes
11849 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11850 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11851 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11852 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11853 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11855 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11856 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11857 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11858 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11859 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11860 else
11861 { echo "$as_me:$LINENO: result: no" >&5
11862 echo "${ECHO_T}no" >&6; }
11863 DBUS_CFLAGS=""
11864 DBUS_LIBS=""
11865 ## If we have a custom action on failure, don't print errors, but
11866 ## do set a variable so people can do so.
11867 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11873 else
11874 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11875 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11879 if test $succeeded = yes; then
11880 HAVE_DBUS=yes
11881 else
11882 HAVE_DBUS=no
11885 if test "$HAVE_DBUS" = yes; then
11887 cat >>confdefs.h <<\_ACEOF
11888 #define HAVE_DBUS 1
11889 _ACEOF
11894 HAVE_XAW3D=no
11895 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11896 if test "$with_xaw3d" != no; then
11897 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11898 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11899 if test "${emacs_cv_xaw3d+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h. */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11909 #include <X11/Intrinsic.h>
11910 #include <X11/Xaw3d/Simple.h>
11912 main ()
11916 return 0;
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (ac_try="$ac_link"
11921 case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11924 esac
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_link") 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } && {
11933 test -z "$ac_c_werror_flag" ||
11934 test ! -s conftest.err
11935 } && test -s conftest$ac_exeext &&
11936 $as_test_x conftest$ac_exeext; then
11937 emacs_cv_xaw3d=yes
11938 else
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11942 emacs_cv_xaw3d=no
11945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11946 conftest$ac_exeext conftest.$ac_ext
11949 else
11950 emacs_cv_xaw3d=no
11952 if test $emacs_cv_xaw3d = yes; then
11953 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11954 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11955 USE_X_TOOLKIT=LUCID
11956 HAVE_XAW3D=yes
11958 cat >>confdefs.h <<\_ACEOF
11959 #define HAVE_XAW3D 1
11960 _ACEOF
11962 else
11963 { echo "$as_me:$LINENO: result: no" >&5
11964 echo "${ECHO_T}no" >&6; }
11965 { echo "$as_me:$LINENO: checking for libXaw" >&5
11966 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11967 if test "${emacs_cv_xaw+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 #include <X11/Intrinsic.h>
11978 #include <X11/Xaw/Simple.h>
11980 main ()
11984 return 0;
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992 esac
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_link") 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && {
12001 test -z "$ac_c_werror_flag" ||
12002 test ! -s conftest.err
12003 } && test -s conftest$ac_exeext &&
12004 $as_test_x conftest$ac_exeext; then
12005 emacs_cv_xaw=yes
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 emacs_cv_xaw=no
12013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12014 conftest$ac_exeext conftest.$ac_ext
12017 if test $emacs_cv_xaw = yes; then
12018 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12019 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12020 USE_X_TOOLKIT=LUCID
12021 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12022 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12023 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12024 { (exit 1); exit 1; }; }
12025 else
12026 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12027 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12028 USE_X_TOOLKIT=none
12033 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12035 if test "${USE_X_TOOLKIT}" != "none"; then
12036 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12037 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12038 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 else
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h. */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 #include <X11/Intrinsic.h>
12049 main ()
12051 #if XtSpecificationRelease < 6
12052 fail;
12053 #endif
12056 return 0;
12058 _ACEOF
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (ac_try="$ac_link"
12061 case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064 esac
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_link") 2>conftest.er1
12067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } && {
12073 test -z "$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 } && test -s conftest$ac_exeext &&
12076 $as_test_x conftest$ac_exeext; then
12077 emacs_cv_x11_toolkit_version_6=yes
12078 else
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 emacs_cv_x11_toolkit_version_6=no
12085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12086 conftest$ac_exeext conftest.$ac_ext
12089 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12090 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12091 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12092 echo "${ECHO_T}6 or newer" >&6; }
12094 cat >>confdefs.h <<\_ACEOF
12095 #define HAVE_X11XTR6 1
12096 _ACEOF
12098 else
12099 { echo "$as_me:$LINENO: result: before 6" >&5
12100 echo "${ECHO_T}before 6" >&6; }
12103 OLDLIBS="$LIBS"
12104 if test x$HAVE_X11XTR6 = xyes; then
12105 LIBS="-lXt -lSM -lICE $LIBS"
12106 else
12107 LIBS="-lXt $LIBS"
12110 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12111 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12112 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115 ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-lXmu $LIBS"
12117 cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h. */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 char XmuConvertStandardSelection ();
12132 main ()
12134 return XmuConvertStandardSelection ();
12136 return 0;
12138 _ACEOF
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (ac_try="$ac_link"
12141 case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12144 esac
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_link") 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } && {
12153 test -z "$ac_c_werror_flag" ||
12154 test ! -s conftest.err
12155 } && test -s conftest$ac_exeext &&
12156 $as_test_x conftest$ac_exeext; then
12157 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12158 else
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12166 conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12169 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12170 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12171 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12172 cat >>confdefs.h <<_ACEOF
12173 #define HAVE_LIBXMU 1
12174 _ACEOF
12176 LIBS="-lXmu $LIBS"
12180 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12183 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12184 if test "${HAVE_X11}" = "yes"; then
12185 if test "${USE_X_TOOLKIT}" != "none"; then
12187 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12188 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12189 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192 ac_check_lib_save_LIBS=$LIBS
12193 LIBS="-lXext $LIBS"
12194 cat >conftest.$ac_ext <<_ACEOF
12195 /* confdefs.h. */
12196 _ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12204 #ifdef __cplusplus
12205 extern "C"
12206 #endif
12207 char XShapeQueryExtension ();
12209 main ()
12211 return XShapeQueryExtension ();
12213 return 0;
12215 _ACEOF
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (ac_try="$ac_link"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221 esac
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest$ac_exeext &&
12233 $as_test_x conftest$ac_exeext; then
12234 ac_cv_lib_Xext_XShapeQueryExtension=yes
12235 else
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_cv_lib_Xext_XShapeQueryExtension=no
12242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12243 conftest$ac_exeext conftest.$ac_ext
12244 LIBS=$ac_check_lib_save_LIBS
12246 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12247 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12248 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12249 cat >>confdefs.h <<_ACEOF
12250 #define HAVE_LIBXEXT 1
12251 _ACEOF
12253 LIBS="-lXext $LIBS"
12260 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12261 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12262 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12263 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266 cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h. */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 #include <Xm/Xm.h>
12274 main ()
12276 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12277 int x = 5;
12278 #else
12279 Motif version prior to 2.1.
12280 #endif
12282 return 0;
12284 _ACEOF
12285 rm -f conftest.$ac_objext
12286 if { (ac_try="$ac_compile"
12287 case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290 esac
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_compile") 2>conftest.er1
12293 ac_status=$?
12294 grep -v '^ *+' conftest.er1 >conftest.err
12295 rm -f conftest.er1
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } && {
12299 test -z "$ac_c_werror_flag" ||
12300 test ! -s conftest.err
12301 } && test -s conftest.$ac_objext; then
12302 emacs_cv_motif_version_2_1=yes
12303 else
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12307 emacs_cv_motif_version_2_1=no
12310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12313 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12314 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12315 if test $emacs_cv_motif_version_2_1 = yes; then
12316 HAVE_LIBXP=no
12318 cat >>confdefs.h <<\_ACEOF
12319 #define HAVE_MOTIF_2_1 1
12320 _ACEOF
12322 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12323 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12324 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327 ac_check_lib_save_LIBS=$LIBS
12328 LIBS="-lXp $LIBS"
12329 cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h. */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12336 /* Override any GCC internal prototype to avoid an error.
12337 Use char because int might match the return type of a GCC
12338 builtin and then its argument prototype would still apply. */
12339 #ifdef __cplusplus
12340 extern "C"
12341 #endif
12342 char XpCreateContext ();
12344 main ()
12346 return XpCreateContext ();
12348 return 0;
12350 _ACEOF
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12356 esac
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_link") 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest$ac_exeext &&
12368 $as_test_x conftest$ac_exeext; then
12369 ac_cv_lib_Xp_XpCreateContext=yes
12370 else
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 ac_cv_lib_Xp_XpCreateContext=no
12377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12378 conftest$ac_exeext conftest.$ac_ext
12379 LIBS=$ac_check_lib_save_LIBS
12381 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12382 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12383 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12384 HAVE_LIBXP=yes
12387 if test ${HAVE_LIBXP} = yes; then
12389 cat >>confdefs.h <<\_ACEOF
12390 #define HAVE_LIBXP 1
12391 _ACEOF
12394 else
12395 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12396 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12397 if test "${emacs_cv_lesstif+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400 # We put this in CFLAGS temporarily to precede other -I options
12401 # that might be in CFLAGS temporarily.
12402 # We put this in CPPFLAGS where it precedes the other -I options.
12403 OLD_CPPFLAGS=$CPPFLAGS
12404 OLD_CFLAGS=$CFLAGS
12405 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12406 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h. */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12415 main ()
12417 int x = 5;
12419 return 0;
12421 _ACEOF
12422 rm -f conftest.$ac_objext
12423 if { (ac_try="$ac_compile"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_compile") 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest.$ac_objext; then
12439 emacs_cv_lesstif=yes
12440 else
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 emacs_cv_lesstif=no
12447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12449 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12450 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12451 if test $emacs_cv_lesstif = yes; then
12452 # Make sure this -I option remains in CPPFLAGS after it is set
12453 # back to REAL_CPPFLAGS.
12454 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12455 # have those other -I options anyway. Ultimately, having this
12456 # directory ultimately in CPPFLAGS will be enough.
12457 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12458 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12459 else
12460 CFLAGS=$OLD_CFLAGS
12461 CPPFLAGS=$OLD_CPPFLAGS
12468 USE_TOOLKIT_SCROLL_BARS=no
12469 if test "${with_toolkit_scroll_bars}" != "no"; then
12470 if test "${USE_X_TOOLKIT}" != "none"; then
12471 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12472 cat >>confdefs.h <<\_ACEOF
12473 #define USE_TOOLKIT_SCROLL_BARS 1
12474 _ACEOF
12476 HAVE_XAW3D=no
12477 USE_TOOLKIT_SCROLL_BARS=yes
12478 elif test "${HAVE_XAW3D}" = "yes"; then
12479 cat >>confdefs.h <<\_ACEOF
12480 #define USE_TOOLKIT_SCROLL_BARS 1
12481 _ACEOF
12483 USE_TOOLKIT_SCROLL_BARS=yes
12485 elif test "${HAVE_GTK}" = "yes"; then
12486 cat >>confdefs.h <<\_ACEOF
12487 #define USE_TOOLKIT_SCROLL_BARS 1
12488 _ACEOF
12490 USE_TOOLKIT_SCROLL_BARS=yes
12491 elif test "${HAVE_CARBON}" = "yes"; then
12492 cat >>confdefs.h <<\_ACEOF
12493 #define USE_TOOLKIT_SCROLL_BARS 1
12494 _ACEOF
12496 USE_TOOLKIT_SCROLL_BARS=yes
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h. */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12507 #include <X11/Xlib.h>
12508 #include <X11/Xresource.h>
12510 main ()
12512 XIMProc callback;
12514 return 0;
12516 _ACEOF
12517 rm -f conftest.$ac_objext
12518 if { (ac_try="$ac_compile"
12519 case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12522 esac
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_compile") 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } && {
12531 test -z "$ac_c_werror_flag" ||
12532 test ! -s conftest.err
12533 } && test -s conftest.$ac_objext; then
12534 HAVE_XIM=yes
12536 cat >>confdefs.h <<\_ACEOF
12537 #define HAVE_XIM 1
12538 _ACEOF
12540 else
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12544 HAVE_XIM=no
12547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550 if test "${with_xim}" != "no"; then
12552 cat >>confdefs.h <<\_ACEOF
12553 #define USE_XIM 1
12554 _ACEOF
12559 if test "${HAVE_XIM}" != "no"; then
12560 late_CFLAGS=$CFLAGS
12561 if test "$GCC" = yes; then
12562 CFLAGS="$CFLAGS --pedantic-errors"
12564 cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h. */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12571 #include <X11/Xlib.h>
12572 #include <X11/Xresource.h>
12574 main ()
12576 Display *display;
12577 XrmDatabase db;
12578 char *res_name;
12579 char *res_class;
12580 XIMProc callback;
12581 XPointer *client_data;
12582 #ifndef __GNUC__
12583 /* If we're not using GCC, it's probably not XFree86, and this is
12584 probably right, but we can't use something like --pedantic-errors. */
12585 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12586 char*, XIMProc, XPointer*);
12587 #endif
12588 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12589 client_data);
12591 return 0;
12593 _ACEOF
12594 rm -f conftest.$ac_objext
12595 if { (ac_try="$ac_compile"
12596 case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12599 esac
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_compile") 2>conftest.er1
12602 ac_status=$?
12603 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } && {
12608 test -z "$ac_c_werror_flag" ||
12609 test ! -s conftest.err
12610 } && test -s conftest.$ac_objext; then
12611 emacs_cv_arg6_star=yes
12612 else
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 if test "$emacs_cv_arg6_star" = yes; then
12622 cat >>confdefs.h <<\_ACEOF
12623 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12624 _ACEOF
12626 else
12627 cat >>confdefs.h <<\_ACEOF
12628 #define XRegisterIMInstantiateCallback_arg6 XPointer
12629 _ACEOF
12632 CFLAGS=$late_CFLAGS
12635 ### Start of font-backend section.
12636 if test "${HAVE_X11}" != "yes"; then
12637 USE_FONT_BACKEND=no
12640 if test "${USE_FONT_BACKEND}" = "yes"; then
12642 cat >>confdefs.h <<\_ACEOF
12643 #define USE_FONT_BACKEND 1
12644 _ACEOF
12647 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12648 HAVE_XFT=maybe
12649 if test "x${with_freetype}" = "xno"; then
12650 with_xft="no";
12652 if test "x${with_xft}" != "xno"; then
12655 succeeded=no
12657 # Extract the first word of "pkg-config", so it can be a program name with args.
12658 set dummy pkg-config; ac_word=$2
12659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12661 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 else
12664 case $PKG_CONFIG in
12665 [\\/]* | ?:[\\/]*)
12666 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670 for as_dir in $PATH
12672 IFS=$as_save_IFS
12673 test -z "$as_dir" && as_dir=.
12674 for ac_exec_ext in '' $ac_executable_extensions; do
12675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12676 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12678 break 2
12680 done
12681 done
12682 IFS=$as_save_IFS
12684 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12686 esac
12688 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12689 if test -n "$PKG_CONFIG"; then
12690 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12691 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12692 else
12693 { echo "$as_me:$LINENO: result: no" >&5
12694 echo "${ECHO_T}no" >&6; }
12699 if test "$PKG_CONFIG" = "no" ; then
12700 HAVE_XFT=no
12701 else
12702 PKG_CONFIG_MIN_VERSION=0.9.0
12703 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12704 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12705 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12707 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12708 { echo "$as_me:$LINENO: result: yes" >&5
12709 echo "${ECHO_T}yes" >&6; }
12710 succeeded=yes
12712 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12713 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12714 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12715 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12716 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12718 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12719 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12720 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12721 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12722 echo "${ECHO_T}$XFT_LIBS" >&6; }
12723 else
12724 { echo "$as_me:$LINENO: result: no" >&5
12725 echo "${ECHO_T}no" >&6; }
12726 XFT_CFLAGS=""
12727 XFT_LIBS=""
12728 ## If we have a custom action on failure, don't print errors, but
12729 ## do set a variable so people can do so.
12730 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12736 else
12737 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12738 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12742 if test $succeeded = yes; then
12744 else
12745 HAVE_XFT=no
12748 if test "$HAVE_XFT" != no; then
12749 OLD_CPPFLAGS="$CPPFLAGS"
12750 OLD_CFLAGS="$CFLAGS"
12751 OLD_LIBS="$LIBS"
12752 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12753 CFLAGS="$CFLAGS $XFT_CFLAGS"
12754 LIBS="$XFT_LIBS $LIBS"
12755 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12756 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12757 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12758 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12762 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12763 else
12764 # Is the header compilable?
12765 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12766 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12767 cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h. */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12773 $ac_includes_default
12774 #include <X11/Xft/Xft.h>
12775 _ACEOF
12776 rm -f conftest.$ac_objext
12777 if { (ac_try="$ac_compile"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12781 esac
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_compile") 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest.$ac_objext; then
12793 ac_header_compiler=yes
12794 else
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12798 ac_header_compiler=no
12801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12803 echo "${ECHO_T}$ac_header_compiler" >&6; }
12805 # Is the header present?
12806 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12807 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 #include <X11/Xft/Xft.h>
12815 _ACEOF
12816 if { (ac_try="$ac_cpp conftest.$ac_ext"
12817 case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12820 esac
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12823 ac_status=$?
12824 grep -v '^ *+' conftest.er1 >conftest.err
12825 rm -f conftest.er1
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } >/dev/null && {
12829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12831 }; then
12832 ac_header_preproc=yes
12833 else
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ac_header_preproc=no
12840 rm -f conftest.err conftest.$ac_ext
12841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12842 echo "${ECHO_T}$ac_header_preproc" >&6; }
12844 # So? What about this header?
12845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12846 yes:no: )
12847 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12848 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12850 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12851 ac_header_preproc=yes
12853 no:yes:* )
12854 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12855 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12857 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12859 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12861 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12862 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12863 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12864 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12865 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12868 esac
12869 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12870 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12871 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12873 else
12874 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12876 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12877 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12880 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12881 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12882 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12883 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886 ac_check_lib_save_LIBS=$LIBS
12887 LIBS="-lXft $XFT_LIBS $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 XftFontOpen ();
12903 main ()
12905 return XftFontOpen ();
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_link") 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } && {
12924 test -z "$ac_c_werror_flag" ||
12925 test ! -s conftest.err
12926 } && test -s conftest$ac_exeext &&
12927 $as_test_x conftest$ac_exeext; then
12928 ac_cv_lib_Xft_XftFontOpen=yes
12929 else
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12933 ac_cv_lib_Xft_XftFontOpen=no
12936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12937 conftest$ac_exeext conftest.$ac_ext
12938 LIBS=$ac_check_lib_save_LIBS
12940 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12941 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12942 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12943 HAVE_XFT=yes
12950 if test "${HAVE_XFT}" = "yes"; then
12952 cat >>confdefs.h <<\_ACEOF
12953 #define HAVE_XFT 1
12954 _ACEOF
12957 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12958 else
12959 CPPFLAGS="$OLD_CPPFLAGS"
12960 CFLAGS="$OLD_CFLAGS"
12961 LIBS="$OLD_LIBS"
12962 fi # "${HAVE_XFT}" = "yes"
12963 fi # "$HAVE_XFT" != no
12964 fi # "x${with_xft}" != "xno"
12966 if test "$HAVE_XFT" != "yes"; then
12967 HAVE_XFT=no
12971 HAVE_FREETYPE=no
12972 ### Use -lfreetype if available, unless `--with-freetype=no'.
12973 if test "${HAVE_XFT}" = "yes"; then
12974 HAVE_FREETYPE=yes
12975 elif test "x${with_freetype}" != "xno"; then
12978 succeeded=no
12980 # Extract the first word of "pkg-config", so it can be a program name with args.
12981 set dummy pkg-config; ac_word=$2
12982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12984 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987 case $PKG_CONFIG in
12988 [\\/]* | ?:[\\/]*)
12989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993 for as_dir in $PATH
12995 IFS=$as_save_IFS
12996 test -z "$as_dir" && as_dir=.
12997 for ac_exec_ext in '' $ac_executable_extensions; do
12998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12999 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13001 break 2
13003 done
13004 done
13005 IFS=$as_save_IFS
13007 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13009 esac
13011 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13012 if test -n "$PKG_CONFIG"; then
13013 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13014 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13015 else
13016 { echo "$as_me:$LINENO: result: no" >&5
13017 echo "${ECHO_T}no" >&6; }
13022 if test "$PKG_CONFIG" = "no" ; then
13023 HAVE_FREETYPE=no
13024 else
13025 PKG_CONFIG_MIN_VERSION=0.9.0
13026 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13027 { echo "$as_me:$LINENO: checking for freetype2" >&5
13028 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13030 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13031 { echo "$as_me:$LINENO: result: yes" >&5
13032 echo "${ECHO_T}yes" >&6; }
13033 succeeded=yes
13035 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13036 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13037 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13038 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13039 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13041 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13042 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13043 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13044 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13045 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13046 else
13047 { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13049 FREETYPE_CFLAGS=""
13050 FREETYPE_LIBS=""
13051 ## If we have a custom action on failure, don't print errors, but
13052 ## do set a variable so people can do so.
13053 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13059 else
13060 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13061 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13065 if test $succeeded = yes; then
13066 HAVE_FREETYPE=yes
13067 else
13068 HAVE_FREETYPE=no
13071 if test "${HAVE_FREETYPE}" = "yes"; then
13073 succeeded=no
13075 # Extract the first word of "pkg-config", so it can be a program name with args.
13076 set dummy pkg-config; ac_word=$2
13077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13079 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082 case $PKG_CONFIG in
13083 [\\/]* | ?:[\\/]*)
13084 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13090 IFS=$as_save_IFS
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 break 2
13098 done
13099 done
13100 IFS=$as_save_IFS
13102 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13104 esac
13106 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13107 if test -n "$PKG_CONFIG"; then
13108 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13109 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13110 else
13111 { echo "$as_me:$LINENO: result: no" >&5
13112 echo "${ECHO_T}no" >&6; }
13117 if test "$PKG_CONFIG" = "no" ; then
13118 HAVE_FC=no
13119 else
13120 PKG_CONFIG_MIN_VERSION=0.9.0
13121 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13122 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13123 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13125 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13126 { echo "$as_me:$LINENO: result: yes" >&5
13127 echo "${ECHO_T}yes" >&6; }
13128 succeeded=yes
13130 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13131 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13132 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13133 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13134 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13136 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13137 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13138 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13139 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13140 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13141 else
13142 { echo "$as_me:$LINENO: result: no" >&5
13143 echo "${ECHO_T}no" >&6; }
13144 FONTCONFIG_CFLAGS=""
13145 FONTCONFIG_LIBS=""
13146 ## If we have a custom action on failure, don't print errors, but
13147 ## do set a variable so people can do so.
13148 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13154 else
13155 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13156 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13160 if test $succeeded = yes; then
13161 HAVE_FC=yes
13162 else
13163 HAVE_FC=no
13166 if test "${HAVE_FC}" = "no"; then
13167 HAVE_FREETYPE=no
13172 HAVE_LIBOTF=no
13173 if test "${HAVE_FREETYPE}" = "yes"; then
13175 cat >>confdefs.h <<\_ACEOF
13176 #define HAVE_FREETYPE 1
13177 _ACEOF
13179 if test "${with_libotf}" != "no"; then
13181 succeeded=no
13183 # Extract the first word of "pkg-config", so it can be a program name with args.
13184 set dummy pkg-config; ac_word=$2
13185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13187 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 case $PKG_CONFIG in
13191 [\\/]* | ?:[\\/]*)
13192 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196 for as_dir in $PATH
13198 IFS=$as_save_IFS
13199 test -z "$as_dir" && as_dir=.
13200 for ac_exec_ext in '' $ac_executable_extensions; do
13201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13202 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 break 2
13206 done
13207 done
13208 IFS=$as_save_IFS
13210 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13212 esac
13214 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13215 if test -n "$PKG_CONFIG"; then
13216 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13217 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13218 else
13219 { echo "$as_me:$LINENO: result: no" >&5
13220 echo "${ECHO_T}no" >&6; }
13225 if test "$PKG_CONFIG" = "no" ; then
13226 HAVE_LIBOTF=no
13227 else
13228 PKG_CONFIG_MIN_VERSION=0.9.0
13229 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13230 { echo "$as_me:$LINENO: checking for libotf" >&5
13231 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13233 if $PKG_CONFIG --exists "libotf" 2>&5; then
13234 { echo "$as_me:$LINENO: result: yes" >&5
13235 echo "${ECHO_T}yes" >&6; }
13236 succeeded=yes
13238 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13239 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13240 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13241 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13242 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13244 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13245 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13246 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13247 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13248 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13249 else
13250 { echo "$as_me:$LINENO: result: no" >&5
13251 echo "${ECHO_T}no" >&6; }
13252 LIBOTF_CFLAGS=""
13253 LIBOTF_LIBS=""
13254 ## If we have a custom action on failure, don't print errors, but
13255 ## do set a variable so people can do so.
13256 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13262 else
13263 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13264 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13268 if test $succeeded = yes; then
13269 HAVE_LIBOTF=yes
13270 else
13271 HAVE_LIBOTF=no
13274 if test "$HAVE_LIBOTF" = "yes"; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_LIBOTF 1
13278 _ACEOF
13284 HAVE_M17N_FLT=no
13285 if test "${with_m17n_flt}" != "no"; then
13287 succeeded=no
13289 # Extract the first word of "pkg-config", so it can be a program name with args.
13290 set dummy pkg-config; ac_word=$2
13291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13293 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296 case $PKG_CONFIG in
13297 [\\/]* | ?:[\\/]*)
13298 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13310 break 2
13312 done
13313 done
13314 IFS=$as_save_IFS
13316 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13318 esac
13320 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13321 if test -n "$PKG_CONFIG"; then
13322 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13323 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13324 else
13325 { echo "$as_me:$LINENO: result: no" >&5
13326 echo "${ECHO_T}no" >&6; }
13331 if test "$PKG_CONFIG" = "no" ; then
13332 HAVE_M17N_FLT=no
13333 else
13334 PKG_CONFIG_MIN_VERSION=0.9.0
13335 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13336 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13337 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13339 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13340 { echo "$as_me:$LINENO: result: yes" >&5
13341 echo "${ECHO_T}yes" >&6; }
13342 succeeded=yes
13344 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13345 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13346 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13347 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13348 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13350 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13351 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13352 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13353 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13354 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13355 else
13356 { echo "$as_me:$LINENO: result: no" >&5
13357 echo "${ECHO_T}no" >&6; }
13358 M17N_FLT_CFLAGS=""
13359 M17N_FLT_LIBS=""
13360 ## If we have a custom action on failure, don't print errors, but
13361 ## do set a variable so people can do so.
13362 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13368 else
13369 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13370 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13374 if test $succeeded = yes; then
13375 HAVE_M17N_FLT=yes
13376 else
13377 HAVE_M17N_FLT=no
13380 if test "$HAVE_M17N_FLT" = "yes"; then
13382 cat >>confdefs.h <<\_ACEOF
13383 #define HAVE_M17N_FLT 1
13384 _ACEOF
13398 fi # "${USE_FONT_BACKEND}" = "yes"
13399 ### End of font-backend section.
13401 ### Use -lXpm if available, unless `--with-xpm=no'.
13402 HAVE_XPM=no
13403 if test "${HAVE_X11}" = "yes"; then
13404 if test "${with_xpm}" != "no"; then
13405 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13406 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13407 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13408 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13412 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13413 else
13414 # Is the header compilable?
13415 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13416 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h. */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13424 #include <X11/xpm.h>
13425 _ACEOF
13426 rm -f conftest.$ac_objext
13427 if { (ac_try="$ac_compile"
13428 case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_compile") 2>conftest.er1
13434 ac_status=$?
13435 grep -v '^ *+' conftest.er1 >conftest.err
13436 rm -f conftest.er1
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } && {
13440 test -z "$ac_c_werror_flag" ||
13441 test ! -s conftest.err
13442 } && test -s conftest.$ac_objext; then
13443 ac_header_compiler=yes
13444 else
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13448 ac_header_compiler=no
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453 echo "${ECHO_T}$ac_header_compiler" >&6; }
13455 # Is the header present?
13456 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13457 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13458 cat >conftest.$ac_ext <<_ACEOF
13459 /* confdefs.h. */
13460 _ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13464 #include <X11/xpm.h>
13465 _ACEOF
13466 if { (ac_try="$ac_cpp conftest.$ac_ext"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } >/dev/null && {
13479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 }; then
13482 ac_header_preproc=yes
13483 else
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13487 ac_header_preproc=no
13490 rm -f conftest.err conftest.$ac_ext
13491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13492 echo "${ECHO_T}$ac_header_preproc" >&6; }
13494 # So? What about this header?
13495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13496 yes:no: )
13497 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13498 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13500 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13501 ac_header_preproc=yes
13503 no:yes:* )
13504 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13505 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13507 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13509 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13511 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13513 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13515 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13518 esac
13519 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13520 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13521 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524 ac_cv_header_X11_xpm_h=$ac_header_preproc
13526 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13527 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13530 if test $ac_cv_header_X11_xpm_h = yes; then
13531 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13532 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13533 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536 ac_check_lib_save_LIBS=$LIBS
13537 LIBS="-lXpm -lX11 $LIBS"
13538 cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h. */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13545 /* Override any GCC internal prototype to avoid an error.
13546 Use char because int might match the return type of a GCC
13547 builtin and then its argument prototype would still apply. */
13548 #ifdef __cplusplus
13549 extern "C"
13550 #endif
13551 char XpmReadFileToPixmap ();
13553 main ()
13555 return XpmReadFileToPixmap ();
13557 return 0;
13559 _ACEOF
13560 rm -f conftest.$ac_objext conftest$ac_exeext
13561 if { (ac_try="$ac_link"
13562 case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13565 esac
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_link") 2>conftest.er1
13568 ac_status=$?
13569 grep -v '^ *+' conftest.er1 >conftest.err
13570 rm -f conftest.er1
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } && {
13574 test -z "$ac_c_werror_flag" ||
13575 test ! -s conftest.err
13576 } && test -s conftest$ac_exeext &&
13577 $as_test_x conftest$ac_exeext; then
13578 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13579 else
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13587 conftest$ac_exeext conftest.$ac_ext
13588 LIBS=$ac_check_lib_save_LIBS
13590 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13591 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13592 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13593 HAVE_XPM=yes
13599 if test "${HAVE_XPM}" = "yes"; then
13600 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13601 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h. */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13608 #include "X11/xpm.h"
13609 #ifndef XpmReturnAllocPixels
13610 no_return_alloc_pixels
13611 #endif
13613 _ACEOF
13614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13615 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13616 HAVE_XPM=no
13617 else
13618 HAVE_XPM=yes
13620 rm -f conftest*
13623 if test "${HAVE_XPM}" = "yes"; then
13624 { echo "$as_me:$LINENO: result: yes" >&5
13625 echo "${ECHO_T}yes" >&6; }
13626 else
13627 { echo "$as_me:$LINENO: result: no" >&5
13628 echo "${ECHO_T}no" >&6; }
13633 if test "${HAVE_XPM}" = "yes"; then
13635 cat >>confdefs.h <<\_ACEOF
13636 #define HAVE_XPM 1
13637 _ACEOF
13642 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13643 HAVE_JPEG=no
13644 if test "${HAVE_X11}" = "yes"; then
13645 if test "${with_jpeg}" != "no"; then
13646 if test "${ac_cv_header_jerror_h+set}" = set; then
13647 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13648 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13649 if test "${ac_cv_header_jerror_h+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13652 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13653 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13654 else
13655 # Is the header compilable?
13656 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13657 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 $ac_includes_default
13665 #include <jerror.h>
13666 _ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (ac_try="$ac_compile"
13669 case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_compile") 2>conftest.er1
13675 ac_status=$?
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } && {
13681 test -z "$ac_c_werror_flag" ||
13682 test ! -s conftest.err
13683 } && test -s conftest.$ac_objext; then
13684 ac_header_compiler=yes
13685 else
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 ac_header_compiler=no
13692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13694 echo "${ECHO_T}$ac_header_compiler" >&6; }
13696 # Is the header present?
13697 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13698 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h. */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13705 #include <jerror.h>
13706 _ACEOF
13707 if { (ac_try="$ac_cpp conftest.$ac_ext"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13711 esac
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13714 ac_status=$?
13715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } >/dev/null && {
13720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13721 test ! -s conftest.err
13722 }; then
13723 ac_header_preproc=yes
13724 else
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13728 ac_header_preproc=no
13731 rm -f conftest.err conftest.$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13733 echo "${ECHO_T}$ac_header_preproc" >&6; }
13735 # So? What about this header?
13736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13737 yes:no: )
13738 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13739 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13740 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13741 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13742 ac_header_preproc=yes
13744 no:yes:* )
13745 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13746 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13747 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13748 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13749 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13750 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13752 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13754 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13756 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13759 esac
13760 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13761 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13762 if test "${ac_cv_header_jerror_h+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765 ac_cv_header_jerror_h=$ac_header_preproc
13767 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13768 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13771 if test $ac_cv_header_jerror_h = yes; then
13772 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13773 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13774 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777 ac_check_lib_save_LIBS=$LIBS
13778 LIBS="-ljpeg $LIBS"
13779 cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h. */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13786 /* Override any GCC internal prototype to avoid an error.
13787 Use char because int might match the return type of a GCC
13788 builtin and then its argument prototype would still apply. */
13789 #ifdef __cplusplus
13790 extern "C"
13791 #endif
13792 char jpeg_destroy_compress ();
13794 main ()
13796 return jpeg_destroy_compress ();
13798 return 0;
13800 _ACEOF
13801 rm -f conftest.$ac_objext conftest$ac_exeext
13802 if { (ac_try="$ac_link"
13803 case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_link") 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest$ac_exeext &&
13818 $as_test_x conftest$ac_exeext; then
13819 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13820 else
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13824 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13828 conftest$ac_exeext conftest.$ac_ext
13829 LIBS=$ac_check_lib_save_LIBS
13831 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13832 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13833 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13834 HAVE_JPEG=yes
13843 if test "${HAVE_JPEG}" = "yes"; then
13844 cat >>confdefs.h <<\_ACEOF
13845 #define HAVE_JPEG 1
13846 _ACEOF
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h. */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 #include <jpeglib.h>
13855 version=JPEG_LIB_VERSION
13857 _ACEOF
13858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13859 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13860 cat >>confdefs.h <<\_ACEOF
13861 #define HAVE_JPEG 1
13862 _ACEOF
13864 else
13865 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13866 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13867 HAVE_JPEG=no
13869 rm -f conftest*
13874 ### Use -lpng if available, unless `--with-png=no'.
13875 HAVE_PNG=no
13876 if test "${HAVE_X11}" = "yes"; then
13877 if test "${with_png}" != "no"; then
13878 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13879 # in /usr/include/libpng.
13882 for ac_header in png.h libpng/png.h
13884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 ac_res=`eval echo '${'$as_ac_Header'}'`
13892 { echo "$as_me:$LINENO: result: $ac_res" >&5
13893 echo "${ECHO_T}$ac_res" >&6; }
13894 else
13895 # Is the header compilable?
13896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13898 cat >conftest.$ac_ext <<_ACEOF
13899 /* confdefs.h. */
13900 _ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 $ac_includes_default
13905 #include <$ac_header>
13906 _ACEOF
13907 rm -f conftest.$ac_objext
13908 if { (ac_try="$ac_compile"
13909 case "(($ac_try" in
13910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911 *) ac_try_echo=$ac_try;;
13912 esac
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_compile") 2>conftest.er1
13915 ac_status=$?
13916 grep -v '^ *+' conftest.er1 >conftest.err
13917 rm -f conftest.er1
13918 cat conftest.err >&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } && {
13921 test -z "$ac_c_werror_flag" ||
13922 test ! -s conftest.err
13923 } && test -s conftest.$ac_objext; then
13924 ac_header_compiler=yes
13925 else
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 ac_header_compiler=no
13932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13934 echo "${ECHO_T}$ac_header_compiler" >&6; }
13936 # Is the header present?
13937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h. */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 #include <$ac_header>
13946 _ACEOF
13947 if { (ac_try="$ac_cpp conftest.$ac_ext"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } >/dev/null && {
13960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 }; then
13963 ac_header_preproc=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ac_header_preproc=no
13971 rm -f conftest.err conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13973 echo "${ECHO_T}$ac_header_preproc" >&6; }
13975 # So? What about this header?
13976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13977 yes:no: )
13978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13982 ac_header_preproc=yes
13984 no:yes:* )
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13999 esac
14000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005 eval "$as_ac_Header=\$ac_header_preproc"
14007 ac_res=`eval echo '${'$as_ac_Header'}'`
14008 { echo "$as_me:$LINENO: result: $ac_res" >&5
14009 echo "${ECHO_T}$ac_res" >&6; }
14012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14013 cat >>confdefs.h <<_ACEOF
14014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14015 _ACEOF
14019 done
14021 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14022 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14023 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14024 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 else
14027 ac_check_lib_save_LIBS=$LIBS
14028 LIBS="-lpng -lz -lm $LIBS"
14029 cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h. */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14036 /* Override any GCC internal prototype to avoid an error.
14037 Use char because int might match the return type of a GCC
14038 builtin and then its argument prototype would still apply. */
14039 #ifdef __cplusplus
14040 extern "C"
14041 #endif
14042 char png_get_channels ();
14044 main ()
14046 return png_get_channels ();
14048 return 0;
14050 _ACEOF
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (ac_try="$ac_link"
14053 case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14056 esac
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_link") 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } && {
14065 test -z "$ac_c_werror_flag" ||
14066 test ! -s conftest.err
14067 } && test -s conftest$ac_exeext &&
14068 $as_test_x conftest$ac_exeext; then
14069 ac_cv_lib_png_png_get_channels=yes
14070 else
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14074 ac_cv_lib_png_png_get_channels=no
14077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14078 conftest$ac_exeext conftest.$ac_ext
14079 LIBS=$ac_check_lib_save_LIBS
14081 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14082 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14083 if test $ac_cv_lib_png_png_get_channels = yes; then
14084 HAVE_PNG=yes
14090 if test "${HAVE_PNG}" = "yes"; then
14092 cat >>confdefs.h <<\_ACEOF
14093 #define HAVE_PNG 1
14094 _ACEOF
14099 ### Use -ltiff if available, unless `--with-tiff=no'.
14100 HAVE_TIFF=no
14101 if test "${HAVE_X11}" = "yes"; then
14102 if test "${with_tiff}" != "no"; then
14103 if test "${ac_cv_header_tiffio_h+set}" = set; then
14104 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14105 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14106 if test "${ac_cv_header_tiffio_h+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14110 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14111 else
14112 # Is the header compilable?
14113 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14114 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14115 cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h. */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14121 $ac_includes_default
14122 #include <tiffio.h>
14123 _ACEOF
14124 rm -f conftest.$ac_objext
14125 if { (ac_try="$ac_compile"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_compile") 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest.$ac_objext; then
14141 ac_header_compiler=yes
14142 else
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 ac_header_compiler=no
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14151 echo "${ECHO_T}$ac_header_compiler" >&6; }
14153 # Is the header present?
14154 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14155 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14156 cat >conftest.$ac_ext <<_ACEOF
14157 /* confdefs.h. */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 #include <tiffio.h>
14163 _ACEOF
14164 if { (ac_try="$ac_cpp conftest.$ac_ext"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14168 esac
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } >/dev/null && {
14177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 }; then
14180 ac_header_preproc=yes
14181 else
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 ac_header_preproc=no
14188 rm -f conftest.err conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14190 echo "${ECHO_T}$ac_header_preproc" >&6; }
14192 # So? What about this header?
14193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14194 yes:no: )
14195 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14196 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14198 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14199 ac_header_preproc=yes
14201 no:yes:* )
14202 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14203 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14204 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14205 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14207 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14208 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14209 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14210 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14211 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14212 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14213 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14216 esac
14217 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14218 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14219 if test "${ac_cv_header_tiffio_h+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222 ac_cv_header_tiffio_h=$ac_header_preproc
14224 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14225 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14228 if test $ac_cv_header_tiffio_h = yes; then
14229 tifflibs="-lz -lm"
14230 # At least one tiff package requires the jpeg library.
14231 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14232 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14233 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14234 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237 ac_check_lib_save_LIBS=$LIBS
14238 LIBS="-ltiff $tifflibs $LIBS"
14239 cat >conftest.$ac_ext <<_ACEOF
14240 /* confdefs.h. */
14241 _ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14249 #ifdef __cplusplus
14250 extern "C"
14251 #endif
14252 char TIFFGetVersion ();
14254 main ()
14256 return TIFFGetVersion ();
14258 return 0;
14260 _ACEOF
14261 rm -f conftest.$ac_objext conftest$ac_exeext
14262 if { (ac_try="$ac_link"
14263 case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14266 esac
14267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14268 (eval "$ac_link") 2>conftest.er1
14269 ac_status=$?
14270 grep -v '^ *+' conftest.er1 >conftest.err
14271 rm -f conftest.er1
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } && {
14275 test -z "$ac_c_werror_flag" ||
14276 test ! -s conftest.err
14277 } && test -s conftest$ac_exeext &&
14278 $as_test_x conftest$ac_exeext; then
14279 ac_cv_lib_tiff_TIFFGetVersion=yes
14280 else
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284 ac_cv_lib_tiff_TIFFGetVersion=no
14287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14288 conftest$ac_exeext conftest.$ac_ext
14289 LIBS=$ac_check_lib_save_LIBS
14291 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14292 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14293 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14294 HAVE_TIFF=yes
14302 if test "${HAVE_TIFF}" = "yes"; then
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_TIFF 1
14306 _ACEOF
14311 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14312 HAVE_GIF=no
14313 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14314 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14315 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14316 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14317 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14321 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14322 else
14323 # Is the header compilable?
14324 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14325 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14326 cat >conftest.$ac_ext <<_ACEOF
14327 /* confdefs.h. */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14332 $ac_includes_default
14333 #include <gif_lib.h>
14334 _ACEOF
14335 rm -f conftest.$ac_objext
14336 if { (ac_try="$ac_compile"
14337 case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340 esac
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_compile") 2>conftest.er1
14343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } && {
14349 test -z "$ac_c_werror_flag" ||
14350 test ! -s conftest.err
14351 } && test -s conftest.$ac_objext; then
14352 ac_header_compiler=yes
14353 else
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14357 ac_header_compiler=no
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14362 echo "${ECHO_T}$ac_header_compiler" >&6; }
14364 # Is the header present?
14365 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14366 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 #include <gif_lib.h>
14374 _ACEOF
14375 if { (ac_try="$ac_cpp conftest.$ac_ext"
14376 case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14379 esac
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14382 ac_status=$?
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } >/dev/null && {
14388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 }; then
14391 ac_header_preproc=yes
14392 else
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ac_header_preproc=no
14399 rm -f conftest.err conftest.$ac_ext
14400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14401 echo "${ECHO_T}$ac_header_preproc" >&6; }
14403 # So? What about this header?
14404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14405 yes:no: )
14406 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14407 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14409 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14410 ac_header_preproc=yes
14412 no:yes:* )
14413 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14414 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14416 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14417 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14418 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14420 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14421 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14422 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14423 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14424 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14427 esac
14428 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14429 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14430 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 else
14433 ac_cv_header_gif_lib_h=$ac_header_preproc
14435 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14436 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14439 if test $ac_cv_header_gif_lib_h = yes; then
14440 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14441 # Earlier versions can crash Emacs.
14442 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14443 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14444 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447 ac_check_lib_save_LIBS=$LIBS
14448 LIBS="-lgif $LIBS"
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h. */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14456 /* Override any GCC internal prototype to avoid an error.
14457 Use char because int might match the return type of a GCC
14458 builtin and then its argument prototype would still apply. */
14459 #ifdef __cplusplus
14460 extern "C"
14461 #endif
14462 char EGifPutExtensionLast ();
14464 main ()
14466 return EGifPutExtensionLast ();
14468 return 0;
14470 _ACEOF
14471 rm -f conftest.$ac_objext conftest$ac_exeext
14472 if { (ac_try="$ac_link"
14473 case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_link") 2>conftest.er1
14479 ac_status=$?
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && {
14485 test -z "$ac_c_werror_flag" ||
14486 test ! -s conftest.err
14487 } && test -s conftest$ac_exeext &&
14488 $as_test_x conftest$ac_exeext; then
14489 ac_cv_lib_gif_EGifPutExtensionLast=yes
14490 else
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14494 ac_cv_lib_gif_EGifPutExtensionLast=no
14497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14498 conftest$ac_exeext conftest.$ac_ext
14499 LIBS=$ac_check_lib_save_LIBS
14501 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14502 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14503 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14504 HAVE_GIF=yes
14505 else
14506 try_libungif=yes
14513 if test "$HAVE_GIF" = yes; then
14514 ac_gif_lib_name="-lgif"
14517 # If gif_lib.h but no libgif, try libungif.
14518 if test x"$try_libungif" = xyes; then
14519 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14520 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14521 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 else
14524 ac_check_lib_save_LIBS=$LIBS
14525 LIBS="-lungif $LIBS"
14526 cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h. */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14533 /* Override any GCC internal prototype to avoid an error.
14534 Use char because int might match the return type of a GCC
14535 builtin and then its argument prototype would still apply. */
14536 #ifdef __cplusplus
14537 extern "C"
14538 #endif
14539 char EGifPutExtensionLast ();
14541 main ()
14543 return EGifPutExtensionLast ();
14545 return 0;
14547 _ACEOF
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (ac_try="$ac_link"
14550 case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553 esac
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_link") 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
14564 } && test -s conftest$ac_exeext &&
14565 $as_test_x conftest$ac_exeext; then
14566 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14567 else
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 ac_cv_lib_ungif_EGifPutExtensionLast=no
14574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14575 conftest$ac_exeext conftest.$ac_ext
14576 LIBS=$ac_check_lib_save_LIBS
14578 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14579 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14580 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14581 HAVE_GIF=yes
14585 if test "$HAVE_GIF" = yes; then
14587 cat >>confdefs.h <<\_ACEOF
14588 #define LIBGIF -lungif
14589 _ACEOF
14591 ac_gif_lib_name="-lungif"
14595 if test "${HAVE_GIF}" = "yes"; then
14597 cat >>confdefs.h <<\_ACEOF
14598 #define HAVE_GIF 1
14599 _ACEOF
14604 if test "${HAVE_X11}" = "yes"; then
14605 MISSING=""
14606 WITH_NO=""
14607 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14608 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14609 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14610 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14611 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14612 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14613 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14614 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14615 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14616 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14618 if test "X${MISSING}" != X; then
14619 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14620 $MISSING
14621 Maybe some development libraries/packages are missing?
14622 If you don't want to link with them give
14623 $WITH_NO
14624 as options to configure" >&5
14625 echo "$as_me: error: The following required libraries were not found:
14626 $MISSING
14627 Maybe some development libraries/packages are missing?
14628 If you don't want to link with them give
14629 $WITH_NO
14630 as options to configure" >&2;}
14631 { (exit 1); exit 1; }; }
14635 ### Use -lgpm if available, unless `--with-gpm=no'.
14636 HAVE_GPM=no
14637 if test "${with_gpm}" != "no"; then
14638 if test "${ac_cv_header_gpm_h+set}" = set; then
14639 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14640 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14641 if test "${ac_cv_header_gpm_h+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14645 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14646 else
14647 # Is the header compilable?
14648 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14649 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14650 cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h. */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 $ac_includes_default
14657 #include <gpm.h>
14658 _ACEOF
14659 rm -f conftest.$ac_objext
14660 if { (ac_try="$ac_compile"
14661 case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14664 esac
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_compile") 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest.$ac_objext; then
14676 ac_header_compiler=yes
14677 else
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_header_compiler=no
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14686 echo "${ECHO_T}$ac_header_compiler" >&6; }
14688 # Is the header present?
14689 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14690 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h. */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 #include <gpm.h>
14698 _ACEOF
14699 if { (ac_try="$ac_cpp conftest.$ac_ext"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } >/dev/null && {
14712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 }; then
14715 ac_header_preproc=yes
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_header_preproc=no
14723 rm -f conftest.err conftest.$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14725 echo "${ECHO_T}$ac_header_preproc" >&6; }
14727 # So? What about this header?
14728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14729 yes:no: )
14730 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14731 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14733 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14734 ac_header_preproc=yes
14736 no:yes:* )
14737 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14738 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14740 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14742 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14744 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14746 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14748 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14751 esac
14752 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14753 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14754 if test "${ac_cv_header_gpm_h+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757 ac_cv_header_gpm_h=$ac_header_preproc
14759 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14760 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14763 if test $ac_cv_header_gpm_h = yes; then
14764 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14765 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14766 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769 ac_check_lib_save_LIBS=$LIBS
14770 LIBS="-lgpm $LIBS"
14771 cat >conftest.$ac_ext <<_ACEOF
14772 /* confdefs.h. */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14778 /* Override any GCC internal prototype to avoid an error.
14779 Use char because int might match the return type of a GCC
14780 builtin and then its argument prototype would still apply. */
14781 #ifdef __cplusplus
14782 extern "C"
14783 #endif
14784 char Gpm_Open ();
14786 main ()
14788 return Gpm_Open ();
14790 return 0;
14792 _ACEOF
14793 rm -f conftest.$ac_objext conftest$ac_exeext
14794 if { (ac_try="$ac_link"
14795 case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_link") 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } && {
14807 test -z "$ac_c_werror_flag" ||
14808 test ! -s conftest.err
14809 } && test -s conftest$ac_exeext &&
14810 $as_test_x conftest$ac_exeext; then
14811 ac_cv_lib_gpm_Gpm_Open=yes
14812 else
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_cv_lib_gpm_Gpm_Open=no
14819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14820 conftest$ac_exeext conftest.$ac_ext
14821 LIBS=$ac_check_lib_save_LIBS
14823 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14824 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14825 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14826 HAVE_GPM=yes
14834 if test "${HAVE_GPM}" = "yes"; then
14836 cat >>confdefs.h <<\_ACEOF
14837 #define HAVE_GPM 1
14838 _ACEOF
14842 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14843 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14844 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14845 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14849 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14850 else
14851 # Is the header compilable?
14852 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14853 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14854 cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h. */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 $ac_includes_default
14861 #include <malloc/malloc.h>
14862 _ACEOF
14863 rm -f conftest.$ac_objext
14864 if { (ac_try="$ac_compile"
14865 case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14868 esac
14869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_compile") 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } && {
14877 test -z "$ac_c_werror_flag" ||
14878 test ! -s conftest.err
14879 } && test -s conftest.$ac_objext; then
14880 ac_header_compiler=yes
14881 else
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 ac_header_compiler=no
14888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14890 echo "${ECHO_T}$ac_header_compiler" >&6; }
14892 # Is the header present?
14893 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14894 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14895 cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h. */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 #include <malloc/malloc.h>
14902 _ACEOF
14903 if { (ac_try="$ac_cpp conftest.$ac_ext"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } >/dev/null && {
14916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14917 test ! -s conftest.err
14918 }; then
14919 ac_header_preproc=yes
14920 else
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14924 ac_header_preproc=no
14927 rm -f conftest.err conftest.$ac_ext
14928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14929 echo "${ECHO_T}$ac_header_preproc" >&6; }
14931 # So? What about this header?
14932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14933 yes:no: )
14934 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14935 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14936 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14937 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14938 ac_header_preproc=yes
14940 no:yes:* )
14941 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14942 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14944 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14945 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14946 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14948 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14949 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14950 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14952 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14955 esac
14956 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14957 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14958 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 else
14961 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14963 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14964 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14967 if test $ac_cv_header_malloc_malloc_h = yes; then
14969 cat >>confdefs.h <<\_ACEOF
14970 #define HAVE_MALLOC_MALLOC_H 1
14971 _ACEOF
14977 ### Use Mac OS X Carbon API to implement GUI.
14978 if test "${HAVE_CARBON}" = "yes"; then
14980 cat >>confdefs.h <<\_ACEOF
14981 #define HAVE_CARBON 1
14982 _ACEOF
14984 ## Specify the install directory
14985 carbon_appdir=
14986 if test "${carbon_appdir_x}" != ""; then
14987 case ${carbon_appdir_x} in
14988 y | ye | yes) carbon_appdir=/Applications ;;
14989 * ) carbon_appdir=${carbon_appdir_x} ;;
14990 esac
14992 # We also have mouse menus.
14993 HAVE_MENUS=yes
14996 ### Use session management (-lSM -lICE) if available
14997 HAVE_X_SM=no
14998 if test "${HAVE_X11}" = "yes"; then
14999 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15000 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15001 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15002 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15006 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15007 else
15008 # Is the header compilable?
15009 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15010 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15011 cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h. */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 $ac_includes_default
15018 #include <X11/SM/SMlib.h>
15019 _ACEOF
15020 rm -f conftest.$ac_objext
15021 if { (ac_try="$ac_compile"
15022 case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15025 esac
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_compile") 2>conftest.er1
15028 ac_status=$?
15029 grep -v '^ *+' conftest.er1 >conftest.err
15030 rm -f conftest.er1
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } && {
15034 test -z "$ac_c_werror_flag" ||
15035 test ! -s conftest.err
15036 } && test -s conftest.$ac_objext; then
15037 ac_header_compiler=yes
15038 else
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_header_compiler=no
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15047 echo "${ECHO_T}$ac_header_compiler" >&6; }
15049 # Is the header present?
15050 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15051 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15052 cat >conftest.$ac_ext <<_ACEOF
15053 /* confdefs.h. */
15054 _ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 #include <X11/SM/SMlib.h>
15059 _ACEOF
15060 if { (ac_try="$ac_cpp conftest.$ac_ext"
15061 case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } >/dev/null && {
15073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15075 }; then
15076 ac_header_preproc=yes
15077 else
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15081 ac_header_preproc=no
15084 rm -f conftest.err conftest.$ac_ext
15085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15086 echo "${ECHO_T}$ac_header_preproc" >&6; }
15088 # So? What about this header?
15089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15090 yes:no: )
15091 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15092 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15094 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15095 ac_header_preproc=yes
15097 no:yes:* )
15098 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15099 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15101 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15102 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15103 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15104 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15105 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15107 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15108 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15109 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15112 esac
15113 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15114 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15115 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15120 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15121 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15124 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15125 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15126 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15127 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130 ac_check_lib_save_LIBS=$LIBS
15131 LIBS="-lSM -lICE $LIBS"
15132 cat >conftest.$ac_ext <<_ACEOF
15133 /* confdefs.h. */
15134 _ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15139 /* Override any GCC internal prototype to avoid an error.
15140 Use char because int might match the return type of a GCC
15141 builtin and then its argument prototype would still apply. */
15142 #ifdef __cplusplus
15143 extern "C"
15144 #endif
15145 char SmcOpenConnection ();
15147 main ()
15149 return SmcOpenConnection ();
15151 return 0;
15153 _ACEOF
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (ac_try="$ac_link"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_link") 2>conftest.er1
15162 ac_status=$?
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } && {
15168 test -z "$ac_c_werror_flag" ||
15169 test ! -s conftest.err
15170 } && test -s conftest$ac_exeext &&
15171 $as_test_x conftest$ac_exeext; then
15172 ac_cv_lib_SM_SmcOpenConnection=yes
15173 else
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_cv_lib_SM_SmcOpenConnection=no
15180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15181 conftest$ac_exeext conftest.$ac_ext
15182 LIBS=$ac_check_lib_save_LIBS
15184 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15185 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15186 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15187 HAVE_X_SM=yes
15194 if test "${HAVE_X_SM}" = "yes"; then
15196 cat >>confdefs.h <<\_ACEOF
15197 #define HAVE_X_SM 1
15198 _ACEOF
15200 case "$LIBS" in
15201 *-lSM*) ;;
15202 *) LIBS="-lSM -lICE $LIBS" ;;
15203 esac
15207 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15208 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15209 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15210 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 else
15213 cat >conftest.$ac_ext <<_ACEOF
15214 /* confdefs.h. */
15215 _ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 #include <netdb.h>
15221 main ()
15223 return h_errno;
15225 return 0;
15227 _ACEOF
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_link") 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } && {
15242 test -z "$ac_c_werror_flag" ||
15243 test ! -s conftest.err
15244 } && test -s conftest$ac_exeext &&
15245 $as_test_x conftest$ac_exeext; then
15246 emacs_cv_netdb_declares_h_errno=yes
15247 else
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 emacs_cv_netdb_declares_h_errno=no
15254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15255 conftest$ac_exeext conftest.$ac_ext
15257 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15258 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15259 if test $emacs_cv_netdb_declares_h_errno = yes; then
15261 cat >>confdefs.h <<\_ACEOF
15262 #define HAVE_H_ERRNO 1
15263 _ACEOF
15267 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15268 # for constant arguments. Useless!
15269 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15270 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15271 if test "${ac_cv_working_alloca_h+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274 cat >conftest.$ac_ext <<_ACEOF
15275 /* confdefs.h. */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15280 #include <alloca.h>
15282 main ()
15284 char *p = (char *) alloca (2 * sizeof (int));
15285 if (p) return 0;
15287 return 0;
15289 _ACEOF
15290 rm -f conftest.$ac_objext conftest$ac_exeext
15291 if { (ac_try="$ac_link"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_link") 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } && {
15304 test -z "$ac_c_werror_flag" ||
15305 test ! -s conftest.err
15306 } && test -s conftest$ac_exeext &&
15307 $as_test_x conftest$ac_exeext; then
15308 ac_cv_working_alloca_h=yes
15309 else
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ac_cv_working_alloca_h=no
15316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15317 conftest$ac_exeext conftest.$ac_ext
15319 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15320 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15321 if test $ac_cv_working_alloca_h = yes; then
15323 cat >>confdefs.h <<\_ACEOF
15324 #define HAVE_ALLOCA_H 1
15325 _ACEOF
15329 { echo "$as_me:$LINENO: checking for alloca" >&5
15330 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15331 if test "${ac_cv_func_alloca_works+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h. */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 #ifdef __GNUC__
15341 # define alloca __builtin_alloca
15342 #else
15343 # ifdef _MSC_VER
15344 # include <malloc.h>
15345 # define alloca _alloca
15346 # else
15347 # ifdef HAVE_ALLOCA_H
15348 # include <alloca.h>
15349 # else
15350 # ifdef _AIX
15351 #pragma alloca
15352 # else
15353 # ifndef alloca /* predefined by HP cc +Olibcalls */
15354 char *alloca ();
15355 # endif
15356 # endif
15357 # endif
15358 # endif
15359 #endif
15362 main ()
15364 char *p = (char *) alloca (1);
15365 if (p) return 0;
15367 return 0;
15369 _ACEOF
15370 rm -f conftest.$ac_objext conftest$ac_exeext
15371 if { (ac_try="$ac_link"
15372 case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375 esac
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_link") 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } && {
15384 test -z "$ac_c_werror_flag" ||
15385 test ! -s conftest.err
15386 } && test -s conftest$ac_exeext &&
15387 $as_test_x conftest$ac_exeext; then
15388 ac_cv_func_alloca_works=yes
15389 else
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_cv_func_alloca_works=no
15396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15397 conftest$ac_exeext conftest.$ac_ext
15399 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15400 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15402 if test $ac_cv_func_alloca_works = yes; then
15404 cat >>confdefs.h <<\_ACEOF
15405 #define HAVE_ALLOCA 1
15406 _ACEOF
15408 else
15409 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15410 # that cause trouble. Some versions do not even contain alloca or
15411 # contain a buggy version. If you still want to use their alloca,
15412 # use ar to extract alloca.o from them instead of compiling alloca.c.
15414 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15416 cat >>confdefs.h <<\_ACEOF
15417 #define C_ALLOCA 1
15418 _ACEOF
15421 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15422 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15423 if test "${ac_cv_os_cray+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426 cat >conftest.$ac_ext <<_ACEOF
15427 /* confdefs.h. */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15432 #if defined CRAY && ! defined CRAY2
15433 webecray
15434 #else
15435 wenotbecray
15436 #endif
15438 _ACEOF
15439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15440 $EGREP "webecray" >/dev/null 2>&1; then
15441 ac_cv_os_cray=yes
15442 else
15443 ac_cv_os_cray=no
15445 rm -f conftest*
15448 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15449 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15450 if test $ac_cv_os_cray = yes; then
15451 for ac_func in _getb67 GETB67 getb67; do
15452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15466 #define $ac_func innocuous_$ac_func
15468 /* System header to define __stub macros and hopefully few prototypes,
15469 which can conflict with char $ac_func (); below.
15470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15471 <limits.h> exists even on freestanding compilers. */
15473 #ifdef __STDC__
15474 # include <limits.h>
15475 #else
15476 # include <assert.h>
15477 #endif
15479 #undef $ac_func
15481 /* Override any GCC internal prototype to avoid an error.
15482 Use char because int might match the return type of a GCC
15483 builtin and then its argument prototype would still apply. */
15484 #ifdef __cplusplus
15485 extern "C"
15486 #endif
15487 char $ac_func ();
15488 /* The GNU C library defines this for functions which it implements
15489 to always fail with ENOSYS. Some functions are actually named
15490 something starting with __ and the normal name is an alias. */
15491 #if defined __stub_$ac_func || defined __stub___$ac_func
15492 choke me
15493 #endif
15496 main ()
15498 return $ac_func ();
15500 return 0;
15502 _ACEOF
15503 rm -f conftest.$ac_objext conftest$ac_exeext
15504 if { (ac_try="$ac_link"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15508 esac
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_link") 2>conftest.er1
15511 ac_status=$?
15512 grep -v '^ *+' conftest.er1 >conftest.err
15513 rm -f conftest.er1
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } && {
15517 test -z "$ac_c_werror_flag" ||
15518 test ! -s conftest.err
15519 } && test -s conftest$ac_exeext &&
15520 $as_test_x conftest$ac_exeext; then
15521 eval "$as_ac_var=yes"
15522 else
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 eval "$as_ac_var=no"
15529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15530 conftest$ac_exeext conftest.$ac_ext
15532 ac_res=`eval echo '${'$as_ac_var'}'`
15533 { echo "$as_me:$LINENO: result: $ac_res" >&5
15534 echo "${ECHO_T}$ac_res" >&6; }
15535 if test `eval echo '${'$as_ac_var'}'` = yes; then
15537 cat >>confdefs.h <<_ACEOF
15538 #define CRAY_STACKSEG_END $ac_func
15539 _ACEOF
15541 break
15544 done
15547 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15548 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15549 if test "${ac_cv_c_stack_direction+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552 if test "$cross_compiling" = yes; then
15553 ac_cv_c_stack_direction=0
15554 else
15555 cat >conftest.$ac_ext <<_ACEOF
15556 /* confdefs.h. */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 $ac_includes_default
15563 find_stack_direction ()
15565 static char *addr = 0;
15566 auto char dummy;
15567 if (addr == 0)
15569 addr = &dummy;
15570 return find_stack_direction ();
15572 else
15573 return (&dummy > addr) ? 1 : -1;
15577 main ()
15579 return find_stack_direction () < 0;
15581 _ACEOF
15582 rm -f conftest$ac_exeext
15583 if { (ac_try="$ac_link"
15584 case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_link") 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15593 { (case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15596 esac
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_try") 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_cv_c_stack_direction=1
15603 else
15604 echo "$as_me: program exited with status $ac_status" >&5
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ( exit $ac_status )
15609 ac_cv_c_stack_direction=-1
15611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15616 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15617 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15619 cat >>confdefs.h <<_ACEOF
15620 #define STACK_DIRECTION $ac_cv_c_stack_direction
15621 _ACEOF
15627 if test x"$ac_cv_func_alloca_works" != xyes; then
15628 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15629 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15630 { (exit 1); exit 1; }; }
15633 # fmod, logb, and frexp are found in -lm on most systems.
15634 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15636 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15637 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15638 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15639 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 else
15641 ac_check_lib_save_LIBS=$LIBS
15642 LIBS="-lm $LIBS"
15643 cat >conftest.$ac_ext <<_ACEOF
15644 /* confdefs.h. */
15645 _ACEOF
15646 cat confdefs.h >>conftest.$ac_ext
15647 cat >>conftest.$ac_ext <<_ACEOF
15648 /* end confdefs.h. */
15650 /* Override any GCC internal prototype to avoid an error.
15651 Use char because int might match the return type of a GCC
15652 builtin and then its argument prototype would still apply. */
15653 #ifdef __cplusplus
15654 extern "C"
15655 #endif
15656 char sqrt ();
15658 main ()
15660 return sqrt ();
15662 return 0;
15664 _ACEOF
15665 rm -f conftest.$ac_objext conftest$ac_exeext
15666 if { (ac_try="$ac_link"
15667 case "(($ac_try" in
15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15670 esac
15671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_link") 2>conftest.er1
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } && {
15679 test -z "$ac_c_werror_flag" ||
15680 test ! -s conftest.err
15681 } && test -s conftest$ac_exeext &&
15682 $as_test_x conftest$ac_exeext; then
15683 ac_cv_lib_m_sqrt=yes
15684 else
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 ac_cv_lib_m_sqrt=no
15691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15692 conftest$ac_exeext conftest.$ac_ext
15693 LIBS=$ac_check_lib_save_LIBS
15695 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15696 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15697 if test $ac_cv_lib_m_sqrt = yes; then
15698 cat >>confdefs.h <<_ACEOF
15699 #define HAVE_LIBM 1
15700 _ACEOF
15702 LIBS="-lm $LIBS"
15707 # Check for mail-locking functions in a "mail" library. Probably this should
15708 # have the same check as for liblockfile below.
15710 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15711 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15712 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714 else
15715 ac_check_lib_save_LIBS=$LIBS
15716 LIBS="-lmail $LIBS"
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h. */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15724 /* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15727 #ifdef __cplusplus
15728 extern "C"
15729 #endif
15730 char maillock ();
15732 main ()
15734 return maillock ();
15736 return 0;
15738 _ACEOF
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (ac_try="$ac_link"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15744 esac
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_link") 2>conftest.er1
15747 ac_status=$?
15748 grep -v '^ *+' conftest.er1 >conftest.err
15749 rm -f conftest.er1
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } && {
15753 test -z "$ac_c_werror_flag" ||
15754 test ! -s conftest.err
15755 } && test -s conftest$ac_exeext &&
15756 $as_test_x conftest$ac_exeext; then
15757 ac_cv_lib_mail_maillock=yes
15758 else
15759 echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15762 ac_cv_lib_mail_maillock=no
15765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15766 conftest$ac_exeext conftest.$ac_ext
15767 LIBS=$ac_check_lib_save_LIBS
15769 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15770 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15771 if test $ac_cv_lib_mail_maillock = yes; then
15772 cat >>confdefs.h <<_ACEOF
15773 #define HAVE_LIBMAIL 1
15774 _ACEOF
15776 LIBS="-lmail $LIBS"
15781 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15782 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15783 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786 ac_check_lib_save_LIBS=$LIBS
15787 LIBS="-llockfile $LIBS"
15788 cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h. */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15795 /* Override any GCC internal prototype to avoid an error.
15796 Use char because int might match the return type of a GCC
15797 builtin and then its argument prototype would still apply. */
15798 #ifdef __cplusplus
15799 extern "C"
15800 #endif
15801 char maillock ();
15803 main ()
15805 return maillock ();
15807 return 0;
15809 _ACEOF
15810 rm -f conftest.$ac_objext conftest$ac_exeext
15811 if { (ac_try="$ac_link"
15812 case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15815 esac
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_link") 2>conftest.er1
15818 ac_status=$?
15819 grep -v '^ *+' conftest.er1 >conftest.err
15820 rm -f conftest.er1
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } && {
15824 test -z "$ac_c_werror_flag" ||
15825 test ! -s conftest.err
15826 } && test -s conftest$ac_exeext &&
15827 $as_test_x conftest$ac_exeext; then
15828 ac_cv_lib_lockfile_maillock=yes
15829 else
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 ac_cv_lib_lockfile_maillock=no
15836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15837 conftest$ac_exeext conftest.$ac_ext
15838 LIBS=$ac_check_lib_save_LIBS
15840 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15841 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15842 if test $ac_cv_lib_lockfile_maillock = yes; then
15843 cat >>confdefs.h <<_ACEOF
15844 #define HAVE_LIBLOCKFILE 1
15845 _ACEOF
15847 LIBS="-llockfile $LIBS"
15851 # If we have the shared liblockfile, assume we must use it for mail
15852 # locking (e.g. Debian). If we couldn't link against liblockfile
15853 # (no liblockfile.a installed), ensure that we don't need to.
15854 if test "$ac_cv_lib_lockfile_maillock" = no; then
15855 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15856 set dummy liblockfile.so; ac_word=$2
15857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15859 if test "${ac_cv_prog_liblockfile+set}" = set; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862 if test -n "$liblockfile"; then
15863 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15864 else
15865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15866 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15867 for as_dir in $as_dummy
15869 IFS=$as_save_IFS
15870 test -z "$as_dir" && as_dir=.
15871 for ac_exec_ext in '' $ac_executable_extensions; do
15872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15873 ac_cv_prog_liblockfile="yes"
15874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15875 break 2
15877 done
15878 done
15879 IFS=$as_save_IFS
15881 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15884 liblockfile=$ac_cv_prog_liblockfile
15885 if test -n "$liblockfile"; then
15886 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15887 echo "${ECHO_T}$liblockfile" >&6; }
15888 else
15889 { echo "$as_me:$LINENO: result: no" >&5
15890 echo "${ECHO_T}no" >&6; }
15894 if test $ac_cv_prog_liblockfile = yes; then
15895 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15896 This probably means that movemail could lose mail.
15897 There may be a \`development' package to install containing liblockfile." >&5
15898 echo "$as_me: error: Shared liblockfile found but can't link against it.
15899 This probably means that movemail could lose mail.
15900 There may be a \`development' package to install containing liblockfile." >&2;}
15901 { (exit 1); exit 1; }; }
15902 else :
15906 for ac_func in touchlock
15908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 else
15914 cat >conftest.$ac_ext <<_ACEOF
15915 /* confdefs.h. */
15916 _ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15922 #define $ac_func innocuous_$ac_func
15924 /* System header to define __stub macros and hopefully few prototypes,
15925 which can conflict with char $ac_func (); below.
15926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15927 <limits.h> exists even on freestanding compilers. */
15929 #ifdef __STDC__
15930 # include <limits.h>
15931 #else
15932 # include <assert.h>
15933 #endif
15935 #undef $ac_func
15937 /* Override any GCC internal prototype to avoid an error.
15938 Use char because int might match the return type of a GCC
15939 builtin and then its argument prototype would still apply. */
15940 #ifdef __cplusplus
15941 extern "C"
15942 #endif
15943 char $ac_func ();
15944 /* The GNU C library defines this for functions which it implements
15945 to always fail with ENOSYS. Some functions are actually named
15946 something starting with __ and the normal name is an alias. */
15947 #if defined __stub_$ac_func || defined __stub___$ac_func
15948 choke me
15949 #endif
15952 main ()
15954 return $ac_func ();
15956 return 0;
15958 _ACEOF
15959 rm -f conftest.$ac_objext conftest$ac_exeext
15960 if { (ac_try="$ac_link"
15961 case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15964 esac
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_link") 2>conftest.er1
15967 ac_status=$?
15968 grep -v '^ *+' conftest.er1 >conftest.err
15969 rm -f conftest.er1
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } && {
15973 test -z "$ac_c_werror_flag" ||
15974 test ! -s conftest.err
15975 } && test -s conftest$ac_exeext &&
15976 $as_test_x conftest$ac_exeext; then
15977 eval "$as_ac_var=yes"
15978 else
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 eval "$as_ac_var=no"
15985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15986 conftest$ac_exeext conftest.$ac_ext
15988 ac_res=`eval echo '${'$as_ac_var'}'`
15989 { echo "$as_me:$LINENO: result: $ac_res" >&5
15990 echo "${ECHO_T}$ac_res" >&6; }
15991 if test `eval echo '${'$as_ac_var'}'` = yes; then
15992 cat >>confdefs.h <<_ACEOF
15993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15994 _ACEOF
15997 done
16000 for ac_header in maillock.h
16002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 ac_res=`eval echo '${'$as_ac_Header'}'`
16010 { echo "$as_me:$LINENO: result: $ac_res" >&5
16011 echo "${ECHO_T}$ac_res" >&6; }
16012 else
16013 # Is the header compilable?
16014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16016 cat >conftest.$ac_ext <<_ACEOF
16017 /* confdefs.h. */
16018 _ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16022 $ac_includes_default
16023 #include <$ac_header>
16024 _ACEOF
16025 rm -f conftest.$ac_objext
16026 if { (ac_try="$ac_compile"
16027 case "(($ac_try" in
16028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16029 *) ac_try_echo=$ac_try;;
16030 esac
16031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16032 (eval "$ac_compile") 2>conftest.er1
16033 ac_status=$?
16034 grep -v '^ *+' conftest.er1 >conftest.err
16035 rm -f conftest.er1
16036 cat conftest.err >&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } && {
16039 test -z "$ac_c_werror_flag" ||
16040 test ! -s conftest.err
16041 } && test -s conftest.$ac_objext; then
16042 ac_header_compiler=yes
16043 else
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ac_header_compiler=no
16050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16052 echo "${ECHO_T}$ac_header_compiler" >&6; }
16054 # Is the header present?
16055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16057 cat >conftest.$ac_ext <<_ACEOF
16058 /* confdefs.h. */
16059 _ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 #include <$ac_header>
16064 _ACEOF
16065 if { (ac_try="$ac_cpp conftest.$ac_ext"
16066 case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16069 esac
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } >/dev/null && {
16078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16079 test ! -s conftest.err
16080 }; then
16081 ac_header_preproc=yes
16082 else
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 ac_header_preproc=no
16089 rm -f conftest.err conftest.$ac_ext
16090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16091 echo "${ECHO_T}$ac_header_preproc" >&6; }
16093 # So? What about this header?
16094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16095 yes:no: )
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16100 ac_header_preproc=yes
16102 no:yes:* )
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16117 esac
16118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 else
16123 eval "$as_ac_Header=\$ac_header_preproc"
16125 ac_res=`eval echo '${'$as_ac_Header'}'`
16126 { echo "$as_me:$LINENO: result: $ac_res" >&5
16127 echo "${ECHO_T}$ac_res" >&6; }
16130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16131 cat >>confdefs.h <<_ACEOF
16132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16133 _ACEOF
16137 done
16208 for ac_func in gethostname getdomainname dup2 \
16209 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16210 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16211 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16212 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16213 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16214 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16215 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16216 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 else
16224 cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h. */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16232 #define $ac_func innocuous_$ac_func
16234 /* System header to define __stub macros and hopefully few prototypes,
16235 which can conflict with char $ac_func (); below.
16236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16237 <limits.h> exists even on freestanding compilers. */
16239 #ifdef __STDC__
16240 # include <limits.h>
16241 #else
16242 # include <assert.h>
16243 #endif
16245 #undef $ac_func
16247 /* Override any GCC internal prototype to avoid an error.
16248 Use char because int might match the return type of a GCC
16249 builtin and then its argument prototype would still apply. */
16250 #ifdef __cplusplus
16251 extern "C"
16252 #endif
16253 char $ac_func ();
16254 /* The GNU C library defines this for functions which it implements
16255 to always fail with ENOSYS. Some functions are actually named
16256 something starting with __ and the normal name is an alias. */
16257 #if defined __stub_$ac_func || defined __stub___$ac_func
16258 choke me
16259 #endif
16262 main ()
16264 return $ac_func ();
16266 return 0;
16268 _ACEOF
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (ac_try="$ac_link"
16271 case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16274 esac
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_link") 2>conftest.er1
16277 ac_status=$?
16278 grep -v '^ *+' conftest.er1 >conftest.err
16279 rm -f conftest.er1
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } && {
16283 test -z "$ac_c_werror_flag" ||
16284 test ! -s conftest.err
16285 } && test -s conftest$ac_exeext &&
16286 $as_test_x conftest$ac_exeext; then
16287 eval "$as_ac_var=yes"
16288 else
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 eval "$as_ac_var=no"
16295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16296 conftest$ac_exeext conftest.$ac_ext
16298 ac_res=`eval echo '${'$as_ac_var'}'`
16299 { echo "$as_me:$LINENO: result: $ac_res" >&5
16300 echo "${ECHO_T}$ac_res" >&6; }
16301 if test `eval echo '${'$as_ac_var'}'` = yes; then
16302 cat >>confdefs.h <<_ACEOF
16303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16304 _ACEOF
16307 done
16311 for ac_header in sys/un.h
16313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 ac_res=`eval echo '${'$as_ac_Header'}'`
16321 { echo "$as_me:$LINENO: result: $ac_res" >&5
16322 echo "${ECHO_T}$ac_res" >&6; }
16323 else
16324 # Is the header compilable?
16325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h. */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 $ac_includes_default
16334 #include <$ac_header>
16335 _ACEOF
16336 rm -f conftest.$ac_objext
16337 if { (ac_try="$ac_compile"
16338 case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16341 esac
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_compile") 2>conftest.er1
16344 ac_status=$?
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest.$ac_objext; then
16353 ac_header_compiler=yes
16354 else
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 ac_header_compiler=no
16361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16363 echo "${ECHO_T}$ac_header_compiler" >&6; }
16365 # Is the header present?
16366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h. */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 #include <$ac_header>
16375 _ACEOF
16376 if { (ac_try="$ac_cpp conftest.$ac_ext"
16377 case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } >/dev/null && {
16389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 }; then
16392 ac_header_preproc=yes
16393 else
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_header_preproc=no
16400 rm -f conftest.err conftest.$ac_ext
16401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16402 echo "${ECHO_T}$ac_header_preproc" >&6; }
16404 # So? What about this header?
16405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16406 yes:no: )
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16411 ac_header_preproc=yes
16413 no:yes:* )
16414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16428 esac
16429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434 eval "$as_ac_Header=\$ac_header_preproc"
16436 ac_res=`eval echo '${'$as_ac_Header'}'`
16437 { echo "$as_me:$LINENO: result: $ac_res" >&5
16438 echo "${ECHO_T}$ac_res" >&6; }
16441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16442 cat >>confdefs.h <<_ACEOF
16443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16444 _ACEOF
16448 done
16455 for ac_header in $ac_header_list
16457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 ac_res=`eval echo '${'$as_ac_Header'}'`
16465 { echo "$as_me:$LINENO: result: $ac_res" >&5
16466 echo "${ECHO_T}$ac_res" >&6; }
16467 else
16468 # Is the header compilable?
16469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16471 cat >conftest.$ac_ext <<_ACEOF
16472 /* confdefs.h. */
16473 _ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477 $ac_includes_default
16478 #include <$ac_header>
16479 _ACEOF
16480 rm -f conftest.$ac_objext
16481 if { (ac_try="$ac_compile"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16485 esac
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_compile") 2>conftest.er1
16488 ac_status=$?
16489 grep -v '^ *+' conftest.er1 >conftest.err
16490 rm -f conftest.er1
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } && {
16494 test -z "$ac_c_werror_flag" ||
16495 test ! -s conftest.err
16496 } && test -s conftest.$ac_objext; then
16497 ac_header_compiler=yes
16498 else
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16502 ac_header_compiler=no
16505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16507 echo "${ECHO_T}$ac_header_compiler" >&6; }
16509 # Is the header present?
16510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h. */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 #include <$ac_header>
16519 _ACEOF
16520 if { (ac_try="$ac_cpp conftest.$ac_ext"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16527 ac_status=$?
16528 grep -v '^ *+' conftest.er1 >conftest.err
16529 rm -f conftest.er1
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } >/dev/null && {
16533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16534 test ! -s conftest.err
16535 }; then
16536 ac_header_preproc=yes
16537 else
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_header_preproc=no
16544 rm -f conftest.err conftest.$ac_ext
16545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16546 echo "${ECHO_T}$ac_header_preproc" >&6; }
16548 # So? What about this header?
16549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16550 yes:no: )
16551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16555 ac_header_preproc=yes
16557 no:yes:* )
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16572 esac
16573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 else
16578 eval "$as_ac_Header=\$ac_header_preproc"
16580 ac_res=`eval echo '${'$as_ac_Header'}'`
16581 { echo "$as_me:$LINENO: result: $ac_res" >&5
16582 echo "${ECHO_T}$ac_res" >&6; }
16585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16586 cat >>confdefs.h <<_ACEOF
16587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16588 _ACEOF
16592 done
16602 for ac_func in $ac_func_list
16604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16609 else
16610 cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h. */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16618 #define $ac_func innocuous_$ac_func
16620 /* System header to define __stub macros and hopefully few prototypes,
16621 which can conflict with char $ac_func (); below.
16622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16623 <limits.h> exists even on freestanding compilers. */
16625 #ifdef __STDC__
16626 # include <limits.h>
16627 #else
16628 # include <assert.h>
16629 #endif
16631 #undef $ac_func
16633 /* Override any GCC internal prototype to avoid an error.
16634 Use char because int might match the return type of a GCC
16635 builtin and then its argument prototype would still apply. */
16636 #ifdef __cplusplus
16637 extern "C"
16638 #endif
16639 char $ac_func ();
16640 /* The GNU C library defines this for functions which it implements
16641 to always fail with ENOSYS. Some functions are actually named
16642 something starting with __ and the normal name is an alias. */
16643 #if defined __stub_$ac_func || defined __stub___$ac_func
16644 choke me
16645 #endif
16648 main ()
16650 return $ac_func ();
16652 return 0;
16654 _ACEOF
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (ac_try="$ac_link"
16657 case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_link") 2>conftest.er1
16663 ac_status=$?
16664 grep -v '^ *+' conftest.er1 >conftest.err
16665 rm -f conftest.er1
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } && {
16669 test -z "$ac_c_werror_flag" ||
16670 test ! -s conftest.err
16671 } && test -s conftest$ac_exeext &&
16672 $as_test_x conftest$ac_exeext; then
16673 eval "$as_ac_var=yes"
16674 else
16675 echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.$ac_ext >&5
16678 eval "$as_ac_var=no"
16681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16682 conftest$ac_exeext conftest.$ac_ext
16684 ac_res=`eval echo '${'$as_ac_var'}'`
16685 { echo "$as_me:$LINENO: result: $ac_res" >&5
16686 echo "${ECHO_T}$ac_res" >&6; }
16687 if test `eval echo '${'$as_ac_var'}'` = yes; then
16688 cat >>confdefs.h <<_ACEOF
16689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16690 _ACEOF
16693 done
16711 { echo "$as_me:$LINENO: checking for working mktime" >&5
16712 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16713 if test "${ac_cv_func_working_mktime+set}" = set; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 else
16716 if test "$cross_compiling" = yes; then
16717 ac_cv_func_working_mktime=no
16718 else
16719 cat >conftest.$ac_ext <<_ACEOF
16720 /* confdefs.h. */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16725 /* Test program from Paul Eggert and Tony Leneis. */
16726 #ifdef TIME_WITH_SYS_TIME
16727 # include <sys/time.h>
16728 # include <time.h>
16729 #else
16730 # ifdef HAVE_SYS_TIME_H
16731 # include <sys/time.h>
16732 # else
16733 # include <time.h>
16734 # endif
16735 #endif
16737 #include <limits.h>
16738 #include <stdlib.h>
16740 #ifdef HAVE_UNISTD_H
16741 # include <unistd.h>
16742 #endif
16744 #ifndef HAVE_ALARM
16745 # define alarm(X) /* empty */
16746 #endif
16748 /* Work around redefinition to rpl_putenv by other config tests. */
16749 #undef putenv
16751 static time_t time_t_max;
16752 static time_t time_t_min;
16754 /* Values we'll use to set the TZ environment variable. */
16755 static char *tz_strings[] = {
16756 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16757 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16759 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16761 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16762 Based on a problem report from Andreas Jaeger. */
16763 static int
16764 spring_forward_gap ()
16766 /* glibc (up to about 1998-10-07) failed this test. */
16767 struct tm tm;
16769 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16770 instead of "TZ=America/Vancouver" in order to detect the bug even
16771 on systems that don't support the Olson extension, or don't have the
16772 full zoneinfo tables installed. */
16773 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16775 tm.tm_year = 98;
16776 tm.tm_mon = 3;
16777 tm.tm_mday = 5;
16778 tm.tm_hour = 2;
16779 tm.tm_min = 0;
16780 tm.tm_sec = 0;
16781 tm.tm_isdst = -1;
16782 return mktime (&tm) != (time_t) -1;
16785 static int
16786 mktime_test1 (now)
16787 time_t now;
16789 struct tm *lt;
16790 return ! (lt = localtime (&now)) || mktime (lt) == now;
16793 static int
16794 mktime_test (now)
16795 time_t now;
16797 return (mktime_test1 (now)
16798 && mktime_test1 ((time_t) (time_t_max - now))
16799 && mktime_test1 ((time_t) (time_t_min + now)));
16802 static int
16803 irix_6_4_bug ()
16805 /* Based on code from Ariel Faigon. */
16806 struct tm tm;
16807 tm.tm_year = 96;
16808 tm.tm_mon = 3;
16809 tm.tm_mday = 0;
16810 tm.tm_hour = 0;
16811 tm.tm_min = 0;
16812 tm.tm_sec = 0;
16813 tm.tm_isdst = -1;
16814 mktime (&tm);
16815 return tm.tm_mon == 2 && tm.tm_mday == 31;
16818 static int
16819 bigtime_test (j)
16820 int j;
16822 struct tm tm;
16823 time_t now;
16824 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16825 now = mktime (&tm);
16826 if (now != (time_t) -1)
16828 struct tm *lt = localtime (&now);
16829 if (! (lt
16830 && lt->tm_year == tm.tm_year
16831 && lt->tm_mon == tm.tm_mon
16832 && lt->tm_mday == tm.tm_mday
16833 && lt->tm_hour == tm.tm_hour
16834 && lt->tm_min == tm.tm_min
16835 && lt->tm_sec == tm.tm_sec
16836 && lt->tm_yday == tm.tm_yday
16837 && lt->tm_wday == tm.tm_wday
16838 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16839 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16840 return 0;
16842 return 1;
16845 static int
16846 year_2050_test ()
16848 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16849 ignoring leap seconds. */
16850 unsigned long int answer = 2527315200UL;
16852 struct tm tm;
16853 time_t t;
16854 tm.tm_year = 2050 - 1900;
16855 tm.tm_mon = 2 - 1;
16856 tm.tm_mday = 1;
16857 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16858 tm.tm_isdst = -1;
16860 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16861 instead of "TZ=America/Vancouver" in order to detect the bug even
16862 on systems that don't support the Olson extension, or don't have the
16863 full zoneinfo tables installed. */
16864 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16866 t = mktime (&tm);
16868 /* Check that the result is either a failure, or close enough
16869 to the correct answer that we can assume the discrepancy is
16870 due to leap seconds. */
16871 return (t == (time_t) -1
16872 || (0 < t && answer - 120 <= t && t <= answer + 120));
16876 main ()
16878 time_t t, delta;
16879 int i, j;
16881 /* This test makes some buggy mktime implementations loop.
16882 Give up after 60 seconds; a mktime slower than that
16883 isn't worth using anyway. */
16884 alarm (60);
16886 for (;;)
16888 t = (time_t_max << 1) + 1;
16889 if (t <= time_t_max)
16890 break;
16891 time_t_max = t;
16893 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16895 delta = time_t_max / 997; /* a suitable prime number */
16896 for (i = 0; i < N_STRINGS; i++)
16898 if (tz_strings[i])
16899 putenv (tz_strings[i]);
16901 for (t = 0; t <= time_t_max - delta; t += delta)
16902 if (! mktime_test (t))
16903 return 1;
16904 if (! (mktime_test ((time_t) 1)
16905 && mktime_test ((time_t) (60 * 60))
16906 && mktime_test ((time_t) (60 * 60 * 24))))
16907 return 1;
16909 for (j = 1; ; j <<= 1)
16910 if (! bigtime_test (j))
16911 return 1;
16912 else if (INT_MAX / 2 < j)
16913 break;
16914 if (! bigtime_test (INT_MAX))
16915 return 1;
16917 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16919 _ACEOF
16920 rm -f conftest$ac_exeext
16921 if { (ac_try="$ac_link"
16922 case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925 esac
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_link") 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16931 { (case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934 esac
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_try") 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_func_working_mktime=yes
16941 else
16942 echo "$as_me: program exited with status $ac_status" >&5
16943 echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 ( exit $ac_status )
16947 ac_cv_func_working_mktime=no
16949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16954 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16955 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16956 if test $ac_cv_func_working_mktime = no; then
16957 case " $LIBOBJS " in
16958 *" mktime.$ac_objext "* ) ;;
16959 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16961 esac
16965 if test "$ac_cv_func_working_mktime" = no; then
16967 cat >>confdefs.h <<\_ACEOF
16968 #define BROKEN_MKTIME 1
16969 _ACEOF
16973 ac_have_func=no # yes means we've found a way to get the load average.
16975 # Make sure getloadavg.c is where it belongs, at configure-time.
16976 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16977 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16978 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16979 { (exit 1); exit 1; }; }
16981 ac_save_LIBS=$LIBS
16983 # Check for getloadavg, but be sure not to touch the cache variable.
16984 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16985 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16986 if test "${ac_cv_func_getloadavg+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 else
16989 cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h. */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16997 #define getloadavg innocuous_getloadavg
16999 /* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char getloadavg (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
17004 #ifdef __STDC__
17005 # include <limits.h>
17006 #else
17007 # include <assert.h>
17008 #endif
17010 #undef getloadavg
17012 /* Override any GCC internal prototype to avoid an error.
17013 Use char because int might match the return type of a GCC
17014 builtin and then its argument prototype would still apply. */
17015 #ifdef __cplusplus
17016 extern "C"
17017 #endif
17018 char getloadavg ();
17019 /* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
17022 #if defined __stub_getloadavg || defined __stub___getloadavg
17023 choke me
17024 #endif
17027 main ()
17029 return getloadavg ();
17031 return 0;
17033 _ACEOF
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17039 esac
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_link") 2>conftest.er1
17042 ac_status=$?
17043 grep -v '^ *+' conftest.er1 >conftest.err
17044 rm -f conftest.er1
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } && {
17048 test -z "$ac_c_werror_flag" ||
17049 test ! -s conftest.err
17050 } && test -s conftest$ac_exeext &&
17051 $as_test_x conftest$ac_exeext; then
17052 ac_cv_func_getloadavg=yes
17053 else
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17057 ac_cv_func_getloadavg=no
17060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17061 conftest$ac_exeext conftest.$ac_ext
17063 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17064 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17065 if test $ac_cv_func_getloadavg = yes; then
17066 exit 0
17067 else
17068 exit 1
17070 ) && ac_have_func=yes
17072 # On HPUX9, an unprivileged user can get load averages through this function.
17074 for ac_func in pstat_getdynamic
17076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 else
17082 cat >conftest.$ac_ext <<_ACEOF
17083 /* confdefs.h. */
17084 _ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17090 #define $ac_func innocuous_$ac_func
17092 /* System header to define __stub macros and hopefully few prototypes,
17093 which can conflict with char $ac_func (); below.
17094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17095 <limits.h> exists even on freestanding compilers. */
17097 #ifdef __STDC__
17098 # include <limits.h>
17099 #else
17100 # include <assert.h>
17101 #endif
17103 #undef $ac_func
17105 /* Override any GCC internal prototype to avoid an error.
17106 Use char because int might match the return type of a GCC
17107 builtin and then its argument prototype would still apply. */
17108 #ifdef __cplusplus
17109 extern "C"
17110 #endif
17111 char $ac_func ();
17112 /* The GNU C library defines this for functions which it implements
17113 to always fail with ENOSYS. Some functions are actually named
17114 something starting with __ and the normal name is an alias. */
17115 #if defined __stub_$ac_func || defined __stub___$ac_func
17116 choke me
17117 #endif
17120 main ()
17122 return $ac_func ();
17124 return 0;
17126 _ACEOF
17127 rm -f conftest.$ac_objext conftest$ac_exeext
17128 if { (ac_try="$ac_link"
17129 case "(($ac_try" in
17130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131 *) ac_try_echo=$ac_try;;
17132 esac
17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134 (eval "$ac_link") 2>conftest.er1
17135 ac_status=$?
17136 grep -v '^ *+' conftest.er1 >conftest.err
17137 rm -f conftest.er1
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } && {
17141 test -z "$ac_c_werror_flag" ||
17142 test ! -s conftest.err
17143 } && test -s conftest$ac_exeext &&
17144 $as_test_x conftest$ac_exeext; then
17145 eval "$as_ac_var=yes"
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17150 eval "$as_ac_var=no"
17153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17154 conftest$ac_exeext conftest.$ac_ext
17156 ac_res=`eval echo '${'$as_ac_var'}'`
17157 { echo "$as_me:$LINENO: result: $ac_res" >&5
17158 echo "${ECHO_T}$ac_res" >&6; }
17159 if test `eval echo '${'$as_ac_var'}'` = yes; then
17160 cat >>confdefs.h <<_ACEOF
17161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17162 _ACEOF
17165 done
17168 # Solaris has libkstat which does not require root.
17170 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17171 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17172 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17173 echo $ECHO_N "(cached) $ECHO_C" >&6
17174 else
17175 ac_check_lib_save_LIBS=$LIBS
17176 LIBS="-lkstat $LIBS"
17177 cat >conftest.$ac_ext <<_ACEOF
17178 /* confdefs.h. */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17184 /* Override any GCC internal prototype to avoid an error.
17185 Use char because int might match the return type of a GCC
17186 builtin and then its argument prototype would still apply. */
17187 #ifdef __cplusplus
17188 extern "C"
17189 #endif
17190 char kstat_open ();
17192 main ()
17194 return kstat_open ();
17196 return 0;
17198 _ACEOF
17199 rm -f conftest.$ac_objext conftest$ac_exeext
17200 if { (ac_try="$ac_link"
17201 case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17204 esac
17205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_link") 2>conftest.er1
17207 ac_status=$?
17208 grep -v '^ *+' conftest.er1 >conftest.err
17209 rm -f conftest.er1
17210 cat conftest.err >&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } && {
17213 test -z "$ac_c_werror_flag" ||
17214 test ! -s conftest.err
17215 } && test -s conftest$ac_exeext &&
17216 $as_test_x conftest$ac_exeext; then
17217 ac_cv_lib_kstat_kstat_open=yes
17218 else
17219 echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17222 ac_cv_lib_kstat_kstat_open=no
17225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17226 conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17229 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17230 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17231 if test $ac_cv_lib_kstat_kstat_open = yes; then
17232 cat >>confdefs.h <<_ACEOF
17233 #define HAVE_LIBKSTAT 1
17234 _ACEOF
17236 LIBS="-lkstat $LIBS"
17240 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17242 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17243 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17244 # to get the right answer into the cache.
17245 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17246 if test $ac_have_func = no; then
17247 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17248 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17249 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 else
17252 ac_check_lib_save_LIBS=$LIBS
17253 LIBS="-lelf $LIBS"
17254 cat >conftest.$ac_ext <<_ACEOF
17255 /* confdefs.h. */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17261 /* Override any GCC internal prototype to avoid an error.
17262 Use char because int might match the return type of a GCC
17263 builtin and then its argument prototype would still apply. */
17264 #ifdef __cplusplus
17265 extern "C"
17266 #endif
17267 char elf_begin ();
17269 main ()
17271 return elf_begin ();
17273 return 0;
17275 _ACEOF
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (ac_try="$ac_link"
17278 case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17281 esac
17282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_link") 2>conftest.er1
17284 ac_status=$?
17285 grep -v '^ *+' conftest.er1 >conftest.err
17286 rm -f conftest.er1
17287 cat conftest.err >&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } && {
17290 test -z "$ac_c_werror_flag" ||
17291 test ! -s conftest.err
17292 } && test -s conftest$ac_exeext &&
17293 $as_test_x conftest$ac_exeext; then
17294 ac_cv_lib_elf_elf_begin=yes
17295 else
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17299 ac_cv_lib_elf_elf_begin=no
17302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17303 conftest$ac_exeext conftest.$ac_ext
17304 LIBS=$ac_check_lib_save_LIBS
17306 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17307 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17308 if test $ac_cv_lib_elf_elf_begin = yes; then
17309 LIBS="-lelf $LIBS"
17313 if test $ac_have_func = no; then
17314 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17315 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17316 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319 ac_check_lib_save_LIBS=$LIBS
17320 LIBS="-lkvm $LIBS"
17321 cat >conftest.$ac_ext <<_ACEOF
17322 /* confdefs.h. */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17328 /* Override any GCC internal prototype to avoid an error.
17329 Use char because int might match the return type of a GCC
17330 builtin and then its argument prototype would still apply. */
17331 #ifdef __cplusplus
17332 extern "C"
17333 #endif
17334 char kvm_open ();
17336 main ()
17338 return kvm_open ();
17340 return 0;
17342 _ACEOF
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_link") 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest$ac_exeext &&
17360 $as_test_x conftest$ac_exeext; then
17361 ac_cv_lib_kvm_kvm_open=yes
17362 else
17363 echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17366 ac_cv_lib_kvm_kvm_open=no
17369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17370 conftest$ac_exeext conftest.$ac_ext
17371 LIBS=$ac_check_lib_save_LIBS
17373 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17374 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17375 if test $ac_cv_lib_kvm_kvm_open = yes; then
17376 LIBS="-lkvm $LIBS"
17379 # Check for the 4.4BSD definition of getloadavg.
17380 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17381 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17382 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385 ac_check_lib_save_LIBS=$LIBS
17386 LIBS="-lutil $LIBS"
17387 cat >conftest.$ac_ext <<_ACEOF
17388 /* confdefs.h. */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17394 /* Override any GCC internal prototype to avoid an error.
17395 Use char because int might match the return type of a GCC
17396 builtin and then its argument prototype would still apply. */
17397 #ifdef __cplusplus
17398 extern "C"
17399 #endif
17400 char getloadavg ();
17402 main ()
17404 return getloadavg ();
17406 return 0;
17408 _ACEOF
17409 rm -f conftest.$ac_objext conftest$ac_exeext
17410 if { (ac_try="$ac_link"
17411 case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17414 esac
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_link") 2>conftest.er1
17417 ac_status=$?
17418 grep -v '^ *+' conftest.er1 >conftest.err
17419 rm -f conftest.er1
17420 cat conftest.err >&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && {
17423 test -z "$ac_c_werror_flag" ||
17424 test ! -s conftest.err
17425 } && test -s conftest$ac_exeext &&
17426 $as_test_x conftest$ac_exeext; then
17427 ac_cv_lib_util_getloadavg=yes
17428 else
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 ac_cv_lib_util_getloadavg=no
17435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17436 conftest$ac_exeext conftest.$ac_ext
17437 LIBS=$ac_check_lib_save_LIBS
17439 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17440 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17441 if test $ac_cv_lib_util_getloadavg = yes; then
17442 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17447 if test $ac_have_func = no; then
17448 # There is a commonly available library for RS/6000 AIX.
17449 # Since it is not a standard part of AIX, it might be installed locally.
17450 ac_getloadavg_LIBS=$LIBS
17451 LIBS="-L/usr/local/lib $LIBS"
17452 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17453 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17454 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457 ac_check_lib_save_LIBS=$LIBS
17458 LIBS="-lgetloadavg $LIBS"
17459 cat >conftest.$ac_ext <<_ACEOF
17460 /* confdefs.h. */
17461 _ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17469 #ifdef __cplusplus
17470 extern "C"
17471 #endif
17472 char getloadavg ();
17474 main ()
17476 return getloadavg ();
17478 return 0;
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (ac_try="$ac_link"
17483 case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17486 esac
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_link") 2>conftest.er1
17489 ac_status=$?
17490 grep -v '^ *+' conftest.er1 >conftest.err
17491 rm -f conftest.er1
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } && {
17495 test -z "$ac_c_werror_flag" ||
17496 test ! -s conftest.err
17497 } && test -s conftest$ac_exeext &&
17498 $as_test_x conftest$ac_exeext; then
17499 ac_cv_lib_getloadavg_getloadavg=yes
17500 else
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 ac_cv_lib_getloadavg_getloadavg=no
17507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17508 conftest$ac_exeext conftest.$ac_ext
17509 LIBS=$ac_check_lib_save_LIBS
17511 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17512 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17513 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17514 LIBS="-lgetloadavg $LIBS"
17515 else
17516 LIBS=$ac_getloadavg_LIBS
17521 # Make sure it is really in the library, if we think we found it,
17522 # otherwise set up the replacement function.
17524 for ac_func in getloadavg
17526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 else
17532 cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h. */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17540 #define $ac_func innocuous_$ac_func
17542 /* System header to define __stub macros and hopefully few prototypes,
17543 which can conflict with char $ac_func (); below.
17544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17545 <limits.h> exists even on freestanding compilers. */
17547 #ifdef __STDC__
17548 # include <limits.h>
17549 #else
17550 # include <assert.h>
17551 #endif
17553 #undef $ac_func
17555 /* Override any GCC internal prototype to avoid an error.
17556 Use char because int might match the return type of a GCC
17557 builtin and then its argument prototype would still apply. */
17558 #ifdef __cplusplus
17559 extern "C"
17560 #endif
17561 char $ac_func ();
17562 /* The GNU C library defines this for functions which it implements
17563 to always fail with ENOSYS. Some functions are actually named
17564 something starting with __ and the normal name is an alias. */
17565 #if defined __stub_$ac_func || defined __stub___$ac_func
17566 choke me
17567 #endif
17570 main ()
17572 return $ac_func ();
17574 return 0;
17576 _ACEOF
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (ac_try="$ac_link"
17579 case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_link") 2>conftest.er1
17585 ac_status=$?
17586 grep -v '^ *+' conftest.er1 >conftest.err
17587 rm -f conftest.er1
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } && {
17591 test -z "$ac_c_werror_flag" ||
17592 test ! -s conftest.err
17593 } && test -s conftest$ac_exeext &&
17594 $as_test_x conftest$ac_exeext; then
17595 eval "$as_ac_var=yes"
17596 else
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 eval "$as_ac_var=no"
17603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17604 conftest$ac_exeext conftest.$ac_ext
17606 ac_res=`eval echo '${'$as_ac_var'}'`
17607 { echo "$as_me:$LINENO: result: $ac_res" >&5
17608 echo "${ECHO_T}$ac_res" >&6; }
17609 if test `eval echo '${'$as_ac_var'}'` = yes; then
17610 cat >>confdefs.h <<_ACEOF
17611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17612 _ACEOF
17614 else
17615 case " $LIBOBJS " in
17616 *" getloadavg.$ac_objext "* ) ;;
17617 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17619 esac
17622 cat >>confdefs.h <<\_ACEOF
17623 #define C_GETLOADAVG 1
17624 _ACEOF
17626 # Figure out what our getloadavg.c needs.
17627 ac_have_func=no
17628 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17629 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17630 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17631 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17635 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17636 else
17637 # Is the header compilable?
17638 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17639 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17640 cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h. */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 $ac_includes_default
17647 #include <sys/dg_sys_info.h>
17648 _ACEOF
17649 rm -f conftest.$ac_objext
17650 if { (ac_try="$ac_compile"
17651 case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17654 esac
17655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17656 (eval "$ac_compile") 2>conftest.er1
17657 ac_status=$?
17658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } && {
17663 test -z "$ac_c_werror_flag" ||
17664 test ! -s conftest.err
17665 } && test -s conftest.$ac_objext; then
17666 ac_header_compiler=yes
17667 else
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 ac_header_compiler=no
17674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17676 echo "${ECHO_T}$ac_header_compiler" >&6; }
17678 # Is the header present?
17679 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17680 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17681 cat >conftest.$ac_ext <<_ACEOF
17682 /* confdefs.h. */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 #include <sys/dg_sys_info.h>
17688 _ACEOF
17689 if { (ac_try="$ac_cpp conftest.$ac_ext"
17690 case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17693 esac
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17696 ac_status=$?
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } >/dev/null && {
17702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17703 test ! -s conftest.err
17704 }; then
17705 ac_header_preproc=yes
17706 else
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_header_preproc=no
17713 rm -f conftest.err conftest.$ac_ext
17714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17715 echo "${ECHO_T}$ac_header_preproc" >&6; }
17717 # So? What about this header?
17718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17719 yes:no: )
17720 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17721 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17722 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17723 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17724 ac_header_preproc=yes
17726 no:yes:* )
17727 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17728 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17729 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17730 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17731 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17732 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17733 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17734 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17735 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17736 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17737 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17738 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17741 esac
17742 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17743 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17744 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 else
17747 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17749 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17750 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17753 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17754 ac_have_func=yes
17756 cat >>confdefs.h <<\_ACEOF
17757 #define DGUX 1
17758 _ACEOF
17761 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17762 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17763 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766 ac_check_lib_save_LIBS=$LIBS
17767 LIBS="-ldgc $LIBS"
17768 cat >conftest.$ac_ext <<_ACEOF
17769 /* confdefs.h. */
17770 _ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17775 /* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17778 #ifdef __cplusplus
17779 extern "C"
17780 #endif
17781 char dg_sys_info ();
17783 main ()
17785 return dg_sys_info ();
17787 return 0;
17789 _ACEOF
17790 rm -f conftest.$ac_objext conftest$ac_exeext
17791 if { (ac_try="$ac_link"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17795 esac
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_link") 2>conftest.er1
17798 ac_status=$?
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } && {
17804 test -z "$ac_c_werror_flag" ||
17805 test ! -s conftest.err
17806 } && test -s conftest$ac_exeext &&
17807 $as_test_x conftest$ac_exeext; then
17808 ac_cv_lib_dgc_dg_sys_info=yes
17809 else
17810 echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17813 ac_cv_lib_dgc_dg_sys_info=no
17816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17817 conftest$ac_exeext conftest.$ac_ext
17818 LIBS=$ac_check_lib_save_LIBS
17820 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17821 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17822 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17823 cat >>confdefs.h <<_ACEOF
17824 #define HAVE_LIBDGC 1
17825 _ACEOF
17827 LIBS="-ldgc $LIBS"
17835 if test "${ac_cv_header_locale_h+set}" = set; then
17836 { echo "$as_me:$LINENO: checking for locale.h" >&5
17837 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17838 if test "${ac_cv_header_locale_h+set}" = set; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17841 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17842 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17843 else
17844 # Is the header compilable?
17845 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17846 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17847 cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h. */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 $ac_includes_default
17854 #include <locale.h>
17855 _ACEOF
17856 rm -f conftest.$ac_objext
17857 if { (ac_try="$ac_compile"
17858 case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17861 esac
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_compile") 2>conftest.er1
17864 ac_status=$?
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } && {
17870 test -z "$ac_c_werror_flag" ||
17871 test ! -s conftest.err
17872 } && test -s conftest.$ac_objext; then
17873 ac_header_compiler=yes
17874 else
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17878 ac_header_compiler=no
17881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17883 echo "${ECHO_T}$ac_header_compiler" >&6; }
17885 # Is the header present?
17886 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17887 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17888 cat >conftest.$ac_ext <<_ACEOF
17889 /* confdefs.h. */
17890 _ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h. */
17894 #include <locale.h>
17895 _ACEOF
17896 if { (ac_try="$ac_cpp conftest.$ac_ext"
17897 case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17900 esac
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17903 ac_status=$?
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } >/dev/null && {
17909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17910 test ! -s conftest.err
17911 }; then
17912 ac_header_preproc=yes
17913 else
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 ac_header_preproc=no
17920 rm -f conftest.err conftest.$ac_ext
17921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17922 echo "${ECHO_T}$ac_header_preproc" >&6; }
17924 # So? What about this header?
17925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17926 yes:no: )
17927 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17928 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17929 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17930 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17931 ac_header_preproc=yes
17933 no:yes:* )
17934 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17935 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17937 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17939 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17940 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17941 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17942 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17943 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17944 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17945 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17948 esac
17949 { echo "$as_me:$LINENO: checking for locale.h" >&5
17950 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17951 if test "${ac_cv_header_locale_h+set}" = set; then
17952 echo $ECHO_N "(cached) $ECHO_C" >&6
17953 else
17954 ac_cv_header_locale_h=$ac_header_preproc
17956 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17957 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17963 for ac_func in setlocale
17965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 else
17971 cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h. */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17979 #define $ac_func innocuous_$ac_func
17981 /* System header to define __stub macros and hopefully few prototypes,
17982 which can conflict with char $ac_func (); below.
17983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17984 <limits.h> exists even on freestanding compilers. */
17986 #ifdef __STDC__
17987 # include <limits.h>
17988 #else
17989 # include <assert.h>
17990 #endif
17992 #undef $ac_func
17994 /* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
17997 #ifdef __cplusplus
17998 extern "C"
17999 #endif
18000 char $ac_func ();
18001 /* The GNU C library defines this for functions which it implements
18002 to always fail with ENOSYS. Some functions are actually named
18003 something starting with __ and the normal name is an alias. */
18004 #if defined __stub_$ac_func || defined __stub___$ac_func
18005 choke me
18006 #endif
18009 main ()
18011 return $ac_func ();
18013 return 0;
18015 _ACEOF
18016 rm -f conftest.$ac_objext conftest$ac_exeext
18017 if { (ac_try="$ac_link"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021 esac
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_link") 2>conftest.er1
18024 ac_status=$?
18025 grep -v '^ *+' conftest.er1 >conftest.err
18026 rm -f conftest.er1
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } && {
18030 test -z "$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 } && test -s conftest$ac_exeext &&
18033 $as_test_x conftest$ac_exeext; then
18034 eval "$as_ac_var=yes"
18035 else
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 eval "$as_ac_var=no"
18042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18043 conftest$ac_exeext conftest.$ac_ext
18045 ac_res=`eval echo '${'$as_ac_var'}'`
18046 { echo "$as_me:$LINENO: result: $ac_res" >&5
18047 echo "${ECHO_T}$ac_res" >&6; }
18048 if test `eval echo '${'$as_ac_var'}'` = yes; then
18049 cat >>confdefs.h <<_ACEOF
18050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18051 _ACEOF
18054 done
18057 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18058 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18059 # Irix 4.0.5F has the header but not the library.
18060 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18061 ac_have_func=yes
18063 cat >>confdefs.h <<\_ACEOF
18064 #define SVR4 1
18065 _ACEOF
18069 if test $ac_have_func = no; then
18070 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18071 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18072 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18073 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18074 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18077 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18078 else
18079 # Is the header compilable?
18080 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18081 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h. */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088 $ac_includes_default
18089 #include <inq_stats/cpustats.h>
18090 _ACEOF
18091 rm -f conftest.$ac_objext
18092 if { (ac_try="$ac_compile"
18093 case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18096 esac
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_compile") 2>conftest.er1
18099 ac_status=$?
18100 grep -v '^ *+' conftest.er1 >conftest.err
18101 rm -f conftest.er1
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } && {
18105 test -z "$ac_c_werror_flag" ||
18106 test ! -s conftest.err
18107 } && test -s conftest.$ac_objext; then
18108 ac_header_compiler=yes
18109 else
18110 echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18113 ac_header_compiler=no
18116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18118 echo "${ECHO_T}$ac_header_compiler" >&6; }
18120 # Is the header present?
18121 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18122 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18123 cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h. */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18129 #include <inq_stats/cpustats.h>
18130 _ACEOF
18131 if { (ac_try="$ac_cpp conftest.$ac_ext"
18132 case "(($ac_try" in
18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134 *) ac_try_echo=$ac_try;;
18135 esac
18136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18138 ac_status=$?
18139 grep -v '^ *+' conftest.er1 >conftest.err
18140 rm -f conftest.er1
18141 cat conftest.err >&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } >/dev/null && {
18144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18145 test ! -s conftest.err
18146 }; then
18147 ac_header_preproc=yes
18148 else
18149 echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18152 ac_header_preproc=no
18155 rm -f conftest.err conftest.$ac_ext
18156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18157 echo "${ECHO_T}$ac_header_preproc" >&6; }
18159 # So? What about this header?
18160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18161 yes:no: )
18162 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18163 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18164 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18165 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18166 ac_header_preproc=yes
18168 no:yes:* )
18169 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18170 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18172 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18174 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18175 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18176 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18177 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18178 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18179 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18180 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18183 esac
18184 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18185 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18186 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 else
18189 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18191 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18192 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18195 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18196 ac_have_func=yes
18198 cat >>confdefs.h <<\_ACEOF
18199 #define UMAX 1
18200 _ACEOF
18203 cat >>confdefs.h <<\_ACEOF
18204 #define UMAX4_3 1
18205 _ACEOF
18212 if test $ac_have_func = no; then
18213 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18214 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18215 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18216 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18219 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18220 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18221 else
18222 # Is the header compilable?
18223 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18224 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18225 cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h. */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 $ac_includes_default
18232 #include <sys/cpustats.h>
18233 _ACEOF
18234 rm -f conftest.$ac_objext
18235 if { (ac_try="$ac_compile"
18236 case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18239 esac
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_compile") 2>conftest.er1
18242 ac_status=$?
18243 grep -v '^ *+' conftest.er1 >conftest.err
18244 rm -f conftest.er1
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } && {
18248 test -z "$ac_c_werror_flag" ||
18249 test ! -s conftest.err
18250 } && test -s conftest.$ac_objext; then
18251 ac_header_compiler=yes
18252 else
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_header_compiler=no
18259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18261 echo "${ECHO_T}$ac_header_compiler" >&6; }
18263 # Is the header present?
18264 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18265 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18266 cat >conftest.$ac_ext <<_ACEOF
18267 /* confdefs.h. */
18268 _ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 #include <sys/cpustats.h>
18273 _ACEOF
18274 if { (ac_try="$ac_cpp conftest.$ac_ext"
18275 case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } >/dev/null && {
18287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18289 }; then
18290 ac_header_preproc=yes
18291 else
18292 echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 ac_header_preproc=no
18298 rm -f conftest.err conftest.$ac_ext
18299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18300 echo "${ECHO_T}$ac_header_preproc" >&6; }
18302 # So? What about this header?
18303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18304 yes:no: )
18305 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18306 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18307 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18308 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18309 ac_header_preproc=yes
18311 no:yes:* )
18312 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18313 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18314 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18315 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18317 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18318 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18319 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18320 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18321 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18322 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18323 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18326 esac
18327 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18328 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18329 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 else
18332 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18334 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18335 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18338 if test $ac_cv_header_sys_cpustats_h = yes; then
18339 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18340 #define UMAX 1
18341 _ACEOF
18348 if test $ac_have_func = no; then
18350 for ac_header in mach/mach.h
18352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18357 echo $ECHO_N "(cached) $ECHO_C" >&6
18359 ac_res=`eval echo '${'$as_ac_Header'}'`
18360 { echo "$as_me:$LINENO: result: $ac_res" >&5
18361 echo "${ECHO_T}$ac_res" >&6; }
18362 else
18363 # Is the header compilable?
18364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 $ac_includes_default
18373 #include <$ac_header>
18374 _ACEOF
18375 rm -f conftest.$ac_objext
18376 if { (ac_try="$ac_compile"
18377 case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_compile") 2>conftest.er1
18383 ac_status=$?
18384 grep -v '^ *+' conftest.er1 >conftest.err
18385 rm -f conftest.er1
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } && {
18389 test -z "$ac_c_werror_flag" ||
18390 test ! -s conftest.err
18391 } && test -s conftest.$ac_objext; then
18392 ac_header_compiler=yes
18393 else
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18397 ac_header_compiler=no
18400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18402 echo "${ECHO_T}$ac_header_compiler" >&6; }
18404 # Is the header present?
18405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18407 cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h. */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <$ac_header>
18414 _ACEOF
18415 if { (ac_try="$ac_cpp conftest.$ac_ext"
18416 case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18419 esac
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18422 ac_status=$?
18423 grep -v '^ *+' conftest.er1 >conftest.err
18424 rm -f conftest.er1
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } >/dev/null && {
18428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18429 test ! -s conftest.err
18430 }; then
18431 ac_header_preproc=yes
18432 else
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18436 ac_header_preproc=no
18439 rm -f conftest.err conftest.$ac_ext
18440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18441 echo "${ECHO_T}$ac_header_preproc" >&6; }
18443 # So? What about this header?
18444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18445 yes:no: )
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18450 ac_header_preproc=yes
18452 no:yes:* )
18453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18467 esac
18468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473 eval "$as_ac_Header=\$ac_header_preproc"
18475 ac_res=`eval echo '${'$as_ac_Header'}'`
18476 { echo "$as_me:$LINENO: result: $ac_res" >&5
18477 echo "${ECHO_T}$ac_res" >&6; }
18480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18481 cat >>confdefs.h <<_ACEOF
18482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18483 _ACEOF
18487 done
18492 for ac_header in nlist.h
18494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18501 ac_res=`eval echo '${'$as_ac_Header'}'`
18502 { echo "$as_me:$LINENO: result: $ac_res" >&5
18503 echo "${ECHO_T}$ac_res" >&6; }
18504 else
18505 # Is the header compilable?
18506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18508 cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h. */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 $ac_includes_default
18515 #include <$ac_header>
18516 _ACEOF
18517 rm -f conftest.$ac_objext
18518 if { (ac_try="$ac_compile"
18519 case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_compile") 2>conftest.er1
18525 ac_status=$?
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } && {
18531 test -z "$ac_c_werror_flag" ||
18532 test ! -s conftest.err
18533 } && test -s conftest.$ac_objext; then
18534 ac_header_compiler=yes
18535 else
18536 echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18539 ac_header_compiler=no
18542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18544 echo "${ECHO_T}$ac_header_compiler" >&6; }
18546 # Is the header present?
18547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18549 cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h. */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18555 #include <$ac_header>
18556 _ACEOF
18557 if { (ac_try="$ac_cpp conftest.$ac_ext"
18558 case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18561 esac
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18564 ac_status=$?
18565 grep -v '^ *+' conftest.er1 >conftest.err
18566 rm -f conftest.er1
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } >/dev/null && {
18570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18571 test ! -s conftest.err
18572 }; then
18573 ac_header_preproc=yes
18574 else
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18578 ac_header_preproc=no
18581 rm -f conftest.err conftest.$ac_ext
18582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18583 echo "${ECHO_T}$ac_header_preproc" >&6; }
18585 # So? What about this header?
18586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18587 yes:no: )
18588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18592 ac_header_preproc=yes
18594 no:yes:* )
18595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18609 esac
18610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18614 else
18615 eval "$as_ac_Header=\$ac_header_preproc"
18617 ac_res=`eval echo '${'$as_ac_Header'}'`
18618 { echo "$as_me:$LINENO: result: $ac_res" >&5
18619 echo "${ECHO_T}$ac_res" >&6; }
18622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18623 cat >>confdefs.h <<_ACEOF
18624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18625 _ACEOF
18626 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18627 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18628 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18630 else
18631 cat >conftest.$ac_ext <<_ACEOF
18632 /* confdefs.h. */
18633 _ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h. */
18637 #include <nlist.h>
18640 main ()
18642 static struct nlist ac_aggr;
18643 if (ac_aggr.n_un.n_name)
18644 return 0;
18646 return 0;
18648 _ACEOF
18649 rm -f conftest.$ac_objext
18650 if { (ac_try="$ac_compile"
18651 case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18654 esac
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_compile") 2>conftest.er1
18657 ac_status=$?
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } && {
18663 test -z "$ac_c_werror_flag" ||
18664 test ! -s conftest.err
18665 } && test -s conftest.$ac_objext; then
18666 ac_cv_member_struct_nlist_n_un_n_name=yes
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h. */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18677 #include <nlist.h>
18680 main ()
18682 static struct nlist ac_aggr;
18683 if (sizeof ac_aggr.n_un.n_name)
18684 return 0;
18686 return 0;
18688 _ACEOF
18689 rm -f conftest.$ac_objext
18690 if { (ac_try="$ac_compile"
18691 case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_compile") 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest.$ac_objext; then
18706 ac_cv_member_struct_nlist_n_un_n_name=yes
18707 else
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18711 ac_cv_member_struct_nlist_n_un_n_name=no
18714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18719 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18720 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18721 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18723 cat >>confdefs.h <<_ACEOF
18724 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18725 _ACEOF
18728 cat >>confdefs.h <<\_ACEOF
18729 #define NLIST_NAME_UNION 1
18730 _ACEOF
18737 done
18740 done
18743 # Some definitions of getloadavg require that the program be installed setgid.
18744 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18745 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18746 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18747 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 else
18749 cat >conftest.$ac_ext <<_ACEOF
18750 /* confdefs.h. */
18751 _ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18755 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18756 #ifdef LDAV_PRIVILEGED
18757 Yowza Am I SETGID yet
18758 #endif
18759 _ACEOF
18760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18761 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18762 ac_cv_func_getloadavg_setgid=yes
18763 else
18764 ac_cv_func_getloadavg_setgid=no
18766 rm -f conftest*
18769 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18770 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18771 if test $ac_cv_func_getloadavg_setgid = yes; then
18772 NEED_SETGID=true
18774 cat >>confdefs.h <<\_ACEOF
18775 #define GETLOADAVG_PRIVILEGED 1
18776 _ACEOF
18778 else
18779 NEED_SETGID=false
18782 if test $ac_cv_func_getloadavg_setgid = yes; then
18783 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18784 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18785 if test "${ac_cv_group_kmem+set}" = set; then
18786 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 else
18788 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18789 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18790 # If we got an error (system does not support symlinks), try without -L.
18791 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18792 ac_cv_group_kmem=`echo $ac_ls_output \
18793 | sed -ne 's/[ ][ ]*/ /g;
18794 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18795 / /s/.* //;p;'`
18798 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18799 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18800 KMEM_GROUP=$ac_cv_group_kmem
18802 if test "x$ac_save_LIBS" = x; then
18803 GETLOADAVG_LIBS=$LIBS
18804 else
18805 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18807 LIBS=$ac_save_LIBS
18811 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18812 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18813 if test "${ac_cv_sys_largefile_source+set}" = set; then
18814 echo $ECHO_N "(cached) $ECHO_C" >&6
18815 else
18816 while :; do
18817 cat >conftest.$ac_ext <<_ACEOF
18818 /* confdefs.h. */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823 #include <sys/types.h> /* for off_t */
18824 #include <stdio.h>
18826 main ()
18828 int (*fp) (FILE *, off_t, int) = fseeko;
18829 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } && {
18848 test -z "$ac_c_werror_flag" ||
18849 test ! -s conftest.err
18850 } && test -s conftest$ac_exeext &&
18851 $as_test_x conftest$ac_exeext; then
18852 ac_cv_sys_largefile_source=no; break
18853 else
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
18862 cat >conftest.$ac_ext <<_ACEOF
18863 /* confdefs.h. */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18868 #define _LARGEFILE_SOURCE 1
18869 #include <sys/types.h> /* for off_t */
18870 #include <stdio.h>
18872 main ()
18874 int (*fp) (FILE *, off_t, int) = fseeko;
18875 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18877 return 0;
18879 _ACEOF
18880 rm -f conftest.$ac_objext conftest$ac_exeext
18881 if { (ac_try="$ac_link"
18882 case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18885 esac
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_link") 2>conftest.er1
18888 ac_status=$?
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } && {
18894 test -z "$ac_c_werror_flag" ||
18895 test ! -s conftest.err
18896 } && test -s conftest$ac_exeext &&
18897 $as_test_x conftest$ac_exeext; then
18898 ac_cv_sys_largefile_source=1; break
18899 else
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18907 conftest$ac_exeext conftest.$ac_ext
18908 ac_cv_sys_largefile_source=unknown
18909 break
18910 done
18912 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18913 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18914 case $ac_cv_sys_largefile_source in #(
18915 no | unknown) ;;
18917 cat >>confdefs.h <<_ACEOF
18918 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18919 _ACEOF
18921 esac
18922 rm -f conftest*
18924 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18925 # in glibc 2.1.3, but that breaks too many other things.
18926 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18927 if test $ac_cv_sys_largefile_source != unknown; then
18929 cat >>confdefs.h <<\_ACEOF
18930 #define HAVE_FSEEKO 1
18931 _ACEOF
18936 # Configure getopt.
18937 # getopt.m4 serial 10
18939 # The getopt module assume you want GNU getopt, with getopt_long etc,
18940 # rather than vanilla POSIX getopt. This means your your code should
18941 # always include <getopt.h> for the getopt prototypes.
18953 # Prerequisites of lib/getopt*.
18958 GETOPT_H=
18960 for ac_header in getopt.h
18962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 ac_res=`eval echo '${'$as_ac_Header'}'`
18970 { echo "$as_me:$LINENO: result: $ac_res" >&5
18971 echo "${ECHO_T}$ac_res" >&6; }
18972 else
18973 # Is the header compilable?
18974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18976 cat >conftest.$ac_ext <<_ACEOF
18977 /* confdefs.h. */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 $ac_includes_default
18983 #include <$ac_header>
18984 _ACEOF
18985 rm -f conftest.$ac_objext
18986 if { (ac_try="$ac_compile"
18987 case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18990 esac
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_compile") 2>conftest.er1
18993 ac_status=$?
18994 grep -v '^ *+' conftest.er1 >conftest.err
18995 rm -f conftest.er1
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } && {
18999 test -z "$ac_c_werror_flag" ||
19000 test ! -s conftest.err
19001 } && test -s conftest.$ac_objext; then
19002 ac_header_compiler=yes
19003 else
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_header_compiler=no
19010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19012 echo "${ECHO_T}$ac_header_compiler" >&6; }
19014 # Is the header present?
19015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h. */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 #include <$ac_header>
19024 _ACEOF
19025 if { (ac_try="$ac_cpp conftest.$ac_ext"
19026 case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19029 esac
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19032 ac_status=$?
19033 grep -v '^ *+' conftest.er1 >conftest.err
19034 rm -f conftest.er1
19035 cat conftest.err >&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } >/dev/null && {
19038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19039 test ! -s conftest.err
19040 }; then
19041 ac_header_preproc=yes
19042 else
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 ac_header_preproc=no
19049 rm -f conftest.err conftest.$ac_ext
19050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19051 echo "${ECHO_T}$ac_header_preproc" >&6; }
19053 # So? What about this header?
19054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19055 yes:no: )
19056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19060 ac_header_preproc=yes
19062 no:yes:* )
19063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19077 esac
19078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083 eval "$as_ac_Header=\$ac_header_preproc"
19085 ac_res=`eval echo '${'$as_ac_Header'}'`
19086 { echo "$as_me:$LINENO: result: $ac_res" >&5
19087 echo "${ECHO_T}$ac_res" >&6; }
19090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19091 cat >>confdefs.h <<_ACEOF
19092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19093 _ACEOF
19095 else
19096 GETOPT_H=getopt.h
19099 done
19101 if test -z "$GETOPT_H"; then
19103 for ac_func in getopt_long_only
19105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 else
19111 cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h. */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19119 #define $ac_func innocuous_$ac_func
19121 /* System header to define __stub macros and hopefully few prototypes,
19122 which can conflict with char $ac_func (); below.
19123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19124 <limits.h> exists even on freestanding compilers. */
19126 #ifdef __STDC__
19127 # include <limits.h>
19128 #else
19129 # include <assert.h>
19130 #endif
19132 #undef $ac_func
19134 /* Override any GCC internal prototype to avoid an error.
19135 Use char because int might match the return type of a GCC
19136 builtin and then its argument prototype would still apply. */
19137 #ifdef __cplusplus
19138 extern "C"
19139 #endif
19140 char $ac_func ();
19141 /* The GNU C library defines this for functions which it implements
19142 to always fail with ENOSYS. Some functions are actually named
19143 something starting with __ and the normal name is an alias. */
19144 #if defined __stub_$ac_func || defined __stub___$ac_func
19145 choke me
19146 #endif
19149 main ()
19151 return $ac_func ();
19153 return 0;
19155 _ACEOF
19156 rm -f conftest.$ac_objext conftest$ac_exeext
19157 if { (ac_try="$ac_link"
19158 case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19161 esac
19162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19163 (eval "$ac_link") 2>conftest.er1
19164 ac_status=$?
19165 grep -v '^ *+' conftest.er1 >conftest.err
19166 rm -f conftest.er1
19167 cat conftest.err >&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } && {
19170 test -z "$ac_c_werror_flag" ||
19171 test ! -s conftest.err
19172 } && test -s conftest$ac_exeext &&
19173 $as_test_x conftest$ac_exeext; then
19174 eval "$as_ac_var=yes"
19175 else
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19179 eval "$as_ac_var=no"
19182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19183 conftest$ac_exeext conftest.$ac_ext
19185 ac_res=`eval echo '${'$as_ac_var'}'`
19186 { echo "$as_me:$LINENO: result: $ac_res" >&5
19187 echo "${ECHO_T}$ac_res" >&6; }
19188 if test `eval echo '${'$as_ac_var'}'` = yes; then
19189 cat >>confdefs.h <<_ACEOF
19190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19191 _ACEOF
19193 else
19194 GETOPT_H=getopt.h
19196 done
19200 if test -z "$GETOPT_H"; then
19201 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19202 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19203 if test "${ac_cv_have_decl_optreset+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 else
19206 cat >conftest.$ac_ext <<_ACEOF
19207 /* confdefs.h. */
19208 _ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19212 #include <getopt.h>
19215 main ()
19217 #ifndef optreset
19218 (void) optreset;
19219 #endif
19222 return 0;
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_compile") 2>conftest.er1
19233 ac_status=$?
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } && {
19239 test -z "$ac_c_werror_flag" ||
19240 test ! -s conftest.err
19241 } && test -s conftest.$ac_objext; then
19242 ac_cv_have_decl_optreset=yes
19243 else
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_cv_have_decl_optreset=no
19250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19253 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19254 if test $ac_cv_have_decl_optreset = yes; then
19255 GETOPT_H=getopt.h
19260 if test -z "$GETOPT_H"; then
19261 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19262 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19263 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19265 else
19266 if test "$cross_compiling" = yes; then
19267 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19268 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19269 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 else
19272 cat >conftest.$ac_ext <<_ACEOF
19273 /* confdefs.h. */
19274 _ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h. */
19278 #include <getopt.h>
19281 main ()
19283 #ifndef getopt_clip
19284 (void) getopt_clip;
19285 #endif
19288 return 0;
19290 _ACEOF
19291 rm -f conftest.$ac_objext
19292 if { (ac_try="$ac_compile"
19293 case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_compile") 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } && {
19305 test -z "$ac_c_werror_flag" ||
19306 test ! -s conftest.err
19307 } && test -s conftest.$ac_objext; then
19308 ac_cv_have_decl_getopt_clip=yes
19309 else
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 ac_cv_have_decl_getopt_clip=no
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19319 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19320 if test $ac_cv_have_decl_getopt_clip = yes; then
19321 gl_cv_func_gnu_getopt=no
19322 else
19323 gl_cv_func_gnu_getopt=yes
19326 else
19327 cat >conftest.$ac_ext <<_ACEOF
19328 /* confdefs.h. */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19333 #include <getopt.h>
19335 main ()
19338 char *myargv[3];
19339 myargv[0] = "conftest";
19340 myargv[1] = "-+";
19341 myargv[2] = 0;
19342 return getopt (2, myargv, "+a") != '?';
19345 return 0;
19347 _ACEOF
19348 rm -f conftest$ac_exeext
19349 if { (ac_try="$ac_link"
19350 case "(($ac_try" in
19351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352 *) ac_try_echo=$ac_try;;
19353 esac
19354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19355 (eval "$ac_link") 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19359 { (case "(($ac_try" in
19360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361 *) ac_try_echo=$ac_try;;
19362 esac
19363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364 (eval "$ac_try") 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 gl_cv_func_gnu_getopt=yes
19369 else
19370 echo "$as_me: program exited with status $ac_status" >&5
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ( exit $ac_status )
19375 gl_cv_func_gnu_getopt=no
19377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19382 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19383 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19384 if test "$gl_cv_func_gnu_getopt" = "no"; then
19385 GETOPT_H=getopt.h
19391 if test -n "$GETOPT_H"; then
19394 GETOPT_H=getopt.h
19396 cat >>confdefs.h <<\_ACEOF
19397 #define __GETOPT_PREFIX rpl_
19398 _ACEOF
19403 GETOPTOBJS='getopt.o getopt1.o'
19410 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19411 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19412 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19414 else
19415 # Use it with a single arg.
19416 cat >conftest.$ac_ext <<_ACEOF
19417 /* confdefs.h. */
19418 _ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19422 $ac_includes_default
19424 main ()
19426 getpgrp (0);
19428 return 0;
19430 _ACEOF
19431 rm -f conftest.$ac_objext
19432 if { (ac_try="$ac_compile"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_compile") 2>conftest.er1
19439 ac_status=$?
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest.$ac_objext; then
19448 ac_cv_func_getpgrp_void=no
19449 else
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19453 ac_cv_func_getpgrp_void=yes
19456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19459 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19460 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19461 if test $ac_cv_func_getpgrp_void = yes; then
19463 cat >>confdefs.h <<\_ACEOF
19464 #define GETPGRP_VOID 1
19465 _ACEOF
19471 for ac_func in strftime
19473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19478 else
19479 cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h. */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19487 #define $ac_func innocuous_$ac_func
19489 /* System header to define __stub macros and hopefully few prototypes,
19490 which can conflict with char $ac_func (); below.
19491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19492 <limits.h> exists even on freestanding compilers. */
19494 #ifdef __STDC__
19495 # include <limits.h>
19496 #else
19497 # include <assert.h>
19498 #endif
19500 #undef $ac_func
19502 /* Override any GCC internal prototype to avoid an error.
19503 Use char because int might match the return type of a GCC
19504 builtin and then its argument prototype would still apply. */
19505 #ifdef __cplusplus
19506 extern "C"
19507 #endif
19508 char $ac_func ();
19509 /* The GNU C library defines this for functions which it implements
19510 to always fail with ENOSYS. Some functions are actually named
19511 something starting with __ and the normal name is an alias. */
19512 #if defined __stub_$ac_func || defined __stub___$ac_func
19513 choke me
19514 #endif
19517 main ()
19519 return $ac_func ();
19521 return 0;
19523 _ACEOF
19524 rm -f conftest.$ac_objext conftest$ac_exeext
19525 if { (ac_try="$ac_link"
19526 case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19529 esac
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_link") 2>conftest.er1
19532 ac_status=$?
19533 grep -v '^ *+' conftest.er1 >conftest.err
19534 rm -f conftest.er1
19535 cat conftest.err >&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } && {
19538 test -z "$ac_c_werror_flag" ||
19539 test ! -s conftest.err
19540 } && test -s conftest$ac_exeext &&
19541 $as_test_x conftest$ac_exeext; then
19542 eval "$as_ac_var=yes"
19543 else
19544 echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19547 eval "$as_ac_var=no"
19550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19551 conftest$ac_exeext conftest.$ac_ext
19553 ac_res=`eval echo '${'$as_ac_var'}'`
19554 { echo "$as_me:$LINENO: result: $ac_res" >&5
19555 echo "${ECHO_T}$ac_res" >&6; }
19556 if test `eval echo '${'$as_ac_var'}'` = yes; then
19557 cat >>confdefs.h <<_ACEOF
19558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19559 _ACEOF
19561 else
19562 # strftime is in -lintl on SCO UNIX.
19563 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19564 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19565 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 else
19568 ac_check_lib_save_LIBS=$LIBS
19569 LIBS="-lintl $LIBS"
19570 cat >conftest.$ac_ext <<_ACEOF
19571 /* confdefs.h. */
19572 _ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19577 /* Override any GCC internal prototype to avoid an error.
19578 Use char because int might match the return type of a GCC
19579 builtin and then its argument prototype would still apply. */
19580 #ifdef __cplusplus
19581 extern "C"
19582 #endif
19583 char strftime ();
19585 main ()
19587 return strftime ();
19589 return 0;
19591 _ACEOF
19592 rm -f conftest.$ac_objext conftest$ac_exeext
19593 if { (ac_try="$ac_link"
19594 case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_link") 2>conftest.er1
19600 ac_status=$?
19601 grep -v '^ *+' conftest.er1 >conftest.err
19602 rm -f conftest.er1
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } && {
19606 test -z "$ac_c_werror_flag" ||
19607 test ! -s conftest.err
19608 } && test -s conftest$ac_exeext &&
19609 $as_test_x conftest$ac_exeext; then
19610 ac_cv_lib_intl_strftime=yes
19611 else
19612 echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19615 ac_cv_lib_intl_strftime=no
19618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19619 conftest$ac_exeext conftest.$ac_ext
19620 LIBS=$ac_check_lib_save_LIBS
19622 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19623 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19624 if test $ac_cv_lib_intl_strftime = yes; then
19625 cat >>confdefs.h <<\_ACEOF
19626 #define HAVE_STRFTIME 1
19627 _ACEOF
19629 LIBS="-lintl $LIBS"
19633 done
19636 # UNIX98 PTYs.
19638 for ac_func in grantpt
19640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 else
19646 cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h. */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19654 #define $ac_func innocuous_$ac_func
19656 /* System header to define __stub macros and hopefully few prototypes,
19657 which can conflict with char $ac_func (); below.
19658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19659 <limits.h> exists even on freestanding compilers. */
19661 #ifdef __STDC__
19662 # include <limits.h>
19663 #else
19664 # include <assert.h>
19665 #endif
19667 #undef $ac_func
19669 /* Override any GCC internal prototype to avoid an error.
19670 Use char because int might match the return type of a GCC
19671 builtin and then its argument prototype would still apply. */
19672 #ifdef __cplusplus
19673 extern "C"
19674 #endif
19675 char $ac_func ();
19676 /* The GNU C library defines this for functions which it implements
19677 to always fail with ENOSYS. Some functions are actually named
19678 something starting with __ and the normal name is an alias. */
19679 #if defined __stub_$ac_func || defined __stub___$ac_func
19680 choke me
19681 #endif
19684 main ()
19686 return $ac_func ();
19688 return 0;
19690 _ACEOF
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (ac_try="$ac_link"
19693 case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19696 esac
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_link") 2>conftest.er1
19699 ac_status=$?
19700 grep -v '^ *+' conftest.er1 >conftest.err
19701 rm -f conftest.er1
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } && {
19705 test -z "$ac_c_werror_flag" ||
19706 test ! -s conftest.err
19707 } && test -s conftest$ac_exeext &&
19708 $as_test_x conftest$ac_exeext; then
19709 eval "$as_ac_var=yes"
19710 else
19711 echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19714 eval "$as_ac_var=no"
19717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19718 conftest$ac_exeext conftest.$ac_ext
19720 ac_res=`eval echo '${'$as_ac_var'}'`
19721 { echo "$as_me:$LINENO: result: $ac_res" >&5
19722 echo "${ECHO_T}$ac_res" >&6; }
19723 if test `eval echo '${'$as_ac_var'}'` = yes; then
19724 cat >>confdefs.h <<_ACEOF
19725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19726 _ACEOF
19729 done
19732 # PTY-related GNU extensions.
19734 for ac_func in getpt
19736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 else
19742 cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h. */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19750 #define $ac_func innocuous_$ac_func
19752 /* System header to define __stub macros and hopefully few prototypes,
19753 which can conflict with char $ac_func (); below.
19754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19755 <limits.h> exists even on freestanding compilers. */
19757 #ifdef __STDC__
19758 # include <limits.h>
19759 #else
19760 # include <assert.h>
19761 #endif
19763 #undef $ac_func
19765 /* Override any GCC internal prototype to avoid an error.
19766 Use char because int might match the return type of a GCC
19767 builtin and then its argument prototype would still apply. */
19768 #ifdef __cplusplus
19769 extern "C"
19770 #endif
19771 char $ac_func ();
19772 /* The GNU C library defines this for functions which it implements
19773 to always fail with ENOSYS. Some functions are actually named
19774 something starting with __ and the normal name is an alias. */
19775 #if defined __stub_$ac_func || defined __stub___$ac_func
19776 choke me
19777 #endif
19780 main ()
19782 return $ac_func ();
19784 return 0;
19786 _ACEOF
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (ac_try="$ac_link"
19789 case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19792 esac
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_link") 2>conftest.er1
19795 ac_status=$?
19796 grep -v '^ *+' conftest.er1 >conftest.err
19797 rm -f conftest.er1
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } && {
19801 test -z "$ac_c_werror_flag" ||
19802 test ! -s conftest.err
19803 } && test -s conftest$ac_exeext &&
19804 $as_test_x conftest$ac_exeext; then
19805 eval "$as_ac_var=yes"
19806 else
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 eval "$as_ac_var=no"
19813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19814 conftest$ac_exeext conftest.$ac_ext
19816 ac_res=`eval echo '${'$as_ac_var'}'`
19817 { echo "$as_me:$LINENO: result: $ac_res" >&5
19818 echo "${ECHO_T}$ac_res" >&6; }
19819 if test `eval echo '${'$as_ac_var'}'` = yes; then
19820 cat >>confdefs.h <<_ACEOF
19821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19822 _ACEOF
19825 done
19828 # Check this now, so that we will NOT find the above functions in ncurses.
19829 # That is because we have not set up to link ncurses in lib-src.
19830 # It's better to believe a function is not available
19831 # than to expect to find it in ncurses.
19833 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19834 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19835 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 else
19838 ac_check_lib_save_LIBS=$LIBS
19839 LIBS="-lncurses $LIBS"
19840 cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h. */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19847 /* Override any GCC internal prototype to avoid an error.
19848 Use char because int might match the return type of a GCC
19849 builtin and then its argument prototype would still apply. */
19850 #ifdef __cplusplus
19851 extern "C"
19852 #endif
19853 char tparm ();
19855 main ()
19857 return tparm ();
19859 return 0;
19861 _ACEOF
19862 rm -f conftest.$ac_objext conftest$ac_exeext
19863 if { (ac_try="$ac_link"
19864 case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19867 esac
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_link") 2>conftest.er1
19870 ac_status=$?
19871 grep -v '^ *+' conftest.er1 >conftest.err
19872 rm -f conftest.er1
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } && {
19876 test -z "$ac_c_werror_flag" ||
19877 test ! -s conftest.err
19878 } && test -s conftest$ac_exeext &&
19879 $as_test_x conftest$ac_exeext; then
19880 ac_cv_lib_ncurses_tparm=yes
19881 else
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 ac_cv_lib_ncurses_tparm=no
19888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19889 conftest$ac_exeext conftest.$ac_ext
19890 LIBS=$ac_check_lib_save_LIBS
19892 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19893 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19894 if test $ac_cv_lib_ncurses_tparm = yes; then
19895 cat >>confdefs.h <<_ACEOF
19896 #define HAVE_LIBNCURSES 1
19897 _ACEOF
19899 LIBS="-lncurses $LIBS"
19904 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19906 resolv=no
19907 cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h. */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19913 #include <netinet/in.h>
19914 #include <arpa/nameser.h>
19915 #include <resolv.h>
19917 main ()
19919 return res_init();
19921 return 0;
19923 _ACEOF
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (ac_try="$ac_link"
19926 case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19929 esac
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_link") 2>conftest.er1
19932 ac_status=$?
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } && {
19938 test -z "$ac_c_werror_flag" ||
19939 test ! -s conftest.err
19940 } && test -s conftest$ac_exeext &&
19941 $as_test_x conftest$ac_exeext; then
19942 have_res_init=yes
19943 else
19944 echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19947 have_res_init=no
19950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19951 conftest$ac_exeext conftest.$ac_ext
19952 if test "$have_res_init" = no; then
19953 OLIBS="$LIBS"
19954 LIBS="$LIBS -lresolv"
19955 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19956 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h. */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 #include <netinet/in.h>
19964 #include <arpa/nameser.h>
19965 #include <resolv.h>
19967 main ()
19969 return res_init();
19971 return 0;
19973 _ACEOF
19974 rm -f conftest.$ac_objext conftest$ac_exeext
19975 if { (ac_try="$ac_link"
19976 case "(($ac_try" in
19977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19978 *) ac_try_echo=$ac_try;;
19979 esac
19980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19981 (eval "$ac_link") 2>conftest.er1
19982 ac_status=$?
19983 grep -v '^ *+' conftest.er1 >conftest.err
19984 rm -f conftest.er1
19985 cat conftest.err >&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); } && {
19988 test -z "$ac_c_werror_flag" ||
19989 test ! -s conftest.err
19990 } && test -s conftest$ac_exeext &&
19991 $as_test_x conftest$ac_exeext; then
19992 have_res_init=yes
19993 else
19994 echo "$as_me: failed program was:" >&5
19995 sed 's/^/| /' conftest.$ac_ext >&5
19997 have_res_init=no
20000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20001 conftest$ac_exeext conftest.$ac_ext
20002 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20003 echo "${ECHO_T}$have_res_init" >&6; }
20004 if test "$have_res_init" = yes ; then
20005 resolv=yes
20007 LIBS="$OLIBS"
20010 if test "$have_res_init" = yes; then
20012 cat >>confdefs.h <<\_ACEOF
20013 #define HAVE_RES_INIT 1
20014 _ACEOF
20018 # Do we need the Hesiod library to provide the support routines?
20019 if test "$with_hesiod" = yes ; then
20020 # Don't set $LIBS here -- see comments above.
20021 { echo "$as_me:$LINENO: checking for res_send" >&5
20022 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20023 if test "${ac_cv_func_res_send+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h. */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20034 #define res_send innocuous_res_send
20036 /* System header to define __stub macros and hopefully few prototypes,
20037 which can conflict with char res_send (); below.
20038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20039 <limits.h> exists even on freestanding compilers. */
20041 #ifdef __STDC__
20042 # include <limits.h>
20043 #else
20044 # include <assert.h>
20045 #endif
20047 #undef res_send
20049 /* Override any GCC internal prototype to avoid an error.
20050 Use char because int might match the return type of a GCC
20051 builtin and then its argument prototype would still apply. */
20052 #ifdef __cplusplus
20053 extern "C"
20054 #endif
20055 char res_send ();
20056 /* The GNU C library defines this for functions which it implements
20057 to always fail with ENOSYS. Some functions are actually named
20058 something starting with __ and the normal name is an alias. */
20059 #if defined __stub_res_send || defined __stub___res_send
20060 choke me
20061 #endif
20064 main ()
20066 return res_send ();
20068 return 0;
20070 _ACEOF
20071 rm -f conftest.$ac_objext conftest$ac_exeext
20072 if { (ac_try="$ac_link"
20073 case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20076 esac
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_link") 2>conftest.er1
20079 ac_status=$?
20080 grep -v '^ *+' conftest.er1 >conftest.err
20081 rm -f conftest.er1
20082 cat conftest.err >&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } && {
20085 test -z "$ac_c_werror_flag" ||
20086 test ! -s conftest.err
20087 } && test -s conftest$ac_exeext &&
20088 $as_test_x conftest$ac_exeext; then
20089 ac_cv_func_res_send=yes
20090 else
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 ac_cv_func_res_send=no
20097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20098 conftest$ac_exeext conftest.$ac_ext
20100 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20101 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20102 if test $ac_cv_func_res_send = yes; then
20104 else
20105 { echo "$as_me:$LINENO: checking for __res_send" >&5
20106 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20107 if test "${ac_cv_func___res_send+set}" = set; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 else
20110 cat >conftest.$ac_ext <<_ACEOF
20111 /* confdefs.h. */
20112 _ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */
20116 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20118 #define __res_send innocuous___res_send
20120 /* System header to define __stub macros and hopefully few prototypes,
20121 which can conflict with char __res_send (); below.
20122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20123 <limits.h> exists even on freestanding compilers. */
20125 #ifdef __STDC__
20126 # include <limits.h>
20127 #else
20128 # include <assert.h>
20129 #endif
20131 #undef __res_send
20133 /* Override any GCC internal prototype to avoid an error.
20134 Use char because int might match the return type of a GCC
20135 builtin and then its argument prototype would still apply. */
20136 #ifdef __cplusplus
20137 extern "C"
20138 #endif
20139 char __res_send ();
20140 /* The GNU C library defines this for functions which it implements
20141 to always fail with ENOSYS. Some functions are actually named
20142 something starting with __ and the normal name is an alias. */
20143 #if defined __stub___res_send || defined __stub_____res_send
20144 choke me
20145 #endif
20148 main ()
20150 return __res_send ();
20152 return 0;
20154 _ACEOF
20155 rm -f conftest.$ac_objext conftest$ac_exeext
20156 if { (ac_try="$ac_link"
20157 case "(($ac_try" in
20158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20159 *) ac_try_echo=$ac_try;;
20160 esac
20161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20162 (eval "$ac_link") 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } && {
20169 test -z "$ac_c_werror_flag" ||
20170 test ! -s conftest.err
20171 } && test -s conftest$ac_exeext &&
20172 $as_test_x conftest$ac_exeext; then
20173 ac_cv_func___res_send=yes
20174 else
20175 echo "$as_me: failed program was:" >&5
20176 sed 's/^/| /' conftest.$ac_ext >&5
20178 ac_cv_func___res_send=no
20181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20182 conftest$ac_exeext conftest.$ac_ext
20184 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20185 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20186 if test $ac_cv_func___res_send = yes; then
20188 else
20189 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20190 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20191 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20193 else
20194 ac_check_lib_save_LIBS=$LIBS
20195 LIBS="-lresolv $LIBS"
20196 cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h. */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20203 /* Override any GCC internal prototype to avoid an error.
20204 Use char because int might match the return type of a GCC
20205 builtin and then its argument prototype would still apply. */
20206 #ifdef __cplusplus
20207 extern "C"
20208 #endif
20209 char res_send ();
20211 main ()
20213 return res_send ();
20215 return 0;
20217 _ACEOF
20218 rm -f conftest.$ac_objext conftest$ac_exeext
20219 if { (ac_try="$ac_link"
20220 case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223 esac
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_link") 2>conftest.er1
20226 ac_status=$?
20227 grep -v '^ *+' conftest.er1 >conftest.err
20228 rm -f conftest.er1
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } && {
20232 test -z "$ac_c_werror_flag" ||
20233 test ! -s conftest.err
20234 } && test -s conftest$ac_exeext &&
20235 $as_test_x conftest$ac_exeext; then
20236 ac_cv_lib_resolv_res_send=yes
20237 else
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 ac_cv_lib_resolv_res_send=no
20244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20245 conftest$ac_exeext conftest.$ac_ext
20246 LIBS=$ac_check_lib_save_LIBS
20248 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20249 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20250 if test $ac_cv_lib_resolv_res_send = yes; then
20251 resolv=yes
20252 else
20253 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20254 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20255 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20257 else
20258 ac_check_lib_save_LIBS=$LIBS
20259 LIBS="-lresolv $LIBS"
20260 cat >conftest.$ac_ext <<_ACEOF
20261 /* confdefs.h. */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20267 /* Override any GCC internal prototype to avoid an error.
20268 Use char because int might match the return type of a GCC
20269 builtin and then its argument prototype would still apply. */
20270 #ifdef __cplusplus
20271 extern "C"
20272 #endif
20273 char __res_send ();
20275 main ()
20277 return __res_send ();
20279 return 0;
20281 _ACEOF
20282 rm -f conftest.$ac_objext conftest$ac_exeext
20283 if { (ac_try="$ac_link"
20284 case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20287 esac
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_link") 2>conftest.er1
20290 ac_status=$?
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } && {
20296 test -z "$ac_c_werror_flag" ||
20297 test ! -s conftest.err
20298 } && test -s conftest$ac_exeext &&
20299 $as_test_x conftest$ac_exeext; then
20300 ac_cv_lib_resolv___res_send=yes
20301 else
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 ac_cv_lib_resolv___res_send=no
20308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20309 conftest$ac_exeext conftest.$ac_ext
20310 LIBS=$ac_check_lib_save_LIBS
20312 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20313 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20314 if test $ac_cv_lib_resolv___res_send = yes; then
20315 resolv=yes
20324 if test "$resolv" = yes ; then
20325 RESOLVLIB=-lresolv
20326 else
20327 RESOLVLIB=
20329 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20330 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20331 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 else
20334 cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h. */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20340 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20342 #define hes_getmailhost innocuous_hes_getmailhost
20344 /* System header to define __stub macros and hopefully few prototypes,
20345 which can conflict with char hes_getmailhost (); below.
20346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20347 <limits.h> exists even on freestanding compilers. */
20349 #ifdef __STDC__
20350 # include <limits.h>
20351 #else
20352 # include <assert.h>
20353 #endif
20355 #undef hes_getmailhost
20357 /* Override any GCC internal prototype to avoid an error.
20358 Use char because int might match the return type of a GCC
20359 builtin and then its argument prototype would still apply. */
20360 #ifdef __cplusplus
20361 extern "C"
20362 #endif
20363 char hes_getmailhost ();
20364 /* The GNU C library defines this for functions which it implements
20365 to always fail with ENOSYS. Some functions are actually named
20366 something starting with __ and the normal name is an alias. */
20367 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20368 choke me
20369 #endif
20372 main ()
20374 return hes_getmailhost ();
20376 return 0;
20378 _ACEOF
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (ac_try="$ac_link"
20381 case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20384 esac
20385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386 (eval "$ac_link") 2>conftest.er1
20387 ac_status=$?
20388 grep -v '^ *+' conftest.er1 >conftest.err
20389 rm -f conftest.er1
20390 cat conftest.err >&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } && {
20393 test -z "$ac_c_werror_flag" ||
20394 test ! -s conftest.err
20395 } && test -s conftest$ac_exeext &&
20396 $as_test_x conftest$ac_exeext; then
20397 ac_cv_func_hes_getmailhost=yes
20398 else
20399 echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20402 ac_cv_func_hes_getmailhost=no
20405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20406 conftest$ac_exeext conftest.$ac_ext
20408 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20409 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20410 if test $ac_cv_func_hes_getmailhost = yes; then
20412 else
20413 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20414 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20415 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 else
20418 ac_check_lib_save_LIBS=$LIBS
20419 LIBS="-lhesiod $RESOLVLIB $LIBS"
20420 cat >conftest.$ac_ext <<_ACEOF
20421 /* confdefs.h. */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20427 /* Override any GCC internal prototype to avoid an error.
20428 Use char because int might match the return type of a GCC
20429 builtin and then its argument prototype would still apply. */
20430 #ifdef __cplusplus
20431 extern "C"
20432 #endif
20433 char hes_getmailhost ();
20435 main ()
20437 return hes_getmailhost ();
20439 return 0;
20441 _ACEOF
20442 rm -f conftest.$ac_objext conftest$ac_exeext
20443 if { (ac_try="$ac_link"
20444 case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20447 esac
20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_link") 2>conftest.er1
20450 ac_status=$?
20451 grep -v '^ *+' conftest.er1 >conftest.err
20452 rm -f conftest.er1
20453 cat conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } && {
20456 test -z "$ac_c_werror_flag" ||
20457 test ! -s conftest.err
20458 } && test -s conftest$ac_exeext &&
20459 $as_test_x conftest$ac_exeext; then
20460 ac_cv_lib_hesiod_hes_getmailhost=yes
20461 else
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 ac_cv_lib_hesiod_hes_getmailhost=no
20468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20469 conftest$ac_exeext conftest.$ac_ext
20470 LIBS=$ac_check_lib_save_LIBS
20472 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20473 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20474 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20476 cat >>confdefs.h <<\_ACEOF
20477 #define HAVE_LIBHESIOD 1
20478 _ACEOF
20480 else
20488 # Do we need libresolv (due to res_init or Hesiod)?
20489 if test "$resolv" = yes ; then
20491 cat >>confdefs.h <<\_ACEOF
20492 #define HAVE_LIBRESOLV 1
20493 _ACEOF
20497 # These tell us which Kerberos-related libraries to use.
20498 if test "${with_kerberos+set}" = set; then
20500 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20501 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20502 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 else
20505 ac_check_lib_save_LIBS=$LIBS
20506 LIBS="-lcom_err $LIBS"
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h. */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20514 /* Override any GCC internal prototype to avoid an error.
20515 Use char because int might match the return type of a GCC
20516 builtin and then its argument prototype would still apply. */
20517 #ifdef __cplusplus
20518 extern "C"
20519 #endif
20520 char com_err ();
20522 main ()
20524 return com_err ();
20526 return 0;
20528 _ACEOF
20529 rm -f conftest.$ac_objext conftest$ac_exeext
20530 if { (ac_try="$ac_link"
20531 case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20534 esac
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_link") 2>conftest.er1
20537 ac_status=$?
20538 grep -v '^ *+' conftest.er1 >conftest.err
20539 rm -f conftest.er1
20540 cat conftest.err >&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } && {
20543 test -z "$ac_c_werror_flag" ||
20544 test ! -s conftest.err
20545 } && test -s conftest$ac_exeext &&
20546 $as_test_x conftest$ac_exeext; then
20547 ac_cv_lib_com_err_com_err=yes
20548 else
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_cv_lib_com_err_com_err=no
20555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20556 conftest$ac_exeext conftest.$ac_ext
20557 LIBS=$ac_check_lib_save_LIBS
20559 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20560 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20561 if test $ac_cv_lib_com_err_com_err = yes; then
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_LIBCOM_ERR 1
20564 _ACEOF
20566 LIBS="-lcom_err $LIBS"
20571 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20572 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20573 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576 ac_check_lib_save_LIBS=$LIBS
20577 LIBS="-lk5crypto $LIBS"
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20585 /* Override any GCC internal prototype to avoid an error.
20586 Use char because int might match the return type of a GCC
20587 builtin and then its argument prototype would still apply. */
20588 #ifdef __cplusplus
20589 extern "C"
20590 #endif
20591 char mit_des_cbc_encrypt ();
20593 main ()
20595 return mit_des_cbc_encrypt ();
20597 return 0;
20599 _ACEOF
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } && {
20614 test -z "$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 } && test -s conftest$ac_exeext &&
20617 $as_test_x conftest$ac_exeext; then
20618 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20619 else
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20627 conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20630 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20631 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20632 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20633 cat >>confdefs.h <<_ACEOF
20634 #define HAVE_LIBK5CRYPTO 1
20635 _ACEOF
20637 LIBS="-lk5crypto $LIBS"
20642 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20643 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20644 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 else
20647 ac_check_lib_save_LIBS=$LIBS
20648 LIBS="-lcrypto $LIBS"
20649 cat >conftest.$ac_ext <<_ACEOF
20650 /* confdefs.h. */
20651 _ACEOF
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20656 /* Override any GCC internal prototype to avoid an error.
20657 Use char because int might match the return type of a GCC
20658 builtin and then its argument prototype would still apply. */
20659 #ifdef __cplusplus
20660 extern "C"
20661 #endif
20662 char mit_des_cbc_encrypt ();
20664 main ()
20666 return mit_des_cbc_encrypt ();
20668 return 0;
20670 _ACEOF
20671 rm -f conftest.$ac_objext conftest$ac_exeext
20672 if { (ac_try="$ac_link"
20673 case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20676 esac
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_link") 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } && {
20685 test -z "$ac_c_werror_flag" ||
20686 test ! -s conftest.err
20687 } && test -s conftest$ac_exeext &&
20688 $as_test_x conftest$ac_exeext; then
20689 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20690 else
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20698 conftest$ac_exeext conftest.$ac_ext
20699 LIBS=$ac_check_lib_save_LIBS
20701 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20702 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20703 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20704 cat >>confdefs.h <<_ACEOF
20705 #define HAVE_LIBCRYPTO 1
20706 _ACEOF
20708 LIBS="-lcrypto $LIBS"
20713 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20714 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20715 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 else
20718 ac_check_lib_save_LIBS=$LIBS
20719 LIBS="-lkrb5 $LIBS"
20720 cat >conftest.$ac_ext <<_ACEOF
20721 /* confdefs.h. */
20722 _ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h. */
20727 /* Override any GCC internal prototype to avoid an error.
20728 Use char because int might match the return type of a GCC
20729 builtin and then its argument prototype would still apply. */
20730 #ifdef __cplusplus
20731 extern "C"
20732 #endif
20733 char krb5_init_context ();
20735 main ()
20737 return krb5_init_context ();
20739 return 0;
20741 _ACEOF
20742 rm -f conftest.$ac_objext conftest$ac_exeext
20743 if { (ac_try="$ac_link"
20744 case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20747 esac
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_link") 2>conftest.er1
20750 ac_status=$?
20751 grep -v '^ *+' conftest.er1 >conftest.err
20752 rm -f conftest.er1
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } && {
20756 test -z "$ac_c_werror_flag" ||
20757 test ! -s conftest.err
20758 } && test -s conftest$ac_exeext &&
20759 $as_test_x conftest$ac_exeext; then
20760 ac_cv_lib_krb5_krb5_init_context=yes
20761 else
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 ac_cv_lib_krb5_krb5_init_context=no
20768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20769 conftest$ac_exeext conftest.$ac_ext
20770 LIBS=$ac_check_lib_save_LIBS
20772 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20773 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20774 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20775 cat >>confdefs.h <<_ACEOF
20776 #define HAVE_LIBKRB5 1
20777 _ACEOF
20779 LIBS="-lkrb5 $LIBS"
20783 if test "${with_kerberos5+set}" != set; then
20785 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20786 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20787 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790 ac_check_lib_save_LIBS=$LIBS
20791 LIBS="-ldes425 $LIBS"
20792 cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h. */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20799 /* Override any GCC internal prototype to avoid an error.
20800 Use char because int might match the return type of a GCC
20801 builtin and then its argument prototype would still apply. */
20802 #ifdef __cplusplus
20803 extern "C"
20804 #endif
20805 char des_cbc_encrypt ();
20807 main ()
20809 return des_cbc_encrypt ();
20811 return 0;
20813 _ACEOF
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (ac_try="$ac_link"
20816 case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_link") 2>conftest.er1
20822 ac_status=$?
20823 grep -v '^ *+' conftest.er1 >conftest.err
20824 rm -f conftest.er1
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && {
20828 test -z "$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20830 } && test -s conftest$ac_exeext &&
20831 $as_test_x conftest$ac_exeext; then
20832 ac_cv_lib_des425_des_cbc_encrypt=yes
20833 else
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 ac_cv_lib_des425_des_cbc_encrypt=no
20840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20841 conftest$ac_exeext conftest.$ac_ext
20842 LIBS=$ac_check_lib_save_LIBS
20844 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20845 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20846 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20847 cat >>confdefs.h <<_ACEOF
20848 #define HAVE_LIBDES425 1
20849 _ACEOF
20851 LIBS="-ldes425 $LIBS"
20853 else
20855 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20856 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20857 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860 ac_check_lib_save_LIBS=$LIBS
20861 LIBS="-ldes $LIBS"
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20869 /* Override any GCC internal prototype to avoid an error.
20870 Use char because int might match the return type of a GCC
20871 builtin and then its argument prototype would still apply. */
20872 #ifdef __cplusplus
20873 extern "C"
20874 #endif
20875 char des_cbc_encrypt ();
20877 main ()
20879 return des_cbc_encrypt ();
20881 return 0;
20883 _ACEOF
20884 rm -f conftest.$ac_objext conftest$ac_exeext
20885 if { (ac_try="$ac_link"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_link") 2>conftest.er1
20892 ac_status=$?
20893 grep -v '^ *+' conftest.er1 >conftest.err
20894 rm -f conftest.er1
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest$ac_exeext &&
20901 $as_test_x conftest$ac_exeext; then
20902 ac_cv_lib_des_des_cbc_encrypt=yes
20903 else
20904 echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_cv_lib_des_des_cbc_encrypt=no
20910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20911 conftest$ac_exeext conftest.$ac_ext
20912 LIBS=$ac_check_lib_save_LIBS
20914 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20915 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20916 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20917 cat >>confdefs.h <<_ACEOF
20918 #define HAVE_LIBDES 1
20919 _ACEOF
20921 LIBS="-ldes $LIBS"
20928 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20929 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20930 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933 ac_check_lib_save_LIBS=$LIBS
20934 LIBS="-lkrb4 $LIBS"
20935 cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h. */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20942 /* Override any GCC internal prototype to avoid an error.
20943 Use char because int might match the return type of a GCC
20944 builtin and then its argument prototype would still apply. */
20945 #ifdef __cplusplus
20946 extern "C"
20947 #endif
20948 char krb_get_cred ();
20950 main ()
20952 return krb_get_cred ();
20954 return 0;
20956 _ACEOF
20957 rm -f conftest.$ac_objext conftest$ac_exeext
20958 if { (ac_try="$ac_link"
20959 case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20962 esac
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_link") 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest$ac_exeext &&
20974 $as_test_x conftest$ac_exeext; then
20975 ac_cv_lib_krb4_krb_get_cred=yes
20976 else
20977 echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20980 ac_cv_lib_krb4_krb_get_cred=no
20983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20984 conftest$ac_exeext conftest.$ac_ext
20985 LIBS=$ac_check_lib_save_LIBS
20987 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20988 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20989 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20990 cat >>confdefs.h <<_ACEOF
20991 #define HAVE_LIBKRB4 1
20992 _ACEOF
20994 LIBS="-lkrb4 $LIBS"
20996 else
20998 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20999 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21000 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21001 echo $ECHO_N "(cached) $ECHO_C" >&6
21002 else
21003 ac_check_lib_save_LIBS=$LIBS
21004 LIBS="-lkrb $LIBS"
21005 cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h. */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21012 /* Override any GCC internal prototype to avoid an error.
21013 Use char because int might match the return type of a GCC
21014 builtin and then its argument prototype would still apply. */
21015 #ifdef __cplusplus
21016 extern "C"
21017 #endif
21018 char krb_get_cred ();
21020 main ()
21022 return krb_get_cred ();
21024 return 0;
21026 _ACEOF
21027 rm -f conftest.$ac_objext conftest$ac_exeext
21028 if { (ac_try="$ac_link"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_link") 2>conftest.er1
21035 ac_status=$?
21036 grep -v '^ *+' conftest.er1 >conftest.err
21037 rm -f conftest.er1
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } && {
21041 test -z "$ac_c_werror_flag" ||
21042 test ! -s conftest.err
21043 } && test -s conftest$ac_exeext &&
21044 $as_test_x conftest$ac_exeext; then
21045 ac_cv_lib_krb_krb_get_cred=yes
21046 else
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_cv_lib_krb_krb_get_cred=no
21053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21054 conftest$ac_exeext conftest.$ac_ext
21055 LIBS=$ac_check_lib_save_LIBS
21057 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21058 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21059 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21060 cat >>confdefs.h <<_ACEOF
21061 #define HAVE_LIBKRB 1
21062 _ACEOF
21064 LIBS="-lkrb $LIBS"
21072 if test "${with_kerberos5+set}" = set; then
21074 for ac_header in krb5.h
21076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21083 ac_res=`eval echo '${'$as_ac_Header'}'`
21084 { echo "$as_me:$LINENO: result: $ac_res" >&5
21085 echo "${ECHO_T}$ac_res" >&6; }
21086 else
21087 # Is the header compilable?
21088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21090 cat >conftest.$ac_ext <<_ACEOF
21091 /* confdefs.h. */
21092 _ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h. */
21096 $ac_includes_default
21097 #include <$ac_header>
21098 _ACEOF
21099 rm -f conftest.$ac_objext
21100 if { (ac_try="$ac_compile"
21101 case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21104 esac
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_compile") 2>conftest.er1
21107 ac_status=$?
21108 grep -v '^ *+' conftest.er1 >conftest.err
21109 rm -f conftest.er1
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest.$ac_objext; then
21116 ac_header_compiler=yes
21117 else
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_header_compiler=no
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21126 echo "${ECHO_T}$ac_header_compiler" >&6; }
21128 # Is the header present?
21129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21131 cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h. */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 #include <$ac_header>
21138 _ACEOF
21139 if { (ac_try="$ac_cpp conftest.$ac_ext"
21140 case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21143 esac
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21146 ac_status=$?
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } >/dev/null && {
21152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21153 test ! -s conftest.err
21154 }; then
21155 ac_header_preproc=yes
21156 else
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21160 ac_header_preproc=no
21163 rm -f conftest.err conftest.$ac_ext
21164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21165 echo "${ECHO_T}$ac_header_preproc" >&6; }
21167 # So? What about this header?
21168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21169 yes:no: )
21170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21174 ac_header_preproc=yes
21176 no:yes:* )
21177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21191 esac
21192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 else
21197 eval "$as_ac_Header=\$ac_header_preproc"
21199 ac_res=`eval echo '${'$as_ac_Header'}'`
21200 { echo "$as_me:$LINENO: result: $ac_res" >&5
21201 echo "${ECHO_T}$ac_res" >&6; }
21204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21205 cat >>confdefs.h <<_ACEOF
21206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21207 _ACEOF
21211 done
21213 else
21215 for ac_header in des.h
21217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21224 ac_res=`eval echo '${'$as_ac_Header'}'`
21225 { echo "$as_me:$LINENO: result: $ac_res" >&5
21226 echo "${ECHO_T}$ac_res" >&6; }
21227 else
21228 # Is the header compilable?
21229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21231 cat >conftest.$ac_ext <<_ACEOF
21232 /* confdefs.h. */
21233 _ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21237 $ac_includes_default
21238 #include <$ac_header>
21239 _ACEOF
21240 rm -f conftest.$ac_objext
21241 if { (ac_try="$ac_compile"
21242 case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_compile") 2>conftest.er1
21248 ac_status=$?
21249 grep -v '^ *+' conftest.er1 >conftest.err
21250 rm -f conftest.er1
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } && {
21254 test -z "$ac_c_werror_flag" ||
21255 test ! -s conftest.err
21256 } && test -s conftest.$ac_objext; then
21257 ac_header_compiler=yes
21258 else
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 ac_header_compiler=no
21265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21267 echo "${ECHO_T}$ac_header_compiler" >&6; }
21269 # Is the header present?
21270 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21272 cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h. */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 #include <$ac_header>
21279 _ACEOF
21280 if { (ac_try="$ac_cpp conftest.$ac_ext"
21281 case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21284 esac
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21287 ac_status=$?
21288 grep -v '^ *+' conftest.er1 >conftest.err
21289 rm -f conftest.er1
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } >/dev/null && {
21293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21295 }; then
21296 ac_header_preproc=yes
21297 else
21298 echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21301 ac_header_preproc=no
21304 rm -f conftest.err conftest.$ac_ext
21305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21306 echo "${ECHO_T}$ac_header_preproc" >&6; }
21308 # So? What about this header?
21309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21310 yes:no: )
21311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21315 ac_header_preproc=yes
21317 no:yes:* )
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21332 esac
21333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21337 else
21338 eval "$as_ac_Header=\$ac_header_preproc"
21340 ac_res=`eval echo '${'$as_ac_Header'}'`
21341 { echo "$as_me:$LINENO: result: $ac_res" >&5
21342 echo "${ECHO_T}$ac_res" >&6; }
21345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21346 cat >>confdefs.h <<_ACEOF
21347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21348 _ACEOF
21350 else
21352 for ac_header in kerberosIV/des.h
21354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21361 ac_res=`eval echo '${'$as_ac_Header'}'`
21362 { echo "$as_me:$LINENO: result: $ac_res" >&5
21363 echo "${ECHO_T}$ac_res" >&6; }
21364 else
21365 # Is the header compilable?
21366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21368 cat >conftest.$ac_ext <<_ACEOF
21369 /* confdefs.h. */
21370 _ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h. */
21374 $ac_includes_default
21375 #include <$ac_header>
21376 _ACEOF
21377 rm -f conftest.$ac_objext
21378 if { (ac_try="$ac_compile"
21379 case "(($ac_try" in
21380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381 *) ac_try_echo=$ac_try;;
21382 esac
21383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21384 (eval "$ac_compile") 2>conftest.er1
21385 ac_status=$?
21386 grep -v '^ *+' conftest.er1 >conftest.err
21387 rm -f conftest.er1
21388 cat conftest.err >&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } && {
21391 test -z "$ac_c_werror_flag" ||
21392 test ! -s conftest.err
21393 } && test -s conftest.$ac_objext; then
21394 ac_header_compiler=yes
21395 else
21396 echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21399 ac_header_compiler=no
21402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21404 echo "${ECHO_T}$ac_header_compiler" >&6; }
21406 # Is the header present?
21407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21409 cat >conftest.$ac_ext <<_ACEOF
21410 /* confdefs.h. */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21415 #include <$ac_header>
21416 _ACEOF
21417 if { (ac_try="$ac_cpp conftest.$ac_ext"
21418 case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21421 esac
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21424 ac_status=$?
21425 grep -v '^ *+' conftest.er1 >conftest.err
21426 rm -f conftest.er1
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } >/dev/null && {
21430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21431 test ! -s conftest.err
21432 }; then
21433 ac_header_preproc=yes
21434 else
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21438 ac_header_preproc=no
21441 rm -f conftest.err conftest.$ac_ext
21442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21443 echo "${ECHO_T}$ac_header_preproc" >&6; }
21445 # So? What about this header?
21446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21447 yes:no: )
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21452 ac_header_preproc=yes
21454 no:yes:* )
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21469 esac
21470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21474 else
21475 eval "$as_ac_Header=\$ac_header_preproc"
21477 ac_res=`eval echo '${'$as_ac_Header'}'`
21478 { echo "$as_me:$LINENO: result: $ac_res" >&5
21479 echo "${ECHO_T}$ac_res" >&6; }
21482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21483 cat >>confdefs.h <<_ACEOF
21484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21485 _ACEOF
21487 else
21489 for ac_header in kerberos/des.h
21491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21496 echo $ECHO_N "(cached) $ECHO_C" >&6
21498 ac_res=`eval echo '${'$as_ac_Header'}'`
21499 { echo "$as_me:$LINENO: result: $ac_res" >&5
21500 echo "${ECHO_T}$ac_res" >&6; }
21501 else
21502 # Is the header compilable?
21503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h. */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 $ac_includes_default
21512 #include <$ac_header>
21513 _ACEOF
21514 rm -f conftest.$ac_objext
21515 if { (ac_try="$ac_compile"
21516 case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21519 esac
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_compile") 2>conftest.er1
21522 ac_status=$?
21523 grep -v '^ *+' conftest.er1 >conftest.err
21524 rm -f conftest.er1
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && {
21528 test -z "$ac_c_werror_flag" ||
21529 test ! -s conftest.err
21530 } && test -s conftest.$ac_objext; then
21531 ac_header_compiler=yes
21532 else
21533 echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21536 ac_header_compiler=no
21539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21541 echo "${ECHO_T}$ac_header_compiler" >&6; }
21543 # Is the header present?
21544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21546 cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h. */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 #include <$ac_header>
21553 _ACEOF
21554 if { (ac_try="$ac_cpp conftest.$ac_ext"
21555 case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21558 esac
21559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21561 ac_status=$?
21562 grep -v '^ *+' conftest.er1 >conftest.err
21563 rm -f conftest.er1
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } >/dev/null && {
21567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21568 test ! -s conftest.err
21569 }; then
21570 ac_header_preproc=yes
21571 else
21572 echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21575 ac_header_preproc=no
21578 rm -f conftest.err conftest.$ac_ext
21579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21580 echo "${ECHO_T}$ac_header_preproc" >&6; }
21582 # So? What about this header?
21583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21584 yes:no: )
21585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21589 ac_header_preproc=yes
21591 no:yes:* )
21592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21606 esac
21607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 else
21612 eval "$as_ac_Header=\$ac_header_preproc"
21614 ac_res=`eval echo '${'$as_ac_Header'}'`
21615 { echo "$as_me:$LINENO: result: $ac_res" >&5
21616 echo "${ECHO_T}$ac_res" >&6; }
21619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21620 cat >>confdefs.h <<_ACEOF
21621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21622 _ACEOF
21626 done
21630 done
21634 done
21637 for ac_header in krb.h
21639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21644 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 ac_res=`eval echo '${'$as_ac_Header'}'`
21647 { echo "$as_me:$LINENO: result: $ac_res" >&5
21648 echo "${ECHO_T}$ac_res" >&6; }
21649 else
21650 # Is the header compilable?
21651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21653 cat >conftest.$ac_ext <<_ACEOF
21654 /* confdefs.h. */
21655 _ACEOF
21656 cat confdefs.h >>conftest.$ac_ext
21657 cat >>conftest.$ac_ext <<_ACEOF
21658 /* end confdefs.h. */
21659 $ac_includes_default
21660 #include <$ac_header>
21661 _ACEOF
21662 rm -f conftest.$ac_objext
21663 if { (ac_try="$ac_compile"
21664 case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21667 esac
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_compile") 2>conftest.er1
21670 ac_status=$?
21671 grep -v '^ *+' conftest.er1 >conftest.err
21672 rm -f conftest.er1
21673 cat conftest.err >&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } && {
21676 test -z "$ac_c_werror_flag" ||
21677 test ! -s conftest.err
21678 } && test -s conftest.$ac_objext; then
21679 ac_header_compiler=yes
21680 else
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21684 ac_header_compiler=no
21687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21689 echo "${ECHO_T}$ac_header_compiler" >&6; }
21691 # Is the header present?
21692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21694 cat >conftest.$ac_ext <<_ACEOF
21695 /* confdefs.h. */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 #include <$ac_header>
21701 _ACEOF
21702 if { (ac_try="$ac_cpp conftest.$ac_ext"
21703 case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21706 esac
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21709 ac_status=$?
21710 grep -v '^ *+' conftest.er1 >conftest.err
21711 rm -f conftest.er1
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } >/dev/null && {
21715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21716 test ! -s conftest.err
21717 }; then
21718 ac_header_preproc=yes
21719 else
21720 echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 ac_header_preproc=no
21726 rm -f conftest.err conftest.$ac_ext
21727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21728 echo "${ECHO_T}$ac_header_preproc" >&6; }
21730 # So? What about this header?
21731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21732 yes:no: )
21733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21737 ac_header_preproc=yes
21739 no:yes:* )
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21754 esac
21755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21758 echo $ECHO_N "(cached) $ECHO_C" >&6
21759 else
21760 eval "$as_ac_Header=\$ac_header_preproc"
21762 ac_res=`eval echo '${'$as_ac_Header'}'`
21763 { echo "$as_me:$LINENO: result: $ac_res" >&5
21764 echo "${ECHO_T}$ac_res" >&6; }
21767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21768 cat >>confdefs.h <<_ACEOF
21769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21770 _ACEOF
21772 else
21774 for ac_header in kerberosIV/krb.h
21776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 ac_res=`eval echo '${'$as_ac_Header'}'`
21784 { echo "$as_me:$LINENO: result: $ac_res" >&5
21785 echo "${ECHO_T}$ac_res" >&6; }
21786 else
21787 # Is the header compilable?
21788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21790 cat >conftest.$ac_ext <<_ACEOF
21791 /* confdefs.h. */
21792 _ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21796 $ac_includes_default
21797 #include <$ac_header>
21798 _ACEOF
21799 rm -f conftest.$ac_objext
21800 if { (ac_try="$ac_compile"
21801 case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21804 esac
21805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_compile") 2>conftest.er1
21807 ac_status=$?
21808 grep -v '^ *+' conftest.er1 >conftest.err
21809 rm -f conftest.er1
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } && {
21813 test -z "$ac_c_werror_flag" ||
21814 test ! -s conftest.err
21815 } && test -s conftest.$ac_objext; then
21816 ac_header_compiler=yes
21817 else
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_header_compiler=no
21824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21826 echo "${ECHO_T}$ac_header_compiler" >&6; }
21828 # Is the header present?
21829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21831 cat >conftest.$ac_ext <<_ACEOF
21832 /* confdefs.h. */
21833 _ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21837 #include <$ac_header>
21838 _ACEOF
21839 if { (ac_try="$ac_cpp conftest.$ac_ext"
21840 case "(($ac_try" in
21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842 *) ac_try_echo=$ac_try;;
21843 esac
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21846 ac_status=$?
21847 grep -v '^ *+' conftest.er1 >conftest.err
21848 rm -f conftest.er1
21849 cat conftest.err >&5
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } >/dev/null && {
21852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21853 test ! -s conftest.err
21854 }; then
21855 ac_header_preproc=yes
21856 else
21857 echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 ac_header_preproc=no
21863 rm -f conftest.err conftest.$ac_ext
21864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21865 echo "${ECHO_T}$ac_header_preproc" >&6; }
21867 # So? What about this header?
21868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21869 yes:no: )
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21874 ac_header_preproc=yes
21876 no:yes:* )
21877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21891 esac
21892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21896 else
21897 eval "$as_ac_Header=\$ac_header_preproc"
21899 ac_res=`eval echo '${'$as_ac_Header'}'`
21900 { echo "$as_me:$LINENO: result: $ac_res" >&5
21901 echo "${ECHO_T}$ac_res" >&6; }
21904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21905 cat >>confdefs.h <<_ACEOF
21906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21907 _ACEOF
21909 else
21911 for ac_header in kerberos/krb.h
21913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21918 echo $ECHO_N "(cached) $ECHO_C" >&6
21920 ac_res=`eval echo '${'$as_ac_Header'}'`
21921 { echo "$as_me:$LINENO: result: $ac_res" >&5
21922 echo "${ECHO_T}$ac_res" >&6; }
21923 else
21924 # Is the header compilable?
21925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21927 cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h. */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21933 $ac_includes_default
21934 #include <$ac_header>
21935 _ACEOF
21936 rm -f conftest.$ac_objext
21937 if { (ac_try="$ac_compile"
21938 case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21941 esac
21942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21943 (eval "$ac_compile") 2>conftest.er1
21944 ac_status=$?
21945 grep -v '^ *+' conftest.er1 >conftest.err
21946 rm -f conftest.er1
21947 cat conftest.err >&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } && {
21950 test -z "$ac_c_werror_flag" ||
21951 test ! -s conftest.err
21952 } && test -s conftest.$ac_objext; then
21953 ac_header_compiler=yes
21954 else
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 ac_header_compiler=no
21961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21963 echo "${ECHO_T}$ac_header_compiler" >&6; }
21965 # Is the header present?
21966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21968 cat >conftest.$ac_ext <<_ACEOF
21969 /* confdefs.h. */
21970 _ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21974 #include <$ac_header>
21975 _ACEOF
21976 if { (ac_try="$ac_cpp conftest.$ac_ext"
21977 case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21980 esac
21981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21983 ac_status=$?
21984 grep -v '^ *+' conftest.er1 >conftest.err
21985 rm -f conftest.er1
21986 cat conftest.err >&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } >/dev/null && {
21989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21990 test ! -s conftest.err
21991 }; then
21992 ac_header_preproc=yes
21993 else
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21997 ac_header_preproc=no
22000 rm -f conftest.err conftest.$ac_ext
22001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22002 echo "${ECHO_T}$ac_header_preproc" >&6; }
22004 # So? What about this header?
22005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22006 yes:no: )
22007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22011 ac_header_preproc=yes
22013 no:yes:* )
22014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22019 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22021 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22025 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22028 esac
22029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034 eval "$as_ac_Header=\$ac_header_preproc"
22036 ac_res=`eval echo '${'$as_ac_Header'}'`
22037 { echo "$as_me:$LINENO: result: $ac_res" >&5
22038 echo "${ECHO_T}$ac_res" >&6; }
22041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22042 cat >>confdefs.h <<_ACEOF
22043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22044 _ACEOF
22048 done
22052 done
22056 done
22060 for ac_header in com_err.h
22062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22067 echo $ECHO_N "(cached) $ECHO_C" >&6
22069 ac_res=`eval echo '${'$as_ac_Header'}'`
22070 { echo "$as_me:$LINENO: result: $ac_res" >&5
22071 echo "${ECHO_T}$ac_res" >&6; }
22072 else
22073 # Is the header compilable?
22074 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22076 cat >conftest.$ac_ext <<_ACEOF
22077 /* confdefs.h. */
22078 _ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h. */
22082 $ac_includes_default
22083 #include <$ac_header>
22084 _ACEOF
22085 rm -f conftest.$ac_objext
22086 if { (ac_try="$ac_compile"
22087 case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22090 esac
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_compile") 2>conftest.er1
22093 ac_status=$?
22094 grep -v '^ *+' conftest.er1 >conftest.err
22095 rm -f conftest.er1
22096 cat conftest.err >&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); } && {
22099 test -z "$ac_c_werror_flag" ||
22100 test ! -s conftest.err
22101 } && test -s conftest.$ac_objext; then
22102 ac_header_compiler=yes
22103 else
22104 echo "$as_me: failed program was:" >&5
22105 sed 's/^/| /' conftest.$ac_ext >&5
22107 ac_header_compiler=no
22110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22112 echo "${ECHO_T}$ac_header_compiler" >&6; }
22114 # Is the header present?
22115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22117 cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h. */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 #include <$ac_header>
22124 _ACEOF
22125 if { (ac_try="$ac_cpp conftest.$ac_ext"
22126 case "(($ac_try" in
22127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128 *) ac_try_echo=$ac_try;;
22129 esac
22130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22132 ac_status=$?
22133 grep -v '^ *+' conftest.er1 >conftest.err
22134 rm -f conftest.er1
22135 cat conftest.err >&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); } >/dev/null && {
22138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22139 test ! -s conftest.err
22140 }; then
22141 ac_header_preproc=yes
22142 else
22143 echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22146 ac_header_preproc=no
22149 rm -f conftest.err conftest.$ac_ext
22150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22151 echo "${ECHO_T}$ac_header_preproc" >&6; }
22153 # So? What about this header?
22154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22155 yes:no: )
22156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22160 ac_header_preproc=yes
22162 no:yes:* )
22163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22177 esac
22178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22181 echo $ECHO_N "(cached) $ECHO_C" >&6
22182 else
22183 eval "$as_ac_Header=\$ac_header_preproc"
22185 ac_res=`eval echo '${'$as_ac_Header'}'`
22186 { echo "$as_me:$LINENO: result: $ac_res" >&5
22187 echo "${ECHO_T}$ac_res" >&6; }
22190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22191 cat >>confdefs.h <<_ACEOF
22192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22193 _ACEOF
22197 done
22201 # Solaris requires -lintl if you want strerror (which calls dgettext)
22202 # to return localized messages.
22204 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22205 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22206 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22207 echo $ECHO_N "(cached) $ECHO_C" >&6
22208 else
22209 ac_check_lib_save_LIBS=$LIBS
22210 LIBS="-lintl $LIBS"
22211 cat >conftest.$ac_ext <<_ACEOF
22212 /* confdefs.h. */
22213 _ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22218 /* Override any GCC internal prototype to avoid an error.
22219 Use char because int might match the return type of a GCC
22220 builtin and then its argument prototype would still apply. */
22221 #ifdef __cplusplus
22222 extern "C"
22223 #endif
22224 char dgettext ();
22226 main ()
22228 return dgettext ();
22230 return 0;
22232 _ACEOF
22233 rm -f conftest.$ac_objext conftest$ac_exeext
22234 if { (ac_try="$ac_link"
22235 case "(($ac_try" in
22236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237 *) ac_try_echo=$ac_try;;
22238 esac
22239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22240 (eval "$ac_link") 2>conftest.er1
22241 ac_status=$?
22242 grep -v '^ *+' conftest.er1 >conftest.err
22243 rm -f conftest.er1
22244 cat conftest.err >&5
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); } && {
22247 test -z "$ac_c_werror_flag" ||
22248 test ! -s conftest.err
22249 } && test -s conftest$ac_exeext &&
22250 $as_test_x conftest$ac_exeext; then
22251 ac_cv_lib_intl_dgettext=yes
22252 else
22253 echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22256 ac_cv_lib_intl_dgettext=no
22259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22260 conftest$ac_exeext conftest.$ac_ext
22261 LIBS=$ac_check_lib_save_LIBS
22263 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22264 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22265 if test $ac_cv_lib_intl_dgettext = yes; then
22266 cat >>confdefs.h <<_ACEOF
22267 #define HAVE_LIBINTL 1
22268 _ACEOF
22270 LIBS="-lintl $LIBS"
22275 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22276 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22277 if test "${emacs_cv_localtime_cache+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22279 else
22280 if test x$ac_cv_func_tzset = xyes; then
22281 if test "$cross_compiling" = yes; then
22282 # If we have tzset, assume the worst when cross-compiling.
22283 emacs_cv_localtime_cache=yes
22284 else
22285 cat >conftest.$ac_ext <<_ACEOF
22286 /* confdefs.h. */
22287 _ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h. */
22291 #include <time.h>
22292 extern char **environ;
22293 unset_TZ ()
22295 char **from, **to;
22296 for (to = from = environ; (*to = *from); from++)
22297 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22298 to++;
22300 char TZ_GMT0[] = "TZ=GMT0";
22301 char TZ_PST8[] = "TZ=PST8";
22302 main()
22304 time_t now = time ((time_t *) 0);
22305 int hour_GMT0, hour_unset;
22306 if (putenv (TZ_GMT0) != 0)
22307 exit (1);
22308 hour_GMT0 = localtime (&now)->tm_hour;
22309 unset_TZ ();
22310 hour_unset = localtime (&now)->tm_hour;
22311 if (putenv (TZ_PST8) != 0)
22312 exit (1);
22313 if (localtime (&now)->tm_hour == hour_GMT0)
22314 exit (1);
22315 unset_TZ ();
22316 if (localtime (&now)->tm_hour != hour_unset)
22317 exit (1);
22318 exit (0);
22320 _ACEOF
22321 rm -f conftest$ac_exeext
22322 if { (ac_try="$ac_link"
22323 case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22326 esac
22327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_link") 2>&5
22329 ac_status=$?
22330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22332 { (case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22335 esac
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_try") 2>&5
22338 ac_status=$?
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); }; }; then
22341 emacs_cv_localtime_cache=no
22342 else
22343 echo "$as_me: program exited with status $ac_status" >&5
22344 echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22347 ( exit $ac_status )
22348 emacs_cv_localtime_cache=yes
22350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22354 else
22355 # If we lack tzset, report that localtime does not cache TZ,
22356 # since we can't invalidate the cache if we don't have tzset.
22357 emacs_cv_localtime_cache=no
22360 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22361 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22362 if test $emacs_cv_localtime_cache = yes; then
22364 cat >>confdefs.h <<\_ACEOF
22365 #define LOCALTIME_CACHE 1
22366 _ACEOF
22370 if test "x$HAVE_TIMEVAL" = xyes; then
22372 for ac_func in gettimeofday
22374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22378 echo $ECHO_N "(cached) $ECHO_C" >&6
22379 else
22380 cat >conftest.$ac_ext <<_ACEOF
22381 /* confdefs.h. */
22382 _ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22388 #define $ac_func innocuous_$ac_func
22390 /* System header to define __stub macros and hopefully few prototypes,
22391 which can conflict with char $ac_func (); below.
22392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22393 <limits.h> exists even on freestanding compilers. */
22395 #ifdef __STDC__
22396 # include <limits.h>
22397 #else
22398 # include <assert.h>
22399 #endif
22401 #undef $ac_func
22403 /* Override any GCC internal prototype to avoid an error.
22404 Use char because int might match the return type of a GCC
22405 builtin and then its argument prototype would still apply. */
22406 #ifdef __cplusplus
22407 extern "C"
22408 #endif
22409 char $ac_func ();
22410 /* The GNU C library defines this for functions which it implements
22411 to always fail with ENOSYS. Some functions are actually named
22412 something starting with __ and the normal name is an alias. */
22413 #if defined __stub_$ac_func || defined __stub___$ac_func
22414 choke me
22415 #endif
22418 main ()
22420 return $ac_func ();
22422 return 0;
22424 _ACEOF
22425 rm -f conftest.$ac_objext conftest$ac_exeext
22426 if { (ac_try="$ac_link"
22427 case "(($ac_try" in
22428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429 *) ac_try_echo=$ac_try;;
22430 esac
22431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432 (eval "$ac_link") 2>conftest.er1
22433 ac_status=$?
22434 grep -v '^ *+' conftest.er1 >conftest.err
22435 rm -f conftest.er1
22436 cat conftest.err >&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } && {
22439 test -z "$ac_c_werror_flag" ||
22440 test ! -s conftest.err
22441 } && test -s conftest$ac_exeext &&
22442 $as_test_x conftest$ac_exeext; then
22443 eval "$as_ac_var=yes"
22444 else
22445 echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22448 eval "$as_ac_var=no"
22451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22452 conftest$ac_exeext conftest.$ac_ext
22454 ac_res=`eval echo '${'$as_ac_var'}'`
22455 { echo "$as_me:$LINENO: result: $ac_res" >&5
22456 echo "${ECHO_T}$ac_res" >&6; }
22457 if test `eval echo '${'$as_ac_var'}'` = yes; then
22458 cat >>confdefs.h <<_ACEOF
22459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22460 _ACEOF
22463 done
22465 if test $ac_cv_func_gettimeofday = yes; then
22466 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22467 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22468 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22470 else
22471 cat >conftest.$ac_ext <<_ACEOF
22472 /* confdefs.h. */
22473 _ACEOF
22474 cat confdefs.h >>conftest.$ac_ext
22475 cat >>conftest.$ac_ext <<_ACEOF
22476 /* end confdefs.h. */
22478 #ifdef TIME_WITH_SYS_TIME
22479 #include <sys/time.h>
22480 #include <time.h>
22481 #else
22482 #ifdef HAVE_SYS_TIME_H
22483 #include <sys/time.h>
22484 #else
22485 #include <time.h>
22486 #endif
22487 #endif
22489 main ()
22491 struct timeval time;
22492 gettimeofday (&time, 0);
22494 return 0;
22496 _ACEOF
22497 rm -f conftest.$ac_objext
22498 if { (ac_try="$ac_compile"
22499 case "(($ac_try" in
22500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501 *) ac_try_echo=$ac_try;;
22502 esac
22503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504 (eval "$ac_compile") 2>conftest.er1
22505 ac_status=$?
22506 grep -v '^ *+' conftest.er1 >conftest.err
22507 rm -f conftest.er1
22508 cat conftest.err >&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } && {
22511 test -z "$ac_c_werror_flag" ||
22512 test ! -s conftest.err
22513 } && test -s conftest.$ac_objext; then
22514 emacs_cv_gettimeofday_two_arguments=yes
22515 else
22516 echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22519 emacs_cv_gettimeofday_two_arguments=no
22522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22525 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22526 if test $emacs_cv_gettimeofday_two_arguments = no; then
22528 cat >>confdefs.h <<\_ACEOF
22529 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22530 _ACEOF
22536 ok_so_far=yes
22537 { echo "$as_me:$LINENO: checking for socket" >&5
22538 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22539 if test "${ac_cv_func_socket+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22541 else
22542 cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h. */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22550 #define socket innocuous_socket
22552 /* System header to define __stub macros and hopefully few prototypes,
22553 which can conflict with char socket (); below.
22554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22555 <limits.h> exists even on freestanding compilers. */
22557 #ifdef __STDC__
22558 # include <limits.h>
22559 #else
22560 # include <assert.h>
22561 #endif
22563 #undef socket
22565 /* Override any GCC internal prototype to avoid an error.
22566 Use char because int might match the return type of a GCC
22567 builtin and then its argument prototype would still apply. */
22568 #ifdef __cplusplus
22569 extern "C"
22570 #endif
22571 char socket ();
22572 /* The GNU C library defines this for functions which it implements
22573 to always fail with ENOSYS. Some functions are actually named
22574 something starting with __ and the normal name is an alias. */
22575 #if defined __stub_socket || defined __stub___socket
22576 choke me
22577 #endif
22580 main ()
22582 return socket ();
22584 return 0;
22586 _ACEOF
22587 rm -f conftest.$ac_objext conftest$ac_exeext
22588 if { (ac_try="$ac_link"
22589 case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22592 esac
22593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22594 (eval "$ac_link") 2>conftest.er1
22595 ac_status=$?
22596 grep -v '^ *+' conftest.er1 >conftest.err
22597 rm -f conftest.er1
22598 cat conftest.err >&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); } && {
22601 test -z "$ac_c_werror_flag" ||
22602 test ! -s conftest.err
22603 } && test -s conftest$ac_exeext &&
22604 $as_test_x conftest$ac_exeext; then
22605 ac_cv_func_socket=yes
22606 else
22607 echo "$as_me: failed program was:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22610 ac_cv_func_socket=no
22613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22614 conftest$ac_exeext conftest.$ac_ext
22616 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22617 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22618 if test $ac_cv_func_socket = yes; then
22620 else
22621 ok_so_far=no
22624 if test $ok_so_far = yes; then
22625 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22626 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22627 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22628 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22629 echo $ECHO_N "(cached) $ECHO_C" >&6
22631 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22632 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22633 else
22634 # Is the header compilable?
22635 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22636 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22637 cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h. */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643 $ac_includes_default
22644 #include <netinet/in.h>
22645 _ACEOF
22646 rm -f conftest.$ac_objext
22647 if { (ac_try="$ac_compile"
22648 case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22651 esac
22652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653 (eval "$ac_compile") 2>conftest.er1
22654 ac_status=$?
22655 grep -v '^ *+' conftest.er1 >conftest.err
22656 rm -f conftest.er1
22657 cat conftest.err >&5
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); } && {
22660 test -z "$ac_c_werror_flag" ||
22661 test ! -s conftest.err
22662 } && test -s conftest.$ac_objext; then
22663 ac_header_compiler=yes
22664 else
22665 echo "$as_me: failed program was:" >&5
22666 sed 's/^/| /' conftest.$ac_ext >&5
22668 ac_header_compiler=no
22671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22673 echo "${ECHO_T}$ac_header_compiler" >&6; }
22675 # Is the header present?
22676 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22677 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22678 cat >conftest.$ac_ext <<_ACEOF
22679 /* confdefs.h. */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 #include <netinet/in.h>
22685 _ACEOF
22686 if { (ac_try="$ac_cpp conftest.$ac_ext"
22687 case "(($ac_try" in
22688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22689 *) ac_try_echo=$ac_try;;
22690 esac
22691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22693 ac_status=$?
22694 grep -v '^ *+' conftest.er1 >conftest.err
22695 rm -f conftest.er1
22696 cat conftest.err >&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); } >/dev/null && {
22699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22700 test ! -s conftest.err
22701 }; then
22702 ac_header_preproc=yes
22703 else
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22707 ac_header_preproc=no
22710 rm -f conftest.err conftest.$ac_ext
22711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22712 echo "${ECHO_T}$ac_header_preproc" >&6; }
22714 # So? What about this header?
22715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22716 yes:no: )
22717 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22718 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22719 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22720 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22721 ac_header_preproc=yes
22723 no:yes:* )
22724 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22725 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22726 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22727 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22728 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22729 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22730 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22731 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22732 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22733 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22734 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22735 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22738 esac
22739 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22740 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22741 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22743 else
22744 ac_cv_header_netinet_in_h=$ac_header_preproc
22746 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22747 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22750 if test $ac_cv_header_netinet_in_h = yes; then
22752 else
22753 ok_so_far=no
22758 if test $ok_so_far = yes; then
22759 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22760 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22761 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22762 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22763 echo $ECHO_N "(cached) $ECHO_C" >&6
22765 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22766 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22767 else
22768 # Is the header compilable?
22769 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22770 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22771 cat >conftest.$ac_ext <<_ACEOF
22772 /* confdefs.h. */
22773 _ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22777 $ac_includes_default
22778 #include <arpa/inet.h>
22779 _ACEOF
22780 rm -f conftest.$ac_objext
22781 if { (ac_try="$ac_compile"
22782 case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22785 esac
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_compile") 2>conftest.er1
22788 ac_status=$?
22789 grep -v '^ *+' conftest.er1 >conftest.err
22790 rm -f conftest.er1
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } && {
22794 test -z "$ac_c_werror_flag" ||
22795 test ! -s conftest.err
22796 } && test -s conftest.$ac_objext; then
22797 ac_header_compiler=yes
22798 else
22799 echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22802 ac_header_compiler=no
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22807 echo "${ECHO_T}$ac_header_compiler" >&6; }
22809 # Is the header present?
22810 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22811 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22812 cat >conftest.$ac_ext <<_ACEOF
22813 /* confdefs.h. */
22814 _ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22818 #include <arpa/inet.h>
22819 _ACEOF
22820 if { (ac_try="$ac_cpp conftest.$ac_ext"
22821 case "(($ac_try" in
22822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22824 esac
22825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22827 ac_status=$?
22828 grep -v '^ *+' conftest.er1 >conftest.err
22829 rm -f conftest.er1
22830 cat conftest.err >&5
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } >/dev/null && {
22833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22835 }; then
22836 ac_header_preproc=yes
22837 else
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 ac_header_preproc=no
22844 rm -f conftest.err conftest.$ac_ext
22845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22846 echo "${ECHO_T}$ac_header_preproc" >&6; }
22848 # So? What about this header?
22849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22850 yes:no: )
22851 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22852 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22853 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22854 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22855 ac_header_preproc=yes
22857 no:yes:* )
22858 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22859 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22860 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22861 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22862 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22863 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22864 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22865 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22866 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22867 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22868 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22869 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22872 esac
22873 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22874 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22875 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22876 echo $ECHO_N "(cached) $ECHO_C" >&6
22877 else
22878 ac_cv_header_arpa_inet_h=$ac_header_preproc
22880 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22881 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22884 if test $ac_cv_header_arpa_inet_h = yes; then
22886 else
22887 ok_so_far=no
22892 if test $ok_so_far = yes; then
22894 cat >>confdefs.h <<\_ACEOF
22895 #define HAVE_INET_SOCKETS 1
22896 _ACEOF
22901 for ac_header in sys/ioctl.h
22903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22910 ac_res=`eval echo '${'$as_ac_Header'}'`
22911 { echo "$as_me:$LINENO: result: $ac_res" >&5
22912 echo "${ECHO_T}$ac_res" >&6; }
22913 else
22914 # Is the header compilable?
22915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22917 cat >conftest.$ac_ext <<_ACEOF
22918 /* confdefs.h. */
22919 _ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h. */
22923 $ac_includes_default
22924 #include <$ac_header>
22925 _ACEOF
22926 rm -f conftest.$ac_objext
22927 if { (ac_try="$ac_compile"
22928 case "(($ac_try" in
22929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930 *) ac_try_echo=$ac_try;;
22931 esac
22932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22933 (eval "$ac_compile") 2>conftest.er1
22934 ac_status=$?
22935 grep -v '^ *+' conftest.er1 >conftest.err
22936 rm -f conftest.er1
22937 cat conftest.err >&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } && {
22940 test -z "$ac_c_werror_flag" ||
22941 test ! -s conftest.err
22942 } && test -s conftest.$ac_objext; then
22943 ac_header_compiler=yes
22944 else
22945 echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22948 ac_header_compiler=no
22951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22953 echo "${ECHO_T}$ac_header_compiler" >&6; }
22955 # Is the header present?
22956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22958 cat >conftest.$ac_ext <<_ACEOF
22959 /* confdefs.h. */
22960 _ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h. */
22964 #include <$ac_header>
22965 _ACEOF
22966 if { (ac_try="$ac_cpp conftest.$ac_ext"
22967 case "(($ac_try" in
22968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969 *) ac_try_echo=$ac_try;;
22970 esac
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22973 ac_status=$?
22974 grep -v '^ *+' conftest.er1 >conftest.err
22975 rm -f conftest.er1
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } >/dev/null && {
22979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22980 test ! -s conftest.err
22981 }; then
22982 ac_header_preproc=yes
22983 else
22984 echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22987 ac_header_preproc=no
22990 rm -f conftest.err conftest.$ac_ext
22991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22992 echo "${ECHO_T}$ac_header_preproc" >&6; }
22994 # So? What about this header?
22995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22996 yes:no: )
22997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23001 ac_header_preproc=yes
23003 no:yes:* )
23004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23018 esac
23019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23022 echo $ECHO_N "(cached) $ECHO_C" >&6
23023 else
23024 eval "$as_ac_Header=\$ac_header_preproc"
23026 ac_res=`eval echo '${'$as_ac_Header'}'`
23027 { echo "$as_me:$LINENO: result: $ac_res" >&5
23028 echo "${ECHO_T}$ac_res" >&6; }
23031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23032 cat >>confdefs.h <<_ACEOF
23033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23034 _ACEOF
23038 done
23041 if test -f /usr/lpp/X11/bin/smt.exp; then
23043 cat >>confdefs.h <<\_ACEOF
23044 #define HAVE_AIX_SMT_EXP 1
23045 _ACEOF
23049 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23050 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23051 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23052 { echo "$as_me:$LINENO: result: yes" >&5
23053 echo "${ECHO_T}yes" >&6; }
23055 cat >>confdefs.h <<\_ACEOF
23056 #define HAVE_DEV_PTMX 1
23057 _ACEOF
23059 else
23060 { echo "$as_me:$LINENO: result: no" >&5
23061 echo "${ECHO_T}no" >&6; }
23064 { echo "$as_me:$LINENO: checking for pid_t" >&5
23065 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23066 if test "${ac_cv_type_pid_t+set}" = set; then
23067 echo $ECHO_N "(cached) $ECHO_C" >&6
23068 else
23069 cat >conftest.$ac_ext <<_ACEOF
23070 /* confdefs.h. */
23071 _ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h. */
23075 $ac_includes_default
23076 typedef pid_t ac__type_new_;
23078 main ()
23080 if ((ac__type_new_ *) 0)
23081 return 0;
23082 if (sizeof (ac__type_new_))
23083 return 0;
23085 return 0;
23087 _ACEOF
23088 rm -f conftest.$ac_objext
23089 if { (ac_try="$ac_compile"
23090 case "(($ac_try" in
23091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23093 esac
23094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095 (eval "$ac_compile") 2>conftest.er1
23096 ac_status=$?
23097 grep -v '^ *+' conftest.er1 >conftest.err
23098 rm -f conftest.er1
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } && {
23102 test -z "$ac_c_werror_flag" ||
23103 test ! -s conftest.err
23104 } && test -s conftest.$ac_objext; then
23105 ac_cv_type_pid_t=yes
23106 else
23107 echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23110 ac_cv_type_pid_t=no
23113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23115 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23116 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23117 if test $ac_cv_type_pid_t = yes; then
23119 else
23121 cat >>confdefs.h <<_ACEOF
23122 #define pid_t int
23123 _ACEOF
23128 for ac_header in vfork.h
23130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23135 echo $ECHO_N "(cached) $ECHO_C" >&6
23137 ac_res=`eval echo '${'$as_ac_Header'}'`
23138 { echo "$as_me:$LINENO: result: $ac_res" >&5
23139 echo "${ECHO_T}$ac_res" >&6; }
23140 else
23141 # Is the header compilable?
23142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23144 cat >conftest.$ac_ext <<_ACEOF
23145 /* confdefs.h. */
23146 _ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h. */
23150 $ac_includes_default
23151 #include <$ac_header>
23152 _ACEOF
23153 rm -f conftest.$ac_objext
23154 if { (ac_try="$ac_compile"
23155 case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23158 esac
23159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160 (eval "$ac_compile") 2>conftest.er1
23161 ac_status=$?
23162 grep -v '^ *+' conftest.er1 >conftest.err
23163 rm -f conftest.er1
23164 cat conftest.err >&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } && {
23167 test -z "$ac_c_werror_flag" ||
23168 test ! -s conftest.err
23169 } && test -s conftest.$ac_objext; then
23170 ac_header_compiler=yes
23171 else
23172 echo "$as_me: failed program was:" >&5
23173 sed 's/^/| /' conftest.$ac_ext >&5
23175 ac_header_compiler=no
23178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23180 echo "${ECHO_T}$ac_header_compiler" >&6; }
23182 # Is the header present?
23183 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23185 cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h. */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 #include <$ac_header>
23192 _ACEOF
23193 if { (ac_try="$ac_cpp conftest.$ac_ext"
23194 case "(($ac_try" in
23195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196 *) ac_try_echo=$ac_try;;
23197 esac
23198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23200 ac_status=$?
23201 grep -v '^ *+' conftest.er1 >conftest.err
23202 rm -f conftest.er1
23203 cat conftest.err >&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } >/dev/null && {
23206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23207 test ! -s conftest.err
23208 }; then
23209 ac_header_preproc=yes
23210 else
23211 echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23214 ac_header_preproc=no
23217 rm -f conftest.err conftest.$ac_ext
23218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23219 echo "${ECHO_T}$ac_header_preproc" >&6; }
23221 # So? What about this header?
23222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23223 yes:no: )
23224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23228 ac_header_preproc=yes
23230 no:yes:* )
23231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23245 esac
23246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23249 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 else
23251 eval "$as_ac_Header=\$ac_header_preproc"
23253 ac_res=`eval echo '${'$as_ac_Header'}'`
23254 { echo "$as_me:$LINENO: result: $ac_res" >&5
23255 echo "${ECHO_T}$ac_res" >&6; }
23258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23259 cat >>confdefs.h <<_ACEOF
23260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23261 _ACEOF
23265 done
23269 for ac_func in fork vfork
23271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23275 echo $ECHO_N "(cached) $ECHO_C" >&6
23276 else
23277 cat >conftest.$ac_ext <<_ACEOF
23278 /* confdefs.h. */
23279 _ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h. */
23283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23285 #define $ac_func innocuous_$ac_func
23287 /* System header to define __stub macros and hopefully few prototypes,
23288 which can conflict with char $ac_func (); below.
23289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23290 <limits.h> exists even on freestanding compilers. */
23292 #ifdef __STDC__
23293 # include <limits.h>
23294 #else
23295 # include <assert.h>
23296 #endif
23298 #undef $ac_func
23300 /* Override any GCC internal prototype to avoid an error.
23301 Use char because int might match the return type of a GCC
23302 builtin and then its argument prototype would still apply. */
23303 #ifdef __cplusplus
23304 extern "C"
23305 #endif
23306 char $ac_func ();
23307 /* The GNU C library defines this for functions which it implements
23308 to always fail with ENOSYS. Some functions are actually named
23309 something starting with __ and the normal name is an alias. */
23310 #if defined __stub_$ac_func || defined __stub___$ac_func
23311 choke me
23312 #endif
23315 main ()
23317 return $ac_func ();
23319 return 0;
23321 _ACEOF
23322 rm -f conftest.$ac_objext conftest$ac_exeext
23323 if { (ac_try="$ac_link"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23327 esac
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_link") 2>conftest.er1
23330 ac_status=$?
23331 grep -v '^ *+' conftest.er1 >conftest.err
23332 rm -f conftest.er1
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } && {
23336 test -z "$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 } && test -s conftest$ac_exeext &&
23339 $as_test_x conftest$ac_exeext; then
23340 eval "$as_ac_var=yes"
23341 else
23342 echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 eval "$as_ac_var=no"
23348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23349 conftest$ac_exeext conftest.$ac_ext
23351 ac_res=`eval echo '${'$as_ac_var'}'`
23352 { echo "$as_me:$LINENO: result: $ac_res" >&5
23353 echo "${ECHO_T}$ac_res" >&6; }
23354 if test `eval echo '${'$as_ac_var'}'` = yes; then
23355 cat >>confdefs.h <<_ACEOF
23356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23357 _ACEOF
23360 done
23362 if test "x$ac_cv_func_fork" = xyes; then
23363 { echo "$as_me:$LINENO: checking for working fork" >&5
23364 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23365 if test "${ac_cv_func_fork_works+set}" = set; then
23366 echo $ECHO_N "(cached) $ECHO_C" >&6
23367 else
23368 if test "$cross_compiling" = yes; then
23369 ac_cv_func_fork_works=cross
23370 else
23371 cat >conftest.$ac_ext <<_ACEOF
23372 /* confdefs.h. */
23373 _ACEOF
23374 cat confdefs.h >>conftest.$ac_ext
23375 cat >>conftest.$ac_ext <<_ACEOF
23376 /* end confdefs.h. */
23377 $ac_includes_default
23379 main ()
23382 /* By Ruediger Kuhlmann. */
23383 return fork () < 0;
23386 return 0;
23388 _ACEOF
23389 rm -f conftest$ac_exeext
23390 if { (ac_try="$ac_link"
23391 case "(($ac_try" in
23392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393 *) ac_try_echo=$ac_try;;
23394 esac
23395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23396 (eval "$ac_link") 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23400 { (case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23403 esac
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405 (eval "$ac_try") 2>&5
23406 ac_status=$?
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; }; then
23409 ac_cv_func_fork_works=yes
23410 else
23411 echo "$as_me: program exited with status $ac_status" >&5
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23415 ( exit $ac_status )
23416 ac_cv_func_fork_works=no
23418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23423 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23424 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23426 else
23427 ac_cv_func_fork_works=$ac_cv_func_fork
23429 if test "x$ac_cv_func_fork_works" = xcross; then
23430 case $host in
23431 *-*-amigaos* | *-*-msdosdjgpp*)
23432 # Override, as these systems have only a dummy fork() stub
23433 ac_cv_func_fork_works=no
23436 ac_cv_func_fork_works=yes
23438 esac
23439 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23440 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23442 ac_cv_func_vfork_works=$ac_cv_func_vfork
23443 if test "x$ac_cv_func_vfork" = xyes; then
23444 { echo "$as_me:$LINENO: checking for working vfork" >&5
23445 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23446 if test "${ac_cv_func_vfork_works+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449 if test "$cross_compiling" = yes; then
23450 ac_cv_func_vfork_works=cross
23451 else
23452 cat >conftest.$ac_ext <<_ACEOF
23453 /* confdefs.h. */
23454 _ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h. */
23458 /* Thanks to Paul Eggert for this test. */
23459 $ac_includes_default
23460 #include <sys/wait.h>
23461 #ifdef HAVE_VFORK_H
23462 # include <vfork.h>
23463 #endif
23464 /* On some sparc systems, changes by the child to local and incoming
23465 argument registers are propagated back to the parent. The compiler
23466 is told about this with #include <vfork.h>, but some compilers
23467 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23468 static variable whose address is put into a register that is
23469 clobbered by the vfork. */
23470 static void
23471 #ifdef __cplusplus
23472 sparc_address_test (int arg)
23473 # else
23474 sparc_address_test (arg) int arg;
23475 #endif
23477 static pid_t child;
23478 if (!child) {
23479 child = vfork ();
23480 if (child < 0) {
23481 perror ("vfork");
23482 _exit(2);
23484 if (!child) {
23485 arg = getpid();
23486 write(-1, "", 0);
23487 _exit (arg);
23493 main ()
23495 pid_t parent = getpid ();
23496 pid_t child;
23498 sparc_address_test (0);
23500 child = vfork ();
23502 if (child == 0) {
23503 /* Here is another test for sparc vfork register problems. This
23504 test uses lots of local variables, at least as many local
23505 variables as main has allocated so far including compiler
23506 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23507 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23508 reuse the register of parent for one of the local variables,
23509 since it will think that parent can't possibly be used any more
23510 in this routine. Assigning to the local variable will thus
23511 munge parent in the parent process. */
23512 pid_t
23513 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23514 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23515 /* Convince the compiler that p..p7 are live; otherwise, it might
23516 use the same hardware register for all 8 local variables. */
23517 if (p != p1 || p != p2 || p != p3 || p != p4
23518 || p != p5 || p != p6 || p != p7)
23519 _exit(1);
23521 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23522 from child file descriptors. If the child closes a descriptor
23523 before it execs or exits, this munges the parent's descriptor
23524 as well. Test for this by closing stdout in the child. */
23525 _exit(close(fileno(stdout)) != 0);
23526 } else {
23527 int status;
23528 struct stat st;
23530 while (wait(&status) != child)
23532 return (
23533 /* Was there some problem with vforking? */
23534 child < 0
23536 /* Did the child fail? (This shouldn't happen.) */
23537 || status
23539 /* Did the vfork/compiler bug occur? */
23540 || parent != getpid()
23542 /* Did the file descriptor bug occur? */
23543 || fstat(fileno(stdout), &st) != 0
23547 _ACEOF
23548 rm -f conftest$ac_exeext
23549 if { (ac_try="$ac_link"
23550 case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23553 esac
23554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23555 (eval "$ac_link") 2>&5
23556 ac_status=$?
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23559 { (case "(($ac_try" in
23560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23561 *) ac_try_echo=$ac_try;;
23562 esac
23563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23564 (eval "$ac_try") 2>&5
23565 ac_status=$?
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); }; }; then
23568 ac_cv_func_vfork_works=yes
23569 else
23570 echo "$as_me: program exited with status $ac_status" >&5
23571 echo "$as_me: failed program was:" >&5
23572 sed 's/^/| /' conftest.$ac_ext >&5
23574 ( exit $ac_status )
23575 ac_cv_func_vfork_works=no
23577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23582 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23583 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23586 if test "x$ac_cv_func_fork_works" = xcross; then
23587 ac_cv_func_vfork_works=$ac_cv_func_vfork
23588 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23589 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23592 if test "x$ac_cv_func_vfork_works" = xyes; then
23594 cat >>confdefs.h <<\_ACEOF
23595 #define HAVE_WORKING_VFORK 1
23596 _ACEOF
23598 else
23600 cat >>confdefs.h <<\_ACEOF
23601 #define vfork fork
23602 _ACEOF
23605 if test "x$ac_cv_func_fork_works" = xyes; then
23607 cat >>confdefs.h <<\_ACEOF
23608 #define HAVE_WORKING_FORK 1
23609 _ACEOF
23614 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23615 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23616 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23617 echo $ECHO_N "(cached) $ECHO_C" >&6
23618 else
23619 cat >conftest.$ac_ext <<_ACEOF
23620 /* confdefs.h. */
23621 _ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h. */
23625 #include <langinfo.h>
23627 main ()
23629 char* cs = nl_langinfo(CODESET);
23631 return 0;
23633 _ACEOF
23634 rm -f conftest.$ac_objext conftest$ac_exeext
23635 if { (ac_try="$ac_link"
23636 case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23639 esac
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641 (eval "$ac_link") 2>conftest.er1
23642 ac_status=$?
23643 grep -v '^ *+' conftest.er1 >conftest.err
23644 rm -f conftest.er1
23645 cat conftest.err >&5
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } && {
23648 test -z "$ac_c_werror_flag" ||
23649 test ! -s conftest.err
23650 } && test -s conftest$ac_exeext &&
23651 $as_test_x conftest$ac_exeext; then
23652 emacs_cv_langinfo_codeset=yes
23653 else
23654 echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23657 emacs_cv_langinfo_codeset=no
23660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23661 conftest$ac_exeext conftest.$ac_ext
23664 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23665 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23666 if test $emacs_cv_langinfo_codeset = yes; then
23668 cat >>confdefs.h <<\_ACEOF
23669 #define HAVE_LANGINFO_CODESET 1
23670 _ACEOF
23674 { echo "$as_me:$LINENO: checking for size_t" >&5
23675 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23676 if test "${ac_cv_type_size_t+set}" = set; then
23677 echo $ECHO_N "(cached) $ECHO_C" >&6
23678 else
23679 cat >conftest.$ac_ext <<_ACEOF
23680 /* confdefs.h. */
23681 _ACEOF
23682 cat confdefs.h >>conftest.$ac_ext
23683 cat >>conftest.$ac_ext <<_ACEOF
23684 /* end confdefs.h. */
23685 $ac_includes_default
23686 typedef size_t ac__type_new_;
23688 main ()
23690 if ((ac__type_new_ *) 0)
23691 return 0;
23692 if (sizeof (ac__type_new_))
23693 return 0;
23695 return 0;
23697 _ACEOF
23698 rm -f conftest.$ac_objext
23699 if { (ac_try="$ac_compile"
23700 case "(($ac_try" in
23701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702 *) ac_try_echo=$ac_try;;
23703 esac
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705 (eval "$ac_compile") 2>conftest.er1
23706 ac_status=$?
23707 grep -v '^ *+' conftest.er1 >conftest.err
23708 rm -f conftest.er1
23709 cat conftest.err >&5
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } && {
23712 test -z "$ac_c_werror_flag" ||
23713 test ! -s conftest.err
23714 } && test -s conftest.$ac_objext; then
23715 ac_cv_type_size_t=yes
23716 else
23717 echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23720 ac_cv_type_size_t=no
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23726 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23727 if test $ac_cv_type_size_t = yes; then
23729 cat >>confdefs.h <<_ACEOF
23730 #define HAVE_SIZE_T 1
23731 _ACEOF
23737 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23738 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23739 if test "${ac_cv_type_mbstate_t+set}" = set; then
23740 echo $ECHO_N "(cached) $ECHO_C" >&6
23741 else
23742 cat >conftest.$ac_ext <<_ACEOF
23743 /* confdefs.h. */
23744 _ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23748 $ac_includes_default
23749 # include <wchar.h>
23751 main ()
23753 mbstate_t x; return sizeof x;
23755 return 0;
23757 _ACEOF
23758 rm -f conftest.$ac_objext
23759 if { (ac_try="$ac_compile"
23760 case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23763 esac
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765 (eval "$ac_compile") 2>conftest.er1
23766 ac_status=$?
23767 grep -v '^ *+' conftest.er1 >conftest.err
23768 rm -f conftest.er1
23769 cat conftest.err >&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); } && {
23772 test -z "$ac_c_werror_flag" ||
23773 test ! -s conftest.err
23774 } && test -s conftest.$ac_objext; then
23775 ac_cv_type_mbstate_t=yes
23776 else
23777 echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23780 ac_cv_type_mbstate_t=no
23783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23785 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23786 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23787 if test $ac_cv_type_mbstate_t = yes; then
23789 cat >>confdefs.h <<\_ACEOF
23790 #define HAVE_MBSTATE_T 1
23791 _ACEOF
23793 else
23795 cat >>confdefs.h <<\_ACEOF
23796 #define mbstate_t int
23797 _ACEOF
23801 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23802 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23803 if test "${emacs_cv_c_restrict+set}" = set; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23805 else
23806 cat >conftest.$ac_ext <<_ACEOF
23807 /* confdefs.h. */
23808 _ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23812 void fred (int *restrict x);
23814 main ()
23818 return 0;
23820 _ACEOF
23821 rm -f conftest.$ac_objext
23822 if { (ac_try="$ac_compile"
23823 case "(($ac_try" in
23824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825 *) ac_try_echo=$ac_try;;
23826 esac
23827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23828 (eval "$ac_compile") 2>conftest.er1
23829 ac_status=$?
23830 grep -v '^ *+' conftest.er1 >conftest.err
23831 rm -f conftest.er1
23832 cat conftest.err >&5
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); } && {
23835 test -z "$ac_c_werror_flag" ||
23836 test ! -s conftest.err
23837 } && test -s conftest.$ac_objext; then
23838 emacs_cv_c_restrict=yes
23839 else
23840 echo "$as_me: failed program was:" >&5
23841 sed 's/^/| /' conftest.$ac_ext >&5
23843 cat >conftest.$ac_ext <<_ACEOF
23844 /* confdefs.h. */
23845 _ACEOF
23846 cat confdefs.h >>conftest.$ac_ext
23847 cat >>conftest.$ac_ext <<_ACEOF
23848 /* end confdefs.h. */
23849 void fred (int *__restrict x);
23851 main ()
23855 return 0;
23857 _ACEOF
23858 rm -f conftest.$ac_objext
23859 if { (ac_try="$ac_compile"
23860 case "(($ac_try" in
23861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862 *) ac_try_echo=$ac_try;;
23863 esac
23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865 (eval "$ac_compile") 2>conftest.er1
23866 ac_status=$?
23867 grep -v '^ *+' conftest.er1 >conftest.err
23868 rm -f conftest.er1
23869 cat conftest.err >&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); } && {
23872 test -z "$ac_c_werror_flag" ||
23873 test ! -s conftest.err
23874 } && test -s conftest.$ac_objext; then
23875 emacs_cv_c_restrict=__restrict
23876 else
23877 echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23880 emacs_cv_c_restrict=no
23883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23888 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23889 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23890 case "$emacs_cv_c_restrict" in
23891 yes) emacs_restrict=restrict;;
23892 no) emacs_restrict="";;
23893 *) emacs_restrict="$emacs_cv_c_restrict";;
23894 esac
23895 if test "$emacs_restrict" != __restrict; then
23897 cat >>confdefs.h <<_ACEOF
23898 #define __restrict $emacs_restrict
23899 _ACEOF
23903 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23904 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23905 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23906 echo $ECHO_N "(cached) $ECHO_C" >&6
23907 else
23908 cat >conftest.$ac_ext <<_ACEOF
23909 /* confdefs.h. */
23910 _ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23914 void fred (int x[__restrict]);
23916 main ()
23920 return 0;
23922 _ACEOF
23923 rm -f conftest.$ac_objext
23924 if { (ac_try="$ac_compile"
23925 case "(($ac_try" in
23926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23927 *) ac_try_echo=$ac_try;;
23928 esac
23929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23930 (eval "$ac_compile") 2>conftest.er1
23931 ac_status=$?
23932 grep -v '^ *+' conftest.er1 >conftest.err
23933 rm -f conftest.er1
23934 cat conftest.err >&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } && {
23937 test -z "$ac_c_werror_flag" ||
23938 test ! -s conftest.err
23939 } && test -s conftest.$ac_objext; then
23940 emacs_cv_c_restrict_arr=yes
23941 else
23942 echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23945 emacs_cv_c_restrict_arr=no
23948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23951 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23952 if test "$emacs_cv_c_restrict_arr" = yes; then
23954 cat >>confdefs.h <<\_ACEOF
23955 #define __restrict_arr __restrict
23956 _ACEOF
23962 # Set up the CFLAGS for real compilation, so we can substitute it.
23963 CFLAGS="$REAL_CFLAGS"
23964 CPPFLAGS="$REAL_CPPFLAGS"
23966 #### Find out which version of Emacs this is.
23967 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23968 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23969 if test x"${version}" = x; then
23970 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23971 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23972 { (exit 1); exit 1; }; }
23975 ### Specify what sort of things we'll be editing into Makefile and config.h.
23976 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24012 cat >>confdefs.h <<_ACEOF
24013 #define EMACS_CONFIGURATION "${canonical}"
24014 _ACEOF
24017 cat >>confdefs.h <<_ACEOF
24018 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24019 _ACEOF
24022 cat >>confdefs.h <<_ACEOF
24023 #define config_machfile "${machfile}"
24024 _ACEOF
24027 cat >>confdefs.h <<_ACEOF
24028 #define config_opsysfile "${opsysfile}"
24029 _ACEOF
24032 cat >>confdefs.h <<_ACEOF
24033 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24034 _ACEOF
24037 cat >>confdefs.h <<_ACEOF
24038 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24039 _ACEOF
24042 cat >>confdefs.h <<_ACEOF
24043 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24044 _ACEOF
24047 cat >>confdefs.h <<_ACEOF
24048 #define UNEXEC_SRC ${UNEXEC_SRC}
24049 _ACEOF
24052 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24054 cat >>confdefs.h <<\_ACEOF
24055 #define HAVE_X_WINDOWS 1
24056 _ACEOF
24059 if test "${USE_X_TOOLKIT}" != "none" ; then
24061 cat >>confdefs.h <<\_ACEOF
24062 #define USE_X_TOOLKIT 1
24063 _ACEOF
24066 if test "${HAVE_X11}" = "yes" ; then
24068 cat >>confdefs.h <<\_ACEOF
24069 #define HAVE_X11 1
24070 _ACEOF
24073 if test "${HAVE_MENUS}" = "yes" ; then
24075 cat >>confdefs.h <<\_ACEOF
24076 #define HAVE_MENUS 1
24077 _ACEOF
24080 if test "${GNU_MALLOC}" = "yes" ; then
24082 cat >>confdefs.h <<\_ACEOF
24083 #define GNU_MALLOC 1
24084 _ACEOF
24087 if test "${REL_ALLOC}" = "yes" ; then
24089 cat >>confdefs.h <<\_ACEOF
24090 #define REL_ALLOC 1
24091 _ACEOF
24100 #### Report on what we decided to do.
24101 #### Report GTK as a toolkit, even if it doesn't use Xt.
24102 #### It makes printing result more understandable as using GTK sets
24103 #### toolkit_scroll_bars to yes by default.
24104 if test "${HAVE_GTK}" = "yes"; then
24105 USE_X_TOOLKIT=GTK
24108 echo "
24109 Configured for \`${canonical}'.
24111 Where should the build process find the source code? ${srcdir}
24112 What operating system and machine description files should Emacs use?
24113 \`${opsysfile}' and \`${machfile}'
24114 What compiler should emacs be built with? ${CC} ${CFLAGS}
24115 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24116 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24117 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24118 What window system should Emacs use? ${window_system}
24119 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24121 if test -n "${x_includes}"; then
24122 echo " Where do we find X Windows header files? ${x_includes}"
24123 else
24124 echo " Where do we find X Windows header files? Standard dirs"
24126 if test -n "${x_libraries}"; then
24127 echo " Where do we find X Windows libraries? ${x_libraries}"
24128 else
24129 echo " Where do we find X Windows libraries? Standard dirs"
24132 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24133 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24134 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24135 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24136 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24137 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24138 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24139 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24140 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24141 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
24143 if test "${USE_FONT_BACKEND}" = "yes"; then
24144 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24145 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24146 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24147 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24149 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24150 echo
24152 if test $USE_XASSERTS = yes; then
24153 echo " Compiling with asserts turned on."
24154 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24157 echo
24159 if test "$USE_X_TOOLKIT" = GTK; then
24160 case "$canonical" in
24161 *cygwin*)
24162 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24163 will probably get a crash on startup. If this happens, please use another
24164 toolkit for Emacs. See etc/PROBLEMS for more information."
24166 esac
24170 if test "$HAVE_CARBON" = "yes"; then
24171 echo
24172 echo "Warning: The Mac Carbon port is currently unsupported and has
24173 known problems. It is not recommended for use by non-developers.
24174 Read the emacs-devel archives for more information."
24175 echo
24178 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24179 echo "D-Bus integration has been tested for GNU/Linux only."
24180 echo
24184 # Remove any trailing slashes in these variables.
24185 test "${prefix}" != NONE &&
24186 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24187 test "${exec_prefix}" != NONE &&
24188 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24190 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24191 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24192 ## from Makefile.c can correctly provide the arg `-traditional' to the
24193 ## C preprocessor.
24195 cat >conftest.$ac_ext <<_ACEOF
24196 /* confdefs.h. */
24197 _ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h. */
24201 yes..yes
24202 _ACEOF
24203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24204 $EGREP "yes..yes" >/dev/null 2>&1; then
24205 CPP_NEED_TRADITIONAL=no
24206 else
24207 CPP_NEED_TRADITIONAL=yes
24209 rm -f conftest*
24212 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
24214 ac_config_commands="$ac_config_commands default"
24216 cat >confcache <<\_ACEOF
24217 # This file is a shell script that caches the results of configure
24218 # tests run on this system so they can be shared between configure
24219 # scripts and configure runs, see configure's option --config-cache.
24220 # It is not useful on other systems. If it contains results you don't
24221 # want to keep, you may remove or edit it.
24223 # config.status only pays attention to the cache file if you give it
24224 # the --recheck option to rerun configure.
24226 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24228 # following values.
24230 _ACEOF
24232 # The following way of writing the cache mishandles newlines in values,
24233 # but we know of no workaround that is simple, portable, and efficient.
24234 # So, we kill variables containing newlines.
24235 # Ultrix sh set writes to stderr and can't be redirected directly,
24236 # and sets the high bit in the cache file unless we assign to the vars.
24238 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24239 eval ac_val=\$$ac_var
24240 case $ac_val in #(
24241 *${as_nl}*)
24242 case $ac_var in #(
24243 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24244 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24245 esac
24246 case $ac_var in #(
24247 _ | IFS | as_nl) ;; #(
24248 *) $as_unset $ac_var ;;
24249 esac ;;
24250 esac
24251 done
24253 (set) 2>&1 |
24254 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24255 *${as_nl}ac_space=\ *)
24256 # `set' does not quote correctly, so add quotes (double-quote
24257 # substitution turns \\\\ into \\, and sed turns \\ into \).
24258 sed -n \
24259 "s/'/'\\\\''/g;
24260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24261 ;; #(
24263 # `set' quotes correctly as required by POSIX, so do not add quotes.
24264 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24266 esac |
24267 sort
24269 sed '
24270 /^ac_cv_env_/b end
24271 t clear
24272 :clear
24273 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24274 t end
24275 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24276 :end' >>confcache
24277 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24278 if test -w "$cache_file"; then
24279 test "x$cache_file" != "x/dev/null" &&
24280 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24281 echo "$as_me: updating cache $cache_file" >&6;}
24282 cat confcache >$cache_file
24283 else
24284 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24285 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24288 rm -f confcache
24290 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24291 # Let make expand exec_prefix.
24292 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24294 DEFS=-DHAVE_CONFIG_H
24296 ac_libobjs=
24297 ac_ltlibobjs=
24298 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24299 # 1. Remove the extension, and $U if already installed.
24300 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24301 ac_i=`echo "$ac_i" | sed "$ac_script"`
24302 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24303 # will be set to the directory where LIBOBJS objects are built.
24304 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24305 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24306 done
24307 LIBOBJS=$ac_libobjs
24309 LTLIBOBJS=$ac_ltlibobjs
24313 : ${CONFIG_STATUS=./config.status}
24314 ac_clean_files_save=$ac_clean_files
24315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24316 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24317 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24318 cat >$CONFIG_STATUS <<_ACEOF
24319 #! $SHELL
24320 # Generated by $as_me.
24321 # Run this file to recreate the current configuration.
24322 # Compiler output produced by configure, useful for debugging
24323 # configure, is in config.log if it exists.
24325 debug=false
24326 ac_cs_recheck=false
24327 ac_cs_silent=false
24328 SHELL=\${CONFIG_SHELL-$SHELL}
24329 _ACEOF
24331 cat >>$CONFIG_STATUS <<\_ACEOF
24332 ## --------------------- ##
24333 ## M4sh Initialization. ##
24334 ## --------------------- ##
24336 # Be more Bourne compatible
24337 DUALCASE=1; export DUALCASE # for MKS sh
24338 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24339 emulate sh
24340 NULLCMD=:
24341 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24342 # is contrary to our usage. Disable this feature.
24343 alias -g '${1+"$@"}'='"$@"'
24344 setopt NO_GLOB_SUBST
24345 else
24346 case `(set -o) 2>/dev/null` in
24347 *posix*) set -o posix ;;
24348 esac
24355 # PATH needs CR
24356 # Avoid depending upon Character Ranges.
24357 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24358 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24359 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24360 as_cr_digits='0123456789'
24361 as_cr_alnum=$as_cr_Letters$as_cr_digits
24363 # The user is always right.
24364 if test "${PATH_SEPARATOR+set}" != set; then
24365 echo "#! /bin/sh" >conf$$.sh
24366 echo "exit 0" >>conf$$.sh
24367 chmod +x conf$$.sh
24368 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24369 PATH_SEPARATOR=';'
24370 else
24371 PATH_SEPARATOR=:
24373 rm -f conf$$.sh
24376 # Support unset when possible.
24377 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24378 as_unset=unset
24379 else
24380 as_unset=false
24384 # IFS
24385 # We need space, tab and new line, in precisely that order. Quoting is
24386 # there to prevent editors from complaining about space-tab.
24387 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24388 # splitting by setting IFS to empty value.)
24389 as_nl='
24391 IFS=" "" $as_nl"
24393 # Find who we are. Look in the path if we contain no directory separator.
24394 case $0 in
24395 *[\\/]* ) as_myself=$0 ;;
24396 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24397 for as_dir in $PATH
24399 IFS=$as_save_IFS
24400 test -z "$as_dir" && as_dir=.
24401 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24402 done
24403 IFS=$as_save_IFS
24406 esac
24407 # We did not find ourselves, most probably we were run as `sh COMMAND'
24408 # in which case we are not to be found in the path.
24409 if test "x$as_myself" = x; then
24410 as_myself=$0
24412 if test ! -f "$as_myself"; then
24413 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24414 { (exit 1); exit 1; }
24417 # Work around bugs in pre-3.0 UWIN ksh.
24418 for as_var in ENV MAIL MAILPATH
24419 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24420 done
24421 PS1='$ '
24422 PS2='> '
24423 PS4='+ '
24425 # NLS nuisances.
24426 for as_var in \
24427 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24428 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24429 LC_TELEPHONE LC_TIME
24431 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24432 eval $as_var=C; export $as_var
24433 else
24434 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24436 done
24438 # Required to use basename.
24439 if expr a : '\(a\)' >/dev/null 2>&1 &&
24440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24441 as_expr=expr
24442 else
24443 as_expr=false
24446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24447 as_basename=basename
24448 else
24449 as_basename=false
24453 # Name of the executable.
24454 as_me=`$as_basename -- "$0" ||
24455 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24456 X"$0" : 'X\(//\)$' \| \
24457 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24458 echo X/"$0" |
24459 sed '/^.*\/\([^/][^/]*\)\/*$/{
24460 s//\1/
24463 /^X\/\(\/\/\)$/{
24464 s//\1/
24467 /^X\/\(\/\).*/{
24468 s//\1/
24471 s/.*/./; q'`
24473 # CDPATH.
24474 $as_unset CDPATH
24478 as_lineno_1=$LINENO
24479 as_lineno_2=$LINENO
24480 test "x$as_lineno_1" != "x$as_lineno_2" &&
24481 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24483 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24484 # uniformly replaced by the line number. The first 'sed' inserts a
24485 # line-number line after each line using $LINENO; the second 'sed'
24486 # does the real work. The second script uses 'N' to pair each
24487 # line-number line with the line containing $LINENO, and appends
24488 # trailing '-' during substitution so that $LINENO is not a special
24489 # case at line end.
24490 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24491 # scripts with optimization help from Paolo Bonzini. Blame Lee
24492 # E. McMahon (1931-1989) for sed's syntax. :-)
24493 sed -n '
24495 /[$]LINENO/=
24496 ' <$as_myself |
24497 sed '
24498 s/[$]LINENO.*/&-/
24499 t lineno
24501 :lineno
24503 :loop
24504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24505 t loop
24506 s/-\n.*//
24507 ' >$as_me.lineno &&
24508 chmod +x "$as_me.lineno" ||
24509 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24510 { (exit 1); exit 1; }; }
24512 # Don't try to exec as it changes $[0], causing all sort of problems
24513 # (the dirname of $[0] is not the place where we might find the
24514 # original and so on. Autoconf is especially sensitive to this).
24515 . "./$as_me.lineno"
24516 # Exit status is that of the last command.
24517 exit
24521 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24522 as_dirname=dirname
24523 else
24524 as_dirname=false
24527 ECHO_C= ECHO_N= ECHO_T=
24528 case `echo -n x` in
24529 -n*)
24530 case `echo 'x\c'` in
24531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24532 *) ECHO_C='\c';;
24533 esac;;
24535 ECHO_N='-n';;
24536 esac
24538 if expr a : '\(a\)' >/dev/null 2>&1 &&
24539 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24540 as_expr=expr
24541 else
24542 as_expr=false
24545 rm -f conf$$ conf$$.exe conf$$.file
24546 if test -d conf$$.dir; then
24547 rm -f conf$$.dir/conf$$.file
24548 else
24549 rm -f conf$$.dir
24550 mkdir conf$$.dir
24552 echo >conf$$.file
24553 if ln -s conf$$.file conf$$ 2>/dev/null; then
24554 as_ln_s='ln -s'
24555 # ... but there are two gotchas:
24556 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24557 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24558 # In both cases, we have to default to `cp -p'.
24559 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24560 as_ln_s='cp -p'
24561 elif ln conf$$.file conf$$ 2>/dev/null; then
24562 as_ln_s=ln
24563 else
24564 as_ln_s='cp -p'
24566 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24567 rmdir conf$$.dir 2>/dev/null
24569 if mkdir -p . 2>/dev/null; then
24570 as_mkdir_p=:
24571 else
24572 test -d ./-p && rmdir ./-p
24573 as_mkdir_p=false
24576 if test -x / >/dev/null 2>&1; then
24577 as_test_x='test -x'
24578 else
24579 if ls -dL / >/dev/null 2>&1; then
24580 as_ls_L_option=L
24581 else
24582 as_ls_L_option=
24584 as_test_x='
24585 eval sh -c '\''
24586 if test -d "$1"; then
24587 test -d "$1/.";
24588 else
24589 case $1 in
24590 -*)set "./$1";;
24591 esac;
24592 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24593 ???[sx]*):;;*)false;;esac;fi
24594 '\'' sh
24597 as_executable_p=$as_test_x
24599 # Sed expression to map a string onto a valid CPP name.
24600 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24602 # Sed expression to map a string onto a valid variable name.
24603 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24606 exec 6>&1
24608 # Save the log message, to keep $[0] and so on meaningful, and to
24609 # report actual input values of CONFIG_FILES etc. instead of their
24610 # values after options handling.
24611 ac_log="
24612 This file was extended by emacs $as_me 23.0.60, which was
24613 generated by GNU Autoconf 2.61. Invocation command line was
24615 CONFIG_FILES = $CONFIG_FILES
24616 CONFIG_HEADERS = $CONFIG_HEADERS
24617 CONFIG_LINKS = $CONFIG_LINKS
24618 CONFIG_COMMANDS = $CONFIG_COMMANDS
24619 $ $0 $@
24621 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24624 _ACEOF
24626 cat >>$CONFIG_STATUS <<_ACEOF
24627 # Files that config.status was made for.
24628 config_files="$ac_config_files"
24629 config_headers="$ac_config_headers"
24630 config_commands="$ac_config_commands"
24632 _ACEOF
24634 cat >>$CONFIG_STATUS <<\_ACEOF
24635 ac_cs_usage="\
24636 \`$as_me' instantiates files from templates according to the
24637 current configuration.
24639 Usage: $0 [OPTIONS] [FILE]...
24641 -h, --help print this help, then exit
24642 -V, --version print version number and configuration settings, then exit
24643 -q, --quiet do not print progress messages
24644 -d, --debug don't remove temporary files
24645 --recheck update $as_me by reconfiguring in the same conditions
24646 --file=FILE[:TEMPLATE]
24647 instantiate the configuration file FILE
24648 --header=FILE[:TEMPLATE]
24649 instantiate the configuration header FILE
24651 Configuration files:
24652 $config_files
24654 Configuration headers:
24655 $config_headers
24657 Configuration commands:
24658 $config_commands
24660 Report bugs to <bug-autoconf@gnu.org>."
24662 _ACEOF
24663 cat >>$CONFIG_STATUS <<_ACEOF
24664 ac_cs_version="\\
24665 emacs config.status 23.0.60
24666 configured by $0, generated by GNU Autoconf 2.61,
24667 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24669 Copyright (C) 2006 Free Software Foundation, Inc.
24670 This config.status script is free software; the Free Software Foundation
24671 gives unlimited permission to copy, distribute and modify it."
24673 ac_pwd='$ac_pwd'
24674 srcdir='$srcdir'
24675 INSTALL='$INSTALL'
24676 _ACEOF
24678 cat >>$CONFIG_STATUS <<\_ACEOF
24679 # If no file are specified by the user, then we need to provide default
24680 # value. By we need to know if files were specified by the user.
24681 ac_need_defaults=:
24682 while test $# != 0
24684 case $1 in
24685 --*=*)
24686 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24687 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24688 ac_shift=:
24691 ac_option=$1
24692 ac_optarg=$2
24693 ac_shift=shift
24695 esac
24697 case $ac_option in
24698 # Handling of the options.
24699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24700 ac_cs_recheck=: ;;
24701 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24702 echo "$ac_cs_version"; exit ;;
24703 --debug | --debu | --deb | --de | --d | -d )
24704 debug=: ;;
24705 --file | --fil | --fi | --f )
24706 $ac_shift
24707 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24708 ac_need_defaults=false;;
24709 --header | --heade | --head | --hea )
24710 $ac_shift
24711 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24712 ac_need_defaults=false;;
24713 --he | --h)
24714 # Conflict between --help and --header
24715 { echo "$as_me: error: ambiguous option: $1
24716 Try \`$0 --help' for more information." >&2
24717 { (exit 1); exit 1; }; };;
24718 --help | --hel | -h )
24719 echo "$ac_cs_usage"; exit ;;
24720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24721 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24722 ac_cs_silent=: ;;
24724 # This is an error.
24725 -*) { echo "$as_me: error: unrecognized option: $1
24726 Try \`$0 --help' for more information." >&2
24727 { (exit 1); exit 1; }; } ;;
24729 *) ac_config_targets="$ac_config_targets $1"
24730 ac_need_defaults=false ;;
24732 esac
24733 shift
24734 done
24736 ac_configure_extra_args=
24738 if $ac_cs_silent; then
24739 exec 6>/dev/null
24740 ac_configure_extra_args="$ac_configure_extra_args --silent"
24743 _ACEOF
24744 cat >>$CONFIG_STATUS <<_ACEOF
24745 if \$ac_cs_recheck; then
24746 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24747 CONFIG_SHELL=$SHELL
24748 export CONFIG_SHELL
24749 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24752 _ACEOF
24753 cat >>$CONFIG_STATUS <<\_ACEOF
24754 exec 5>>config.log
24756 echo
24757 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24758 ## Running $as_me. ##
24759 _ASBOX
24760 echo "$ac_log"
24761 } >&5
24763 _ACEOF
24764 cat >>$CONFIG_STATUS <<_ACEOF
24766 # INIT-COMMANDS
24768 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24770 _ACEOF
24772 cat >>$CONFIG_STATUS <<\_ACEOF
24774 # Handling of arguments.
24775 for ac_config_target in $ac_config_targets
24777 case $ac_config_target in
24778 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24779 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24780 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24781 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24782 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24783 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24784 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24785 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24786 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24787 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24788 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24789 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24790 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24792 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24793 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24794 { (exit 1); exit 1; }; };;
24795 esac
24796 done
24799 # If the user did not use the arguments to specify the items to instantiate,
24800 # then the envvar interface is used. Set only those that are not.
24801 # We use the long form for the default assignment because of an extremely
24802 # bizarre bug on SunOS 4.1.3.
24803 if $ac_need_defaults; then
24804 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24805 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24806 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24809 # Have a temporary directory for convenience. Make it in the build tree
24810 # simply because there is no reason against having it here, and in addition,
24811 # creating and moving files from /tmp can sometimes cause problems.
24812 # Hook for its removal unless debugging.
24813 # Note that there is a small window in which the directory will not be cleaned:
24814 # after its creation but before its name has been assigned to `$tmp'.
24815 $debug ||
24817 tmp=
24818 trap 'exit_status=$?
24819 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24821 trap '{ (exit 1); exit 1; }' 1 2 13 15
24823 # Create a (secure) tmp directory for tmp files.
24826 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24827 test -n "$tmp" && test -d "$tmp"
24828 } ||
24830 tmp=./conf$$-$RANDOM
24831 (umask 077 && mkdir "$tmp")
24832 } ||
24834 echo "$me: cannot create a temporary directory in ." >&2
24835 { (exit 1); exit 1; }
24839 # Set up the sed scripts for CONFIG_FILES section.
24842 # No need to generate the scripts if there are no CONFIG_FILES.
24843 # This happens for instance when ./config.status config.h
24844 if test -n "$CONFIG_FILES"; then
24846 _ACEOF
24850 ac_delim='%!_!# '
24851 for ac_last_try in false false false false false :; do
24852 cat >conf$$subs.sed <<_ACEOF
24853 SHELL!$SHELL$ac_delim
24854 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24855 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24856 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24857 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24858 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24859 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24860 exec_prefix!$exec_prefix$ac_delim
24861 prefix!$prefix$ac_delim
24862 program_transform_name!$program_transform_name$ac_delim
24863 bindir!$bindir$ac_delim
24864 sbindir!$sbindir$ac_delim
24865 libexecdir!$libexecdir$ac_delim
24866 datarootdir!$datarootdir$ac_delim
24867 datadir!$datadir$ac_delim
24868 sysconfdir!$sysconfdir$ac_delim
24869 sharedstatedir!$sharedstatedir$ac_delim
24870 localstatedir!$localstatedir$ac_delim
24871 includedir!$includedir$ac_delim
24872 oldincludedir!$oldincludedir$ac_delim
24873 docdir!$docdir$ac_delim
24874 infodir!$infodir$ac_delim
24875 htmldir!$htmldir$ac_delim
24876 dvidir!$dvidir$ac_delim
24877 pdfdir!$pdfdir$ac_delim
24878 psdir!$psdir$ac_delim
24879 libdir!$libdir$ac_delim
24880 localedir!$localedir$ac_delim
24881 mandir!$mandir$ac_delim
24882 DEFS!$DEFS$ac_delim
24883 ECHO_C!$ECHO_C$ac_delim
24884 ECHO_N!$ECHO_N$ac_delim
24885 ECHO_T!$ECHO_T$ac_delim
24886 LIBS!$LIBS$ac_delim
24887 build_alias!$build_alias$ac_delim
24888 host_alias!$host_alias$ac_delim
24889 target_alias!$target_alias$ac_delim
24890 MAINT!$MAINT$ac_delim
24891 build!$build$ac_delim
24892 build_cpu!$build_cpu$ac_delim
24893 build_vendor!$build_vendor$ac_delim
24894 build_os!$build_os$ac_delim
24895 host!$host$ac_delim
24896 host_cpu!$host_cpu$ac_delim
24897 host_vendor!$host_vendor$ac_delim
24898 host_os!$host_os$ac_delim
24899 CC!$CC$ac_delim
24900 CFLAGS!$CFLAGS$ac_delim
24901 LDFLAGS!$LDFLAGS$ac_delim
24902 CPPFLAGS!$CPPFLAGS$ac_delim
24903 ac_ct_CC!$ac_ct_CC$ac_delim
24904 EXEEXT!$EXEEXT$ac_delim
24905 OBJEXT!$OBJEXT$ac_delim
24906 CPP!$CPP$ac_delim
24907 GREP!$GREP$ac_delim
24908 EGREP!$EGREP$ac_delim
24909 LN_S!$LN_S$ac_delim
24910 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24911 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24912 INSTALL_DATA!$INSTALL_DATA$ac_delim
24913 RANLIB!$RANLIB$ac_delim
24914 INSTALL_INFO!$INSTALL_INFO$ac_delim
24915 GZIP_PROG!$GZIP_PROG$ac_delim
24916 MAKEINFO!$MAKEINFO$ac_delim
24917 LIBSOUND!$LIBSOUND$ac_delim
24918 PKG_CONFIG!$PKG_CONFIG$ac_delim
24919 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24920 ALSA_LIBS!$ALSA_LIBS$ac_delim
24921 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24922 SET_MAKE!$SET_MAKE$ac_delim
24923 XMKMF!$XMKMF$ac_delim
24924 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24925 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24926 RSVG_LIBS!$RSVG_LIBS$ac_delim
24927 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24928 GTK_LIBS!$GTK_LIBS$ac_delim
24929 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24930 DBUS_LIBS!$DBUS_LIBS$ac_delim
24931 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24932 XFT_LIBS!$XFT_LIBS$ac_delim
24933 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24934 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24935 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24936 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24937 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24938 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24939 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24940 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24941 ALLOCA!$ALLOCA$ac_delim
24942 liblockfile!$liblockfile$ac_delim
24943 LIBOBJS!$LIBOBJS$ac_delim
24944 NEED_SETGID!$NEED_SETGID$ac_delim
24945 KMEM_GROUP!$KMEM_GROUP$ac_delim
24946 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24947 GETOPT_H!$GETOPT_H$ac_delim
24948 GETOPTOBJS!$GETOPTOBJS$ac_delim
24949 version!$version$ac_delim
24950 _ACEOF
24952 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24953 break
24954 elif $ac_last_try; then
24955 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24956 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24957 { (exit 1); exit 1; }; }
24958 else
24959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24961 done
24963 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24964 if test -n "$ac_eof"; then
24965 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24966 ac_eof=`expr $ac_eof + 1`
24969 cat >>$CONFIG_STATUS <<_ACEOF
24970 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24972 _ACEOF
24973 sed '
24974 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24975 s/^/s,@/; s/!/@,|#_!!_#|/
24978 s/'"$ac_delim"'$/,g/; t
24979 s/$/\\/; p
24980 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24981 ' >>$CONFIG_STATUS <conf$$subs.sed
24982 rm -f conf$$subs.sed
24983 cat >>$CONFIG_STATUS <<_ACEOF
24984 CEOF$ac_eof
24985 _ACEOF
24988 ac_delim='%!_!# '
24989 for ac_last_try in false false false false false :; do
24990 cat >conf$$subs.sed <<_ACEOF
24991 configuration!$configuration$ac_delim
24992 canonical!$canonical$ac_delim
24993 srcdir!$srcdir$ac_delim
24994 lispdir!$lispdir$ac_delim
24995 locallisppath!$locallisppath$ac_delim
24996 lisppath!$lisppath$ac_delim
24997 x_default_search_path!$x_default_search_path$ac_delim
24998 etcdir!$etcdir$ac_delim
24999 archlibdir!$archlibdir$ac_delim
25000 bitmapdir!$bitmapdir$ac_delim
25001 gamedir!$gamedir$ac_delim
25002 gameuser!$gameuser$ac_delim
25003 c_switch_system!$c_switch_system$ac_delim
25004 c_switch_machine!$c_switch_machine$ac_delim
25005 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25006 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25007 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25008 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25009 machfile!$machfile$ac_delim
25010 opsysfile!$opsysfile$ac_delim
25011 carbon_appdir!$carbon_appdir$ac_delim
25012 LTLIBOBJS!$LTLIBOBJS$ac_delim
25013 _ACEOF
25015 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25016 break
25017 elif $ac_last_try; then
25018 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25019 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25020 { (exit 1); exit 1; }; }
25021 else
25022 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25024 done
25026 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25027 if test -n "$ac_eof"; then
25028 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25029 ac_eof=`expr $ac_eof + 1`
25032 cat >>$CONFIG_STATUS <<_ACEOF
25033 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25035 _ACEOF
25036 sed '
25037 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25038 s/^/s,@/; s/!/@,|#_!!_#|/
25041 s/'"$ac_delim"'$/,g/; t
25042 s/$/\\/; p
25043 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25044 ' >>$CONFIG_STATUS <conf$$subs.sed
25045 rm -f conf$$subs.sed
25046 cat >>$CONFIG_STATUS <<_ACEOF
25047 :end
25048 s/|#_!!_#|//g
25049 CEOF$ac_eof
25050 _ACEOF
25053 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25054 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25055 # trailing colons and then remove the whole line if VPATH becomes empty
25056 # (actually we leave an empty line to preserve line numbers).
25057 if test "x$srcdir" = x.; then
25058 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25059 s/:*\$(srcdir):*/:/
25060 s/:*\${srcdir}:*/:/
25061 s/:*@srcdir@:*/:/
25062 s/^\([^=]*=[ ]*\):*/\1/
25063 s/:*$//
25064 s/^[^=]*=[ ]*$//
25068 cat >>$CONFIG_STATUS <<\_ACEOF
25069 fi # test -n "$CONFIG_FILES"
25072 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25074 case $ac_tag in
25075 :[FHLC]) ac_mode=$ac_tag; continue;;
25076 esac
25077 case $ac_mode$ac_tag in
25078 :[FHL]*:*);;
25079 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25080 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25081 { (exit 1); exit 1; }; };;
25082 :[FH]-) ac_tag=-:-;;
25083 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25084 esac
25085 ac_save_IFS=$IFS
25086 IFS=:
25087 set x $ac_tag
25088 IFS=$ac_save_IFS
25089 shift
25090 ac_file=$1
25091 shift
25093 case $ac_mode in
25094 :L) ac_source=$1;;
25095 :[FH])
25096 ac_file_inputs=
25097 for ac_f
25099 case $ac_f in
25100 -) ac_f="$tmp/stdin";;
25101 *) # Look for the file first in the build tree, then in the source tree
25102 # (if the path is not absolute). The absolute path cannot be DOS-style,
25103 # because $ac_f cannot contain `:'.
25104 test -f "$ac_f" ||
25105 case $ac_f in
25106 [\\/$]*) false;;
25107 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25108 esac ||
25109 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25110 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25111 { (exit 1); exit 1; }; };;
25112 esac
25113 ac_file_inputs="$ac_file_inputs $ac_f"
25114 done
25116 # Let's still pretend it is `configure' which instantiates (i.e., don't
25117 # use $as_me), people would be surprised to read:
25118 # /* config.h. Generated by config.status. */
25119 configure_input="Generated from "`IFS=:
25120 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25121 if test x"$ac_file" != x-; then
25122 configure_input="$ac_file. $configure_input"
25123 { echo "$as_me:$LINENO: creating $ac_file" >&5
25124 echo "$as_me: creating $ac_file" >&6;}
25127 case $ac_tag in
25128 *:-:* | *:-) cat >"$tmp/stdin";;
25129 esac
25131 esac
25133 ac_dir=`$as_dirname -- "$ac_file" ||
25134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25135 X"$ac_file" : 'X\(//\)[^/]' \| \
25136 X"$ac_file" : 'X\(//\)$' \| \
25137 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25138 echo X"$ac_file" |
25139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25140 s//\1/
25143 /^X\(\/\/\)[^/].*/{
25144 s//\1/
25147 /^X\(\/\/\)$/{
25148 s//\1/
25151 /^X\(\/\).*/{
25152 s//\1/
25155 s/.*/./; q'`
25156 { as_dir="$ac_dir"
25157 case $as_dir in #(
25158 -*) as_dir=./$as_dir;;
25159 esac
25160 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25161 as_dirs=
25162 while :; do
25163 case $as_dir in #(
25164 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25165 *) as_qdir=$as_dir;;
25166 esac
25167 as_dirs="'$as_qdir' $as_dirs"
25168 as_dir=`$as_dirname -- "$as_dir" ||
25169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25170 X"$as_dir" : 'X\(//\)[^/]' \| \
25171 X"$as_dir" : 'X\(//\)$' \| \
25172 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25173 echo X"$as_dir" |
25174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25175 s//\1/
25178 /^X\(\/\/\)[^/].*/{
25179 s//\1/
25182 /^X\(\/\/\)$/{
25183 s//\1/
25186 /^X\(\/\).*/{
25187 s//\1/
25190 s/.*/./; q'`
25191 test -d "$as_dir" && break
25192 done
25193 test -z "$as_dirs" || eval "mkdir $as_dirs"
25194 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25195 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25196 { (exit 1); exit 1; }; }; }
25197 ac_builddir=.
25199 case "$ac_dir" in
25200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25202 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25203 # A ".." for each directory in $ac_dir_suffix.
25204 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25205 case $ac_top_builddir_sub in
25206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25208 esac ;;
25209 esac
25210 ac_abs_top_builddir=$ac_pwd
25211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25212 # for backward compatibility:
25213 ac_top_builddir=$ac_top_build_prefix
25215 case $srcdir in
25216 .) # We are building in place.
25217 ac_srcdir=.
25218 ac_top_srcdir=$ac_top_builddir_sub
25219 ac_abs_top_srcdir=$ac_pwd ;;
25220 [\\/]* | ?:[\\/]* ) # Absolute name.
25221 ac_srcdir=$srcdir$ac_dir_suffix;
25222 ac_top_srcdir=$srcdir
25223 ac_abs_top_srcdir=$srcdir ;;
25224 *) # Relative name.
25225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25226 ac_top_srcdir=$ac_top_build_prefix$srcdir
25227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25228 esac
25229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25232 case $ac_mode in
25235 # CONFIG_FILE
25238 case $INSTALL in
25239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25240 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25241 esac
25242 _ACEOF
25244 cat >>$CONFIG_STATUS <<\_ACEOF
25245 # If the template does not know about datarootdir, expand it.
25246 # FIXME: This hack should be removed a few years after 2.60.
25247 ac_datarootdir_hack=; ac_datarootdir_seen=
25249 case `sed -n '/datarootdir/ {
25253 /@datadir@/p
25254 /@docdir@/p
25255 /@infodir@/p
25256 /@localedir@/p
25257 /@mandir@/p
25258 ' $ac_file_inputs` in
25259 *datarootdir*) ac_datarootdir_seen=yes;;
25260 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25261 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25262 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25263 _ACEOF
25264 cat >>$CONFIG_STATUS <<_ACEOF
25265 ac_datarootdir_hack='
25266 s&@datadir@&$datadir&g
25267 s&@docdir@&$docdir&g
25268 s&@infodir@&$infodir&g
25269 s&@localedir@&$localedir&g
25270 s&@mandir@&$mandir&g
25271 s&\\\${datarootdir}&$datarootdir&g' ;;
25272 esac
25273 _ACEOF
25275 # Neutralize VPATH when `$srcdir' = `.'.
25276 # Shell code in configure.ac might set extrasub.
25277 # FIXME: do we really want to maintain this feature?
25278 cat >>$CONFIG_STATUS <<_ACEOF
25279 sed "$ac_vpsub
25280 $extrasub
25281 _ACEOF
25282 cat >>$CONFIG_STATUS <<\_ACEOF
25284 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25285 s&@configure_input@&$configure_input&;t t
25286 s&@top_builddir@&$ac_top_builddir_sub&;t t
25287 s&@srcdir@&$ac_srcdir&;t t
25288 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25289 s&@top_srcdir@&$ac_top_srcdir&;t t
25290 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25291 s&@builddir@&$ac_builddir&;t t
25292 s&@abs_builddir@&$ac_abs_builddir&;t t
25293 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25294 s&@INSTALL@&$ac_INSTALL&;t t
25295 $ac_datarootdir_hack
25296 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25298 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25299 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25300 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25301 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25302 which seems to be undefined. Please make sure it is defined." >&5
25303 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25304 which seems to be undefined. Please make sure it is defined." >&2;}
25306 rm -f "$tmp/stdin"
25307 case $ac_file in
25308 -) cat "$tmp/out"; rm -f "$tmp/out";;
25309 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25310 esac
25314 # CONFIG_HEADER
25316 _ACEOF
25318 # Transform confdefs.h into a sed script `conftest.defines', that
25319 # substitutes the proper values into config.h.in to produce config.h.
25320 rm -f conftest.defines conftest.tail
25321 # First, append a space to every undef/define line, to ease matching.
25322 echo 's/$/ /' >conftest.defines
25323 # Then, protect against being on the right side of a sed subst, or in
25324 # an unquoted here document, in config.status. If some macros were
25325 # called several times there might be several #defines for the same
25326 # symbol, which is useless. But do not sort them, since the last
25327 # AC_DEFINE must be honored.
25328 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25329 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25330 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25331 # PARAMS is the parameter list in the macro definition--in most cases, it's
25332 # just an empty string.
25333 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25334 ac_dB='\\)[ (].*,\\1define\\2'
25335 ac_dC=' '
25336 ac_dD=' ,'
25338 uniq confdefs.h |
25339 sed -n '
25340 t rset
25341 :rset
25342 s/^[ ]*#[ ]*define[ ][ ]*//
25343 t ok
25346 s/[\\&,]/\\&/g
25347 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25348 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25349 ' >>conftest.defines
25351 # Remove the space that was appended to ease matching.
25352 # Then replace #undef with comments. This is necessary, for
25353 # example, in the case of _POSIX_SOURCE, which is predefined and required
25354 # on some systems where configure will not decide to define it.
25355 # (The regexp can be short, since the line contains either #define or #undef.)
25356 echo 's/ $//
25357 s,^[ #]*u.*,/* & */,' >>conftest.defines
25359 # Break up conftest.defines:
25360 ac_max_sed_lines=50
25362 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25363 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25364 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25365 # et cetera.
25366 ac_in='$ac_file_inputs'
25367 ac_out='"$tmp/out1"'
25368 ac_nxt='"$tmp/out2"'
25370 while :
25372 # Write a here document:
25373 cat >>$CONFIG_STATUS <<_ACEOF
25374 # First, check the format of the line:
25375 cat >"\$tmp/defines.sed" <<\\CEOF
25376 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25377 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25379 :def
25380 _ACEOF
25381 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25382 echo 'CEOF
25383 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25384 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25385 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25386 grep . conftest.tail >/dev/null || break
25387 rm -f conftest.defines
25388 mv conftest.tail conftest.defines
25389 done
25390 rm -f conftest.defines conftest.tail
25392 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25393 cat >>$CONFIG_STATUS <<\_ACEOF
25394 if test x"$ac_file" != x-; then
25395 echo "/* $configure_input */" >"$tmp/config.h"
25396 cat "$ac_result" >>"$tmp/config.h"
25397 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25398 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25399 echo "$as_me: $ac_file is unchanged" >&6;}
25400 else
25401 rm -f $ac_file
25402 mv "$tmp/config.h" $ac_file
25404 else
25405 echo "/* $configure_input */"
25406 cat "$ac_result"
25408 rm -f "$tmp/out12"
25411 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25412 echo "$as_me: executing $ac_file commands" >&6;}
25414 esac
25417 case $ac_file$ac_mode in
25418 "default":C)
25420 ### Make the necessary directories, if they don't exist.
25421 for dir in etc lisp ; do
25422 test -d ${dir} || mkdir ${dir}
25423 done
25425 # Build src/Makefile from ${srcdir}/src/Makefile.c
25426 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25427 # This must be done after src/config.h is built, since we rely on that file.
25429 # Now get this: Some word that is part of the ${srcdir} directory name
25430 # or the ${configuration} value might, just might, happen to be an
25431 # identifier like `sun4' or `i386' or something, and be predefined by
25432 # the C preprocessor to some helpful value like 1, or maybe the empty
25433 # string. Needless to say consequent macro substitutions are less
25434 # than conducive to the makefile finding the correct directory.
25435 undefs="`echo $top_srcdir $configuration $canonical |
25436 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25437 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25440 echo creating src/epaths.h
25441 ${MAKE-make} epaths-force
25443 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25444 # `..' to `. .' unless invoked with -traditional
25446 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25447 CPPFLAGS="$CPPFLAGS -traditional"
25450 echo creating lib-src/Makefile
25451 ( cd lib-src
25452 rm -f junk.c junk1.c junk2.c
25453 sed -e '/start of cpp stuff/q' \
25454 < Makefile.c > junk1.c
25455 sed -e '1,/start of cpp stuff/d'\
25456 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25457 < Makefile.c > junk.c
25458 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25459 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25460 cat junk1.c junk2.c > Makefile.new
25461 rm -f junk.c junk1.c junk2.c
25462 chmod 444 Makefile.new
25463 mv -f Makefile.new Makefile
25466 echo creating src/Makefile
25467 ( cd src
25468 rm -f junk.c junk1.c junk2.c
25469 sed -e '/start of cpp stuff/q' \
25470 < Makefile.c > junk1.c
25471 sed -e '1,/start of cpp stuff/d'\
25472 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25473 < Makefile.c > junk.c
25474 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25475 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25476 cat junk1.c junk2.c > Makefile.new
25477 rm -f junk.c junk1.c junk2.c
25478 chmod 444 Makefile.new
25479 mv -f Makefile.new Makefile
25482 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25483 echo creating src/.gdbinit
25484 echo source $srcdir/src/.gdbinit > src/.gdbinit
25487 # This is how we know whether to re-run configure in certain cases.
25488 touch src/config.stamp
25492 esac
25493 done # for ac_tag
25496 { (exit 0); exit 0; }
25497 _ACEOF
25498 chmod +x $CONFIG_STATUS
25499 ac_clean_files=$ac_clean_files_save
25502 # configure is writing to config.log, and then calls config.status.
25503 # config.status does its own redirection, appending to config.log.
25504 # Unfortunately, on DOS this fails, as config.log is still kept open
25505 # by configure, so config.status won't be able to write to it; its
25506 # output is simply discarded. So we exec the FD to /dev/null,
25507 # effectively closing config.log, so it can be properly (re)opened and
25508 # appended to by config.status. When coming back to configure, we
25509 # need to make the FD available again.
25510 if test "$no_create" != yes; then
25511 ac_cs_success=:
25512 ac_config_status_args=
25513 test "$silent" = yes &&
25514 ac_config_status_args="$ac_config_status_args --quiet"
25515 exec 5>/dev/null
25516 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25517 exec 5>>config.log
25518 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25519 # would make configure fail if this is the last instruction.
25520 $ac_cs_success || { (exit 1); exit 1; }