*** empty log message ***
[emacs.git] / configure
blobd0ed64546d6868c179f57253b7bbd6588b05227e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
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 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 ALLOCA
695 liblockfile
696 LIBOBJS
697 NEED_SETGID
698 KMEM_GROUP
699 GETLOADAVG_LIBS
700 GETOPT_H
701 GETOPTOBJS
702 version
703 configuration
704 canonical
705 srcdir
706 lispdir
707 locallisppath
708 lisppath
709 x_default_search_path
710 etcdir
711 archlibdir
712 bitmapdir
713 gamedir
714 gameuser
715 c_switch_system
716 c_switch_machine
717 LD_SWITCH_X_SITE
718 LD_SWITCH_X_SITE_AUX
719 C_SWITCH_X_SITE
720 X_TOOLKIT_TYPE
721 machfile
722 opsysfile
723 carbon_appdir
724 LTLIBOBJS'
725 ac_subst_files=''
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
735 XMKMF'
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
784 ac_prev=
785 ac_dashdash=
786 for ac_option
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
804 ac_dashdash=yes ;;
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
823 --config-cache | -C)
824 cache_file=config.cache ;;
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
838 -disable-* | --disable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=no ;;
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
857 -enable-* | --enable-*)
858 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_$ac_feature=\$ac_optarg ;;
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1054 -with-* | --with-*)
1055 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=\$ac_optarg ;;
1063 -without-* | --without-*)
1064 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=no ;;
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1095 *=*)
1096 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1112 esac
1113 done
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1121 # Be sure to have absolute directory names.
1122 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1127 eval ac_val=\$$ac_var
1128 case $ac_val in
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1131 esac
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1134 done
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1139 build=$build_alias
1140 host=$host_alias
1141 target=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x; then
1145 if test "x$build_alias" = x; then
1146 cross_compiling=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1150 cross_compiling=yes
1154 ac_tool_prefix=
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157 test "$silent" = yes && exec 6>/dev/null
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 echo X"$0" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1188 /^X\(\/\/\)$/{
1189 s//\1/
1192 /^X\(\/\).*/{
1193 s//\1/
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1201 else
1202 ac_srcdir_defaulted=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1209 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 ac_abs_confdir=`(
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1213 pwd)`
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1221 case $srcdir in
1222 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 esac
1224 for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 done
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238 \`configure' configures this package to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1247 Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 [PREFIX]
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1291 _ACEOF
1293 cat <<\_ACEOF
1295 Program names:
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1300 X features:
1301 --x-includes=DIR X include files are in DIR
1302 --x-libraries=DIR X library files are in DIR
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1310 if test -n "$ac_init_help"; then
1312 cat <<\_ACEOF
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-carbon-app[=DIR] [DIR=/Application]
1318 specify install directory for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search for lisp files
1324 specific to this site
1325 --disable-largefile omit support for large files
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc don't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version 5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server host
1335 --without-sound don't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1359 CPP C preprocessor
1360 XMKMF Path to xmkmf, Makefile generator for X Window System
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1365 _ACEOF
1366 ac_status=$?
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1373 ac_builddir=.
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 configure
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1442 $ $0 $@
1444 _ACEOF
1445 exec 5>>config.log
1447 cat <<_ASUNAME
1448 ## --------- ##
1449 ## Platform. ##
1450 ## --------- ##
1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1469 _ASUNAME
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1477 done
1478 IFS=$as_save_IFS
1480 } >&5
1482 cat >&5 <<_ACEOF
1485 ## ----------- ##
1486 ## Core tests. ##
1487 ## ----------- ##
1489 _ACEOF
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_configure_args=
1498 ac_configure_args0=
1499 ac_configure_args1=
1500 ac_must_keep_next=false
1501 for ac_pass in 1 2
1503 for ac_arg
1505 case $ac_arg in
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 continue ;;
1510 *\'*)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1512 esac
1513 case $ac_pass in
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1519 else
1520 case $ac_arg in
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 esac
1529 -* ) ac_must_keep_next=true ;;
1530 esac
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1534 esac
1535 done
1536 done
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1548 echo
1550 cat <<\_ASBOX
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1554 _ASBOX
1555 echo
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1559 eval ac_val=\$$ac_var
1560 case $ac_val in #(
1561 *${as_nl}*)
1562 case $ac_var in #(
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 esac
1566 case $ac_var in #(
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1569 esac ;;
1570 esac
1571 done
1572 (set) 2>&1 |
1573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1575 sed -n \
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 ;; #(
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1582 esac |
1583 sort
1585 echo
1587 cat <<\_ASBOX
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1591 _ASBOX
1592 echo
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1603 if test -n "$ac_subst_files"; then
1604 cat <<\_ASBOX
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1608 _ASBOX
1609 echo
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1621 if test -s confdefs.h; then
1622 cat <<\_ASBOX
1623 ## ----------- ##
1624 ## confdefs.h. ##
1625 ## ----------- ##
1626 _ASBOX
1627 echo
1628 cat confdefs.h
1629 echo
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1634 } >&5
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 exit $exit_status
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 done
1642 ac_signal=0
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 _ACEOF
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 _ACEOF
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 _ACEOF
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 _ACEOF
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 _ACEOF
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 else
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1684 shift
1685 for ac_site_file
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1691 . "$ac_site_file"
1693 done
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1701 case $cache_file in
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1704 esac
1706 else
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1709 >$cache_file
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1716 # value.
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1724 set,)
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1726 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,set)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1730 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,);;
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1737 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1738 echo "$as_me: former value: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1740 echo "$as_me: current value: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1742 fi;;
1743 esac
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1746 case $ac_new_val in
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1749 esac
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 esac
1755 done
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1758 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1759 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s,x,x', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1799 _ACEOF
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1801 rm -f conftest.sed
1804 lispdir='${datadir}/emacs/${version}/lisp'
1805 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1806 '${datadir}/emacs/site-lisp'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1808 etcdir='${datadir}/emacs/${version}/etc'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs/${version}/etc'
1811 gamedir='${localstatedir}/games/emacs'
1813 gameuser=games
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1818 withval=$with_gcc;
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1827 _ACEOF
1829 else :
1831 else
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1834 _ACEOF
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1843 #define KERBEROS 1
1844 _ACEOF
1850 # Check whether --with-kerberos5 was given.
1851 if test "${with_kerberos5+set}" = set; then
1852 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1853 if test "${with_kerberos+set}" != set; then
1854 with_kerberos=yes
1855 cat >>confdefs.h <<\_ACEOF
1856 #define KERBEROS 1
1857 _ACEOF
1862 cat >>confdefs.h <<\_ACEOF
1863 #define KERBEROS5 1
1864 _ACEOF
1869 # Check whether --with-hesiod was given.
1870 if test "${with_hesiod+set}" = set; then
1871 withval=$with_hesiod;
1872 cat >>confdefs.h <<\_ACEOF
1873 #define HESIOD 1
1874 _ACEOF
1880 # Check whether --with-sound was given.
1881 if test "${with_sound+set}" = set; then
1882 withval=$with_sound;
1887 # Check whether --with-x-toolkit was given.
1888 if test "${with_x_toolkit+set}" = set; then
1889 withval=$with_x_toolkit; case "${withval}" in
1890 y | ye | yes ) val=athena ;;
1891 n | no ) val=no ;;
1892 l | lu | luc | luci | lucid ) val=lucid ;;
1893 a | at | ath | athe | athen | athena ) val=athena ;;
1894 m | mo | mot | moti | motif ) val=motif ;;
1895 g | gt | gtk ) val=gtk ;;
1897 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1898 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1899 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1900 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1901 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1902 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1903 { (exit 1); exit 1; }; }
1905 esac
1906 with_x_toolkit=$val
1911 # Check whether --with-xpm was given.
1912 if test "${with_xpm+set}" = set; then
1913 withval=$with_xpm;
1917 # Check whether --with-jpeg was given.
1918 if test "${with_jpeg+set}" = set; then
1919 withval=$with_jpeg;
1923 # Check whether --with-tiff was given.
1924 if test "${with_tiff+set}" = set; then
1925 withval=$with_tiff;
1929 # Check whether --with-gif was given.
1930 if test "${with_gif+set}" = set; then
1931 withval=$with_gif;
1935 # Check whether --with-png was given.
1936 if test "${with_png+set}" = set; then
1937 withval=$with_png;
1941 # Check whether --with-gtk was given.
1942 if test "${with_gtk+set}" = set; then
1943 withval=$with_gtk;
1947 # Check whether --with-pkg-config-prog was given.
1948 if test "${with_pkg_config_prog+set}" = set; then
1949 withval=$with_pkg_config_prog;
1953 # Check whether --with-toolkit-scroll-bars was given.
1954 if test "${with_toolkit_scroll_bars+set}" = set; then
1955 withval=$with_toolkit_scroll_bars;
1959 # Check whether --with-xim was given.
1960 if test "${with_xim+set}" = set; then
1961 withval=$with_xim;
1965 # Check whether --with-carbon was given.
1966 if test "${with_carbon+set}" = set; then
1967 withval=$with_carbon;
1970 # Check whether --enable-carbon-app was given.
1971 if test "${enable_carbon_app+set}" = set; then
1972 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1976 # Check whether --enable-asserts was given.
1977 if test "${enable_asserts+set}" = set; then
1978 enableval=$enable_asserts; USE_XASSERTS=$enableval
1979 else
1980 USE_XASSERTS=no
1984 # Check whether --enable-maintainer-mode was given.
1985 if test "${enable_maintainer_mode+set}" = set; then
1986 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1987 else
1988 USE_MAINTAINER_MODE=no
1991 if test $USE_MAINTAINER_MODE = yes; then
1992 MAINT=
1993 else
1994 MAINT=#
1998 # Check whether --enable-locallisppath was given.
1999 if test "${enable_locallisppath+set}" = set; then
2000 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2001 locallisppath=
2002 elif test "${enableval}" != "yes"; then
2003 locallisppath=${enableval}
2008 #### Make srcdir absolute, if it isn't already. It's important to
2009 #### avoid running the path through pwd unnecessarily, since pwd can
2010 #### give you automounter prefixes, which can go away. We do all this
2011 #### so Emacs can find its files when run uninstalled.
2012 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2013 unset CDPATH
2014 case "${srcdir}" in
2015 /* ) ;;
2017 ## We may be able to use the $PWD environment variable to make this
2018 ## absolute. But sometimes PWD is inaccurate.
2019 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2020 ## but that tested only for a well-formed and valid PWD,
2021 ## it did not object when PWD was well-formed and valid but just wrong.
2022 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2023 then
2024 srcdir="$PWD"
2025 else
2026 srcdir="`(cd ${srcdir}; pwd)`"
2029 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2030 esac
2032 #### Check if the source directory already has a configured system in it.
2033 if test `pwd` != `(cd ${srcdir} && pwd)` \
2034 && test -f "${srcdir}/src/config.h" ; then
2035 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2036 as a build directory right now; it has been configured in its own
2037 right. To configure in another directory as well, you MUST
2038 use GNU make. If you do not have GNU make, then you must
2039 now do \`make distclean' in ${srcdir},
2040 and then run $0 again." >&5
2041 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2042 as a build directory right now; it has been configured in its own
2043 right. To configure in another directory as well, you MUST
2044 use GNU make. If you do not have GNU make, then you must
2045 now do \`make distclean' in ${srcdir},
2046 and then run $0 again." >&2;}
2049 #### Given the configuration name, set machfile and opsysfile to the
2050 #### names of the m/*.h and s/*.h files we should use.
2052 ### Canonicalize the configuration name.
2054 ac_aux_dir=
2055 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2056 if test -f "$ac_dir/install-sh"; then
2057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/install-sh -c"
2059 break
2060 elif test -f "$ac_dir/install.sh"; then
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/install.sh -c"
2063 break
2064 elif test -f "$ac_dir/shtool"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/shtool install -c"
2067 break
2069 done
2070 if test -z "$ac_aux_dir"; then
2071 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2072 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2073 { (exit 1); exit 1; }; }
2076 # These three variables are undocumented and unsupported,
2077 # and are intended to be withdrawn in a future Autoconf release.
2078 # They can cause serious problems if a builder's source tree is in a directory
2079 # whose full name contains unusual characters.
2080 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2081 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2082 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2085 # Make sure we can run config.sub.
2086 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2087 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: checking build system type" >&5
2092 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_build+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 ac_build_alias=$build_alias
2097 test "x$ac_build_alias" = x &&
2098 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2099 test "x$ac_build_alias" = x &&
2100 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102 { (exit 1); exit 1; }; }
2103 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2106 { (exit 1); exit 1; }; }
2109 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110 echo "${ECHO_T}$ac_cv_build" >&6; }
2111 case $ac_cv_build in
2112 *-*-*) ;;
2113 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114 echo "$as_me: error: invalid value of canonical build" >&2;}
2115 { (exit 1); exit 1; }; };;
2116 esac
2117 build=$ac_cv_build
2118 ac_save_IFS=$IFS; IFS='-'
2119 set x $ac_cv_build
2120 shift
2121 build_cpu=$1
2122 build_vendor=$2
2123 shift; shift
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2126 build_os=$*
2127 IFS=$ac_save_IFS
2128 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2131 { echo "$as_me:$LINENO: checking host system type" >&5
2132 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_host+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 if test "x$host_alias" = x; then
2137 ac_cv_host=$ac_cv_build
2138 else
2139 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2142 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147 echo "${ECHO_T}$ac_cv_host" >&6; }
2148 case $ac_cv_host in
2149 *-*-*) ;;
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151 echo "$as_me: error: invalid value of canonical host" >&2;}
2152 { (exit 1); exit 1; }; };;
2153 esac
2154 host=$ac_cv_host
2155 ac_save_IFS=$IFS; IFS='-'
2156 set x $ac_cv_host
2157 shift
2158 host_cpu=$1
2159 host_vendor=$2
2160 shift; shift
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2163 host_os=$*
2164 IFS=$ac_save_IFS
2165 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2168 canonical=$host
2169 configuration=${host_alias-$host}
2173 ### If you add support for a new configuration, add code to this
2174 ### switch statement to recognize your configuration name and select
2175 ### the appropriate operating system and machine description files.
2177 ### You would hope that you could choose an m/*.h file pretty much
2178 ### based on the machine portion of the configuration name, and an s-
2179 ### file based on the operating system portion. However, it turns out
2180 ### that each m/*.h file is pretty manufacturer-specific - for
2181 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2182 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2183 ### machines. So we basically have to have a special case for each
2184 ### configuration name.
2186 ### As far as handling version numbers on operating systems is
2187 ### concerned, make sure things will fail in a fixable way. If
2188 ### /etc/MACHINES doesn't say anything about version numbers, be
2189 ### prepared to handle anything reasonably. If version numbers
2190 ### matter, be sure /etc/MACHINES says something about it.
2192 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2193 ### "System V Release 4"; he writes, "The old convention encouraged
2194 ### confusion between `system' and `release' levels'."
2196 machine='' opsys='' unported=no
2197 case "${canonical}" in
2199 ## FreeBSD ports
2200 *-*-freebsd* )
2201 opsys=freebsd
2202 case "${canonical}" in
2203 alpha*-*-freebsd*) machine=alpha ;;
2204 ia64-*-freebsd*) machine=ia64 ;;
2205 sparc64-*-freebsd*) machine=sparc ;;
2206 powerpc-*-freebsd*) machine=macppc ;;
2207 i[3456]86-*-freebsd*) machine=intel386 ;;
2208 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2209 esac
2212 ## NetBSD ports
2213 *-*-netbsd* )
2214 opsys=netbsd
2215 if test -f /usr/lib/crti.o; then
2217 cat >>confdefs.h <<\_ACEOF
2218 #define HAVE_CRTIN
2219 _ACEOF
2223 case "${canonical}" in
2224 alpha*-*-netbsd*) machine=alpha ;;
2225 i[3456]86-*-netbsd*) machine=intel386 ;;
2226 m68k-*-netbsd*)
2227 # This is somewhat bogus.
2228 machine=hp9000s300 ;;
2229 mips-*-netbsd*) machine=pmax ;;
2230 mipsel-*-netbsd*) machine=pmax ;;
2231 mipseb-*-netbsd*) machine=pmax ;;
2232 ns32k-*-netbsd*) machine=ns32000 ;;
2233 powerpc-*-netbsd*) machine=macppc ;;
2234 sparc*-*-netbsd*) machine=sparc ;;
2235 vax-*-netbsd*) machine=vax ;;
2236 arm-*-netbsd*) machine=arm ;;
2237 x86_64-*-netbsd*) machine=amdx86-64 ;;
2238 hppa-*-netbsd*) machine=hp800 ;;
2239 shle-*-netbsd*) machine=sh3el ;;
2240 esac
2243 ## OpenBSD ports
2244 *-*-openbsd* )
2245 opsys=openbsd
2246 case "${canonical}" in
2247 alpha*-*-openbsd*) machine=alpha ;;
2248 i386-*-openbsd*) machine=intel386 ;;
2249 x86_64-*-openbsd*) machine=amdx86-64 ;;
2250 m68k-*-openbsd*) machine=hp9000s300 ;;
2251 mipsel-*-openbsd*) machine=pmax ;;
2252 ns32k-*-openbsd*) machine=ns32000 ;;
2253 sparc-*-openbsd*) machine=sparc ;;
2254 vax-*-openbsd*) machine=vax ;;
2255 esac
2258 ## LynxOS ports
2259 *-*-lynxos* )
2260 opsys=lynxos
2261 case "${canonical}" in
2262 i[3456]86-*-lynxos*) machine=intel386 ;;
2263 powerpc-*-lynxos*) machine=powerpc ;;
2264 esac
2267 ## Acorn RISCiX:
2268 arm-acorn-riscix1.1* )
2269 machine=acorn opsys=riscix1-1
2271 arm-acorn-riscix1.2* | arm-acorn-riscix )
2272 ## This name is riscix12 instead of riscix1.2
2273 ## to avoid a file name conflict on MSDOS.
2274 machine=acorn opsys=riscix12
2277 ## BSDI ports
2278 *-*-bsdi* )
2279 opsys=bsdi
2280 case "${canonical}" in
2281 i[345]86-*-bsdi*) machine=intel386 ;;
2282 sparc-*-bsdi*) machine=sparc ;;
2283 powerpc-*-bsdi*) machine=macppc ;;
2284 esac
2285 case "${canonical}" in
2286 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2287 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2288 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2289 *-*-bsdi3* ) opsys=bsdos3 ;;
2290 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2291 esac
2294 ## Alliant machines
2295 ## Strictly speaking, we need the version of the alliant operating
2296 ## system to choose the right machine file, but currently the
2297 ## configuration name doesn't tell us enough to choose the right
2298 ## one; we need to give alliants their own operating system name to
2299 ## do this right. When someone cares, they can help us.
2300 fx80-alliant-* )
2301 machine=alliant4 opsys=bsd4-2
2303 i860-alliant-* )
2304 machine=alliant-2800 opsys=bsd4-3
2307 ## Alpha (DEC) machines.
2308 alpha*-dec-osf* )
2309 machine=alpha opsys=osf1
2310 # This is needed to find X11R6.1 libraries for certain tests.
2311 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2312 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2313 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2314 # due to non-traditional preprocessing with the current compiler
2315 # defaults. OSF 4 can also have that compiler version, and there
2316 # seems always to have been a usable /usr/bin/cpp.
2317 NON_GNU_CPP=/usr/bin/cpp
2318 case "${canonical}" in
2319 alpha*-dec-osf[5-9]*)
2320 opsys=osf5-0 ;;
2321 esac
2324 alpha*-*-linux-gnu* )
2325 machine=alpha opsys=gnu-linux
2328 arm*-*-linux-gnu* )
2329 machine=arm opsys=gnu-linux
2332 ## Altos 3068
2333 m68*-altos-sysv* )
2334 machine=altos opsys=usg5-2
2337 ## Amdahl UTS
2338 580-amdahl-sysv* )
2339 machine=amdahl opsys=usg5-2-2
2342 ## Apollo, Domain/OS
2343 m68*-apollo-* )
2344 machine=apollo opsys=bsd4-3
2347 ## Apple Darwin / Mac OS X
2348 *-apple-darwin* )
2349 case "${canonical}" in
2350 i[3456]86-* ) machine=intel386 ;;
2351 powerpc-* ) machine=powermac ;;
2352 * ) unported=yes ;;
2353 esac
2354 opsys=darwin
2355 # Define CPP as follows to make autoconf work correctly.
2356 CPP="${CC-cc} -E -no-cpp-precomp"
2357 # Use fink packages if available.
2358 if test -d /sw/include && test -d /sw/lib; then
2359 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2360 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2361 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2365 ## AT&T 3b2, 3b5, 3b15, 3b20
2366 we32k-att-sysv* )
2367 machine=att3b opsys=usg5-2-2
2370 ## AT&T 3b1 - The Mighty Unix PC!
2371 m68*-att-sysv* )
2372 machine=7300 opsys=usg5-2-2
2375 ## Bull dpx20
2376 rs6000-bull-bosx* )
2377 machine=ibmrs6000 opsys=aix3-2
2380 ## Bull dpx2
2381 m68*-bull-sysv3* )
2382 machine=dpx2 opsys=usg5-3
2385 ## Bull sps7
2386 m68*-bull-sysv2* )
2387 machine=sps7 opsys=usg5-2
2390 ## CCI 5/32, 6/32 -- see "Tahoe".
2392 ## Celerity
2393 ## I don't know what configuration name to use for this; config.sub
2394 ## doesn't seem to know anything about it. Hey, Celerity users, get
2395 ## in touch with us!
2396 celerity-celerity-bsd* )
2397 machine=celerity opsys=bsd4-2
2400 ## Clipper
2401 ## What operating systems does this chip run that Emacs has been
2402 ## tested on?
2403 clipper-* )
2404 machine=clipper
2405 ## We'll use the catch-all code at the bottom to guess the
2406 ## operating system.
2409 ## Compaq Nonstop
2410 mips-compaq-nonstopux* )
2411 machine=nonstopux opsys=nonstopux
2414 ## Convex
2415 *-convex-bsd* | *-convex-convexos* )
2416 machine=convex opsys=bsd4-3
2417 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2418 NON_GNU_CPP="cc -E -P"
2421 ## Cubix QBx/386
2422 i[3456]86-cubix-sysv* )
2423 machine=intel386 opsys=usg5-3
2426 ## Cydra 5
2427 cydra*-cydrome-sysv* )
2428 machine=cydra5 opsys=usg5-3
2431 ## Data General AViiON Machines
2432 ## DG changed naming conventions with the release of 5.4.4.10, they
2433 ## dropped the initial 5.4 but left the intervening R. Because of the
2434 ## R this shouldn't conflict with older versions of the OS (which I
2435 ## think were named like dgux4.*). In addition, DG new AViiONs series
2436 ## uses either Motorola M88k or Intel Pentium CPUs.
2437 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2438 machine=aviion opsys=dgux4
2440 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2441 ## This name is dgux5-4-3 instead of dgux5-4r3
2442 ## to avoid a file name conflict on MSDOS.
2443 machine=aviion opsys=dgux5-4-3
2445 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2446 machine=aviion opsys=dgux5-4r2
2448 m88k-dg-dgux* )
2449 machine=aviion opsys=dgux
2452 ## Data General AViiON Intel (x86) Machines
2453 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2454 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2455 i[345]86-dg-dguxR4* )
2456 machine=aviion-intel opsys=dgux4
2459 ## DECstations
2460 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2461 machine=pmax opsys=bsd4-2
2463 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2464 machine=pmax opsys=bsd4-3
2466 mips-dec-ultrix* )
2467 machine=pmax opsys=ultrix4-3
2469 mips-dec-osf* )
2470 machine=pmax opsys=osf1
2472 mips-dec-mach_bsd4.3* )
2473 machine=pmax opsys=mach-bsd4-3
2476 ## Motorola Delta machines
2477 m68k-motorola-sysv* | m68000-motorola-sysv* )
2478 machine=delta opsys=usg5-3
2479 if test -z "`type gnucc | grep 'not found'`"
2480 then
2481 if test -s /etc/167config
2482 then CC="gnucc -m68040"
2483 else CC="gnucc -m68881"
2485 else
2486 if test -z "`type gcc | grep 'not found'`"
2487 then CC=gcc
2488 else CC=cc
2492 m88k-motorola-sysv4* )
2493 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2494 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2495 # I hope there are not other 4.0 versions for this machine
2496 # which really need usg5-4 instead.
2497 machine=delta88k opsys=usg5-4-2
2499 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2500 machine=delta88k opsys=usg5-3
2503 ## Dual machines
2504 m68*-dual-sysv* )
2505 machine=dual opsys=usg5-2
2507 m68*-dual-uniplus* )
2508 machine=dual opsys=unipl5-2
2511 ## Elxsi 6400
2512 elxsi-elxsi-sysv* )
2513 machine=elxsi opsys=usg5-2
2516 ## Encore machines
2517 ns16k-encore-bsd* )
2518 machine=ns16000 opsys=umax
2521 ## The GEC 63 - apparently, this port isn't really finished yet.
2522 # I'm sure we finished off the last of the machines, though. -- fx
2524 ## Gould Power Node and NP1
2525 pn-gould-bsd4.2* )
2526 machine=gould opsys=bsd4-2
2528 pn-gould-bsd4.3* )
2529 machine=gould opsys=bsd4-3
2531 np1-gould-bsd* )
2532 machine=gould-np1 opsys=bsd4-3
2535 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2536 ## as far as Emacs is concerned).
2537 m88k-harris-cxux* )
2538 # Build needs to be different on 7.0 and later releases
2539 case "`uname -r`" in
2540 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2541 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2542 esac
2543 NON_GNU_CPP="/lib/cpp"
2545 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2546 m68k-harris-cxux* )
2547 machine=nh3000 opsys=cxux
2549 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2550 powerpc-harris-powerunix )
2551 machine=nh6000 opsys=powerunix
2552 NON_GNU_CPP="cc -Xo -E -P"
2554 ## Honeywell XPS100
2555 xps*-honeywell-sysv* )
2556 machine=xps100 opsys=usg5-2
2559 ## HP 9000 series 200 or 300
2560 m68*-hp-bsd* )
2561 machine=hp9000s300 opsys=bsd4-3
2563 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2564 m68*-hp-hpux* )
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=hp9000s300 opsys=hpux8 ;;
2569 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2570 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2571 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2572 *) machine=hp9000s300 opsys=hpux ;;
2573 esac
2576 hppa*-*-linux-gnu* )
2577 machine=hp800 opsys=gnu-linux
2580 hppa*-*-nextstep* )
2581 machine=hp800 opsys=nextstep
2584 ## Orion machines
2585 orion-orion-bsd* )
2586 machine=orion opsys=bsd4-2
2588 clipper-orion-bsd* )
2589 machine=orion105 opsys=bsd4-2
2592 ## IBM machines
2593 i[3456]86-ibm-aix1.1* )
2594 machine=ibmps2-aix opsys=usg5-2-2
2596 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2597 machine=ibmps2-aix opsys=usg5-3
2599 i370-ibm-aix*)
2600 machine=ibm370aix opsys=usg5-3
2602 s390-*-linux-gnu* )
2603 machine=ibms390 opsys=gnu-linux
2605 s390x-*-linux-gnu* )
2606 machine=ibms390x opsys=gnu-linux
2608 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2609 machine=ibmrs6000 opsys=aix3-1
2611 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2612 machine=ibmrs6000 opsys=aix3-2-5
2614 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2615 machine=ibmrs6000 opsys=aix4-1
2617 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2618 machine=ibmrs6000 opsys=aix4-2
2620 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2621 machine=ibmrs6000 opsys=aix4-2
2623 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2624 machine=ibmrs6000 opsys=aix4
2626 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2627 machine=ibmrs6000 opsys=aix4-1
2629 rs6000-ibm-aix* | powerpc-ibm-aix* )
2630 machine=ibmrs6000 opsys=aix3-2
2632 romp-ibm-bsd4.3* )
2633 machine=ibmrt opsys=bsd4-3
2635 romp-ibm-bsd4.2* )
2636 machine=ibmrt opsys=bsd4-2
2638 romp-ibm-aos4.3* )
2639 machine=ibmrt opsys=bsd4-3
2641 romp-ibm-aos4.2* )
2642 machine=ibmrt opsys=bsd4-2
2644 romp-ibm-aos* )
2645 machine=ibmrt opsys=bsd4-3
2647 romp-ibm-bsd* )
2648 machine=ibmrt opsys=bsd4-3
2650 romp-ibm-aix* )
2651 machine=ibmrt-aix opsys=usg5-2-2
2654 ## Integrated Solutions `Optimum V'
2655 m68*-isi-bsd4.2* )
2656 machine=isi-ov opsys=bsd4-2
2658 m68*-isi-bsd4.3* )
2659 machine=isi-ov opsys=bsd4-3
2662 ## Intel 386 machines where we do care about the manufacturer
2663 i[3456]86-intsys-sysv* )
2664 machine=is386 opsys=usg5-2-2
2667 ## Prime EXL
2668 i[3456]86-prime-sysv* )
2669 machine=i386 opsys=usg5-3
2672 ## Sequent Symmetry running Dynix
2673 i[3456]86-sequent-bsd* )
2674 machine=symmetry opsys=bsd4-3
2677 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2678 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2679 machine=sequent-ptx opsys=ptx4
2680 NON_GNU_CPP=/lib/cpp
2683 ## Sequent Symmetry running DYNIX/ptx
2684 ## Use the old cpp rather than the newer ANSI one.
2685 i[3456]86-sequent-ptx* )
2686 machine=sequent-ptx opsys=ptx
2687 NON_GNU_CPP="/lib/cpp"
2690 ## ncr machine running svr4.3.
2691 i[3456]86-ncr-sysv4.3 )
2692 machine=ncr386 opsys=usg5-4-3
2695 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2696 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2697 i[3456]86-ncr-sysv* )
2698 machine=ncr386 opsys=usg5-4-2
2701 ## Intel Paragon OSF/1
2702 i860-intel-osf1* )
2703 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2706 ## Intel 860
2707 i860-*-sysv4* )
2708 machine=i860 opsys=usg5-4
2709 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2710 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2713 ## Macintosh PowerPC
2714 powerpc*-*-linux-gnu* )
2715 machine=macppc opsys=gnu-linux
2718 ## Masscomp machines
2719 m68*-masscomp-rtu* )
2720 machine=masscomp opsys=rtu
2723 ## Megatest machines
2724 m68*-megatest-bsd* )
2725 machine=mega68 opsys=bsd4-2
2728 ## Workstations sold by MIPS
2729 ## This is not necessarily all workstations using the MIPS processor -
2730 ## Irises are produced by SGI, and DECstations by DEC.
2732 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2733 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2734 ## it gives for choosing between the alternatives seems to be "Use
2735 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2736 ## the BSD world." I'll assume that these are instructions for
2737 ## handling two odd situations, and that every other situation
2738 ## should use mips.h and usg5-2-2, they being listed first.
2739 mips-mips-usg* )
2740 machine=mips4
2741 ## Fall through to the general code at the bottom to decide on the OS.
2743 mips-mips-riscos4* )
2744 machine=mips4 opsys=bsd4-3
2745 NON_GNU_CC="cc -systype bsd43"
2746 NON_GNU_CPP="cc -systype bsd43 -E"
2748 mips-mips-riscos5* )
2749 machine=mips4 opsys=riscos5
2750 NON_GNU_CC="cc -systype bsd43"
2751 NON_GNU_CPP="cc -systype bsd43 -E"
2753 mips-mips-bsd* )
2754 machine=mips opsys=bsd4-3
2756 mips-mips-* )
2757 machine=mips opsys=usg5-2-2
2760 ## NeXT
2761 m68*-next-* | m68k-*-nextstep* )
2762 machine=m68k opsys=nextstep
2765 ## The complete machine from National Semiconductor
2766 ns32k-ns-genix* )
2767 machine=ns32000 opsys=usg5-2
2770 ## NCR machines
2771 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2772 machine=tower32 opsys=usg5-2-2
2774 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2775 machine=tower32v3 opsys=usg5-3
2778 ## NEC EWS4800
2779 mips-nec-sysv4*)
2780 machine=ews4800 opsys=ux4800
2783 ## Nixdorf Targon 31
2784 m68*-nixdorf-sysv* )
2785 machine=targon31 opsys=usg5-2-2
2788 ## Nu (TI or LMI)
2789 m68*-nu-sysv* )
2790 machine=nu opsys=usg5-2
2793 ## Plexus
2794 m68*-plexus-sysv* )
2795 machine=plexus opsys=usg5-2
2798 ## Pyramid machines
2799 ## I don't really have any idea what sort of processor the Pyramid has,
2800 ## so I'm assuming it is its own architecture.
2801 pyramid-pyramid-bsd* )
2802 machine=pyramid opsys=bsd4-2
2805 ## Sequent Balance
2806 ns32k-sequent-bsd4.2* )
2807 machine=sequent opsys=bsd4-2
2809 ns32k-sequent-bsd4.3* )
2810 machine=sequent opsys=bsd4-3
2813 ## Siemens Nixdorf
2814 mips-siemens-sysv* | mips-sni-sysv*)
2815 machine=mips-siemens opsys=usg5-4
2816 NON_GNU_CC=/usr/ccs/bin/cc
2817 NON_GNU_CPP=/usr/ccs/lib/cpp
2820 ## Silicon Graphics machines
2821 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2822 m68*-sgi-iris3.5* )
2823 machine=irist opsys=iris3-5
2825 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2826 machine=irist opsys=iris3-6
2828 ## Iris 4D
2829 mips-sgi-irix3* )
2830 machine=iris4d opsys=irix3-3
2832 mips-sgi-irix4* )
2833 machine=iris4d opsys=irix4-0
2835 mips-sgi-irix6.5 )
2836 machine=iris4d opsys=irix6-5
2837 # Without defining _LANGUAGE_C, things get masked out in the headers
2838 # so that, for instance, grepping for `free' in stdlib.h fails and
2839 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2840 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2841 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2843 mips-sgi-irix6* )
2844 machine=iris4d opsys=irix6-0
2845 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2846 # but presumably it does no harm.
2847 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2848 # -32 probably isn't necessary in later v.6s -- anyone know which?
2849 NON_GCC_TEST_OPTIONS=-32
2851 mips-sgi-irix5.[01]* )
2852 machine=iris4d opsys=irix5-0
2854 mips-sgi-irix5* | mips-sgi-irix* )
2855 machine=iris4d opsys=irix5-2
2858 ## SONY machines
2859 m68*-sony-bsd4.2* )
2860 machine=news opsys=bsd4-2
2862 m68*-sony-bsd4.3* )
2863 machine=news opsys=bsd4-3
2865 m68*-sony-newsos3* | m68*-sony-news3*)
2866 machine=news opsys=bsd4-3
2868 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2869 machine=news-risc opsys=bsd4-3
2871 mips-sony-newsos6* )
2872 machine=news-r6 opsys=newsos6
2874 mips-sony-news* )
2875 machine=news-risc opsys=newsos5
2878 ## Stride
2879 m68*-stride-sysv* )
2880 machine=stride opsys=usg5-2
2883 ## Suns
2884 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2885 machine=sparc opsys=gnu-linux
2888 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2889 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2890 | rs6000-*-solaris2*)
2891 case "${canonical}" in
2892 m68*-sunos1* ) machine=sun1 ;;
2893 m68*-sunos2* ) machine=sun2 ;;
2894 m68* ) machine=sun3 ;;
2895 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2896 i[3456]86-*-* ) machine=intel386 ;;
2897 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2898 powerpcle* ) machine=powerpcle ;;
2899 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2900 sparc* ) machine=sparc ;;
2901 * ) unported=yes ;;
2902 esac
2903 case "${canonical}" in
2904 ## The Sun386 didn't get past 4.0.
2905 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2906 *-sunos4.0* ) opsys=sunos4-0 ;;
2907 *-sunos4.1.[3-9]*noshare )
2908 ## This name is sunos413 instead of sunos4-1-3
2909 ## to avoid a file name conflict on MSDOS.
2910 opsys=sunos413
2911 NON_GNU_CPP=/usr/lib/cpp
2912 NON_GCC_TEST_OPTIONS=-Bstatic
2913 GCC_TEST_OPTIONS=-static
2915 *-sunos4.1.[3-9]* | *-sunos4shr*)
2916 opsys=sunos4shr
2917 NON_GNU_CPP=/usr/lib/cpp
2919 *-sunos4* | *-sunos )
2920 opsys=sunos4-1
2921 NON_GCC_TEST_OPTIONS=-Bstatic
2922 GCC_TEST_OPTIONS=-static
2924 *-sunos5.3* | *-solaris2.3* )
2925 opsys=sol2-3
2926 NON_GNU_CPP=/usr/ccs/lib/cpp
2928 *-sunos5.4* | *-solaris2.4* )
2929 opsys=sol2-4
2930 NON_GNU_CPP=/usr/ccs/lib/cpp
2931 RANLIB="ar -ts"
2933 *-sunos5.5* | *-solaris2.5* )
2934 opsys=sol2-5
2935 NON_GNU_CPP=/usr/ccs/lib/cpp
2936 RANLIB="ar -ts"
2938 *-sunos5.6* | *-solaris2.6* )
2939 opsys=sol2-6
2940 NON_GNU_CPP=/usr/ccs/lib/cpp
2941 RANLIB="ar -ts"
2943 *-sunos5* | *-solaris* )
2944 opsys=sol2-6
2945 NON_GNU_CPP=/usr/ccs/lib/cpp
2947 * ) opsys=bsd4-2 ;;
2948 esac
2949 ## Watch out for a compiler that we know will not work.
2950 case "${canonical}" in
2951 *-solaris* | *-sunos5* )
2952 if [ "x$CC" = x/usr/ucb/cc ]; then
2953 ## /usr/ucb/cc doesn't work;
2954 ## we should find some other compiler that does work.
2955 unset CC
2958 *) ;;
2959 esac
2961 sparc-*-nextstep* )
2962 machine=sparc opsys=nextstep
2965 ## Tadpole 68k
2966 m68*-tadpole-sysv* )
2967 machine=tad68k opsys=usg5-3
2970 ## Tahoe machines
2971 tahoe-tahoe-bsd4.2* )
2972 machine=tahoe opsys=bsd4-2
2974 tahoe-tahoe-bsd4.3* )
2975 machine=tahoe opsys=bsd4-3
2978 ## Tandem Integrity S2
2979 mips-tandem-sysv* )
2980 machine=tandem-s2 opsys=usg5-3
2983 ## Tektronix XD88
2984 m88k-tektronix-sysv3* )
2985 machine=tekxd88 opsys=usg5-3
2988 ## Tektronix 16000 box (6130?)
2989 ns16k-tektronix-bsd* )
2990 machine=ns16000 opsys=bsd4-2
2992 ## Tektronix 4300
2993 ## src/m/tek4300.h hints that this is a m68k machine.
2994 m68*-tektronix-bsd* )
2995 machine=tek4300 opsys=bsd4-3
2998 ## Titan P2 or P3
2999 ## We seem to have lost the machine-description file titan.h!
3000 titan-titan-sysv* )
3001 machine=titan opsys=usg5-3
3004 ## Ustation E30 (SS5E)
3005 m68*-unisys-uniplus* )
3006 machine=ustation opsystem=unipl5-2
3009 ## Vaxen.
3010 vax-dec-* )
3011 machine=vax
3012 case "${canonical}" in
3013 *-bsd4.1* ) opsys=bsd4-1 ;;
3014 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3015 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3016 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3017 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3018 *-vms* ) opsys=vms ;;
3019 * ) unported=yes
3020 esac
3023 ## Whitechapel MG1
3024 ns16k-whitechapel-* )
3025 machine=mg1
3026 ## We don't know what sort of OS runs on these; we'll let the
3027 ## operating system guessing code below try.
3030 ## Wicat
3031 m68*-wicat-sysv* )
3032 machine=wicat opsys=usg5-2
3035 ## IA-64
3036 ia64*-*-linux* )
3037 machine=ia64 opsys=gnu-linux
3040 ## Intel 386 machines where we don't care about the manufacturer
3041 i[3456]86-*-* )
3042 machine=intel386
3043 case "${canonical}" in
3044 *-cygwin ) opsys=cygwin ;;
3045 *-darwin* ) opsys=darwin
3046 CPP="${CC-cc} -E -no-cpp-precomp"
3048 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3049 *-isc2.2* ) opsys=isc2-2 ;;
3050 *-isc4.0* ) opsys=isc4-0 ;;
3051 *-isc4.* ) opsys=isc4-1
3052 GCC_TEST_OPTIONS=-posix
3053 NON_GCC_TEST_OPTIONS=-Xp
3055 *-isc* ) opsys=isc3-0 ;;
3056 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3057 *-esix* ) opsys=esix ;;
3058 *-xenix* ) opsys=xenix ;;
3059 *-linux-gnu* ) opsys=gnu-linux ;;
3060 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3061 *-sco3.2v5* ) opsys=sco5
3062 NON_GNU_CPP=/lib/cpp
3063 # Prevent -belf from being passed to $CPP.
3064 # /lib/cpp does not accept it.
3065 OVERRIDE_CPPFLAGS=" "
3067 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3068 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3069 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3070 *-386bsd* ) opsys=386bsd ;;
3071 *-nextstep* ) opsys=nextstep ;;
3072 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3073 esac
3076 ## m68k Linux-based GNU system
3077 m68k-*-linux-gnu* )
3078 machine=m68k opsys=gnu-linux
3081 ## Mips Linux-based GNU system
3082 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3083 machine=mips opsys=gnu-linux
3086 ## UXP/DS
3087 sparc-fujitsu-sysv4* )
3088 machine=sparc opsys=uxpds
3089 NON_GNU_CPP=/usr/ccs/lib/cpp
3090 RANLIB="ar -ts"
3093 ## UXP/V
3094 f301-fujitsu-uxpv4.1)
3095 machine=f301 opsys=uxpv
3098 ## AMD x86-64 Linux-based GNU system
3099 x86_64-*-linux-gnu* )
3100 machine=amdx86-64 opsys=gnu-linux
3104 unported=yes
3106 esac
3108 ### If the code above didn't choose an operating system, just choose
3109 ### an operating system based on the configuration name. You really
3110 ### only want to use this when you have no idea what the right
3111 ### operating system is; if you know what operating systems a machine
3112 ### runs, it's cleaner to make it explicit in the case statement
3113 ### above.
3114 if test x"${opsys}" = x; then
3115 case "${canonical}" in
3116 *-gnu* ) opsys=gnu ;;
3117 *-bsd4.[01] ) opsys=bsd4-1 ;;
3118 *-bsd4.2 ) opsys=bsd4-2 ;;
3119 *-bsd4.3 ) opsys=bsd4-3 ;;
3120 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3121 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3122 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3123 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3124 *-sysv4.2uw* ) opsys=unixware ;;
3125 *-sysv5uw* ) opsys=unixware ;;
3126 *-sysv5OpenUNIX* ) opsys=unixware ;;
3127 *-sysv4.1* | *-sysvr4.1* )
3128 NON_GNU_CPP=/usr/lib/cpp
3129 opsys=usg5-4 ;;
3130 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3131 if [ x$NON_GNU_CPP = x ]; then
3132 if [ -f /usr/ccs/lib/cpp ]; then
3133 NON_GNU_CPP=/usr/ccs/lib/cpp
3134 else
3135 NON_GNU_CPP=/lib/cpp
3138 opsys=usg5-4-2 ;;
3139 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3141 unported=yes
3143 esac
3148 if test $unported = yes; then
3149 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3150 Check \`etc/MACHINES' for recognized configuration names." >&5
3151 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3152 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3153 { (exit 1); exit 1; }; }
3156 machfile="m/${machine}.h"
3157 opsysfile="s/${opsys}.h"
3160 #### Choose a compiler.
3161 test -n "$CC" && cc_specified=yes
3163 # Save the value of CFLAGS that the user specified.
3164 SPECIFIED_CFLAGS="$CFLAGS"
3166 case ${with_gcc} in
3167 "yes" ) CC="gcc" GCC=yes ;;
3168 "no" ) : ${CC=cc} ;;
3170 esac
3171 ac_ext=c
3172 ac_cpp='$CPP $CPPFLAGS'
3173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176 if test -n "$ac_tool_prefix"; then
3177 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3178 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3198 done
3199 done
3200 IFS=$as_save_IFS
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206 { echo "$as_me:$LINENO: result: $CC" >&5
3207 echo "${ECHO_T}$CC" >&6; }
3208 else
3209 { echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6; }
3215 if test -z "$ac_cv_prog_CC"; then
3216 ac_ct_CC=$CC
3217 # Extract the first word of "gcc", so it can be a program name with args.
3218 set dummy gcc; ac_word=$2
3219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 if test -n "$ac_ct_CC"; then
3225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_ac_ct_CC="gcc"
3235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3238 done
3239 done
3240 IFS=$as_save_IFS
3244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3245 if test -n "$ac_ct_CC"; then
3246 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3247 echo "${ECHO_T}$ac_ct_CC" >&6; }
3248 else
3249 { echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6; }
3253 if test "x$ac_ct_CC" = x; then
3254 CC=""
3255 else
3256 case $cross_compiling:$ac_tool_warned in
3257 yes:)
3258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3259 whose name does not start with the host triplet. If you think this
3260 configuration is useful to you, please write to autoconf@gnu.org." >&5
3261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3262 whose name does not start with the host triplet. If you think this
3263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3264 ac_tool_warned=yes ;;
3265 esac
3266 CC=$ac_ct_CC
3268 else
3269 CC="$ac_cv_prog_CC"
3272 if test -z "$CC"; then
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}cc; ac_word=$2
3276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3278 if test "${ac_cv_prog_CC+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_CC="${ac_tool_prefix}cc"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3295 done
3296 done
3297 IFS=$as_save_IFS
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303 { echo "$as_me:$LINENO: result: $CC" >&5
3304 echo "${ECHO_T}$CC" >&6; }
3305 else
3306 { echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6; }
3313 if test -z "$CC"; then
3314 # Extract the first word of "cc", so it can be a program name with args.
3315 set dummy cc; ac_word=$2
3316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3318 if test "${ac_cv_prog_CC+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if test -n "$CC"; then
3322 ac_cv_prog_CC="$CC" # Let the user override the test.
3323 else
3324 ac_prog_rejected=no
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3333 ac_prog_rejected=yes
3334 continue
3336 ac_cv_prog_CC="cc"
3337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3340 done
3341 done
3342 IFS=$as_save_IFS
3344 if test $ac_prog_rejected = yes; then
3345 # We found a bogon in the path, so make sure we never use it.
3346 set dummy $ac_cv_prog_CC
3347 shift
3348 if test $# != 0; then
3349 # We chose a different compiler from the bogus one.
3350 # However, it has the same basename, so the bogon will be chosen
3351 # first if we set CC to just the basename; use the full file name.
3352 shift
3353 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3358 CC=$ac_cv_prog_CC
3359 if test -n "$CC"; then
3360 { echo "$as_me:$LINENO: result: $CC" >&5
3361 echo "${ECHO_T}$CC" >&6; }
3362 else
3363 { echo "$as_me:$LINENO: result: no" >&5
3364 echo "${ECHO_T}no" >&6; }
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 for ac_prog in cl.exe
3373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3377 if test "${ac_cv_prog_CC+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3394 done
3395 done
3396 IFS=$as_save_IFS
3400 CC=$ac_cv_prog_CC
3401 if test -n "$CC"; then
3402 { echo "$as_me:$LINENO: result: $CC" >&5
3403 echo "${ECHO_T}$CC" >&6; }
3404 else
3405 { echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6; }
3410 test -n "$CC" && break
3411 done
3413 if test -z "$CC"; then
3414 ac_ct_CC=$CC
3415 for ac_prog in cl.exe
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 if test -n "$ac_ct_CC"; then
3425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434 ac_cv_prog_ac_ct_CC="$ac_prog"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3438 done
3439 done
3440 IFS=$as_save_IFS
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3447 echo "${ECHO_T}$ac_ct_CC" >&6; }
3448 else
3449 { echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6; }
3454 test -n "$ac_ct_CC" && break
3455 done
3457 if test "x$ac_ct_CC" = x; then
3458 CC=""
3459 else
3460 case $cross_compiling:$ac_tool_warned in
3461 yes:)
3462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3463 whose name does not start with the host triplet. If you think this
3464 configuration is useful to you, please write to autoconf@gnu.org." >&5
3465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3466 whose name does not start with the host triplet. If you think this
3467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3468 ac_tool_warned=yes ;;
3469 esac
3470 CC=$ac_ct_CC
3477 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3478 See \`config.log' for more details." >&5
3479 echo "$as_me: error: no acceptable C compiler found in \$PATH
3480 See \`config.log' for more details." >&2;}
3481 { (exit 1); exit 1; }; }
3483 # Provide some information about the compiler.
3484 echo "$as_me:$LINENO: checking for C compiler version" >&5
3485 ac_compiler=`set X $ac_compile; echo $2`
3486 { (ac_try="$ac_compiler --version >&5"
3487 case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_compiler --version >&5") 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }
3496 { (ac_try="$ac_compiler -v >&5"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_compiler -v >&5") 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }
3506 { (ac_try="$ac_compiler -V >&5"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_compiler -V >&5") 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3525 main ()
3529 return 0;
3531 _ACEOF
3532 ac_clean_files_save=$ac_clean_files
3533 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3534 # Try to create an executable without -o first, disregard a.out.
3535 # It will help us diagnose broken compilers, and finding out an intuition
3536 # of exeext.
3537 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3538 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3539 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3541 # List of possible output files, starting from the most likely.
3542 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3543 # only as a last resort. b.out is created by i960 compilers.
3544 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3546 # The IRIX 6 linker writes into existing files which may not be
3547 # executable, retaining their permissions. Remove them first so a
3548 # subsequent execution test works.
3549 ac_rmfiles=
3550 for ac_file in $ac_files
3552 case $ac_file in
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3554 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3555 esac
3556 done
3557 rm -f $ac_rmfiles
3559 if { (ac_try="$ac_link_default"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_link_default") 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; then
3569 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3570 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3571 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3572 # so that the user can short-circuit this test for compilers unknown to
3573 # Autoconf.
3574 for ac_file in $ac_files ''
3576 test -f "$ac_file" || continue
3577 case $ac_file in
3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3580 [ab].out )
3581 # We found the default executable, but exeext='' is most
3582 # certainly right.
3583 break;;
3584 *.* )
3585 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3586 then :; else
3587 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589 # We set ac_cv_exeext here because the later test for it is not
3590 # safe: cross compilers may not add the suffix if given an `-o'
3591 # argument, so we may need to know it at that point already.
3592 # Even if this section looks crufty: it has the advantage of
3593 # actually working.
3594 break;;
3596 break;;
3597 esac
3598 done
3599 test "$ac_cv_exeext" = no && ac_cv_exeext=
3601 else
3602 ac_file=''
3605 { echo "$as_me:$LINENO: result: $ac_file" >&5
3606 echo "${ECHO_T}$ac_file" >&6; }
3607 if test -z "$ac_file"; then
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3612 See \`config.log' for more details." >&5
3613 echo "$as_me: error: C compiler cannot create executables
3614 See \`config.log' for more details." >&2;}
3615 { (exit 77); exit 77; }; }
3618 ac_exeext=$ac_cv_exeext
3620 # Check that the compiler produces executables we can run. If not, either
3621 # the compiler is broken, or we cross compile.
3622 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3623 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3624 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3625 # If not cross compiling, check that we can run a simple program.
3626 if test "$cross_compiling" != yes; then
3627 if { ac_try='./$ac_file'
3628 { (case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_try") 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 cross_compiling=no
3638 else
3639 if test "$cross_compiling" = maybe; then
3640 cross_compiling=yes
3641 else
3642 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3643 If you meant to cross compile, use \`--host'.
3644 See \`config.log' for more details." >&5
3645 echo "$as_me: error: cannot run C compiled programs.
3646 If you meant to cross compile, use \`--host'.
3647 See \`config.log' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3652 { echo "$as_me:$LINENO: result: yes" >&5
3653 echo "${ECHO_T}yes" >&6; }
3655 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3656 ac_clean_files=$ac_clean_files_save
3657 # Check that the compiler produces executables we can run. If not, either
3658 # the compiler is broken, or we cross compile.
3659 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3660 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3661 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3662 echo "${ECHO_T}$cross_compiling" >&6; }
3664 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3665 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3666 if { (ac_try="$ac_link"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_link") 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; then
3676 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3677 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3678 # work properly (i.e., refer to `conftest.exe'), while it won't with
3679 # `rm'.
3680 for ac_file in conftest.exe conftest conftest.*; do
3681 test -f "$ac_file" || continue
3682 case $ac_file in
3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3684 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 break;;
3686 * ) break;;
3687 esac
3688 done
3689 else
3690 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3691 See \`config.log' for more details." >&5
3692 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3693 See \`config.log' for more details." >&2;}
3694 { (exit 1); exit 1; }; }
3697 rm -f conftest$ac_cv_exeext
3698 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3699 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3701 rm -f conftest.$ac_ext
3702 EXEEXT=$ac_cv_exeext
3703 ac_exeext=$EXEEXT
3704 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3705 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3706 if test "${ac_cv_objext+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3717 main ()
3721 return 0;
3723 _ACEOF
3724 rm -f conftest.o conftest.obj
3725 if { (ac_try="$ac_compile"
3726 case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compile") 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; then
3735 for ac_file in conftest.o conftest.obj conftest.*; do
3736 test -f "$ac_file" || continue;
3737 case $ac_file in
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3739 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3740 break;;
3741 esac
3742 done
3743 else
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3748 See \`config.log' for more details." >&5
3749 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3750 See \`config.log' for more details." >&2;}
3751 { (exit 1); exit 1; }; }
3754 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3756 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3757 echo "${ECHO_T}$ac_cv_objext" >&6; }
3758 OBJEXT=$ac_cv_objext
3759 ac_objext=$OBJEXT
3760 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h. */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3773 main ()
3775 #ifndef __GNUC__
3776 choke me
3777 #endif
3780 return 0;
3782 _ACEOF
3783 rm -f conftest.$ac_objext
3784 if { (ac_try="$ac_compile"
3785 case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788 esac
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_compile") 2>conftest.er1
3791 ac_status=$?
3792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } && {
3797 test -z "$ac_c_werror_flag" ||
3798 test ! -s conftest.err
3799 } && test -s conftest.$ac_objext; then
3800 ac_compiler_gnu=yes
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3805 ac_compiler_gnu=no
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3812 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3813 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3814 GCC=`test $ac_compiler_gnu = yes && echo yes`
3815 ac_test_CFLAGS=${CFLAGS+set}
3816 ac_save_CFLAGS=$CFLAGS
3817 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3818 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3819 if test "${ac_cv_prog_cc_g+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 ac_save_c_werror_flag=$ac_c_werror_flag
3823 ac_c_werror_flag=yes
3824 ac_cv_prog_cc_g=no
3825 CFLAGS="-g"
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3834 main ()
3838 return 0;
3840 _ACEOF
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3843 case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846 esac
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_compile") 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } && {
3855 test -z "$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 } && test -s conftest.$ac_objext; then
3858 ac_cv_prog_cc_g=yes
3859 else
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 CFLAGS=""
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3872 main ()
3876 return 0;
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3897 else
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3902 CFLAGS="-g"
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3911 main ()
3915 return 0;
3917 _ACEOF
3918 rm -f conftest.$ac_objext
3919 if { (ac_try="$ac_compile"
3920 case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_compile") 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && {
3932 test -z "$ac_c_werror_flag" ||
3933 test ! -s conftest.err
3934 } && test -s conftest.$ac_objext; then
3935 ac_cv_prog_cc_g=yes
3936 else
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3952 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3953 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3954 if test "$ac_test_CFLAGS" = set; then
3955 CFLAGS=$ac_save_CFLAGS
3956 elif test $ac_cv_prog_cc_g = yes; then
3957 if test "$GCC" = yes; then
3958 CFLAGS="-g -O2"
3959 else
3960 CFLAGS="-g"
3962 else
3963 if test "$GCC" = yes; then
3964 CFLAGS="-O2"
3965 else
3966 CFLAGS=
3969 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3970 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3971 if test "${ac_cv_prog_cc_c89+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974 ac_cv_prog_cc_c89=no
3975 ac_save_CC=$CC
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #include <stdarg.h>
3983 #include <stdio.h>
3984 #include <sys/types.h>
3985 #include <sys/stat.h>
3986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3987 struct buf { int x; };
3988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3989 static char *e (p, i)
3990 char **p;
3991 int i;
3993 return p[i];
3995 static char *f (char * (*g) (char **, int), char **p, ...)
3997 char *s;
3998 va_list v;
3999 va_start (v,p);
4000 s = g (p, va_arg (v,int));
4001 va_end (v);
4002 return s;
4005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4006 function prototypes and stuff, but not '\xHH' hex character constants.
4007 These don't provoke an error unfortunately, instead are silently treated
4008 as 'x'. The following induces an error, until -std is added to get
4009 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4010 array size at least. It's necessary to write '\x00'==0 to get something
4011 that's true only with -std. */
4012 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4014 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4015 inside strings and character constants. */
4016 #define FOO(x) 'x'
4017 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4019 int test (int i, double x);
4020 struct s1 {int (*f) (int a);};
4021 struct s2 {int (*f) (double a);};
4022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4023 int argc;
4024 char **argv;
4026 main ()
4028 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4030 return 0;
4032 _ACEOF
4033 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4034 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4036 CC="$ac_save_CC $ac_arg"
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_compile") 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } && {
4051 test -z "$ac_c_werror_flag" ||
4052 test ! -s conftest.err
4053 } && test -s conftest.$ac_objext; then
4054 ac_cv_prog_cc_c89=$ac_arg
4055 else
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4062 rm -f core conftest.err conftest.$ac_objext
4063 test "x$ac_cv_prog_cc_c89" != "xno" && break
4064 done
4065 rm -f conftest.$ac_ext
4066 CC=$ac_save_CC
4069 # AC_CACHE_VAL
4070 case "x$ac_cv_prog_cc_c89" in
4072 { echo "$as_me:$LINENO: result: none needed" >&5
4073 echo "${ECHO_T}none needed" >&6; } ;;
4074 xno)
4075 { echo "$as_me:$LINENO: result: unsupported" >&5
4076 echo "${ECHO_T}unsupported" >&6; } ;;
4078 CC="$CC $ac_cv_prog_cc_c89"
4079 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4080 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4081 esac
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 # On Suns, sometimes $CPP names a directory.
4092 if test -n "$CPP" && test -d "$CPP"; then
4093 CPP=
4096 #### Some systems specify a CPP to use unless we are using GCC.
4097 #### Now that we know whether we are using GCC, we can decide whether
4098 #### to use that one.
4099 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4100 then
4101 CPP="$NON_GNU_CPP"
4104 #### Some systems specify a CC to use unless we are using GCC.
4105 #### Now that we know whether we are using GCC, we can decide whether
4106 #### to use that one.
4107 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4108 test x$cc_specified != xyes
4109 then
4110 CC="$NON_GNU_CC"
4113 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4114 then
4115 CC="$CC $GCC_TEST_OPTIONS"
4118 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4119 then
4120 CC="$CC $NON_GCC_TEST_OPTIONS"
4124 ac_ext=c
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4130 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4131 # On Suns, sometimes $CPP names a directory.
4132 if test -n "$CPP" && test -d "$CPP"; then
4133 CPP=
4135 if test -z "$CPP"; then
4136 if test "${ac_cv_prog_CPP+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 # Double quotes because CPP needs to be expanded
4140 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4142 ac_preproc_ok=false
4143 for ac_c_preproc_warn_flag in '' yes
4145 # Use a header file that comes with gcc, so configuring glibc
4146 # with a fresh cross-compiler works.
4147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4148 # <limits.h> exists even on freestanding compilers.
4149 # On the NeXT, cc -E runs the code through the compiler's parser,
4150 # not just through cpp. "Syntax error" is here to catch this case.
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #ifdef __STDC__
4158 # include <limits.h>
4159 #else
4160 # include <assert.h>
4161 #endif
4162 Syntax error
4163 _ACEOF
4164 if { (ac_try="$ac_cpp conftest.$ac_ext"
4165 case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } >/dev/null && {
4177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4179 }; then
4181 else
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 # Broken: fails on valid input.
4186 continue
4189 rm -f conftest.err conftest.$ac_ext
4191 # OK, works on sane cases. Now check whether nonexistent headers
4192 # can be detected and how.
4193 cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h. */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 #include <ac_nonexistent.h>
4200 _ACEOF
4201 if { (ac_try="$ac_cpp conftest.$ac_ext"
4202 case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205 esac
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4208 ac_status=$?
4209 grep -v '^ *+' conftest.er1 >conftest.err
4210 rm -f conftest.er1
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } >/dev/null && {
4214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 }; then
4217 # Broken: success on invalid input.
4218 continue
4219 else
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4223 # Passes both tests.
4224 ac_preproc_ok=:
4225 break
4228 rm -f conftest.err conftest.$ac_ext
4230 done
4231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4232 rm -f conftest.err conftest.$ac_ext
4233 if $ac_preproc_ok; then
4234 break
4237 done
4238 ac_cv_prog_CPP=$CPP
4241 CPP=$ac_cv_prog_CPP
4242 else
4243 ac_cv_prog_CPP=$CPP
4245 { echo "$as_me:$LINENO: result: $CPP" >&5
4246 echo "${ECHO_T}$CPP" >&6; }
4247 ac_preproc_ok=false
4248 for ac_c_preproc_warn_flag in '' yes
4250 # Use a header file that comes with gcc, so configuring glibc
4251 # with a fresh cross-compiler works.
4252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4253 # <limits.h> exists even on freestanding compilers.
4254 # On the NeXT, cc -E runs the code through the compiler's parser,
4255 # not just through cpp. "Syntax error" is here to catch this case.
4256 cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h. */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 #ifdef __STDC__
4263 # include <limits.h>
4264 #else
4265 # include <assert.h>
4266 #endif
4267 Syntax error
4268 _ACEOF
4269 if { (ac_try="$ac_cpp conftest.$ac_ext"
4270 case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } >/dev/null && {
4282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 }; then
4286 else
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 # Broken: fails on valid input.
4291 continue
4294 rm -f conftest.err conftest.$ac_ext
4296 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how.
4298 cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h. */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 #include <ac_nonexistent.h>
4305 _ACEOF
4306 if { (ac_try="$ac_cpp conftest.$ac_ext"
4307 case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4313 ac_status=$?
4314 grep -v '^ *+' conftest.er1 >conftest.err
4315 rm -f conftest.er1
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } >/dev/null && {
4319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4320 test ! -s conftest.err
4321 }; then
4322 # Broken: success on invalid input.
4323 continue
4324 else
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 # Passes both tests.
4329 ac_preproc_ok=:
4330 break
4333 rm -f conftest.err conftest.$ac_ext
4335 done
4336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4337 rm -f conftest.err conftest.$ac_ext
4338 if $ac_preproc_ok; then
4340 else
4341 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4342 See \`config.log' for more details." >&5
4343 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4344 See \`config.log' for more details." >&2;}
4345 { (exit 1); exit 1; }; }
4348 ac_ext=c
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4356 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4357 if test "${ac_cv_path_GREP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 # Extract the first word of "grep ggrep" to use in msg output
4361 if test -z "$GREP"; then
4362 set dummy grep ggrep; ac_prog_name=$2
4363 if test "${ac_cv_path_GREP+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 ac_path_GREP_found=false
4367 # Loop through the user's path and test for each of PROGNAME-LIST
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_prog in grep ggrep; do
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4376 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4377 # Check for GNU ac_path_GREP and select it if it is found.
4378 # Check for GNU $ac_path_GREP
4379 case `"$ac_path_GREP" --version 2>&1` in
4380 *GNU*)
4381 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4383 ac_count=0
4384 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4385 while :
4387 cat "conftest.in" "conftest.in" >"conftest.tmp"
4388 mv "conftest.tmp" "conftest.in"
4389 cp "conftest.in" "conftest.nl"
4390 echo 'GREP' >> "conftest.nl"
4391 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4393 ac_count=`expr $ac_count + 1`
4394 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4395 # Best one so far, save it but keep looking for a better one
4396 ac_cv_path_GREP="$ac_path_GREP"
4397 ac_path_GREP_max=$ac_count
4399 # 10*(2^10) chars as input seems more than enough
4400 test $ac_count -gt 10 && break
4401 done
4402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4403 esac
4406 $ac_path_GREP_found && break 3
4407 done
4408 done
4410 done
4411 IFS=$as_save_IFS
4416 GREP="$ac_cv_path_GREP"
4417 if test -z "$GREP"; then
4418 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4419 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4420 { (exit 1); exit 1; }; }
4423 else
4424 ac_cv_path_GREP=$GREP
4429 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4430 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4431 GREP="$ac_cv_path_GREP"
4434 { echo "$as_me:$LINENO: checking for egrep" >&5
4435 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4436 if test "${ac_cv_path_EGREP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4440 then ac_cv_path_EGREP="$GREP -E"
4441 else
4442 # Extract the first word of "egrep" to use in msg output
4443 if test -z "$EGREP"; then
4444 set dummy egrep; ac_prog_name=$2
4445 if test "${ac_cv_path_EGREP+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 ac_path_EGREP_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in egrep; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4458 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4459 # Check for GNU ac_path_EGREP and select it if it is found.
4460 # Check for GNU $ac_path_EGREP
4461 case `"$ac_path_EGREP" --version 2>&1` in
4462 *GNU*)
4463 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4465 ac_count=0
4466 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4467 while :
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 echo 'EGREP' >> "conftest.nl"
4473 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475 ac_count=`expr $ac_count + 1`
4476 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_EGREP="$ac_path_EGREP"
4479 ac_path_EGREP_max=$ac_count
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4483 done
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485 esac
4488 $ac_path_EGREP_found && break 3
4489 done
4490 done
4492 done
4493 IFS=$as_save_IFS
4498 EGREP="$ac_cv_path_EGREP"
4499 if test -z "$EGREP"; then
4500 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4501 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4502 { (exit 1); exit 1; }; }
4505 else
4506 ac_cv_path_EGREP=$EGREP
4512 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4513 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4514 EGREP="$ac_cv_path_EGREP"
4518 { echo "$as_me:$LINENO: checking for AIX" >&5
4519 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4520 cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h. */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 #ifdef _AIX
4528 #endif
4530 _ACEOF
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532 $EGREP "yes" >/dev/null 2>&1; then
4533 { echo "$as_me:$LINENO: result: yes" >&5
4534 echo "${ECHO_T}yes" >&6; }
4535 cat >>confdefs.h <<\_ACEOF
4536 #define _ALL_SOURCE 1
4537 _ACEOF
4539 else
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4543 rm -f conftest*
4547 cat >>confdefs.h <<\_ACEOF
4548 #define _GNU_SOURCE 1
4549 _ACEOF
4553 ### Use -Wno-pointer-sign if the compiler supports it
4554 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4555 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4556 SAVE_CFLAGS="$CFLAGS"
4557 CFLAGS="$CFLAGS -Wno-pointer-sign"
4558 cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h. */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4566 main ()
4570 return 0;
4572 _ACEOF
4573 rm -f conftest.$ac_objext
4574 if { (ac_try="$ac_compile"
4575 case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_compile") 2>conftest.er1
4581 ac_status=$?
4582 grep -v '^ *+' conftest.er1 >conftest.err
4583 rm -f conftest.er1
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } && {
4587 test -z "$ac_c_werror_flag" ||
4588 test ! -s conftest.err
4589 } && test -s conftest.$ac_objext; then
4590 has_option=yes
4591 else
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 has_option=no
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 if test $has_option = yes; then
4600 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4602 { echo "$as_me:$LINENO: result: $has_option" >&5
4603 echo "${ECHO_T}$has_option" >&6; }
4604 CFLAGS="$SAVE_CFLAGS"
4605 unset has_option
4606 unset SAVE_CFLAGS
4608 #### Some other nice autoconf tests.
4610 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4611 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4612 LN_S=$as_ln_s
4613 if test "$LN_S" = "ln -s"; then
4614 { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4616 else
4617 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4618 echo "${ECHO_T}no, using $LN_S" >&6; }
4621 ac_ext=c
4622 ac_cpp='$CPP $CPPFLAGS'
4623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4627 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4628 # On Suns, sometimes $CPP names a directory.
4629 if test -n "$CPP" && test -d "$CPP"; then
4630 CPP=
4632 if test -z "$CPP"; then
4633 if test "${ac_cv_prog_CPP+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636 # Double quotes because CPP needs to be expanded
4637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4639 ac_preproc_ok=false
4640 for ac_c_preproc_warn_flag in '' yes
4642 # Use a header file that comes with gcc, so configuring glibc
4643 # with a fresh cross-compiler works.
4644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4645 # <limits.h> exists even on freestanding compilers.
4646 # On the NeXT, cc -E runs the code through the compiler's parser,
4647 # not just through cpp. "Syntax error" is here to catch this case.
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #ifdef __STDC__
4655 # include <limits.h>
4656 #else
4657 # include <assert.h>
4658 #endif
4659 Syntax error
4660 _ACEOF
4661 if { (ac_try="$ac_cpp conftest.$ac_ext"
4662 case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665 esac
4666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev/null && {
4674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4675 test ! -s conftest.err
4676 }; then
4678 else
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 # Broken: fails on valid input.
4683 continue
4686 rm -f conftest.err conftest.$ac_ext
4688 # OK, works on sane cases. Now check whether nonexistent headers
4689 # can be detected and how.
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h. */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 #include <ac_nonexistent.h>
4697 _ACEOF
4698 if { (ac_try="$ac_cpp conftest.$ac_ext"
4699 case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702 esac
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } >/dev/null && {
4711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4712 test ! -s conftest.err
4713 }; then
4714 # Broken: success on invalid input.
4715 continue
4716 else
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4720 # Passes both tests.
4721 ac_preproc_ok=:
4722 break
4725 rm -f conftest.err conftest.$ac_ext
4727 done
4728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4729 rm -f conftest.err conftest.$ac_ext
4730 if $ac_preproc_ok; then
4731 break
4734 done
4735 ac_cv_prog_CPP=$CPP
4738 CPP=$ac_cv_prog_CPP
4739 else
4740 ac_cv_prog_CPP=$CPP
4742 { echo "$as_me:$LINENO: result: $CPP" >&5
4743 echo "${ECHO_T}$CPP" >&6; }
4744 ac_preproc_ok=false
4745 for ac_c_preproc_warn_flag in '' yes
4747 # Use a header file that comes with gcc, so configuring glibc
4748 # with a fresh cross-compiler works.
4749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 # <limits.h> exists even on freestanding compilers.
4751 # On the NeXT, cc -E runs the code through the compiler's parser,
4752 # not just through cpp. "Syntax error" is here to catch this case.
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #ifdef __STDC__
4760 # include <limits.h>
4761 #else
4762 # include <assert.h>
4763 #endif
4764 Syntax error
4765 _ACEOF
4766 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
4779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4780 test ! -s conftest.err
4781 }; then
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 # Broken: fails on valid input.
4788 continue
4791 rm -f conftest.err conftest.$ac_ext
4793 # OK, works on sane cases. Now check whether nonexistent headers
4794 # can be detected and how.
4795 cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h. */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4801 #include <ac_nonexistent.h>
4802 _ACEOF
4803 if { (ac_try="$ac_cpp conftest.$ac_ext"
4804 case "(($ac_try" in
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4807 esac
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev/null && {
4816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4817 test ! -s conftest.err
4818 }; then
4819 # Broken: success on invalid input.
4820 continue
4821 else
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 # Passes both tests.
4826 ac_preproc_ok=:
4827 break
4830 rm -f conftest.err conftest.$ac_ext
4832 done
4833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4834 rm -f conftest.err conftest.$ac_ext
4835 if $ac_preproc_ok; then
4837 else
4838 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4839 See \`config.log' for more details." >&5
4840 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4841 See \`config.log' for more details." >&2;}
4842 { (exit 1); exit 1; }; }
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851 # Find a good install program. We prefer a C program (faster),
4852 # so one script is as good as another. But avoid the broken or
4853 # incompatible versions:
4854 # SysV /etc/install, /usr/sbin/install
4855 # SunOS /usr/etc/install
4856 # IRIX /sbin/install
4857 # AIX /bin/install
4858 # AmigaOS /C/install, which installs bootblocks on floppy discs
4859 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4860 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4861 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4862 # OS/2's system install, which has a completely different semantic
4863 # ./install, which can be erroneously created by make from ./install.sh.
4864 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4865 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4866 if test -z "$INSTALL"; then
4867 if test "${ac_cv_path_install+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 # Account for people who put trailing slashes in PATH elements.
4876 case $as_dir/ in
4877 ./ | .// | /cC/* | \
4878 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4879 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4880 /usr/ucb/* ) ;;
4882 # OSF1 and SCO ODT 3.0 have their own names for install.
4883 # Don't use installbsd from OSF since it installs stuff as root
4884 # by default.
4885 for ac_prog in ginstall scoinst install; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4888 if test $ac_prog = install &&
4889 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4890 # AIX install. It has an incompatible calling convention.
4892 elif test $ac_prog = install &&
4893 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4894 # program-specific install script used by HP pwplus--don't use.
4896 else
4897 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4898 break 3
4901 done
4902 done
4904 esac
4905 done
4906 IFS=$as_save_IFS
4910 if test "${ac_cv_path_install+set}" = set; then
4911 INSTALL=$ac_cv_path_install
4912 else
4913 # As a last resort, use the slow shell script. Don't cache a
4914 # value for INSTALL within a source directory, because that will
4915 # break other packages using the cache if that directory is
4916 # removed, or if the value is a relative name.
4917 INSTALL=$ac_install_sh
4920 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4921 echo "${ECHO_T}$INSTALL" >&6; }
4923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4924 # It thinks the first close brace ends the variable substitution.
4925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4927 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4929 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4931 if test "x$RANLIB" = x; then
4932 if test -n "$ac_tool_prefix"; then
4933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_RANLIB+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940 if test -n "$RANLIB"; then
4941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4954 done
4955 done
4956 IFS=$as_save_IFS
4960 RANLIB=$ac_cv_prog_RANLIB
4961 if test -n "$RANLIB"; then
4962 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4963 echo "${ECHO_T}$RANLIB" >&6; }
4964 else
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4971 if test -z "$ac_cv_prog_RANLIB"; then
4972 ac_ct_RANLIB=$RANLIB
4973 # Extract the first word of "ranlib", so it can be a program name with args.
4974 set dummy ranlib; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 if test -n "$ac_ct_RANLIB"; then
4981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_ac_ct_RANLIB="ranlib"
4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4994 done
4995 done
4996 IFS=$as_save_IFS
5000 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5001 if test -n "$ac_ct_RANLIB"; then
5002 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5003 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5004 else
5005 { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5009 if test "x$ac_ct_RANLIB" = x; then
5010 RANLIB=":"
5011 else
5012 case $cross_compiling:$ac_tool_warned in
5013 yes:)
5014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5015 whose name does not start with the host triplet. If you think this
5016 configuration is useful to you, please write to autoconf@gnu.org." >&5
5017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5018 whose name does not start with the host triplet. If you think this
5019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5020 ac_tool_warned=yes ;;
5021 esac
5022 RANLIB=$ac_ct_RANLIB
5024 else
5025 RANLIB="$ac_cv_prog_RANLIB"
5029 # Extract the first word of "install-info", so it can be a program name with args.
5030 set dummy install-info; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 case $INSTALL_INFO in
5037 [\\/]* | ?:[\\/]*)
5038 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5057 esac
5059 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5060 if test -n "$INSTALL_INFO"; then
5061 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5062 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5063 else
5064 { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5069 # Extract the first word of "install-info", so it can be a program name with args.
5070 set dummy install-info; ac_word=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 case $INSTALL_INFO in
5077 [\\/]* | ?:[\\/]*)
5078 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in /usr/sbin
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5092 done
5093 done
5094 IFS=$as_save_IFS
5097 esac
5099 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5100 if test -n "$INSTALL_INFO"; then
5101 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5102 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5103 else
5104 { echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6; }
5109 # Extract the first word of "install-info", so it can be a program name with args.
5110 set dummy install-info; ac_word=$2
5111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5113 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 case $INSTALL_INFO in
5117 [\\/]* | ?:[\\/]*)
5118 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in /sbin
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5132 done
5133 done
5134 IFS=$as_save_IFS
5136 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5138 esac
5140 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5141 if test -n "$INSTALL_INFO"; then
5142 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5143 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5144 else
5145 { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5150 # Extract the first word of "gzip", so it can be a program name with args.
5151 set dummy gzip; ac_word=$2
5152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5154 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 case $GZIP_PROG in
5158 [\\/]* | ?:[\\/]*)
5159 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5173 done
5174 done
5175 IFS=$as_save_IFS
5178 esac
5180 GZIP_PROG=$ac_cv_path_GZIP_PROG
5181 if test -n "$GZIP_PROG"; then
5182 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5183 echo "${ECHO_T}$GZIP_PROG" >&6; }
5184 else
5185 { echo "$as_me:$LINENO: result: no" >&5
5186 echo "${ECHO_T}no" >&6; }
5192 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5193 then
5194 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5197 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5198 then
5199 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5203 late_LDFLAGS=$LDFLAGS
5204 if test "$GCC" = yes; then
5205 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5206 else
5207 LDFLAGS="$LDFLAGS -znocombreloc"
5210 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5211 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5212 cat >conftest.$ac_ext <<_ACEOF
5213 main(){return 0;}
5214 _ACEOF
5215 rm -f conftest.$ac_objext conftest$ac_exeext
5216 if { (ac_try="$ac_link"
5217 case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5220 esac
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_link") 2>conftest.er1
5223 ac_status=$?
5224 grep -v '^ *+' conftest.er1 >conftest.err
5225 rm -f conftest.er1
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && {
5229 test -z "$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5231 } && test -s conftest$ac_exeext &&
5232 $as_test_x conftest$ac_exeext; then
5233 { echo "$as_me:$LINENO: result: yes" >&5
5234 echo "${ECHO_T}yes" >&6; }
5235 else
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5239 LDFLAGS=$late_LDFLAGS
5240 { echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6; }
5244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5245 conftest$ac_exeext conftest.$ac_ext
5247 #### Extract some information from the operating system and machine files.
5249 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5250 - which libraries the lib-src programs will want, and
5251 - whether the GNU malloc routines are usable..." >&5
5252 echo "$as_me: checking the machine- and system-dependent files to find out
5253 - which libraries the lib-src programs will want, and
5254 - whether the GNU malloc routines are usable..." >&6;}
5256 ### First figure out CFLAGS (which we use for running the compiler here)
5257 ### and REAL_CFLAGS (which we use for real compilation).
5258 ### The two are the same except on a few systems, where they are made
5259 ### different to work around various lossages. For example,
5260 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5261 ### as implying static linking.
5263 ### If the CFLAGS env var is specified, we use that value
5264 ### instead of the default.
5266 ### It's not important that this name contain the PID; you can't run
5267 ### two configures in the same directory and have anything work
5268 ### anyway.
5269 tempcname="conftest.c"
5271 echo '
5272 #include "'${srcdir}'/src/'${opsysfile}'"
5273 #include "'${srcdir}'/src/'${machfile}'"
5274 #ifndef LIBS_MACHINE
5275 #define LIBS_MACHINE
5276 #endif
5277 #ifndef LIBS_SYSTEM
5278 #define LIBS_SYSTEM
5279 #endif
5280 #ifndef C_SWITCH_SYSTEM
5281 #define C_SWITCH_SYSTEM
5282 #endif
5283 #ifndef C_SWITCH_MACHINE
5284 #define C_SWITCH_MACHINE
5285 #endif
5286 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5287 configure___ c_switch_system=C_SWITCH_SYSTEM
5288 configure___ c_switch_machine=C_SWITCH_MACHINE
5290 #ifndef LIB_X11_LIB
5291 #define LIB_X11_LIB -lX11
5292 #endif
5294 #ifndef LIBX11_MACHINE
5295 #define LIBX11_MACHINE
5296 #endif
5298 #ifndef LIBX11_SYSTEM
5299 #define LIBX11_SYSTEM
5300 #endif
5301 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5303 #ifdef UNEXEC
5304 configure___ unexec=UNEXEC
5305 #else
5306 configure___ unexec=unexec.o
5307 #endif
5309 #ifdef SYSTEM_MALLOC
5310 configure___ system_malloc=yes
5311 #else
5312 configure___ system_malloc=no
5313 #endif
5315 #ifdef USE_MMAP_FOR_BUFFERS
5316 configure___ use_mmap_for_buffers=yes
5317 #else
5318 configure___ use_mmap_for_buffers=no
5319 #endif
5321 #ifndef C_DEBUG_SWITCH
5322 #define C_DEBUG_SWITCH -g
5323 #endif
5325 #ifndef C_OPTIMIZE_SWITCH
5326 #ifdef __GNUC__
5327 #define C_OPTIMIZE_SWITCH -O2
5328 #else
5329 #define C_OPTIMIZE_SWITCH -O
5330 #endif
5331 #endif
5333 #ifndef C_WARNINGS_SWITCH
5334 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5335 #endif
5337 #ifndef LD_SWITCH_MACHINE
5338 #define LD_SWITCH_MACHINE
5339 #endif
5341 #ifndef LD_SWITCH_SYSTEM
5342 #define LD_SWITCH_SYSTEM
5343 #endif
5345 #ifndef LD_SWITCH_X_SITE_AUX
5346 #define LD_SWITCH_X_SITE_AUX
5347 #endif
5349 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5350 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5352 #ifdef THIS_IS_CONFIGURE
5354 /* Get the CFLAGS for tests in configure. */
5355 #ifdef __GNUC__
5356 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5357 #else
5358 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5359 #endif
5361 #else /* not THIS_IS_CONFIGURE */
5363 /* Get the CFLAGS for real compilation. */
5364 #ifdef __GNUC__
5365 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5366 #else
5367 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5368 #endif
5370 #endif /* not THIS_IS_CONFIGURE */
5371 ' > ${tempcname}
5373 # The value of CPP is a quoted variable reference, so we need to do this
5374 # to get its actual value...
5375 CPP=`eval "echo $CPP"`
5376 eval `${CPP} -Isrc ${tempcname} \
5377 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5378 if test "x$SPECIFIED_CFLAGS" = x; then
5379 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5380 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5381 else
5382 REAL_CFLAGS="$CFLAGS"
5384 rm ${tempcname}
5386 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5388 ### Make sure subsequent tests use flags consistent with the build flags.
5390 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5391 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5392 else
5393 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5398 # Check whether --enable-largefile was given.
5399 if test "${enable_largefile+set}" = set; then
5400 enableval=$enable_largefile;
5403 if test "$enable_largefile" != no; then
5405 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5406 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5407 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410 ac_cv_sys_largefile_CC=no
5411 if test "$GCC" != yes; then
5412 ac_save_CC=$CC
5413 while :; do
5414 # IRIX 6.2 and later do not support large files by default,
5415 # so use the C compiler's -n32 option if that helps.
5416 cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <sys/types.h>
5423 /* Check that off_t can represent 2**63 - 1 correctly.
5424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5425 since some C++ compilers masquerading as C compilers
5426 incorrectly reject 9223372036854775807. */
5427 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5429 && LARGE_OFF_T % 2147483647 == 1)
5430 ? 1 : -1];
5432 main ()
5436 return 0;
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (ac_try="$ac_compile"
5441 case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_compile") 2>conftest.er1
5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && {
5453 test -z "$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest.$ac_objext; then
5456 break
5457 else
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5464 rm -f core conftest.err conftest.$ac_objext
5465 CC="$CC -n32"
5466 rm -f conftest.$ac_objext
5467 if { (ac_try="$ac_compile"
5468 case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5471 esac
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_compile") 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } && {
5480 test -z "$ac_c_werror_flag" ||
5481 test ! -s conftest.err
5482 } && test -s conftest.$ac_objext; then
5483 ac_cv_sys_largefile_CC=' -n32'; break
5484 else
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5491 rm -f core conftest.err conftest.$ac_objext
5492 break
5493 done
5494 CC=$ac_save_CC
5495 rm -f conftest.$ac_ext
5498 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5499 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5500 if test "$ac_cv_sys_largefile_CC" != no; then
5501 CC=$CC$ac_cv_sys_largefile_CC
5504 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5505 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509 while :; do
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <sys/types.h>
5517 /* Check that off_t can represent 2**63 - 1 correctly.
5518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5519 since some C++ compilers masquerading as C compilers
5520 incorrectly reject 9223372036854775807. */
5521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5523 && LARGE_OFF_T % 2147483647 == 1)
5524 ? 1 : -1];
5526 main ()
5530 return 0;
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5535 case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538 esac
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_c_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest.$ac_objext; then
5550 ac_cv_sys_file_offset_bits=no; break
5551 else
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h. */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #define _FILE_OFFSET_BITS 64
5566 #include <sys/types.h>
5567 /* Check that off_t can represent 2**63 - 1 correctly.
5568 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5569 since some C++ compilers masquerading as C compilers
5570 incorrectly reject 9223372036854775807. */
5571 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5573 && LARGE_OFF_T % 2147483647 == 1)
5574 ? 1 : -1];
5576 main ()
5580 return 0;
5582 _ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (ac_try="$ac_compile"
5585 case "(($ac_try" in
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5588 esac
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_compile") 2>conftest.er1
5591 ac_status=$?
5592 grep -v '^ *+' conftest.er1 >conftest.err
5593 rm -f conftest.er1
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && {
5597 test -z "$ac_c_werror_flag" ||
5598 test ! -s conftest.err
5599 } && test -s conftest.$ac_objext; then
5600 ac_cv_sys_file_offset_bits=64; break
5601 else
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 ac_cv_sys_file_offset_bits=unknown
5610 break
5611 done
5613 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5614 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5615 case $ac_cv_sys_file_offset_bits in #(
5616 no | unknown) ;;
5618 cat >>confdefs.h <<_ACEOF
5619 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5620 _ACEOF
5622 esac
5623 rm -f conftest*
5624 if test $ac_cv_sys_file_offset_bits = unknown; then
5625 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5626 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5627 if test "${ac_cv_sys_large_files+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 while :; do
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #include <sys/types.h>
5638 /* Check that off_t can represent 2**63 - 1 correctly.
5639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5640 since some C++ compilers masquerading as C compilers
5641 incorrectly reject 9223372036854775807. */
5642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5644 && LARGE_OFF_T % 2147483647 == 1)
5645 ? 1 : -1];
5647 main ()
5651 return 0;
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5656 case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
5671 ac_cv_sys_large_files=no; break
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #define _LARGE_FILES 1
5687 #include <sys/types.h>
5688 /* Check that off_t can represent 2**63 - 1 correctly.
5689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5690 since some C++ compilers masquerading as C compilers
5691 incorrectly reject 9223372036854775807. */
5692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5694 && LARGE_OFF_T % 2147483647 == 1)
5695 ? 1 : -1];
5697 main ()
5701 return 0;
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (ac_try="$ac_compile"
5706 case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_compile") 2>conftest.er1
5712 ac_status=$?
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } && {
5718 test -z "$ac_c_werror_flag" ||
5719 test ! -s conftest.err
5720 } && test -s conftest.$ac_objext; then
5721 ac_cv_sys_large_files=1; break
5722 else
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 ac_cv_sys_large_files=unknown
5731 break
5732 done
5734 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5735 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5736 case $ac_cv_sys_large_files in #(
5737 no | unknown) ;;
5739 cat >>confdefs.h <<_ACEOF
5740 #define _LARGE_FILES $ac_cv_sys_large_files
5741 _ACEOF
5743 esac
5744 rm -f conftest*
5750 ### The standard library on x86-64 GNU/Linux distributions can
5751 ### be located in either /usr/lib64 or /usr/lib.
5752 case "${canonical}" in
5753 x86_64-*-linux-gnu* )
5754 if test -d /usr/lib64; then
5756 cat >>confdefs.h <<\_ACEOF
5757 #define HAVE_X86_64_LIB64_DIR 1
5758 _ACEOF
5761 esac
5766 if test "${with_sound}" != "no"; then
5767 # Sound support for GNU/Linux and the free BSDs.
5768 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5769 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5770 if test "${ac_cv_header_stdc+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 #include <stdlib.h>
5780 #include <stdarg.h>
5781 #include <string.h>
5782 #include <float.h>
5785 main ()
5789 return 0;
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_c_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest.$ac_objext; then
5809 ac_cv_header_stdc=yes
5810 else
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5814 ac_cv_header_stdc=no
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 if test $ac_cv_header_stdc = yes; then
5820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5821 cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h. */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 #include <string.h>
5829 _ACEOF
5830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5831 $EGREP "memchr" >/dev/null 2>&1; then
5833 else
5834 ac_cv_header_stdc=no
5836 rm -f conftest*
5840 if test $ac_cv_header_stdc = yes; then
5841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <stdlib.h>
5850 _ACEOF
5851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5852 $EGREP "free" >/dev/null 2>&1; then
5854 else
5855 ac_cv_header_stdc=no
5857 rm -f conftest*
5861 if test $ac_cv_header_stdc = yes; then
5862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5863 if test "$cross_compiling" = yes; then
5865 else
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 #include <ctype.h>
5873 #include <stdlib.h>
5874 #if ((' ' & 0x0FF) == 0x020)
5875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5877 #else
5878 # define ISLOWER(c) \
5879 (('a' <= (c) && (c) <= 'i') \
5880 || ('j' <= (c) && (c) <= 'r') \
5881 || ('s' <= (c) && (c) <= 'z'))
5882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5883 #endif
5885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5887 main ()
5889 int i;
5890 for (i = 0; i < 256; i++)
5891 if (XOR (islower (i), ISLOWER (i))
5892 || toupper (i) != TOUPPER (i))
5893 return 2;
5894 return 0;
5896 _ACEOF
5897 rm -f conftest$ac_exeext
5898 if { (ac_try="$ac_link"
5899 case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_link") 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5908 { (case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_try") 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5918 else
5919 echo "$as_me: program exited with status $ac_status" >&5
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 ( exit $ac_status )
5924 ac_cv_header_stdc=no
5926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5932 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5933 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5934 if test $ac_cv_header_stdc = yes; then
5936 cat >>confdefs.h <<\_ACEOF
5937 #define STDC_HEADERS 1
5938 _ACEOF
5942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5952 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5953 inttypes.h stdint.h unistd.h
5955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h. */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5969 #include <$ac_header>
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (ac_try="$ac_compile"
5973 case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5988 eval "$as_ac_Header=yes"
5989 else
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 eval "$as_ac_Header=no"
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 ac_res=`eval echo '${'$as_ac_Header'}'`
5999 { echo "$as_me:$LINENO: result: $ac_res" >&5
6000 echo "${ECHO_T}$ac_res" >&6; }
6001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6002 cat >>confdefs.h <<_ACEOF
6003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6004 _ACEOF
6008 done
6014 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 ac_res=`eval echo '${'$as_ac_Header'}'`
6024 { echo "$as_me:$LINENO: result: $ac_res" >&5
6025 echo "${ECHO_T}$ac_res" >&6; }
6026 else
6027 # Is the header compilable?
6028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6030 cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h. */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 $ac_includes_default
6037 #include <$ac_header>
6038 _ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (ac_try="$ac_compile"
6041 case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044 esac
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
6056 ac_header_compiler=yes
6057 else
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6061 ac_header_compiler=no
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6066 echo "${ECHO_T}$ac_header_compiler" >&6; }
6068 # Is the header present?
6069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 #include <$ac_header>
6078 _ACEOF
6079 if { (ac_try="$ac_cpp conftest.$ac_ext"
6080 case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083 esac
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } >/dev/null && {
6092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6093 test ! -s conftest.err
6094 }; then
6095 ac_header_preproc=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_header_preproc=no
6103 rm -f conftest.err conftest.$ac_ext
6104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6105 echo "${ECHO_T}$ac_header_preproc" >&6; }
6107 # So? What about this header?
6108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6109 yes:no: )
6110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6114 ac_header_preproc=yes
6116 no:yes:* )
6117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6131 esac
6132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137 eval "$as_ac_Header=\$ac_header_preproc"
6139 ac_res=`eval echo '${'$as_ac_Header'}'`
6140 { echo "$as_me:$LINENO: result: $ac_res" >&5
6141 echo "${ECHO_T}$ac_res" >&6; }
6144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6145 cat >>confdefs.h <<_ACEOF
6146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6147 _ACEOF
6151 done
6153 # Emulation library used on NetBSD.
6154 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6155 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6156 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 ac_check_lib_save_LIBS=$LIBS
6160 LIBS="-lossaudio $LIBS"
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6168 /* Override any GCC internal prototype to avoid an error.
6169 Use char because int might match the return type of a GCC
6170 builtin and then its argument prototype would still apply. */
6171 #ifdef __cplusplus
6172 extern "C"
6173 #endif
6174 char _oss_ioctl ();
6176 main ()
6178 return _oss_ioctl ();
6180 return 0;
6182 _ACEOF
6183 rm -f conftest.$ac_objext conftest$ac_exeext
6184 if { (ac_try="$ac_link"
6185 case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188 esac
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_link") 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && {
6197 test -z "$ac_c_werror_flag" ||
6198 test ! -s conftest.err
6199 } && test -s conftest$ac_exeext &&
6200 $as_test_x conftest$ac_exeext; then
6201 ac_cv_lib_ossaudio__oss_ioctl=yes
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 ac_cv_lib_ossaudio__oss_ioctl=no
6209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6210 conftest$ac_exeext conftest.$ac_ext
6211 LIBS=$ac_check_lib_save_LIBS
6213 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6214 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6215 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6216 LIBSOUND=-lossaudio
6217 else
6218 LIBSOUND=
6223 ALSA_REQUIRED=1.0.0
6224 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6225 if test "X${with_pkg_config_prog}" != X; then
6226 PKG_CONFIG="${with_pkg_config_prog}"
6229 succeeded=no
6231 if test -z "$PKG_CONFIG"; then
6232 # Extract the first word of "pkg-config", so it can be a program name with args.
6233 set dummy pkg-config; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239 case $PKG_CONFIG in
6240 [\\/]* | ?:[\\/]*)
6241 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6255 done
6256 done
6257 IFS=$as_save_IFS
6259 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6261 esac
6263 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6264 if test -n "$PKG_CONFIG"; then
6265 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6266 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6267 else
6268 { echo "$as_me:$LINENO: result: no" >&5
6269 echo "${ECHO_T}no" >&6; }
6275 if test "$PKG_CONFIG" = "no" ; then
6276 HAVE_ALSA=no
6277 else
6278 PKG_CONFIG_MIN_VERSION=0.9.0
6279 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6280 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6281 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6283 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6284 { echo "$as_me:$LINENO: result: yes" >&5
6285 echo "${ECHO_T}yes" >&6; }
6286 succeeded=yes
6288 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6289 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6290 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6291 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6292 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6294 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6295 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6296 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6297 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6298 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6299 else
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6302 ALSA_CFLAGS=""
6303 ALSA_LIBS=""
6304 ## If we have a custom action on failure, don't print errors, but
6305 ## do set a variable so people can do so.
6306 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6312 else
6313 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6314 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6318 if test $succeeded = yes; then
6319 HAVE_ALSA=yes
6320 else
6321 HAVE_ALSA=no
6324 if test $HAVE_ALSA = yes; then
6325 SAVE_CFLAGS="$CFLAGS"
6326 SAVE_LDFLAGS="$LDFLAGS"
6327 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6328 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6329 cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h. */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <asoundlib.h>
6337 main ()
6339 snd_lib_error_set_handler (0);
6341 return 0;
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (ac_try="$ac_compile"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compile") 2>conftest.er1
6352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest.$ac_objext; then
6361 emacs_alsa_normal=yes
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 emacs_alsa_normal=no
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 if test "$emacs_alsa_normal" != yes; then
6371 cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h. */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 #include <alsa/asoundlib.h>
6379 main ()
6381 snd_lib_error_set_handler (0);
6383 return 0;
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (ac_try="$ac_compile"
6388 case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391 esac
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_compile") 2>conftest.er1
6394 ac_status=$?
6395 grep -v '^ *+' conftest.er1 >conftest.err
6396 rm -f conftest.er1
6397 cat conftest.err >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && {
6400 test -z "$ac_c_werror_flag" ||
6401 test ! -s conftest.err
6402 } && test -s conftest.$ac_objext; then
6403 emacs_alsa_subdir=yes
6404 else
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6408 emacs_alsa_subdir=no
6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 if test "$emacs_alsa_subdir" != yes; then
6413 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6414 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6415 { (exit 1); exit 1; }; }
6417 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6420 CFLAGS="$SAVE_CFLAGS"
6421 LDFLAGS="$SAVE_LDFLAGS"
6422 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6423 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6425 cat >>confdefs.h <<\_ACEOF
6426 #define HAVE_ALSA 1
6427 _ACEOF
6459 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6460 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6461 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6462 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6463 sys/utsname.h pwd.h
6465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 ac_res=`eval echo '${'$as_ac_Header'}'`
6473 { echo "$as_me:$LINENO: result: $ac_res" >&5
6474 echo "${ECHO_T}$ac_res" >&6; }
6475 else
6476 # Is the header compilable?
6477 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6479 cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h. */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 $ac_includes_default
6486 #include <$ac_header>
6487 _ACEOF
6488 rm -f conftest.$ac_objext
6489 if { (ac_try="$ac_compile"
6490 case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493 esac
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_compile") 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } && {
6502 test -z "$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6504 } && test -s conftest.$ac_objext; then
6505 ac_header_compiler=yes
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6510 ac_header_compiler=no
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6515 echo "${ECHO_T}$ac_header_compiler" >&6; }
6517 # Is the header present?
6518 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 #include <$ac_header>
6527 _ACEOF
6528 if { (ac_try="$ac_cpp conftest.$ac_ext"
6529 case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6532 esac
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } >/dev/null && {
6541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6543 }; then
6544 ac_header_preproc=yes
6545 else
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6549 ac_header_preproc=no
6552 rm -f conftest.err conftest.$ac_ext
6553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6554 echo "${ECHO_T}$ac_header_preproc" >&6; }
6556 # So? What about this header?
6557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6558 yes:no: )
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6563 ac_header_preproc=yes
6565 no:yes:* )
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6580 esac
6581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586 eval "$as_ac_Header=\$ac_header_preproc"
6588 ac_res=`eval echo '${'$as_ac_Header'}'`
6589 { echo "$as_me:$LINENO: result: $ac_res" >&5
6590 echo "${ECHO_T}$ac_res" >&6; }
6593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6594 cat >>confdefs.h <<_ACEOF
6595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6596 _ACEOF
6600 done
6603 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6604 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6605 cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h. */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 #include <sys/personality.h>
6613 main ()
6615 personality (PER_LINUX32)
6617 return 0;
6619 _ACEOF
6620 rm -f conftest.$ac_objext
6621 if { (ac_try="$ac_compile"
6622 case "(($ac_try" in
6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6625 esac
6626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627 (eval "$ac_compile") 2>conftest.er1
6628 ac_status=$?
6629 grep -v '^ *+' conftest.er1 >conftest.err
6630 rm -f conftest.er1
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } && {
6634 test -z "$ac_c_werror_flag" ||
6635 test ! -s conftest.err
6636 } && test -s conftest.$ac_objext; then
6637 emacs_cv_personality_linux32=yes
6638 else
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6642 emacs_cv_personality_linux32=no
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6647 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6649 if test $emacs_cv_personality_linux32 = yes; then
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_PERSONALITY_LINUX32 1
6653 _ACEOF
6658 for ac_header in term.h
6660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6666 cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h. */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6672 #include <$ac_header>
6673 _ACEOF
6674 if { (ac_try="$ac_cpp conftest.$ac_ext"
6675 case "(($ac_try" in
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6678 esac
6679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } >/dev/null && {
6687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6688 test ! -s conftest.err
6689 }; then
6690 eval "$as_ac_Header=yes"
6691 else
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6695 eval "$as_ac_Header=no"
6698 rm -f conftest.err conftest.$ac_ext
6700 ac_res=`eval echo '${'$as_ac_Header'}'`
6701 { echo "$as_me:$LINENO: result: $ac_res" >&5
6702 echo "${ECHO_T}$ac_res" >&6; }
6703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6704 cat >>confdefs.h <<_ACEOF
6705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6706 _ACEOF
6710 done
6712 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6713 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6714 if test "${ac_cv_header_stdc+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <stdlib.h>
6724 #include <stdarg.h>
6725 #include <string.h>
6726 #include <float.h>
6729 main ()
6733 return 0;
6735 _ACEOF
6736 rm -f conftest.$ac_objext
6737 if { (ac_try="$ac_compile"
6738 case "(($ac_try" in
6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6741 esac
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_compile") 2>conftest.er1
6744 ac_status=$?
6745 grep -v '^ *+' conftest.er1 >conftest.err
6746 rm -f conftest.er1
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } && {
6750 test -z "$ac_c_werror_flag" ||
6751 test ! -s conftest.err
6752 } && test -s conftest.$ac_objext; then
6753 ac_cv_header_stdc=yes
6754 else
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ac_cv_header_stdc=no
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 if test $ac_cv_header_stdc = yes; then
6764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6765 cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h. */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 #include <string.h>
6773 _ACEOF
6774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6775 $EGREP "memchr" >/dev/null 2>&1; then
6777 else
6778 ac_cv_header_stdc=no
6780 rm -f conftest*
6784 if test $ac_cv_header_stdc = yes; then
6785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6786 cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h. */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6792 #include <stdlib.h>
6794 _ACEOF
6795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6796 $EGREP "free" >/dev/null 2>&1; then
6798 else
6799 ac_cv_header_stdc=no
6801 rm -f conftest*
6805 if test $ac_cv_header_stdc = yes; then
6806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6807 if test "$cross_compiling" = yes; then
6809 else
6810 cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h. */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6816 #include <ctype.h>
6817 #include <stdlib.h>
6818 #if ((' ' & 0x0FF) == 0x020)
6819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6821 #else
6822 # define ISLOWER(c) \
6823 (('a' <= (c) && (c) <= 'i') \
6824 || ('j' <= (c) && (c) <= 'r') \
6825 || ('s' <= (c) && (c) <= 'z'))
6826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6827 #endif
6829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6831 main ()
6833 int i;
6834 for (i = 0; i < 256; i++)
6835 if (XOR (islower (i), ISLOWER (i))
6836 || toupper (i) != TOUPPER (i))
6837 return 2;
6838 return 0;
6840 _ACEOF
6841 rm -f conftest$ac_exeext
6842 if { (ac_try="$ac_link"
6843 case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_link") 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6852 { (case "(($ac_try" in
6853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854 *) ac_try_echo=$ac_try;;
6855 esac
6856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857 (eval "$ac_try") 2>&5
6858 ac_status=$?
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6862 else
6863 echo "$as_me: program exited with status $ac_status" >&5
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6867 ( exit $ac_status )
6868 ac_cv_header_stdc=no
6870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6876 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6877 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6878 if test $ac_cv_header_stdc = yes; then
6880 cat >>confdefs.h <<\_ACEOF
6881 #define STDC_HEADERS 1
6882 _ACEOF
6886 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6887 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6888 if test "${ac_cv_header_time+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891 cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h. */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <sys/types.h>
6898 #include <sys/time.h>
6899 #include <time.h>
6902 main ()
6904 if ((struct tm *) 0)
6905 return 0;
6907 return 0;
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (ac_try="$ac_compile"
6912 case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6915 esac
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_compile") 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.$ac_objext; then
6927 ac_cv_header_time=yes
6928 else
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6932 ac_cv_header_time=no
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6938 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6939 if test $ac_cv_header_time = yes; then
6941 cat >>confdefs.h <<\_ACEOF
6942 #define TIME_WITH_SYS_TIME 1
6943 _ACEOF
6947 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6948 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6949 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 $ac_includes_default
6960 main ()
6962 #ifndef sys_siglist
6963 (void) sys_siglist;
6964 #endif
6967 return 0;
6969 _ACEOF
6970 rm -f conftest.$ac_objext
6971 if { (ac_try="$ac_compile"
6972 case "(($ac_try" in
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6975 esac
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_compile") 2>conftest.er1
6978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } && {
6984 test -z "$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 } && test -s conftest.$ac_objext; then
6987 ac_cv_have_decl_sys_siglist=yes
6988 else
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 ac_cv_have_decl_sys_siglist=no
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6998 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6999 if test $ac_cv_have_decl_sys_siglist = yes; then
7001 cat >>confdefs.h <<_ACEOF
7002 #define HAVE_DECL_SYS_SIGLIST 1
7003 _ACEOF
7006 else
7007 cat >>confdefs.h <<_ACEOF
7008 #define HAVE_DECL_SYS_SIGLIST 0
7009 _ACEOF
7015 if test $ac_cv_have_decl_sys_siglist != yes; then
7016 # For Tru64, at least:
7017 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7018 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7019 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 $ac_includes_default
7030 main ()
7032 #ifndef __sys_siglist
7033 (void) __sys_siglist;
7034 #endif
7037 return 0;
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7042 case "(($ac_try" in
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7045 esac
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_compile") 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest.$ac_objext; then
7057 ac_cv_have_decl___sys_siglist=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 ac_cv_have_decl___sys_siglist=no
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7068 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7069 if test $ac_cv_have_decl___sys_siglist = yes; then
7071 cat >>confdefs.h <<_ACEOF
7072 #define HAVE_DECL___SYS_SIGLIST 1
7073 _ACEOF
7076 else
7077 cat >>confdefs.h <<_ACEOF
7078 #define HAVE_DECL___SYS_SIGLIST 0
7079 _ACEOF
7085 if test $ac_cv_have_decl___sys_siglist = yes; then
7087 cat >>confdefs.h <<\_ACEOF
7088 #define sys_siglist __sys_siglist
7089 _ACEOF
7093 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7094 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7095 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098 cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h. */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104 #include <sys/types.h>
7105 #include <sys/wait.h>
7106 #ifndef WEXITSTATUS
7107 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7108 #endif
7109 #ifndef WIFEXITED
7110 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7111 #endif
7114 main ()
7116 int s;
7117 wait (&s);
7118 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7120 return 0;
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7125 case "(($ac_try" in
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7128 esac
7129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_compile") 2>conftest.er1
7131 ac_status=$?
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.$ac_objext; then
7140 ac_cv_header_sys_wait_h=yes
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_header_sys_wait_h=no
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7151 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7152 if test $ac_cv_header_sys_wait_h = yes; then
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_SYS_WAIT_H 1
7156 _ACEOF
7161 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7162 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7163 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #ifdef TIME_WITH_SYS_TIME
7173 #include <sys/time.h>
7174 #include <time.h>
7175 #else
7176 #ifdef HAVE_SYS_TIME_H
7177 #include <sys/time.h>
7178 #else
7179 #include <time.h>
7180 #endif
7181 #endif
7182 #ifdef HAVE_UTIME_H
7183 #include <utime.h>
7184 #endif
7186 main ()
7188 static struct utimbuf x; x.actime = x.modtime;
7190 return 0;
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7195 case "(($ac_try" in
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7198 esac
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.$ac_objext; then
7210 emacs_cv_struct_utimbuf=yes
7211 else
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7215 emacs_cv_struct_utimbuf=no
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7221 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7222 if test $emacs_cv_struct_utimbuf = yes; then
7224 cat >>confdefs.h <<\_ACEOF
7225 #define HAVE_STRUCT_UTIMBUF 1
7226 _ACEOF
7230 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7231 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7232 if test "${ac_cv_type_signal+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235 cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h. */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #include <sys/types.h>
7242 #include <signal.h>
7245 main ()
7247 return *(signal (0, 0)) (0) == 1;
7249 return 0;
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7254 case "(($ac_try" in
7255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7257 esac
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_cv_type_signal=int
7270 else
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 ac_cv_type_signal=void
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7280 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7282 cat >>confdefs.h <<_ACEOF
7283 #define RETSIGTYPE $ac_cv_type_signal
7284 _ACEOF
7288 { echo "$as_me:$LINENO: checking for speed_t" >&5
7289 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7290 if test "${emacs_cv_speed_t+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 <termios.h>
7301 main ()
7303 speed_t x = 1;
7305 return 0;
7307 _ACEOF
7308 rm -f conftest.$ac_objext
7309 if { (ac_try="$ac_compile"
7310 case "(($ac_try" in
7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7313 esac
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315 (eval "$ac_compile") 2>conftest.er1
7316 ac_status=$?
7317 grep -v '^ *+' conftest.er1 >conftest.err
7318 rm -f conftest.er1
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } && {
7322 test -z "$ac_c_werror_flag" ||
7323 test ! -s conftest.err
7324 } && test -s conftest.$ac_objext; then
7325 emacs_cv_speed_t=yes
7326 else
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7330 emacs_cv_speed_t=no
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7336 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7337 if test $emacs_cv_speed_t = yes; then
7339 cat >>confdefs.h <<\_ACEOF
7340 #define HAVE_SPEED_T 1
7341 _ACEOF
7345 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7346 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7347 if test "${emacs_cv_struct_timeval+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350 cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h. */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 #ifdef TIME_WITH_SYS_TIME
7357 #include <sys/time.h>
7358 #include <time.h>
7359 #else
7360 #ifdef HAVE_SYS_TIME_H
7361 #include <sys/time.h>
7362 #else
7363 #include <time.h>
7364 #endif
7365 #endif
7367 main ()
7369 static struct timeval x; x.tv_sec = x.tv_usec;
7371 return 0;
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (ac_try="$ac_compile"
7376 case "(($ac_try" in
7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7379 esac
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381 (eval "$ac_compile") 2>conftest.er1
7382 ac_status=$?
7383 grep -v '^ *+' conftest.er1 >conftest.err
7384 rm -f conftest.er1
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } && {
7388 test -z "$ac_c_werror_flag" ||
7389 test ! -s conftest.err
7390 } && test -s conftest.$ac_objext; then
7391 emacs_cv_struct_timeval=yes
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 emacs_cv_struct_timeval=no
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7402 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7403 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7404 if test $emacs_cv_struct_timeval = yes; then
7406 cat >>confdefs.h <<\_ACEOF
7407 #define HAVE_TIMEVAL 1
7408 _ACEOF
7412 { echo "$as_me:$LINENO: checking for struct exception" >&5
7413 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7414 if test "${emacs_cv_struct_exception+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 #include <math.h>
7425 main ()
7427 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
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_exception=yes
7450 else
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 emacs_cv_struct_exception=no
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7460 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7461 HAVE_EXCEPTION=$emacs_cv_struct_exception
7462 if test $emacs_cv_struct_exception != yes; then
7464 cat >>confdefs.h <<\_ACEOF
7465 #define NO_MATHERR 1
7466 _ACEOF
7471 for ac_header in sys/socket.h
7473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 ac_res=`eval echo '${'$as_ac_Header'}'`
7481 { echo "$as_me:$LINENO: result: $ac_res" >&5
7482 echo "${ECHO_T}$ac_res" >&6; }
7483 else
7484 # Is the header compilable?
7485 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7494 #include <$ac_header>
7495 _ACEOF
7496 rm -f conftest.$ac_objext
7497 if { (ac_try="$ac_compile"
7498 case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501 esac
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7513 ac_header_compiler=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 ac_header_compiler=no
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7523 echo "${ECHO_T}$ac_header_compiler" >&6; }
7525 # Is the header present?
7526 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7528 cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h. */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534 #include <$ac_header>
7535 _ACEOF
7536 if { (ac_try="$ac_cpp conftest.$ac_ext"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } >/dev/null && {
7549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 }; then
7552 ac_header_preproc=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 ac_header_preproc=no
7560 rm -f conftest.err conftest.$ac_ext
7561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7562 echo "${ECHO_T}$ac_header_preproc" >&6; }
7564 # So? What about this header?
7565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7566 yes:no: )
7567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7571 ac_header_preproc=yes
7573 no:yes:* )
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7588 esac
7589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 eval "$as_ac_Header=\$ac_header_preproc"
7596 ac_res=`eval echo '${'$as_ac_Header'}'`
7597 { echo "$as_me:$LINENO: result: $ac_res" >&5
7598 echo "${ECHO_T}$ac_res" >&6; }
7601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7602 cat >>confdefs.h <<_ACEOF
7603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7604 _ACEOF
7608 done
7611 for ac_header in net/if.h
7613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619 cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h. */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 $ac_includes_default
7626 #if HAVE_SYS_SOCKET_H
7627 #include <sys/socket.h>
7628 #endif
7630 #include <$ac_header>
7631 _ACEOF
7632 rm -f conftest.$ac_objext
7633 if { (ac_try="$ac_compile"
7634 case "(($ac_try" in
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7637 esac
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
7649 eval "$as_ac_Header=yes"
7650 else
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7654 eval "$as_ac_Header=no"
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 ac_res=`eval echo '${'$as_ac_Header'}'`
7660 { echo "$as_me:$LINENO: result: $ac_res" >&5
7661 echo "${ECHO_T}$ac_res" >&6; }
7662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7663 cat >>confdefs.h <<_ACEOF
7664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7665 _ACEOF
7669 done
7672 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7673 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7674 if test "${ac_cv_struct_tm+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 #include <sys/types.h>
7684 #include <time.h>
7687 main ()
7689 struct tm tm;
7690 int *p = &tm.tm_sec;
7691 return !p;
7693 return 0;
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7698 case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701 esac
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.$ac_objext; then
7713 ac_cv_struct_tm=time.h
7714 else
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 ac_cv_struct_tm=sys/time.h
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7724 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7725 if test $ac_cv_struct_tm = sys/time.h; then
7727 cat >>confdefs.h <<\_ACEOF
7728 #define TM_IN_SYS_TIME 1
7729 _ACEOF
7733 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7734 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7735 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <sys/types.h>
7745 #include <$ac_cv_struct_tm>
7749 main ()
7751 static struct tm ac_aggr;
7752 if (ac_aggr.tm_zone)
7753 return 0;
7755 return 0;
7757 _ACEOF
7758 rm -f conftest.$ac_objext
7759 if { (ac_try="$ac_compile"
7760 case "(($ac_try" in
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7763 esac
7764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7765 (eval "$ac_compile") 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } && {
7772 test -z "$ac_c_werror_flag" ||
7773 test ! -s conftest.err
7774 } && test -s conftest.$ac_objext; then
7775 ac_cv_member_struct_tm_tm_zone=yes
7776 else
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h. */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 #include <sys/types.h>
7787 #include <$ac_cv_struct_tm>
7791 main ()
7793 static struct tm ac_aggr;
7794 if (sizeof ac_aggr.tm_zone)
7795 return 0;
7797 return 0;
7799 _ACEOF
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7802 case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805 esac
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_compile") 2>conftest.er1
7808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest.$ac_objext; then
7817 ac_cv_member_struct_tm_tm_zone=yes
7818 else
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7822 ac_cv_member_struct_tm_tm_zone=no
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7830 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7831 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7832 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7834 cat >>confdefs.h <<_ACEOF
7835 #define HAVE_STRUCT_TM_TM_ZONE 1
7836 _ACEOF
7841 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7843 cat >>confdefs.h <<\_ACEOF
7844 #define HAVE_TM_ZONE 1
7845 _ACEOF
7847 else
7848 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7849 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7850 if test "${ac_cv_have_decl_tzname+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 #include <time.h>
7862 main ()
7864 #ifndef tzname
7865 (void) tzname;
7866 #endif
7869 return 0;
7871 _ACEOF
7872 rm -f conftest.$ac_objext
7873 if { (ac_try="$ac_compile"
7874 case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_compile") 2>conftest.er1
7880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } && {
7886 test -z "$ac_c_werror_flag" ||
7887 test ! -s conftest.err
7888 } && test -s conftest.$ac_objext; then
7889 ac_cv_have_decl_tzname=yes
7890 else
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 ac_cv_have_decl_tzname=no
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7900 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7901 if test $ac_cv_have_decl_tzname = yes; then
7903 cat >>confdefs.h <<_ACEOF
7904 #define HAVE_DECL_TZNAME 1
7905 _ACEOF
7908 else
7909 cat >>confdefs.h <<_ACEOF
7910 #define HAVE_DECL_TZNAME 0
7911 _ACEOF
7917 { echo "$as_me:$LINENO: checking for tzname" >&5
7918 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7919 if test "${ac_cv_var_tzname+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 #include <time.h>
7929 #if !HAVE_DECL_TZNAME
7930 extern char *tzname[];
7931 #endif
7934 main ()
7936 return tzname[0][0];
7938 return 0;
7940 _ACEOF
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (ac_try="$ac_link"
7943 case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946 esac
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_link") 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest$ac_exeext &&
7958 $as_test_x conftest$ac_exeext; then
7959 ac_cv_var_tzname=yes
7960 else
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 ac_cv_var_tzname=no
7967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7968 conftest$ac_exeext conftest.$ac_ext
7970 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7971 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7972 if test $ac_cv_var_tzname = yes; then
7974 cat >>confdefs.h <<\_ACEOF
7975 #define HAVE_TZNAME 1
7976 _ACEOF
7981 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7982 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7983 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986 cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h. */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7992 #include <time.h>
7995 main ()
7997 static struct tm ac_aggr;
7998 if (ac_aggr.tm_gmtoff)
7999 return 0;
8001 return 0;
8003 _ACEOF
8004 rm -f conftest.$ac_objext
8005 if { (ac_try="$ac_compile"
8006 case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009 esac
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest.$ac_objext; then
8021 ac_cv_member_struct_tm_tm_gmtoff=yes
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h. */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 #include <time.h>
8035 main ()
8037 static struct tm ac_aggr;
8038 if (sizeof ac_aggr.tm_gmtoff)
8039 return 0;
8041 return 0;
8043 _ACEOF
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8046 case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.$ac_objext; then
8061 ac_cv_member_struct_tm_tm_gmtoff=yes
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_cv_member_struct_tm_tm_gmtoff=no
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8075 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8076 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8078 cat >>confdefs.h <<\_ACEOF
8079 #define HAVE_TM_GMTOFF 1
8080 _ACEOF
8084 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8085 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8086 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089 cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h. */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 #if HAVE_SYS_SOCKET_H
8097 #include <sys/socket.h>
8098 #endif
8099 #if HAVE_NET_IF_H
8100 #include <net/if.h>
8101 #endif
8104 main ()
8106 static struct ifreq ac_aggr;
8107 if (ac_aggr.ifr_flags)
8108 return 0;
8110 return 0;
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8115 case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 ac_cv_member_struct_ifreq_ifr_flags=yes
8131 else
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h. */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8144 #endif
8145 #if HAVE_NET_IF_H
8146 #include <net/if.h>
8147 #endif
8150 main ()
8152 static struct ifreq ac_aggr;
8153 if (sizeof ac_aggr.ifr_flags)
8154 return 0;
8156 return 0;
8158 _ACEOF
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8161 case "(($ac_try" in
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_flags=yes
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 ac_cv_member_struct_ifreq_ifr_flags=no
8184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8190 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8191 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8195 _ACEOF
8199 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8200 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8201 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h. */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 $ac_includes_default
8211 #if HAVE_SYS_SOCKET_H
8212 #include <sys/socket.h>
8213 #endif
8214 #if HAVE_NET_IF_H
8215 #include <net/if.h>
8216 #endif
8219 main ()
8221 static struct ifreq ac_aggr;
8222 if (ac_aggr.ifr_hwaddr)
8223 return 0;
8225 return 0;
8227 _ACEOF
8228 rm -f conftest.$ac_objext
8229 if { (ac_try="$ac_compile"
8230 case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233 esac
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.$ac_objext; then
8245 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8246 else
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8259 #endif
8260 #if HAVE_NET_IF_H
8261 #include <net/if.h>
8262 #endif
8265 main ()
8267 static struct ifreq ac_aggr;
8268 if (sizeof ac_aggr.ifr_hwaddr)
8269 return 0;
8271 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8305 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8306 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8308 cat >>confdefs.h <<_ACEOF
8309 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8310 _ACEOF
8314 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8315 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8316 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319 cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h. */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 $ac_includes_default
8326 #if HAVE_SYS_SOCKET_H
8327 #include <sys/socket.h>
8328 #endif
8329 #if HAVE_NET_IF_H
8330 #include <net/if.h>
8331 #endif
8334 main ()
8336 static struct ifreq ac_aggr;
8337 if (ac_aggr.ifr_netmask)
8338 return 0;
8340 return 0;
8342 _ACEOF
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8345 case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8351 ac_status=$?
8352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.$ac_objext; then
8360 ac_cv_member_struct_ifreq_ifr_netmask=yes
8361 else
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8374 #endif
8375 #if HAVE_NET_IF_H
8376 #include <net/if.h>
8377 #endif
8380 main ()
8382 static struct ifreq ac_aggr;
8383 if (sizeof ac_aggr.ifr_netmask)
8384 return 0;
8386 return 0;
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_netmask=yes
8407 else
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_cv_member_struct_ifreq_ifr_netmask=no
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8420 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8421 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8423 cat >>confdefs.h <<_ACEOF
8424 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8425 _ACEOF
8429 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8430 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8431 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h. */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8443 #endif
8444 #if HAVE_NET_IF_H
8445 #include <net/if.h>
8446 #endif
8449 main ()
8451 static struct ifreq ac_aggr;
8452 if (ac_aggr.ifr_broadaddr)
8453 return 0;
8455 return 0;
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h. */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8487 #if HAVE_SYS_SOCKET_H
8488 #include <sys/socket.h>
8489 #endif
8490 #if HAVE_NET_IF_H
8491 #include <net/if.h>
8492 #endif
8495 main ()
8497 static struct ifreq ac_aggr;
8498 if (sizeof ac_aggr.ifr_broadaddr)
8499 return 0;
8501 return 0;
8503 _ACEOF
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8506 case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.$ac_objext; then
8521 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8526 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8536 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8538 cat >>confdefs.h <<_ACEOF
8539 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8540 _ACEOF
8544 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8545 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8546 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h. */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 $ac_includes_default
8556 #if HAVE_SYS_SOCKET_H
8557 #include <sys/socket.h>
8558 #endif
8559 #if HAVE_NET_IF_H
8560 #include <net/if.h>
8561 #endif
8564 main ()
8566 static struct ifreq ac_aggr;
8567 if (ac_aggr.ifr_addr)
8568 return 0;
8570 return 0;
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8575 case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578 esac
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_compile") 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } && {
8587 test -z "$ac_c_werror_flag" ||
8588 test ! -s conftest.err
8589 } && test -s conftest.$ac_objext; then
8590 ac_cv_member_struct_ifreq_ifr_addr=yes
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h. */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 $ac_includes_default
8602 #if HAVE_SYS_SOCKET_H
8603 #include <sys/socket.h>
8604 #endif
8605 #if HAVE_NET_IF_H
8606 #include <net/if.h>
8607 #endif
8610 main ()
8612 static struct ifreq ac_aggr;
8613 if (sizeof ac_aggr.ifr_addr)
8614 return 0;
8616 return 0;
8618 _ACEOF
8619 rm -f conftest.$ac_objext
8620 if { (ac_try="$ac_compile"
8621 case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_compile") 2>conftest.er1
8627 ac_status=$?
8628 grep -v '^ *+' conftest.er1 >conftest.err
8629 rm -f conftest.er1
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && {
8633 test -z "$ac_c_werror_flag" ||
8634 test ! -s conftest.err
8635 } && test -s conftest.$ac_objext; then
8636 ac_cv_member_struct_ifreq_ifr_addr=yes
8637 else
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8641 ac_cv_member_struct_ifreq_ifr_addr=no
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8650 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8651 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8653 cat >>confdefs.h <<_ACEOF
8654 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8655 _ACEOF
8662 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8663 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8664 if test "$ac_cv_prog_cc_c89" != no; then
8665 { echo "$as_me:$LINENO: result: yes" >&5
8666 echo "${ECHO_T}yes" >&6; }
8668 cat >>confdefs.h <<\_ACEOF
8669 #define PROTOTYPES 1
8670 _ACEOF
8673 cat >>confdefs.h <<\_ACEOF
8674 #define __PROTOTYPES 1
8675 _ACEOF
8677 else
8678 { echo "$as_me:$LINENO: result: no" >&5
8679 echo "${ECHO_T}no" >&6; }
8682 { echo "$as_me:$LINENO: checking for working volatile" >&5
8683 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8684 if test "${ac_cv_c_volatile+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8695 main ()
8698 volatile int x;
8699 int * volatile y = (int *) 0;
8700 return !x && !y;
8702 return 0;
8704 _ACEOF
8705 rm -f conftest.$ac_objext
8706 if { (ac_try="$ac_compile"
8707 case "(($ac_try" in
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8710 esac
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_compile") 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } && {
8719 test -z "$ac_c_werror_flag" ||
8720 test ! -s conftest.err
8721 } && test -s conftest.$ac_objext; then
8722 ac_cv_c_volatile=yes
8723 else
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8727 ac_cv_c_volatile=no
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8733 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8734 if test $ac_cv_c_volatile = no; then
8736 cat >>confdefs.h <<\_ACEOF
8737 #define volatile
8738 _ACEOF
8742 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8743 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8744 if test "${ac_cv_c_const+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8755 main ()
8757 /* FIXME: Include the comments suggested by Paul. */
8758 #ifndef __cplusplus
8759 /* Ultrix mips cc rejects this. */
8760 typedef int charset[2];
8761 const charset cs;
8762 /* SunOS 4.1.1 cc rejects this. */
8763 char const *const *pcpcc;
8764 char **ppc;
8765 /* NEC SVR4.0.2 mips cc rejects this. */
8766 struct point {int x, y;};
8767 static struct point const zero = {0,0};
8768 /* AIX XL C 1.02.0.0 rejects this.
8769 It does not let you subtract one const X* pointer from another in
8770 an arm of an if-expression whose if-part is not a constant
8771 expression */
8772 const char *g = "string";
8773 pcpcc = &g + (g ? g-g : 0);
8774 /* HPUX 7.0 cc rejects these. */
8775 ++pcpcc;
8776 ppc = (char**) pcpcc;
8777 pcpcc = (char const *const *) ppc;
8778 { /* SCO 3.2v4 cc rejects this. */
8779 char *t;
8780 char const *s = 0 ? (char *) 0 : (char const *) 0;
8782 *t++ = 0;
8783 if (s) return 0;
8785 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8786 int x[] = {25, 17};
8787 const int *foo = &x[0];
8788 ++foo;
8790 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8791 typedef const int *iptr;
8792 iptr p = 0;
8793 ++p;
8795 { /* AIX XL C 1.02.0.0 rejects this saying
8796 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8797 struct s { int j; const int *ap[3]; };
8798 struct s *b; b->j = 5;
8800 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8801 const int foo = 10;
8802 if (!foo) return 0;
8804 return !cs[0] && !zero.x;
8805 #endif
8808 return 0;
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (ac_try="$ac_compile"
8813 case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8816 esac
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_compile") 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } && {
8825 test -z "$ac_c_werror_flag" ||
8826 test ! -s conftest.err
8827 } && test -s conftest.$ac_objext; then
8828 ac_cv_c_const=yes
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8833 ac_cv_c_const=no
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8839 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8840 if test $ac_cv_c_const = no; then
8842 cat >>confdefs.h <<\_ACEOF
8843 #define const
8844 _ACEOF
8848 { echo "$as_me:$LINENO: checking for void * support" >&5
8849 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8850 if test "${emacs_cv_void_star+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8861 main ()
8863 void * foo;
8865 return 0;
8867 _ACEOF
8868 rm -f conftest.$ac_objext
8869 if { (ac_try="$ac_compile"
8870 case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873 esac
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_compile") 2>conftest.er1
8876 ac_status=$?
8877 grep -v '^ *+' conftest.er1 >conftest.err
8878 rm -f conftest.er1
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } && {
8882 test -z "$ac_c_werror_flag" ||
8883 test ! -s conftest.err
8884 } && test -s conftest.$ac_objext; then
8885 emacs_cv_void_star=yes
8886 else
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8890 emacs_cv_void_star=no
8893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8896 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8897 if test $emacs_cv_void_star = yes; then
8898 cat >>confdefs.h <<\_ACEOF
8899 #define POINTER_TYPE void
8900 _ACEOF
8902 else
8903 cat >>confdefs.h <<\_ACEOF
8904 #define POINTER_TYPE char
8905 _ACEOF
8913 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8914 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8915 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8916 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919 cat >conftest.make <<\_ACEOF
8920 SHELL = /bin/sh
8921 all:
8922 @echo '@@@%%%=$(MAKE)=@@@%%%'
8923 _ACEOF
8924 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8925 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8926 *@@@%%%=?*=@@@%%%*)
8927 eval ac_cv_prog_make_${ac_make}_set=yes;;
8929 eval ac_cv_prog_make_${ac_make}_set=no;;
8930 esac
8931 rm -f conftest.make
8933 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8934 { echo "$as_me:$LINENO: result: yes" >&5
8935 echo "${ECHO_T}yes" >&6; }
8936 SET_MAKE=
8937 else
8938 { echo "$as_me:$LINENO: result: no" >&5
8939 echo "${ECHO_T}no" >&6; }
8940 SET_MAKE="MAKE=${MAKE-make}"
8944 { echo "$as_me:$LINENO: checking for long file names" >&5
8945 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8946 if test "${ac_cv_sys_long_file_names+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949 ac_cv_sys_long_file_names=yes
8950 # Test for long file names in all the places we know might matter:
8951 # . the current directory, where building will happen
8952 # $prefix/lib where we will be installing things
8953 # $exec_prefix/lib likewise
8954 # $TMPDIR if set, where it might want to write temporary files
8955 # /tmp where it might want to write temporary files
8956 # /var/tmp likewise
8957 # /usr/tmp likewise
8958 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8959 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8960 # in the usual case where exec_prefix is '${prefix}'.
8961 case $ac_dir in #(
8962 . | /* | ?:[\\/]*) ;; #(
8963 *) continue;;
8964 esac
8965 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8966 ac_xdir=$ac_dir/cf$$
8967 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8968 ac_tf1=$ac_xdir/conftest9012345
8969 ac_tf2=$ac_xdir/conftest9012346
8970 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8971 ac_cv_sys_long_file_names=no
8972 rm -f -r "$ac_xdir" 2>/dev/null
8973 test $ac_cv_sys_long_file_names = no && break
8974 done
8976 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8977 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8978 if test $ac_cv_sys_long_file_names = yes; then
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_LONG_FILE_NAMES 1
8982 _ACEOF
8987 #### Choose a window system.
8989 { echo "$as_me:$LINENO: checking for X" >&5
8990 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8993 # Check whether --with-x was given.
8994 if test "${with_x+set}" = set; then
8995 withval=$with_x;
8998 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8999 if test "x$with_x" = xno; then
9000 # The user explicitly disabled X.
9001 have_x=disabled
9002 else
9003 case $x_includes,$x_libraries in #(
9004 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9005 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9006 { (exit 1); exit 1; }; };; #(
9007 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010 # One or both of the vars are not set, and there is no cached value.
9011 ac_x_includes=no ac_x_libraries=no
9012 rm -f -r conftest.dir
9013 if mkdir conftest.dir; then
9014 cd conftest.dir
9015 cat >Imakefile <<'_ACEOF'
9016 incroot:
9017 @echo incroot='${INCROOT}'
9018 usrlibdir:
9019 @echo usrlibdir='${USRLIBDIR}'
9020 libdir:
9021 @echo libdir='${LIBDIR}'
9022 _ACEOF
9023 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9024 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9025 for ac_var in incroot usrlibdir libdir; do
9026 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9027 done
9028 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9029 for ac_extension in a so sl; do
9030 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9031 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9032 ac_im_usrlibdir=$ac_im_libdir; break
9034 done
9035 # Screen out bogus values from the imake configuration. They are
9036 # bogus both because they are the default anyway, and because
9037 # using them would break gcc on systems where it needs fixed includes.
9038 case $ac_im_incroot in
9039 /usr/include) ac_x_includes= ;;
9040 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9041 esac
9042 case $ac_im_usrlibdir in
9043 /usr/lib | /lib) ;;
9044 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9045 esac
9047 cd ..
9048 rm -f -r conftest.dir
9051 # Standard set of common directories for X headers.
9052 # Check X11 before X11Rn because it is often a symlink to the current release.
9053 ac_x_header_dirs='
9054 /usr/X11/include
9055 /usr/X11R6/include
9056 /usr/X11R5/include
9057 /usr/X11R4/include
9059 /usr/include/X11
9060 /usr/include/X11R6
9061 /usr/include/X11R5
9062 /usr/include/X11R4
9064 /usr/local/X11/include
9065 /usr/local/X11R6/include
9066 /usr/local/X11R5/include
9067 /usr/local/X11R4/include
9069 /usr/local/include/X11
9070 /usr/local/include/X11R6
9071 /usr/local/include/X11R5
9072 /usr/local/include/X11R4
9074 /usr/X386/include
9075 /usr/x386/include
9076 /usr/XFree86/include/X11
9078 /usr/include
9079 /usr/local/include
9080 /usr/unsupported/include
9081 /usr/athena/include
9082 /usr/local/x11r5/include
9083 /usr/lpp/Xamples/include
9085 /usr/openwin/include
9086 /usr/openwin/share/include'
9088 if test "$ac_x_includes" = no; then
9089 # Guess where to find include files, by looking for Xlib.h.
9090 # First, try using that file with no special directory specified.
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h. */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <X11/Xlib.h>
9098 _ACEOF
9099 if { (ac_try="$ac_cpp conftest.$ac_ext"
9100 case "(($ac_try" in
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9103 esac
9104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9106 ac_status=$?
9107 grep -v '^ *+' conftest.er1 >conftest.err
9108 rm -f conftest.er1
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } >/dev/null && {
9112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9113 test ! -s conftest.err
9114 }; then
9115 # We can compile using X headers with no special include directory.
9116 ac_x_includes=
9117 else
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9121 for ac_dir in $ac_x_header_dirs; do
9122 if test -r "$ac_dir/X11/Xlib.h"; then
9123 ac_x_includes=$ac_dir
9124 break
9126 done
9129 rm -f conftest.err conftest.$ac_ext
9130 fi # $ac_x_includes = no
9132 if test "$ac_x_libraries" = no; then
9133 # Check for the libraries.
9134 # See if we find them without any special options.
9135 # Don't add to $LIBS permanently.
9136 ac_save_LIBS=$LIBS
9137 LIBS="-lX11 $LIBS"
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h. */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 #include <X11/Xlib.h>
9146 main ()
9148 XrmInitialize ()
9150 return 0;
9152 _ACEOF
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (ac_try="$ac_link"
9155 case "(($ac_try" in
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9158 esac
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_link") 2>conftest.er1
9161 ac_status=$?
9162 grep -v '^ *+' conftest.er1 >conftest.err
9163 rm -f conftest.er1
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest$ac_exeext &&
9170 $as_test_x conftest$ac_exeext; then
9171 LIBS=$ac_save_LIBS
9172 # We can link X programs with no special library path.
9173 ac_x_libraries=
9174 else
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9178 LIBS=$ac_save_LIBS
9179 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9181 # Don't even attempt the hair of trying to link an X program!
9182 for ac_extension in a so sl; do
9183 if test -r "$ac_dir/libX11.$ac_extension"; then
9184 ac_x_libraries=$ac_dir
9185 break 2
9187 done
9188 done
9191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192 conftest$ac_exeext conftest.$ac_ext
9193 fi # $ac_x_libraries = no
9195 case $ac_x_includes,$ac_x_libraries in #(
9196 no,* | *,no | *\'*)
9197 # Didn't find X, or a directory has "'" in its name.
9198 ac_cv_have_x="have_x=no";; #(
9200 # Record where we found X for the cache.
9201 ac_cv_have_x="have_x=yes\
9202 ac_x_includes='$ac_x_includes'\
9203 ac_x_libraries='$ac_x_libraries'"
9204 esac
9206 ;; #(
9207 *) have_x=yes;;
9208 esac
9209 eval "$ac_cv_have_x"
9210 fi # $with_x != no
9212 if test "$have_x" != yes; then
9213 { echo "$as_me:$LINENO: result: $have_x" >&5
9214 echo "${ECHO_T}$have_x" >&6; }
9215 no_x=yes
9216 else
9217 # If each of the values was on the command line, it overrides each guess.
9218 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9219 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9220 # Update the cache value to reflect the command line values.
9221 ac_cv_have_x="have_x=yes\
9222 ac_x_includes='$x_includes'\
9223 ac_x_libraries='$x_libraries'"
9224 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9225 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9228 if test "$no_x" = yes; then
9229 window_system=none
9230 else
9231 window_system=x11
9234 if test "${x_libraries}" != NONE; then
9235 if test -n "${x_libraries}"; then
9236 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9237 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9239 x_default_search_path=""
9240 x_search_path=${x_libraries}
9241 if test -z "${x_search_path}"; then
9242 x_search_path=/usr/lib
9244 for x_library in `echo ${x_search_path}: | \
9245 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9246 x_search_path="\
9247 ${x_library}/X11/%L/%T/%N%C%S:\
9248 ${x_library}/X11/%l/%T/%N%C%S:\
9249 ${x_library}/X11/%T/%N%C%S:\
9250 ${x_library}/X11/%L/%T/%N%S:\
9251 ${x_library}/X11/%l/%T/%N%S:\
9252 ${x_library}/X11/%T/%N%S"
9253 if test x"${x_default_search_path}" = x; then
9254 x_default_search_path=${x_search_path}
9255 else
9256 x_default_search_path="${x_search_path}:${x_default_search_path}"
9258 done
9260 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9261 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9264 if test x"${x_includes}" = x; then
9265 bitmapdir=/usr/include/X11/bitmaps
9266 else
9267 # accumulate include directories that have X11 bitmap subdirectories
9268 bmd_acc="dummyval"
9269 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9270 if test -d "${bmd}/X11/bitmaps"; then
9271 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9273 if test -d "${bmd}/bitmaps"; then
9274 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9276 done
9277 if test ${bmd_acc} != "dummyval"; then
9278 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9282 HAVE_CARBON=no
9283 if test "${with_carbon}" != no; then
9284 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9285 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9286 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9287 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9291 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9292 else
9293 # Is the header compilable?
9294 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9295 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h. */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 $ac_includes_default
9303 #include <Carbon/Carbon.h>
9304 _ACEOF
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9307 case "(($ac_try" in
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9310 esac
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
9313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.$ac_objext; then
9322 ac_header_compiler=yes
9323 else
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 ac_header_compiler=no
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9332 echo "${ECHO_T}$ac_header_compiler" >&6; }
9334 # Is the header present?
9335 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9336 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9337 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h. */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 #include <Carbon/Carbon.h>
9344 _ACEOF
9345 if { (ac_try="$ac_cpp conftest.$ac_ext"
9346 case "(($ac_try" in
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9349 esac
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } >/dev/null && {
9358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9360 }; then
9361 ac_header_preproc=yes
9362 else
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_header_preproc=no
9369 rm -f conftest.err conftest.$ac_ext
9370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9371 echo "${ECHO_T}$ac_header_preproc" >&6; }
9373 # So? What about this header?
9374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9375 yes:no: )
9376 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9377 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9379 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9380 ac_header_preproc=yes
9382 no:yes:* )
9383 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9384 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9386 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9388 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9389 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9390 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9391 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9392 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9393 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9394 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9397 esac
9398 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9399 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9400 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9405 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9406 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9409 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9410 HAVE_CARBON=yes
9415 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9416 if test "${with_carbon+set}" != set \
9417 && test "${carbon_appdir_x+set}" != set; then
9418 for var in with_x with_x_toolkit with_gtk with_xim \
9419 with_xpm with_jpeg with_tiff with_gif with_png; do
9420 if eval test \"\${$var+set}\" = set; then
9421 HAVE_CARBON=no
9422 break
9424 done
9427 if test "${HAVE_CARBON}" = yes; then
9428 window_system=mac
9431 case "${window_system}" in
9432 x11 )
9433 HAVE_X_WINDOWS=yes
9434 HAVE_X11=yes
9435 case "${with_x_toolkit}" in
9436 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9437 motif ) USE_X_TOOLKIT=MOTIF ;;
9438 gtk ) with_gtk=yes
9439 USE_X_TOOLKIT=none ;;
9440 no ) USE_X_TOOLKIT=none ;;
9441 * ) USE_X_TOOLKIT=maybe ;;
9442 esac
9444 mac | none )
9445 HAVE_X_WINDOWS=no
9446 HAVE_X11=no
9447 USE_X_TOOLKIT=none
9449 esac
9451 ### If we're using X11, we should use the X menu package.
9452 HAVE_MENUS=no
9453 case ${HAVE_X11} in
9454 yes ) HAVE_MENUS=yes ;;
9455 esac
9457 if test "${opsys}" = "hpux9"; then
9458 case "${x_libraries}" in
9459 *X11R4* )
9460 opsysfile="s/hpux9-x11r4.h"
9462 esac
9465 if test "${opsys}" = "hpux9shr"; then
9466 case "${x_libraries}" in
9467 *X11R4* )
9468 opsysfile="s/hpux9shxr4.h"
9470 esac
9473 ### Compute the unexec source name from the object name.
9474 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9476 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9477 # Assume not, until told otherwise.
9478 GNU_MALLOC=yes
9479 doug_lea_malloc=yes
9480 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9481 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9482 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485 cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h. */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9493 #define malloc_get_state innocuous_malloc_get_state
9495 /* System header to define __stub macros and hopefully few prototypes,
9496 which can conflict with char malloc_get_state (); below.
9497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9498 <limits.h> exists even on freestanding compilers. */
9500 #ifdef __STDC__
9501 # include <limits.h>
9502 #else
9503 # include <assert.h>
9504 #endif
9506 #undef malloc_get_state
9508 /* Override any GCC internal prototype to avoid an error.
9509 Use char because int might match the return type of a GCC
9510 builtin and then its argument prototype would still apply. */
9511 #ifdef __cplusplus
9512 extern "C"
9513 #endif
9514 char malloc_get_state ();
9515 /* The GNU C library defines this for functions which it implements
9516 to always fail with ENOSYS. Some functions are actually named
9517 something starting with __ and the normal name is an alias. */
9518 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9519 choke me
9520 #endif
9523 main ()
9525 return malloc_get_state ();
9527 return 0;
9529 _ACEOF
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9532 case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9535 esac
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_link") 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest$ac_exeext &&
9547 $as_test_x conftest$ac_exeext; then
9548 ac_cv_func_malloc_get_state=yes
9549 else
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_cv_func_malloc_get_state=no
9556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9557 conftest$ac_exeext conftest.$ac_ext
9559 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9560 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9561 if test $ac_cv_func_malloc_get_state = yes; then
9563 else
9564 doug_lea_malloc=no
9567 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9568 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9569 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h. */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9580 #define malloc_set_state innocuous_malloc_set_state
9582 /* System header to define __stub macros and hopefully few prototypes,
9583 which can conflict with char malloc_set_state (); below.
9584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9585 <limits.h> exists even on freestanding compilers. */
9587 #ifdef __STDC__
9588 # include <limits.h>
9589 #else
9590 # include <assert.h>
9591 #endif
9593 #undef malloc_set_state
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 char malloc_set_state ();
9602 /* The GNU C library defines this for functions which it implements
9603 to always fail with ENOSYS. Some functions are actually named
9604 something starting with __ and the normal name is an alias. */
9605 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9606 choke me
9607 #endif
9610 main ()
9612 return malloc_set_state ();
9614 return 0;
9616 _ACEOF
9617 rm -f conftest.$ac_objext conftest$ac_exeext
9618 if { (ac_try="$ac_link"
9619 case "(($ac_try" in
9620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621 *) ac_try_echo=$ac_try;;
9622 esac
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624 (eval "$ac_link") 2>conftest.er1
9625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } && {
9631 test -z "$ac_c_werror_flag" ||
9632 test ! -s conftest.err
9633 } && test -s conftest$ac_exeext &&
9634 $as_test_x conftest$ac_exeext; then
9635 ac_cv_func_malloc_set_state=yes
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 ac_cv_func_malloc_set_state=no
9643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9644 conftest$ac_exeext conftest.$ac_ext
9646 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9647 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9648 if test $ac_cv_func_malloc_set_state = yes; then
9650 else
9651 doug_lea_malloc=no
9654 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9655 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9656 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659 cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h. */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665 extern void (* __after_morecore_hook)();
9667 main ()
9669 __after_morecore_hook = 0
9671 return 0;
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (ac_try="$ac_link"
9676 case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_link") 2>conftest.er1
9682 ac_status=$?
9683 grep -v '^ *+' conftest.er1 >conftest.err
9684 rm -f conftest.er1
9685 cat conftest.err >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest$ac_exeext &&
9691 $as_test_x conftest$ac_exeext; then
9692 emacs_cv_var___after_morecore_hook=yes
9693 else
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 emacs_cv_var___after_morecore_hook=no
9700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9701 conftest$ac_exeext conftest.$ac_ext
9703 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9704 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9705 if test $emacs_cv_var___after_morecore_hook = no; then
9706 doug_lea_malloc=no
9708 if test "${system_malloc}" = "yes"; then
9709 GNU_MALLOC=no
9710 GNU_MALLOC_reason="
9711 (The GNU allocators don't work with this system configuration.)"
9713 if test "$doug_lea_malloc" = "yes" ; then
9714 if test "$GNU_MALLOC" = yes ; then
9715 GNU_MALLOC_reason="
9716 (Using Doug Lea's new malloc from the GNU C Library.)"
9719 cat >>confdefs.h <<\_ACEOF
9720 #define DOUG_LEA_MALLOC 1
9721 _ACEOF
9725 if test x"${REL_ALLOC}" = x; then
9726 REL_ALLOC=${GNU_MALLOC}
9732 for ac_header in stdlib.h unistd.h
9734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 ac_res=`eval echo '${'$as_ac_Header'}'`
9742 { echo "$as_me:$LINENO: result: $ac_res" >&5
9743 echo "${ECHO_T}$ac_res" >&6; }
9744 else
9745 # Is the header compilable?
9746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9748 cat >conftest.$ac_ext <<_ACEOF
9749 /* confdefs.h. */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 $ac_includes_default
9755 #include <$ac_header>
9756 _ACEOF
9757 rm -f conftest.$ac_objext
9758 if { (ac_try="$ac_compile"
9759 case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_compile") 2>conftest.er1
9765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest.$ac_objext; then
9774 ac_header_compiler=yes
9775 else
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 ac_header_compiler=no
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9784 echo "${ECHO_T}$ac_header_compiler" >&6; }
9786 # Is the header present?
9787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h. */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 #include <$ac_header>
9796 _ACEOF
9797 if { (ac_try="$ac_cpp conftest.$ac_ext"
9798 case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } >/dev/null && {
9810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 }; then
9813 ac_header_preproc=yes
9814 else
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9818 ac_header_preproc=no
9821 rm -f conftest.err conftest.$ac_ext
9822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9823 echo "${ECHO_T}$ac_header_preproc" >&6; }
9825 # So? What about this header?
9826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9827 yes:no: )
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9832 ac_header_preproc=yes
9834 no:yes:* )
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9849 esac
9850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 else
9855 eval "$as_ac_Header=\$ac_header_preproc"
9857 ac_res=`eval echo '${'$as_ac_Header'}'`
9858 { echo "$as_me:$LINENO: result: $ac_res" >&5
9859 echo "${ECHO_T}$ac_res" >&6; }
9862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9863 cat >>confdefs.h <<_ACEOF
9864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9865 _ACEOF
9869 done
9872 for ac_func in getpagesize
9874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h. */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9888 #define $ac_func innocuous_$ac_func
9890 /* System header to define __stub macros and hopefully few prototypes,
9891 which can conflict with char $ac_func (); below.
9892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 <limits.h> exists even on freestanding compilers. */
9895 #ifdef __STDC__
9896 # include <limits.h>
9897 #else
9898 # include <assert.h>
9899 #endif
9901 #undef $ac_func
9903 /* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
9906 #ifdef __cplusplus
9907 extern "C"
9908 #endif
9909 char $ac_func ();
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined __stub_$ac_func || defined __stub___$ac_func
9914 choke me
9915 #endif
9918 main ()
9920 return $ac_func ();
9922 return 0;
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (ac_try="$ac_link"
9927 case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_link") 2>conftest.er1
9933 ac_status=$?
9934 grep -v '^ *+' conftest.er1 >conftest.err
9935 rm -f conftest.er1
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } && {
9939 test -z "$ac_c_werror_flag" ||
9940 test ! -s conftest.err
9941 } && test -s conftest$ac_exeext &&
9942 $as_test_x conftest$ac_exeext; then
9943 eval "$as_ac_var=yes"
9944 else
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 eval "$as_ac_var=no"
9951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9952 conftest$ac_exeext conftest.$ac_ext
9954 ac_res=`eval echo '${'$as_ac_var'}'`
9955 { echo "$as_me:$LINENO: result: $ac_res" >&5
9956 echo "${ECHO_T}$ac_res" >&6; }
9957 if test `eval echo '${'$as_ac_var'}'` = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9960 _ACEOF
9963 done
9965 { echo "$as_me:$LINENO: checking for working mmap" >&5
9966 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9967 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970 if test "$cross_compiling" = yes; then
9971 ac_cv_func_mmap_fixed_mapped=no
9972 else
9973 cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h. */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 $ac_includes_default
9980 /* malloc might have been renamed as rpl_malloc. */
9981 #undef malloc
9983 /* Thanks to Mike Haertel and Jim Avera for this test.
9984 Here is a matrix of mmap possibilities:
9985 mmap private not fixed
9986 mmap private fixed at somewhere currently unmapped
9987 mmap private fixed at somewhere already mapped
9988 mmap shared not fixed
9989 mmap shared fixed at somewhere currently unmapped
9990 mmap shared fixed at somewhere already mapped
9991 For private mappings, we should verify that changes cannot be read()
9992 back from the file, nor mmap's back from the file at a different
9993 address. (There have been systems where private was not correctly
9994 implemented like the infamous i386 svr4.0, and systems where the
9995 VM page cache was not coherent with the file system buffer cache
9996 like early versions of FreeBSD and possibly contemporary NetBSD.)
9997 For shared mappings, we should conversely verify that changes get
9998 propagated back to all the places they're supposed to be.
10000 Grep wants private fixed already mapped.
10001 The main things grep needs to know about mmap are:
10002 * does it exist and is it safe to write into the mmap'd area
10003 * how to use it (BSD variants) */
10005 #include <fcntl.h>
10006 #include <sys/mman.h>
10008 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10009 char *malloc ();
10010 #endif
10012 /* This mess was copied from the GNU getpagesize.h. */
10013 #ifndef HAVE_GETPAGESIZE
10014 /* Assume that all systems that can run configure have sys/param.h. */
10015 # ifndef HAVE_SYS_PARAM_H
10016 # define HAVE_SYS_PARAM_H 1
10017 # endif
10019 # ifdef _SC_PAGESIZE
10020 # define getpagesize() sysconf(_SC_PAGESIZE)
10021 # else /* no _SC_PAGESIZE */
10022 # ifdef HAVE_SYS_PARAM_H
10023 # include <sys/param.h>
10024 # ifdef EXEC_PAGESIZE
10025 # define getpagesize() EXEC_PAGESIZE
10026 # else /* no EXEC_PAGESIZE */
10027 # ifdef NBPG
10028 # define getpagesize() NBPG * CLSIZE
10029 # ifndef CLSIZE
10030 # define CLSIZE 1
10031 # endif /* no CLSIZE */
10032 # else /* no NBPG */
10033 # ifdef NBPC
10034 # define getpagesize() NBPC
10035 # else /* no NBPC */
10036 # ifdef PAGESIZE
10037 # define getpagesize() PAGESIZE
10038 # endif /* PAGESIZE */
10039 # endif /* no NBPC */
10040 # endif /* no NBPG */
10041 # endif /* no EXEC_PAGESIZE */
10042 # else /* no HAVE_SYS_PARAM_H */
10043 # define getpagesize() 8192 /* punt totally */
10044 # endif /* no HAVE_SYS_PARAM_H */
10045 # endif /* no _SC_PAGESIZE */
10047 #endif /* no HAVE_GETPAGESIZE */
10050 main ()
10052 char *data, *data2, *data3;
10053 int i, pagesize;
10054 int fd;
10056 pagesize = getpagesize ();
10058 /* First, make a file with some known garbage in it. */
10059 data = (char *) malloc (pagesize);
10060 if (!data)
10061 return 1;
10062 for (i = 0; i < pagesize; ++i)
10063 *(data + i) = rand ();
10064 umask (0);
10065 fd = creat ("conftest.mmap", 0600);
10066 if (fd < 0)
10067 return 1;
10068 if (write (fd, data, pagesize) != pagesize)
10069 return 1;
10070 close (fd);
10072 /* Next, try to mmap the file at a fixed address which already has
10073 something else allocated at it. If we can, also make sure that
10074 we see the same garbage. */
10075 fd = open ("conftest.mmap", O_RDWR);
10076 if (fd < 0)
10077 return 1;
10078 data2 = (char *) malloc (2 * pagesize);
10079 if (!data2)
10080 return 1;
10081 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10082 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10083 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10084 return 1;
10085 for (i = 0; i < pagesize; ++i)
10086 if (*(data + i) != *(data2 + i))
10087 return 1;
10089 /* Finally, make sure that changes to the mapped area do not
10090 percolate back to the file as seen by read(). (This is a bug on
10091 some variants of i386 svr4.0.) */
10092 for (i = 0; i < pagesize; ++i)
10093 *(data2 + i) = *(data2 + i) + 1;
10094 data3 = (char *) malloc (pagesize);
10095 if (!data3)
10096 return 1;
10097 if (read (fd, data3, pagesize) != pagesize)
10098 return 1;
10099 for (i = 0; i < pagesize; ++i)
10100 if (*(data + i) != *(data3 + i))
10101 return 1;
10102 close (fd);
10103 return 0;
10105 _ACEOF
10106 rm -f conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10117 { (case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_try") 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_func_mmap_fixed_mapped=yes
10127 else
10128 echo "$as_me: program exited with status $ac_status" >&5
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ( exit $ac_status )
10133 ac_cv_func_mmap_fixed_mapped=no
10135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10140 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10141 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10142 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_MMAP 1
10146 _ACEOF
10149 rm -f conftest.mmap
10151 if test $use_mmap_for_buffers = yes; then
10152 REL_ALLOC=no
10155 LIBS="$libsrc_libs $LIBS"
10158 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10159 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10160 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163 ac_check_lib_save_LIBS=$LIBS
10164 LIBS="-ldnet $LIBS"
10165 cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h. */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10172 /* Override any GCC internal prototype to avoid an error.
10173 Use char because int might match the return type of a GCC
10174 builtin and then its argument prototype would still apply. */
10175 #ifdef __cplusplus
10176 extern "C"
10177 #endif
10178 char dnet_ntoa ();
10180 main ()
10182 return dnet_ntoa ();
10184 return 0;
10186 _ACEOF
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10192 esac
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_link") 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest$ac_exeext &&
10204 $as_test_x conftest$ac_exeext; then
10205 ac_cv_lib_dnet_dnet_ntoa=yes
10206 else
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_cv_lib_dnet_dnet_ntoa=no
10213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10214 conftest$ac_exeext conftest.$ac_ext
10215 LIBS=$ac_check_lib_save_LIBS
10217 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10218 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10219 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define HAVE_LIBDNET 1
10222 _ACEOF
10224 LIBS="-ldnet $LIBS"
10229 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10230 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10231 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234 ac_check_lib_save_LIBS=$LIBS
10235 LIBS="-lXbsd $LIBS"
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h. */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10245 main ()
10247 return main ();
10249 return 0;
10251 _ACEOF
10252 rm -f conftest.$ac_objext conftest$ac_exeext
10253 if { (ac_try="$ac_link"
10254 case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257 esac
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_link") 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && {
10266 test -z "$ac_c_werror_flag" ||
10267 test ! -s conftest.err
10268 } && test -s conftest$ac_exeext &&
10269 $as_test_x conftest$ac_exeext; then
10270 ac_cv_lib_Xbsd_main=yes
10271 else
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_cv_lib_Xbsd_main=no
10278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10279 conftest$ac_exeext conftest.$ac_ext
10280 LIBS=$ac_check_lib_save_LIBS
10282 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10283 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10284 if test $ac_cv_lib_Xbsd_main = yes; then
10285 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10290 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10291 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10292 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295 ac_check_lib_save_LIBS=$LIBS
10296 LIBS="-lpthreads $LIBS"
10297 cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h. */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10304 /* Override any GCC internal prototype to avoid an error.
10305 Use char because int might match the return type of a GCC
10306 builtin and then its argument prototype would still apply. */
10307 #ifdef __cplusplus
10308 extern "C"
10309 #endif
10310 char cma_open ();
10312 main ()
10314 return cma_open ();
10316 return 0;
10318 _ACEOF
10319 rm -f conftest.$ac_objext conftest$ac_exeext
10320 if { (ac_try="$ac_link"
10321 case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324 esac
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_link") 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest$ac_exeext &&
10336 $as_test_x conftest$ac_exeext; then
10337 ac_cv_lib_pthreads_cma_open=yes
10338 else
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10342 ac_cv_lib_pthreads_cma_open=no
10345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10346 conftest$ac_exeext conftest.$ac_ext
10347 LIBS=$ac_check_lib_save_LIBS
10349 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10350 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10351 if test $ac_cv_lib_pthreads_cma_open = yes; then
10352 cat >>confdefs.h <<_ACEOF
10353 #define HAVE_LIBPTHREADS 1
10354 _ACEOF
10356 LIBS="-lpthreads $LIBS"
10361 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10362 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10363 if test -d /usr/X386/include; then
10364 HAVE_XFREE386=yes
10365 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10366 else
10367 HAVE_XFREE386=no
10369 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10370 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10373 case ${host_os} in
10374 aix*)
10375 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10376 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10377 if test "${gdb_cv_bigtoc+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10381 case $GCC in
10382 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10383 *) gdb_cv_bigtoc=-bbigtoc ;;
10384 esac
10386 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10387 cat >conftest.$ac_ext <<_ACEOF
10388 /* confdefs.h. */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10395 main ()
10397 int i;
10399 return 0;
10401 _ACEOF
10402 rm -f conftest.$ac_objext conftest$ac_exeext
10403 if { (ac_try="$ac_link"
10404 case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407 esac
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest$ac_exeext &&
10419 $as_test_x conftest$ac_exeext; then
10421 else
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 gdb_cv_bigtoc=
10428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429 conftest$ac_exeext conftest.$ac_ext
10432 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10433 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10435 esac
10437 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10438 # used for the tests that follow. We set them back to REAL_CFLAGS and
10439 # REAL_CPPFLAGS later on.
10441 REAL_CPPFLAGS="$CPPFLAGS"
10443 if test "${HAVE_X11}" = "yes"; then
10444 DEFS="$C_SWITCH_X_SITE $DEFS"
10445 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10446 LIBS="$LIBX $LIBS"
10447 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10448 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10450 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10451 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10452 # but it's more convenient here to set LD_RUN_PATH
10453 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10454 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10455 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10456 export LD_RUN_PATH
10459 if test "${opsys}" = "gnu-linux"; then
10460 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10461 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h. */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10470 main ()
10472 XOpenDisplay ("foo");
10474 return 0;
10476 _ACEOF
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (ac_try="$ac_link"
10479 case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10482 esac
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_link") 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && {
10491 test -z "$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 } && test -s conftest$ac_exeext &&
10494 $as_test_x conftest$ac_exeext; then
10495 xlinux_first_failure=no
10496 else
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10500 xlinux_first_failure=yes
10503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10504 conftest$ac_exeext conftest.$ac_ext
10505 if test "${xlinux_first_failure}" = "yes"; then
10506 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10507 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10508 OLD_CPPFLAGS="$CPPFLAGS"
10509 OLD_LIBS="$LIBS"
10510 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10511 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10512 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10513 LIBS="$LIBS -b i486-linuxaout"
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h. */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10522 main ()
10524 XOpenDisplay ("foo");
10526 return 0;
10528 _ACEOF
10529 rm -f conftest.$ac_objext conftest$ac_exeext
10530 if { (ac_try="$ac_link"
10531 case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10534 esac
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_link") 2>conftest.er1
10537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } && {
10543 test -z "$ac_c_werror_flag" ||
10544 test ! -s conftest.err
10545 } && test -s conftest$ac_exeext &&
10546 $as_test_x conftest$ac_exeext; then
10547 xlinux_second_failure=no
10548 else
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 xlinux_second_failure=yes
10555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10556 conftest$ac_exeext conftest.$ac_ext
10557 if test "${xlinux_second_failure}" = "yes"; then
10558 # If we get the same failure with -b, there is no use adding -b.
10559 # So take it out. This plays safe.
10560 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10561 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10562 CPPFLAGS="$OLD_CPPFLAGS"
10563 LIBS="$OLD_LIBS"
10564 { echo "$as_me:$LINENO: result: no" >&5
10565 echo "${ECHO_T}no" >&6; }
10566 else
10567 { echo "$as_me:$LINENO: result: yes" >&5
10568 echo "${ECHO_T}yes" >&6; }
10570 else
10571 { echo "$as_me:$LINENO: result: no" >&5
10572 echo "${ECHO_T}no" >&6; }
10576 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10577 # header files included from there.
10578 { echo "$as_me:$LINENO: checking for Xkb" >&5
10579 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10580 cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h. */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 #include <X11/Xlib.h>
10587 #include <X11/XKBlib.h>
10589 main ()
10591 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10593 return 0;
10595 _ACEOF
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (ac_try="$ac_link"
10598 case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10601 esac
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_link") 2>conftest.er1
10604 ac_status=$?
10605 grep -v '^ *+' conftest.er1 >conftest.err
10606 rm -f conftest.er1
10607 cat conftest.err >&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest$ac_exeext &&
10613 $as_test_x conftest$ac_exeext; then
10614 emacs_xkb=yes
10615 else
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10619 emacs_xkb=no
10622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10623 conftest$ac_exeext conftest.$ac_ext
10624 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10625 echo "${ECHO_T}$emacs_xkb" >&6; }
10626 if test $emacs_xkb = yes; then
10628 cat >>confdefs.h <<\_ACEOF
10629 #define HAVE_XKBGETKEYBOARD 1
10630 _ACEOF
10638 for ac_func in XrmSetDatabase XScreenResourceString \
10639 XScreenNumberOfScreen XSetWMProtocols
10641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10655 #define $ac_func innocuous_$ac_func
10657 /* System header to define __stub macros and hopefully few prototypes,
10658 which can conflict with char $ac_func (); below.
10659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10660 <limits.h> exists even on freestanding compilers. */
10662 #ifdef __STDC__
10663 # include <limits.h>
10664 #else
10665 # include <assert.h>
10666 #endif
10668 #undef $ac_func
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 char $ac_func ();
10677 /* The GNU C library defines this for functions which it implements
10678 to always fail with ENOSYS. Some functions are actually named
10679 something starting with __ and the normal name is an alias. */
10680 #if defined __stub_$ac_func || defined __stub___$ac_func
10681 choke me
10682 #endif
10685 main ()
10687 return $ac_func ();
10689 return 0;
10691 _ACEOF
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (ac_try="$ac_link"
10694 case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_link") 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest$ac_exeext &&
10709 $as_test_x conftest$ac_exeext; then
10710 eval "$as_ac_var=yes"
10711 else
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 eval "$as_ac_var=no"
10718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10719 conftest$ac_exeext conftest.$ac_ext
10721 ac_res=`eval echo '${'$as_ac_var'}'`
10722 { echo "$as_me:$LINENO: result: $ac_res" >&5
10723 echo "${ECHO_T}$ac_res" >&6; }
10724 if test `eval echo '${'$as_ac_var'}'` = yes; then
10725 cat >>confdefs.h <<_ACEOF
10726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10727 _ACEOF
10730 done
10734 if test "${window_system}" = "x11"; then
10735 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10736 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10737 if test "${emacs_cv_x11_version_6+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 #include <X11/Xlib.h>
10748 main ()
10750 #if XlibSpecificationRelease < 6
10751 fail;
10752 #endif
10755 return 0;
10757 _ACEOF
10758 rm -f conftest.$ac_objext conftest$ac_exeext
10759 if { (ac_try="$ac_link"
10760 case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10763 esac
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_link") 2>conftest.er1
10766 ac_status=$?
10767 grep -v '^ *+' conftest.er1 >conftest.err
10768 rm -f conftest.er1
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && {
10772 test -z "$ac_c_werror_flag" ||
10773 test ! -s conftest.err
10774 } && test -s conftest$ac_exeext &&
10775 $as_test_x conftest$ac_exeext; then
10776 emacs_cv_x11_version_6=yes
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 emacs_cv_x11_version_6=no
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10788 if test $emacs_cv_x11_version_6 = yes; then
10789 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10790 echo "${ECHO_T}6 or newer" >&6; }
10792 cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_X11R6 1
10794 _ACEOF
10796 else
10797 { echo "$as_me:$LINENO: result: before 6" >&5
10798 echo "${ECHO_T}before 6" >&6; }
10802 if test "${window_system}" = "x11"; then
10803 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10804 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10805 if test "${emacs_cv_x11_version_5+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <X11/Xlib.h>
10816 main ()
10818 #if XlibSpecificationRelease < 5
10819 fail;
10820 #endif
10823 return 0;
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext &&
10843 $as_test_x conftest$ac_exeext; then
10844 emacs_cv_x11_version_5=yes
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 emacs_cv_x11_version_5=no
10852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10853 conftest$ac_exeext conftest.$ac_ext
10856 if test $emacs_cv_x11_version_5 = yes; then
10857 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10858 echo "${ECHO_T}5 or newer" >&6; }
10859 HAVE_X11R5=yes
10861 cat >>confdefs.h <<\_ACEOF
10862 #define HAVE_X11R5 1
10863 _ACEOF
10865 else
10866 HAVE_X11R5=no
10867 { echo "$as_me:$LINENO: result: before 5" >&5
10868 echo "${ECHO_T}before 5" >&6; }
10872 HAVE_GTK=no
10873 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10874 USE_X_TOOLKIT=none
10876 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10877 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10878 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10879 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10880 { (exit 1); exit 1; }; };
10882 GLIB_REQUIRED=2.4
10883 GTK_REQUIRED=2.4
10884 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10886 if test "X${with_pkg_config_prog}" != X; then
10887 PKG_CONFIG="${with_pkg_config_prog}"
10890 succeeded=no
10892 if test -z "$PKG_CONFIG"; then
10893 # Extract the first word of "pkg-config", so it can be a program name with args.
10894 set dummy pkg-config; ac_word=$2
10895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10897 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899 else
10900 case $PKG_CONFIG in
10901 [\\/]* | ?:[\\/]*)
10902 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10916 done
10917 done
10918 IFS=$as_save_IFS
10920 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10922 esac
10924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10925 if test -n "$PKG_CONFIG"; then
10926 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10927 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10928 else
10929 { echo "$as_me:$LINENO: result: no" >&5
10930 echo "${ECHO_T}no" >&6; }
10936 if test "$PKG_CONFIG" = "no" ; then
10937 { { echo "$as_me:$LINENO: error:
10938 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10939 echo "$as_me: error:
10940 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10941 { (exit 1); exit 1; }; }
10942 else
10943 PKG_CONFIG_MIN_VERSION=0.9.0
10944 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10945 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10946 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10948 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10949 { echo "$as_me:$LINENO: result: yes" >&5
10950 echo "${ECHO_T}yes" >&6; }
10951 succeeded=yes
10953 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10954 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10955 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10956 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10957 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10959 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10960 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10961 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10962 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10963 echo "${ECHO_T}$GTK_LIBS" >&6; }
10964 else
10965 { echo "$as_me:$LINENO: result: no" >&5
10966 echo "${ECHO_T}no" >&6; }
10967 GTK_CFLAGS=""
10968 GTK_LIBS=""
10969 ## If we have a custom action on failure, don't print errors, but
10970 ## do set a variable so people can do so.
10971 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10972 echo $GTK_PKG_ERRORS
10977 else
10978 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10979 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10983 if test $succeeded = yes; then
10985 else
10986 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
10987 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
10988 { (exit 1); exit 1; }; }
10993 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10994 CFLAGS="$CFLAGS $GTK_CFLAGS"
10995 LIBS="$GTK_LIBS $LIBS"
10996 GTK_COMPILES=no
10998 for ac_func in gtk_main
11000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h. */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11014 #define $ac_func innocuous_$ac_func
11016 /* System header to define __stub macros and hopefully few prototypes,
11017 which can conflict with char $ac_func (); below.
11018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11019 <limits.h> exists even on freestanding compilers. */
11021 #ifdef __STDC__
11022 # include <limits.h>
11023 #else
11024 # include <assert.h>
11025 #endif
11027 #undef $ac_func
11029 /* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
11032 #ifdef __cplusplus
11033 extern "C"
11034 #endif
11035 char $ac_func ();
11036 /* The GNU C library defines this for functions which it implements
11037 to always fail with ENOSYS. Some functions are actually named
11038 something starting with __ and the normal name is an alias. */
11039 #if defined __stub_$ac_func || defined __stub___$ac_func
11040 choke me
11041 #endif
11044 main ()
11046 return $ac_func ();
11048 return 0;
11050 _ACEOF
11051 rm -f conftest.$ac_objext conftest$ac_exeext
11052 if { (ac_try="$ac_link"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_link") 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest$ac_exeext &&
11068 $as_test_x conftest$ac_exeext; then
11069 eval "$as_ac_var=yes"
11070 else
11071 echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.$ac_ext >&5
11074 eval "$as_ac_var=no"
11077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11078 conftest$ac_exeext conftest.$ac_ext
11080 ac_res=`eval echo '${'$as_ac_var'}'`
11081 { echo "$as_me:$LINENO: result: $ac_res" >&5
11082 echo "${ECHO_T}$ac_res" >&6; }
11083 if test `eval echo '${'$as_ac_var'}'` = yes; then
11084 cat >>confdefs.h <<_ACEOF
11085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11086 _ACEOF
11087 GTK_COMPILES=yes
11089 done
11091 if test "${GTK_COMPILES}" != "yes"; then
11092 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11093 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11094 { (exit 1); exit 1; }; };
11097 HAVE_GTK=yes
11099 cat >>confdefs.h <<\_ACEOF
11100 #define HAVE_GTK 1
11101 _ACEOF
11103 USE_X_TOOLKIT=none
11105 if test "$with_toolkit_scroll_bars" != no; then
11106 with_toolkit_scroll_bars=yes
11109 HAVE_GTK_MULTIDISPLAY=no
11111 for ac_func in gdk_display_open
11113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11127 #define $ac_func innocuous_$ac_func
11129 /* System header to define __stub macros and hopefully few prototypes,
11130 which can conflict with char $ac_func (); below.
11131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11132 <limits.h> exists even on freestanding compilers. */
11134 #ifdef __STDC__
11135 # include <limits.h>
11136 #else
11137 # include <assert.h>
11138 #endif
11140 #undef $ac_func
11142 /* Override any GCC internal prototype to avoid an error.
11143 Use char because int might match the return type of a GCC
11144 builtin and then its argument prototype would still apply. */
11145 #ifdef __cplusplus
11146 extern "C"
11147 #endif
11148 char $ac_func ();
11149 /* The GNU C library defines this for functions which it implements
11150 to always fail with ENOSYS. Some functions are actually named
11151 something starting with __ and the normal name is an alias. */
11152 #if defined __stub_$ac_func || defined __stub___$ac_func
11153 choke me
11154 #endif
11157 main ()
11159 return $ac_func ();
11161 return 0;
11163 _ACEOF
11164 rm -f conftest.$ac_objext conftest$ac_exeext
11165 if { (ac_try="$ac_link"
11166 case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_link") 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } && {
11178 test -z "$ac_c_werror_flag" ||
11179 test ! -s conftest.err
11180 } && test -s conftest$ac_exeext &&
11181 $as_test_x conftest$ac_exeext; then
11182 eval "$as_ac_var=yes"
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 eval "$as_ac_var=no"
11190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11191 conftest$ac_exeext conftest.$ac_ext
11193 ac_res=`eval echo '${'$as_ac_var'}'`
11194 { echo "$as_me:$LINENO: result: $ac_res" >&5
11195 echo "${ECHO_T}$ac_res" >&6; }
11196 if test `eval echo '${'$as_ac_var'}'` = yes; then
11197 cat >>confdefs.h <<_ACEOF
11198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11199 _ACEOF
11200 HAVE_GTK_MULTIDISPLAY=yes
11202 done
11204 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11206 cat >>confdefs.h <<\_ACEOF
11207 #define HAVE_GTK_MULTIDISPLAY 1
11208 _ACEOF
11211 HAVE_GTK_FILE_SELECTION=no
11213 for ac_func in gtk_file_selection_new
11215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221 cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h. */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11229 #define $ac_func innocuous_$ac_func
11231 /* System header to define __stub macros and hopefully few prototypes,
11232 which can conflict with char $ac_func (); below.
11233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11234 <limits.h> exists even on freestanding compilers. */
11236 #ifdef __STDC__
11237 # include <limits.h>
11238 #else
11239 # include <assert.h>
11240 #endif
11242 #undef $ac_func
11244 /* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
11247 #ifdef __cplusplus
11248 extern "C"
11249 #endif
11250 char $ac_func ();
11251 /* The GNU C library defines this for functions which it implements
11252 to always fail with ENOSYS. Some functions are actually named
11253 something starting with __ and the normal name is an alias. */
11254 #if defined __stub_$ac_func || defined __stub___$ac_func
11255 choke me
11256 #endif
11259 main ()
11261 return $ac_func ();
11263 return 0;
11265 _ACEOF
11266 rm -f conftest.$ac_objext conftest$ac_exeext
11267 if { (ac_try="$ac_link"
11268 case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271 esac
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_link") 2>conftest.er1
11274 ac_status=$?
11275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && {
11280 test -z "$ac_c_werror_flag" ||
11281 test ! -s conftest.err
11282 } && test -s conftest$ac_exeext &&
11283 $as_test_x conftest$ac_exeext; then
11284 eval "$as_ac_var=yes"
11285 else
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 eval "$as_ac_var=no"
11292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11293 conftest$ac_exeext conftest.$ac_ext
11295 ac_res=`eval echo '${'$as_ac_var'}'`
11296 { echo "$as_me:$LINENO: result: $ac_res" >&5
11297 echo "${ECHO_T}$ac_res" >&6; }
11298 if test `eval echo '${'$as_ac_var'}'` = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11301 _ACEOF
11302 HAVE_GTK_FILE_SELECTION=yes
11304 done
11307 HAVE_GTK_FILE_CHOOSER=no
11309 for ac_func in gtk_file_chooser_dialog_new
11311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 else
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h. */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11325 #define $ac_func innocuous_$ac_func
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func (); below.
11329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11330 <limits.h> exists even on freestanding compilers. */
11332 #ifdef __STDC__
11333 # include <limits.h>
11334 #else
11335 # include <assert.h>
11336 #endif
11338 #undef $ac_func
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11343 #ifdef __cplusplus
11344 extern "C"
11345 #endif
11346 char $ac_func ();
11347 /* The GNU C library defines this for functions which it implements
11348 to always fail with ENOSYS. Some functions are actually named
11349 something starting with __ and the normal name is an alias. */
11350 #if defined __stub_$ac_func || defined __stub___$ac_func
11351 choke me
11352 #endif
11355 main ()
11357 return $ac_func ();
11359 return 0;
11361 _ACEOF
11362 rm -f conftest.$ac_objext conftest$ac_exeext
11363 if { (ac_try="$ac_link"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_link") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest$ac_exeext &&
11379 $as_test_x conftest$ac_exeext; then
11380 eval "$as_ac_var=yes"
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 eval "$as_ac_var=no"
11388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11389 conftest$ac_exeext conftest.$ac_ext
11391 ac_res=`eval echo '${'$as_ac_var'}'`
11392 { echo "$as_me:$LINENO: result: $ac_res" >&5
11393 echo "${ECHO_T}$ac_res" >&6; }
11394 if test `eval echo '${'$as_ac_var'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11397 _ACEOF
11398 HAVE_GTK_FILE_CHOOSER=yes
11400 done
11403 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11404 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11406 cat >>confdefs.h <<\_ACEOF
11407 #define HAVE_GTK_FILE_BOTH 1
11408 _ACEOF
11412 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11413 HAVE_GTK_AND_PTHREAD=no
11415 for ac_header in pthread.h
11417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 ac_res=`eval echo '${'$as_ac_Header'}'`
11425 { echo "$as_me:$LINENO: result: $ac_res" >&5
11426 echo "${ECHO_T}$ac_res" >&6; }
11427 else
11428 # Is the header compilable?
11429 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11431 cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h. */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 $ac_includes_default
11438 #include <$ac_header>
11439 _ACEOF
11440 rm -f conftest.$ac_objext
11441 if { (ac_try="$ac_compile"
11442 case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11445 esac
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_compile") 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest.$ac_objext; then
11457 ac_header_compiler=yes
11458 else
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 ac_header_compiler=no
11465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11467 echo "${ECHO_T}$ac_header_compiler" >&6; }
11469 # Is the header present?
11470 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11472 cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h. */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11478 #include <$ac_header>
11479 _ACEOF
11480 if { (ac_try="$ac_cpp conftest.$ac_ext"
11481 case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11484 esac
11485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11487 ac_status=$?
11488 grep -v '^ *+' conftest.er1 >conftest.err
11489 rm -f conftest.er1
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } >/dev/null && {
11493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11494 test ! -s conftest.err
11495 }; then
11496 ac_header_preproc=yes
11497 else
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 ac_header_preproc=no
11504 rm -f conftest.err conftest.$ac_ext
11505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11506 echo "${ECHO_T}$ac_header_preproc" >&6; }
11508 # So? What about this header?
11509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11510 yes:no: )
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11515 ac_header_preproc=yes
11517 no:yes:* )
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11532 esac
11533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538 eval "$as_ac_Header=\$ac_header_preproc"
11540 ac_res=`eval echo '${'$as_ac_Header'}'`
11541 { echo "$as_me:$LINENO: result: $ac_res" >&5
11542 echo "${ECHO_T}$ac_res" >&6; }
11545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11546 cat >>confdefs.h <<_ACEOF
11547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11548 _ACEOF
11552 done
11554 if test "$ac_cv_header_pthread_h"; then
11555 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11556 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11557 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560 ac_check_lib_save_LIBS=$LIBS
11561 LIBS="-lpthread $LIBS"
11562 cat >conftest.$ac_ext <<_ACEOF
11563 /* confdefs.h. */
11564 _ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 char pthread_self ();
11577 main ()
11579 return pthread_self ();
11581 return 0;
11583 _ACEOF
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (ac_try="$ac_link"
11586 case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11589 esac
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_link") 2>conftest.er1
11592 ac_status=$?
11593 grep -v '^ *+' conftest.er1 >conftest.err
11594 rm -f conftest.er1
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } && {
11598 test -z "$ac_c_werror_flag" ||
11599 test ! -s conftest.err
11600 } && test -s conftest$ac_exeext &&
11601 $as_test_x conftest$ac_exeext; then
11602 ac_cv_lib_pthread_pthread_self=yes
11603 else
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11607 ac_cv_lib_pthread_pthread_self=no
11610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11611 conftest$ac_exeext conftest.$ac_ext
11612 LIBS=$ac_check_lib_save_LIBS
11614 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11615 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11616 if test $ac_cv_lib_pthread_pthread_self = yes; then
11617 HAVE_GTK_AND_PTHREAD=yes
11621 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11622 GTK_LIBS="$GTK_LIBS -lpthread"
11624 cat >>confdefs.h <<\_ACEOF
11625 #define HAVE_GTK_AND_PTHREAD 1
11626 _ACEOF
11632 ### Link with -lXft if available to work around a bug.
11633 HAVE_XFT=maybe
11634 if test "${HAVE_GTK}" = "yes"; then
11635 if test "X${with_pkg_config_prog}" != X; then
11636 PKG_CONFIG="${with_pkg_config_prog}"
11640 succeeded=no
11642 if test -z "$PKG_CONFIG"; then
11643 # Extract the first word of "pkg-config", so it can be a program name with args.
11644 set dummy pkg-config; ac_word=$2
11645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11647 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650 case $PKG_CONFIG in
11651 [\\/]* | ?:[\\/]*)
11652 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656 for as_dir in $PATH
11658 IFS=$as_save_IFS
11659 test -z "$as_dir" && as_dir=.
11660 for ac_exec_ext in '' $ac_executable_extensions; do
11661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11662 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11664 break 2
11666 done
11667 done
11668 IFS=$as_save_IFS
11670 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11672 esac
11674 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11675 if test -n "$PKG_CONFIG"; then
11676 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11677 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11678 else
11679 { echo "$as_me:$LINENO: result: no" >&5
11680 echo "${ECHO_T}no" >&6; }
11686 if test "$PKG_CONFIG" = "no" ; then
11687 HAVE_XFT=no
11688 else
11689 PKG_CONFIG_MIN_VERSION=0.9.0
11690 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11691 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11692 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11694 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11695 { echo "$as_me:$LINENO: result: yes" >&5
11696 echo "${ECHO_T}yes" >&6; }
11697 succeeded=yes
11699 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11700 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11701 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11702 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11703 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11705 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11706 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11707 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11708 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11709 echo "${ECHO_T}$XFT_LIBS" >&6; }
11710 else
11711 { echo "$as_me:$LINENO: result: no" >&5
11712 echo "${ECHO_T}no" >&6; }
11713 XFT_CFLAGS=""
11714 XFT_LIBS=""
11715 ## If we have a custom action on failure, don't print errors, but
11716 ## do set a variable so people can do so.
11717 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11723 else
11724 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11725 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11729 if test $succeeded = yes; then
11731 else
11732 HAVE_XFT=no
11735 if test "$HAVE_XFT" != no; then
11736 OLD_CFLAGS="$CPPFLAGS"
11737 OLD_CFLAGS="$CFLAGS"
11738 OLD_LIBS="$LIBS"
11739 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11740 CFLAGS="$CFLAGS $XFT_CFLAGS"
11741 LIBS="$XFT_LIBS $LIBS"
11742 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11743 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11744 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11745 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11749 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11750 else
11751 # Is the header compilable?
11752 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11753 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11754 cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h. */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 $ac_includes_default
11761 #include <X11/Xft/Xft.h>
11762 _ACEOF
11763 rm -f conftest.$ac_objext
11764 if { (ac_try="$ac_compile"
11765 case "(($ac_try" in
11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11768 esac
11769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770 (eval "$ac_compile") 2>conftest.er1
11771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } && {
11777 test -z "$ac_c_werror_flag" ||
11778 test ! -s conftest.err
11779 } && test -s conftest.$ac_objext; then
11780 ac_header_compiler=yes
11781 else
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11785 ac_header_compiler=no
11788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11790 echo "${ECHO_T}$ac_header_compiler" >&6; }
11792 # Is the header present?
11793 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11794 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11795 cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h. */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 #include <X11/Xft/Xft.h>
11802 _ACEOF
11803 if { (ac_try="$ac_cpp conftest.$ac_ext"
11804 case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807 esac
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } >/dev/null && {
11816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 }; then
11819 ac_header_preproc=yes
11820 else
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 ac_header_preproc=no
11827 rm -f conftest.err conftest.$ac_ext
11828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11829 echo "${ECHO_T}$ac_header_preproc" >&6; }
11831 # So? What about this header?
11832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11833 yes:no: )
11834 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11835 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11837 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11838 ac_header_preproc=yes
11840 no:yes:* )
11841 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11842 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11844 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11846 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11848 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11850 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11851 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11852 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11855 esac
11856 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11857 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11858 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 else
11861 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11863 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11864 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11867 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11868 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11869 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11870 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 ac_check_lib_save_LIBS=$LIBS
11874 LIBS="-lXft $XFT_LIBS $LIBS"
11875 cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h. */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 char XftFontOpen ();
11890 main ()
11892 return XftFontOpen ();
11894 return 0;
11896 _ACEOF
11897 rm -f conftest.$ac_objext conftest$ac_exeext
11898 if { (ac_try="$ac_link"
11899 case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902 esac
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_link") 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest$ac_exeext &&
11914 $as_test_x conftest$ac_exeext; then
11915 ac_cv_lib_Xft_XftFontOpen=yes
11916 else
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_cv_lib_Xft_XftFontOpen=no
11923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11928 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11929 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11930 HAVE_XFT=yes
11937 if test "${HAVE_XFT}" = "yes"; then
11939 cat >>confdefs.h <<\_ACEOF
11940 #define HAVE_XFT 1
11941 _ACEOF
11944 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11945 else
11946 CFLAGS="$OLD_CPPFLAGS"
11947 CFLAGS="$OLD_CFLAGS"
11948 LIBS="$OLD_LIBS"
11953 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11954 if test x"${HAVE_X11R5}" = xyes; then
11955 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11956 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11957 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h. */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11967 #include <X11/Intrinsic.h>
11968 #include <X11/Xaw/Simple.h>
11970 main ()
11974 return 0;
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (ac_try="$ac_link"
11979 case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982 esac
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_link") 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } && {
11991 test -z "$ac_c_werror_flag" ||
11992 test ! -s conftest.err
11993 } && test -s conftest$ac_exeext &&
11994 $as_test_x conftest$ac_exeext; then
11995 emacs_cv_x11_version_5_with_xaw=yes
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 emacs_cv_x11_version_5_with_xaw=no
12003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12004 conftest$ac_exeext conftest.$ac_ext
12007 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12008 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12009 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12010 USE_X_TOOLKIT=LUCID
12011 else
12012 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12013 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12014 USE_X_TOOLKIT=none
12016 else
12017 USE_X_TOOLKIT=none
12021 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12023 if test "${USE_X_TOOLKIT}" != "none"; then
12024 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12025 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12026 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029 cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h. */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 #include <X11/Intrinsic.h>
12037 main ()
12039 #if XtSpecificationRelease < 6
12040 fail;
12041 #endif
12044 return 0;
12046 _ACEOF
12047 rm -f conftest.$ac_objext conftest$ac_exeext
12048 if { (ac_try="$ac_link"
12049 case "(($ac_try" in
12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12052 esac
12053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12054 (eval "$ac_link") 2>conftest.er1
12055 ac_status=$?
12056 grep -v '^ *+' conftest.er1 >conftest.err
12057 rm -f conftest.er1
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } && {
12061 test -z "$ac_c_werror_flag" ||
12062 test ! -s conftest.err
12063 } && test -s conftest$ac_exeext &&
12064 $as_test_x conftest$ac_exeext; then
12065 emacs_cv_x11_toolkit_version_6=yes
12066 else
12067 echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12070 emacs_cv_x11_toolkit_version_6=no
12073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12074 conftest$ac_exeext conftest.$ac_ext
12077 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12078 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12079 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12080 echo "${ECHO_T}6 or newer" >&6; }
12082 cat >>confdefs.h <<\_ACEOF
12083 #define HAVE_X11XTR6 1
12084 _ACEOF
12086 else
12087 { echo "$as_me:$LINENO: result: before 6" >&5
12088 echo "${ECHO_T}before 6" >&6; }
12091 OLDLIBS="$LIBS"
12092 if test x$HAVE_X11XTR6 = xyes; then
12093 LIBS="-lXt -lSM -lICE $LIBS"
12094 else
12095 LIBS="-lXt $LIBS"
12098 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12099 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12100 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103 ac_check_lib_save_LIBS=$LIBS
12104 LIBS="-lXmu $LIBS"
12105 cat >conftest.$ac_ext <<_ACEOF
12106 /* confdefs.h. */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12112 /* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12115 #ifdef __cplusplus
12116 extern "C"
12117 #endif
12118 char XmuConvertStandardSelection ();
12120 main ()
12122 return XmuConvertStandardSelection ();
12124 return 0;
12126 _ACEOF
12127 rm -f conftest.$ac_objext conftest$ac_exeext
12128 if { (ac_try="$ac_link"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_link") 2>conftest.er1
12135 ac_status=$?
12136 grep -v '^ *+' conftest.er1 >conftest.err
12137 rm -f conftest.er1
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } && {
12141 test -z "$ac_c_werror_flag" ||
12142 test ! -s conftest.err
12143 } && test -s conftest$ac_exeext &&
12144 $as_test_x conftest$ac_exeext; then
12145 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12146 else
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12154 conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12157 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12158 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12159 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12160 cat >>confdefs.h <<_ACEOF
12161 #define HAVE_LIBXMU 1
12162 _ACEOF
12164 LIBS="-lXmu $LIBS"
12168 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12171 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12172 if test "${HAVE_X11}" = "yes"; then
12173 if test "${USE_X_TOOLKIT}" != "none"; then
12175 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12176 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12177 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180 ac_check_lib_save_LIBS=$LIBS
12181 LIBS="-lXext $LIBS"
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h. */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12192 #ifdef __cplusplus
12193 extern "C"
12194 #endif
12195 char XShapeQueryExtension ();
12197 main ()
12199 return XShapeQueryExtension ();
12201 return 0;
12203 _ACEOF
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_link") 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } && {
12218 test -z "$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest$ac_exeext &&
12221 $as_test_x conftest$ac_exeext; then
12222 ac_cv_lib_Xext_XShapeQueryExtension=yes
12223 else
12224 echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12227 ac_cv_lib_Xext_XShapeQueryExtension=no
12230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12231 conftest$ac_exeext conftest.$ac_ext
12232 LIBS=$ac_check_lib_save_LIBS
12234 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12235 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12236 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12237 cat >>confdefs.h <<_ACEOF
12238 #define HAVE_LIBXEXT 1
12239 _ACEOF
12241 LIBS="-lXext $LIBS"
12248 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12249 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12250 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12251 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h. */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260 #include <Xm/Xm.h>
12262 main ()
12264 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12265 int x = 5;
12266 #else
12267 Motif version prior to 2.1.
12268 #endif
12270 return 0;
12272 _ACEOF
12273 rm -f conftest.$ac_objext
12274 if { (ac_try="$ac_compile"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12278 esac
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_compile") 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest.$ac_objext; then
12290 emacs_cv_motif_version_2_1=yes
12291 else
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12295 emacs_cv_motif_version_2_1=no
12298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12301 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12302 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12303 if test $emacs_cv_motif_version_2_1 = yes; then
12304 HAVE_LIBXP=no
12306 cat >>confdefs.h <<\_ACEOF
12307 #define HAVE_MOTIF_2_1 1
12308 _ACEOF
12310 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12311 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12312 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315 ac_check_lib_save_LIBS=$LIBS
12316 LIBS="-lXp $LIBS"
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h. */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12324 /* Override any GCC internal prototype to avoid an error.
12325 Use char because int might match the return type of a GCC
12326 builtin and then its argument prototype would still apply. */
12327 #ifdef __cplusplus
12328 extern "C"
12329 #endif
12330 char XpCreateContext ();
12332 main ()
12334 return XpCreateContext ();
12336 return 0;
12338 _ACEOF
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (ac_try="$ac_link"
12341 case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12344 esac
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_link") 2>conftest.er1
12347 ac_status=$?
12348 grep -v '^ *+' conftest.er1 >conftest.err
12349 rm -f conftest.er1
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } && {
12353 test -z "$ac_c_werror_flag" ||
12354 test ! -s conftest.err
12355 } && test -s conftest$ac_exeext &&
12356 $as_test_x conftest$ac_exeext; then
12357 ac_cv_lib_Xp_XpCreateContext=yes
12358 else
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ac_cv_lib_Xp_XpCreateContext=no
12365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12366 conftest$ac_exeext conftest.$ac_ext
12367 LIBS=$ac_check_lib_save_LIBS
12369 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12370 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12371 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12372 HAVE_LIBXP=yes
12375 if test ${HAVE_LIBXP} = yes; then
12377 cat >>confdefs.h <<\_ACEOF
12378 #define HAVE_LIBXP 1
12379 _ACEOF
12382 else
12383 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12384 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12385 if test "${emacs_cv_lesstif+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388 # We put this in CFLAGS temporarily to precede other -I options
12389 # that might be in CFLAGS temporarily.
12390 # We put this in CPPFLAGS where it precedes the other -I options.
12391 OLD_CPPFLAGS=$CPPFLAGS
12392 OLD_CFLAGS=$CFLAGS
12393 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12394 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12395 cat >conftest.$ac_ext <<_ACEOF
12396 /* confdefs.h. */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12401 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12403 main ()
12405 int x = 5;
12407 return 0;
12409 _ACEOF
12410 rm -f conftest.$ac_objext
12411 if { (ac_try="$ac_compile"
12412 case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_compile") 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && {
12424 test -z "$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 } && test -s conftest.$ac_objext; then
12427 emacs_cv_lesstif=yes
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 emacs_cv_lesstif=no
12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12438 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12439 if test $emacs_cv_lesstif = yes; then
12440 # Make sure this -I option remains in CPPFLAGS after it is set
12441 # back to REAL_CPPFLAGS.
12442 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12443 # have those other -I options anyway. Ultimately, having this
12444 # directory ultimately in CPPFLAGS will be enough.
12445 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12446 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12447 else
12448 CFLAGS=$OLD_CFLAGS
12449 CPPFLAGS=$OLD_CPPFLAGS
12454 ### Is -lXaw3d available?
12455 HAVE_XAW3D=no
12456 if test "${HAVE_X11}" = "yes"; then
12457 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12458 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12459 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12460 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h. */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469 #include <X11/Xaw3d/Scrollbar.h>
12470 _ACEOF
12471 if { (ac_try="$ac_cpp conftest.$ac_ext"
12472 case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12475 esac
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12478 ac_status=$?
12479 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } >/dev/null && {
12484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12485 test ! -s conftest.err
12486 }; then
12487 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12488 else
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12495 rm -f conftest.err conftest.$ac_ext
12497 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12498 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12499 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12500 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12501 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12502 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505 ac_check_lib_save_LIBS=$LIBS
12506 LIBS="-lXaw3d $LIBS"
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h. */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12514 /* Override any GCC internal prototype to avoid an error.
12515 Use char because int might match the return type of a GCC
12516 builtin and then its argument prototype would still apply. */
12517 #ifdef __cplusplus
12518 extern "C"
12519 #endif
12520 char XawScrollbarSetThumb ();
12522 main ()
12524 return XawScrollbarSetThumb ();
12526 return 0;
12528 _ACEOF
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (ac_try="$ac_link"
12531 case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_link") 2>conftest.er1
12537 ac_status=$?
12538 grep -v '^ *+' conftest.er1 >conftest.err
12539 rm -f conftest.er1
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && {
12543 test -z "$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12545 } && test -s conftest$ac_exeext &&
12546 $as_test_x conftest$ac_exeext; then
12547 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12548 else
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12556 conftest$ac_exeext conftest.$ac_ext
12557 LIBS=$ac_check_lib_save_LIBS
12559 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12560 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12561 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12562 HAVE_XAW3D=yes
12568 if test "${HAVE_XAW3D}" = "yes"; then
12570 cat >>confdefs.h <<\_ACEOF
12571 #define HAVE_XAW3D 1
12572 _ACEOF
12580 USE_TOOLKIT_SCROLL_BARS=no
12581 if test "${with_toolkit_scroll_bars}" != "no"; then
12582 if test "${USE_X_TOOLKIT}" != "none"; then
12583 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12584 cat >>confdefs.h <<\_ACEOF
12585 #define USE_TOOLKIT_SCROLL_BARS 1
12586 _ACEOF
12588 HAVE_XAW3D=no
12589 USE_TOOLKIT_SCROLL_BARS=yes
12590 elif test "${HAVE_XAW3D}" = "yes"; then
12591 cat >>confdefs.h <<\_ACEOF
12592 #define USE_TOOLKIT_SCROLL_BARS 1
12593 _ACEOF
12595 USE_TOOLKIT_SCROLL_BARS=yes
12597 elif test "${HAVE_GTK}" = "yes"; then
12598 cat >>confdefs.h <<\_ACEOF
12599 #define USE_TOOLKIT_SCROLL_BARS 1
12600 _ACEOF
12602 USE_TOOLKIT_SCROLL_BARS=yes
12603 elif test "${HAVE_CARBON}" = "yes"; then
12604 cat >>confdefs.h <<\_ACEOF
12605 #define USE_TOOLKIT_SCROLL_BARS 1
12606 _ACEOF
12608 USE_TOOLKIT_SCROLL_BARS=yes
12612 cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h. */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12619 #include <X11/Xlib.h>
12620 #include <X11/Xresource.h>
12622 main ()
12624 XIMProc callback;
12626 return 0;
12628 _ACEOF
12629 rm -f conftest.$ac_objext
12630 if { (ac_try="$ac_compile"
12631 case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_compile") 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && {
12643 test -z "$ac_c_werror_flag" ||
12644 test ! -s conftest.err
12645 } && test -s conftest.$ac_objext; then
12646 HAVE_XIM=yes
12648 cat >>confdefs.h <<\_ACEOF
12649 #define HAVE_XIM 1
12650 _ACEOF
12652 else
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 HAVE_XIM=no
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12662 if test "${with_xim}" != "no"; then
12664 cat >>confdefs.h <<\_ACEOF
12665 #define USE_XIM 1
12666 _ACEOF
12671 if test "${HAVE_XIM}" != "no"; then
12672 late_CFLAGS=$CFLAGS
12673 if test "$GCC" = yes; then
12674 CFLAGS="$CFLAGS --pedantic-errors"
12676 cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h. */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12683 #include <X11/Xlib.h>
12684 #include <X11/Xresource.h>
12686 main ()
12688 Display *display;
12689 XrmDatabase db;
12690 char *res_name;
12691 char *res_class;
12692 XIMProc callback;
12693 XPointer *client_data;
12694 #ifndef __GNUC__
12695 /* If we're not using GCC, it's probably not XFree86, and this is
12696 probably right, but we can't use something like --pedantic-errors. */
12697 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12698 char*, XIMProc, XPointer*);
12699 #endif
12700 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12701 client_data);
12703 return 0;
12705 _ACEOF
12706 rm -f conftest.$ac_objext
12707 if { (ac_try="$ac_compile"
12708 case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12711 esac
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713 (eval "$ac_compile") 2>conftest.er1
12714 ac_status=$?
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && {
12720 test -z "$ac_c_werror_flag" ||
12721 test ! -s conftest.err
12722 } && test -s conftest.$ac_objext; then
12723 emacs_cv_arg6_star=yes
12724 else
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733 if test "$emacs_cv_arg6_star" = yes; then
12734 cat >>confdefs.h <<\_ACEOF
12735 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12736 _ACEOF
12738 else
12739 cat >>confdefs.h <<\_ACEOF
12740 #define XRegisterIMInstantiateCallback_arg6 XPointer
12741 _ACEOF
12744 CFLAGS=$late_CFLAGS
12747 ### Use -lXpm if available, unless `--with-xpm=no'.
12748 HAVE_XPM=no
12749 if test "${HAVE_X11}" = "yes"; then
12750 if test "${with_xpm}" != "no"; then
12751 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12752 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12753 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12754 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12755 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12758 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12759 else
12760 # Is the header compilable?
12761 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12762 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h. */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769 $ac_includes_default
12770 #include <X11/xpm.h>
12771 _ACEOF
12772 rm -f conftest.$ac_objext
12773 if { (ac_try="$ac_compile"
12774 case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_compile") 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } && {
12786 test -z "$ac_c_werror_flag" ||
12787 test ! -s conftest.err
12788 } && test -s conftest.$ac_objext; then
12789 ac_header_compiler=yes
12790 else
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12794 ac_header_compiler=no
12797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12799 echo "${ECHO_T}$ac_header_compiler" >&6; }
12801 # Is the header present?
12802 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12803 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h. */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 #include <X11/xpm.h>
12811 _ACEOF
12812 if { (ac_try="$ac_cpp conftest.$ac_ext"
12813 case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816 esac
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12819 ac_status=$?
12820 grep -v '^ *+' conftest.er1 >conftest.err
12821 rm -f conftest.er1
12822 cat conftest.err >&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } >/dev/null && {
12825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12826 test ! -s conftest.err
12827 }; then
12828 ac_header_preproc=yes
12829 else
12830 echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12833 ac_header_preproc=no
12836 rm -f conftest.err conftest.$ac_ext
12837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12838 echo "${ECHO_T}$ac_header_preproc" >&6; }
12840 # So? What about this header?
12841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12842 yes:no: )
12843 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12844 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12846 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12847 ac_header_preproc=yes
12849 no:yes:* )
12850 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12851 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12853 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12855 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12857 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12859 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12861 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12864 esac
12865 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12866 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12867 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870 ac_cv_header_X11_xpm_h=$ac_header_preproc
12872 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12873 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12876 if test $ac_cv_header_X11_xpm_h = yes; then
12877 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12878 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12879 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12881 else
12882 ac_check_lib_save_LIBS=$LIBS
12883 LIBS="-lXpm -lX11 $LIBS"
12884 cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h. */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12891 /* Override any GCC internal prototype to avoid an error.
12892 Use char because int might match the return type of a GCC
12893 builtin and then its argument prototype would still apply. */
12894 #ifdef __cplusplus
12895 extern "C"
12896 #endif
12897 char XpmReadFileToPixmap ();
12899 main ()
12901 return XpmReadFileToPixmap ();
12903 return 0;
12905 _ACEOF
12906 rm -f conftest.$ac_objext conftest$ac_exeext
12907 if { (ac_try="$ac_link"
12908 case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12911 esac
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_link") 2>conftest.er1
12914 ac_status=$?
12915 grep -v '^ *+' conftest.er1 >conftest.err
12916 rm -f conftest.er1
12917 cat conftest.err >&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } && {
12920 test -z "$ac_c_werror_flag" ||
12921 test ! -s conftest.err
12922 } && test -s conftest$ac_exeext &&
12923 $as_test_x conftest$ac_exeext; then
12924 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12925 else
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12929 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12933 conftest$ac_exeext conftest.$ac_ext
12934 LIBS=$ac_check_lib_save_LIBS
12936 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12937 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12938 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12939 HAVE_XPM=yes
12945 if test "${HAVE_XPM}" = "yes"; then
12946 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12947 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12948 cat >conftest.$ac_ext <<_ACEOF
12949 /* confdefs.h. */
12950 _ACEOF
12951 cat confdefs.h >>conftest.$ac_ext
12952 cat >>conftest.$ac_ext <<_ACEOF
12953 /* end confdefs.h. */
12954 #include "X11/xpm.h"
12955 #ifndef XpmReturnAllocPixels
12956 no_return_alloc_pixels
12957 #endif
12959 _ACEOF
12960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12961 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12962 HAVE_XPM=no
12963 else
12964 HAVE_XPM=yes
12966 rm -f conftest*
12969 if test "${HAVE_XPM}" = "yes"; then
12970 { echo "$as_me:$LINENO: result: yes" >&5
12971 echo "${ECHO_T}yes" >&6; }
12972 else
12973 { echo "$as_me:$LINENO: result: no" >&5
12974 echo "${ECHO_T}no" >&6; }
12979 if test "${HAVE_XPM}" = "yes"; then
12981 cat >>confdefs.h <<\_ACEOF
12982 #define HAVE_XPM 1
12983 _ACEOF
12988 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12989 HAVE_JPEG=no
12990 if test "${HAVE_X11}" = "yes"; then
12991 if test "${with_jpeg}" != "no"; then
12992 if test "${ac_cv_header_jerror_h+set}" = set; then
12993 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12994 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12995 if test "${ac_cv_header_jerror_h+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12999 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13000 else
13001 # Is the header compilable?
13002 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13003 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13004 cat >conftest.$ac_ext <<_ACEOF
13005 /* confdefs.h. */
13006 _ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13010 $ac_includes_default
13011 #include <jerror.h>
13012 _ACEOF
13013 rm -f conftest.$ac_objext
13014 if { (ac_try="$ac_compile"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_compile") 2>conftest.er1
13021 ac_status=$?
13022 grep -v '^ *+' conftest.er1 >conftest.err
13023 rm -f conftest.er1
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } && {
13027 test -z "$ac_c_werror_flag" ||
13028 test ! -s conftest.err
13029 } && test -s conftest.$ac_objext; then
13030 ac_header_compiler=yes
13031 else
13032 echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13035 ac_header_compiler=no
13038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13040 echo "${ECHO_T}$ac_header_compiler" >&6; }
13042 # Is the header present?
13043 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13044 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13045 cat >conftest.$ac_ext <<_ACEOF
13046 /* confdefs.h. */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 #include <jerror.h>
13052 _ACEOF
13053 if { (ac_try="$ac_cpp conftest.$ac_ext"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } >/dev/null && {
13066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 }; then
13069 ac_header_preproc=yes
13070 else
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_header_preproc=no
13077 rm -f conftest.err conftest.$ac_ext
13078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13079 echo "${ECHO_T}$ac_header_preproc" >&6; }
13081 # So? What about this header?
13082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13083 yes:no: )
13084 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13085 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13086 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13087 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13088 ac_header_preproc=yes
13090 no:yes:* )
13091 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13092 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13093 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13094 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13096 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13097 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13098 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13100 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13101 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13102 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13105 esac
13106 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13107 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13108 if test "${ac_cv_header_jerror_h+set}" = set; then
13109 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 else
13111 ac_cv_header_jerror_h=$ac_header_preproc
13113 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13114 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13117 if test $ac_cv_header_jerror_h = yes; then
13118 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13119 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13120 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 else
13123 ac_check_lib_save_LIBS=$LIBS
13124 LIBS="-ljpeg $LIBS"
13125 cat >conftest.$ac_ext <<_ACEOF
13126 /* confdefs.h. */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13132 /* Override any GCC internal prototype to avoid an error.
13133 Use char because int might match the return type of a GCC
13134 builtin and then its argument prototype would still apply. */
13135 #ifdef __cplusplus
13136 extern "C"
13137 #endif
13138 char jpeg_destroy_compress ();
13140 main ()
13142 return jpeg_destroy_compress ();
13144 return 0;
13146 _ACEOF
13147 rm -f conftest.$ac_objext conftest$ac_exeext
13148 if { (ac_try="$ac_link"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_link") 2>conftest.er1
13155 ac_status=$?
13156 grep -v '^ *+' conftest.er1 >conftest.err
13157 rm -f conftest.er1
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } && {
13161 test -z "$ac_c_werror_flag" ||
13162 test ! -s conftest.err
13163 } && test -s conftest$ac_exeext &&
13164 $as_test_x conftest$ac_exeext; then
13165 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13166 else
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13174 conftest$ac_exeext conftest.$ac_ext
13175 LIBS=$ac_check_lib_save_LIBS
13177 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13178 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13179 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13180 HAVE_JPEG=yes
13189 if test "${HAVE_JPEG}" = "yes"; then
13190 cat >>confdefs.h <<\_ACEOF
13191 #define HAVE_JPEG 1
13192 _ACEOF
13194 cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h. */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13200 #include <jpeglib.h>
13201 version=JPEG_LIB_VERSION
13203 _ACEOF
13204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13205 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13206 cat >>confdefs.h <<\_ACEOF
13207 #define HAVE_JPEG 1
13208 _ACEOF
13210 else
13211 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13212 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13213 HAVE_JPEG=no
13215 rm -f conftest*
13220 ### Use -lpng if available, unless `--with-png=no'.
13221 HAVE_PNG=no
13222 if test "${HAVE_X11}" = "yes"; then
13223 if test "${with_png}" != "no"; then
13224 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13225 # in /usr/include/libpng.
13228 for ac_header in png.h libpng/png.h
13230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 ac_res=`eval echo '${'$as_ac_Header'}'`
13238 { echo "$as_me:$LINENO: result: $ac_res" >&5
13239 echo "${ECHO_T}$ac_res" >&6; }
13240 else
13241 # Is the header compilable?
13242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h. */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250 $ac_includes_default
13251 #include <$ac_header>
13252 _ACEOF
13253 rm -f conftest.$ac_objext
13254 if { (ac_try="$ac_compile"
13255 case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258 esac
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_compile") 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } && {
13267 test -z "$ac_c_werror_flag" ||
13268 test ! -s conftest.err
13269 } && test -s conftest.$ac_objext; then
13270 ac_header_compiler=yes
13271 else
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13275 ac_header_compiler=no
13278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13280 echo "${ECHO_T}$ac_header_compiler" >&6; }
13282 # Is the header present?
13283 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13285 cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h. */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <$ac_header>
13292 _ACEOF
13293 if { (ac_try="$ac_cpp conftest.$ac_ext"
13294 case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13297 esac
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } >/dev/null && {
13306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13307 test ! -s conftest.err
13308 }; then
13309 ac_header_preproc=yes
13310 else
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13314 ac_header_preproc=no
13317 rm -f conftest.err conftest.$ac_ext
13318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13319 echo "${ECHO_T}$ac_header_preproc" >&6; }
13321 # So? What about this header?
13322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13323 yes:no: )
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13328 ac_header_preproc=yes
13330 no:yes:* )
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13345 esac
13346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351 eval "$as_ac_Header=\$ac_header_preproc"
13353 ac_res=`eval echo '${'$as_ac_Header'}'`
13354 { echo "$as_me:$LINENO: result: $ac_res" >&5
13355 echo "${ECHO_T}$ac_res" >&6; }
13358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13359 cat >>confdefs.h <<_ACEOF
13360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13361 _ACEOF
13365 done
13367 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13368 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13369 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13370 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373 ac_check_lib_save_LIBS=$LIBS
13374 LIBS="-lpng -lz -lm $LIBS"
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h. */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13382 /* Override any GCC internal prototype to avoid an error.
13383 Use char because int might match the return type of a GCC
13384 builtin and then its argument prototype would still apply. */
13385 #ifdef __cplusplus
13386 extern "C"
13387 #endif
13388 char png_get_channels ();
13390 main ()
13392 return png_get_channels ();
13394 return 0;
13396 _ACEOF
13397 rm -f conftest.$ac_objext conftest$ac_exeext
13398 if { (ac_try="$ac_link"
13399 case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402 esac
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_link") 2>conftest.er1
13405 ac_status=$?
13406 grep -v '^ *+' conftest.er1 >conftest.err
13407 rm -f conftest.er1
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } && {
13411 test -z "$ac_c_werror_flag" ||
13412 test ! -s conftest.err
13413 } && test -s conftest$ac_exeext &&
13414 $as_test_x conftest$ac_exeext; then
13415 ac_cv_lib_png_png_get_channels=yes
13416 else
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 ac_cv_lib_png_png_get_channels=no
13423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13424 conftest$ac_exeext conftest.$ac_ext
13425 LIBS=$ac_check_lib_save_LIBS
13427 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13428 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13429 if test $ac_cv_lib_png_png_get_channels = yes; then
13430 HAVE_PNG=yes
13436 if test "${HAVE_PNG}" = "yes"; then
13438 cat >>confdefs.h <<\_ACEOF
13439 #define HAVE_PNG 1
13440 _ACEOF
13445 ### Use -ltiff if available, unless `--with-tiff=no'.
13446 HAVE_TIFF=no
13447 if test "${HAVE_X11}" = "yes"; then
13448 if test "${with_tiff}" != "no"; then
13449 if test "${ac_cv_header_tiffio_h+set}" = set; then
13450 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13451 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13452 if test "${ac_cv_header_tiffio_h+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13456 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13457 else
13458 # Is the header compilable?
13459 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13460 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h. */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 $ac_includes_default
13468 #include <tiffio.h>
13469 _ACEOF
13470 rm -f conftest.$ac_objext
13471 if { (ac_try="$ac_compile"
13472 case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475 esac
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_compile") 2>conftest.er1
13478 ac_status=$?
13479 grep -v '^ *+' conftest.er1 >conftest.err
13480 rm -f conftest.er1
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } && {
13484 test -z "$ac_c_werror_flag" ||
13485 test ! -s conftest.err
13486 } && test -s conftest.$ac_objext; then
13487 ac_header_compiler=yes
13488 else
13489 echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13492 ac_header_compiler=no
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13497 echo "${ECHO_T}$ac_header_compiler" >&6; }
13499 # Is the header present?
13500 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13501 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13502 cat >conftest.$ac_ext <<_ACEOF
13503 /* confdefs.h. */
13504 _ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h. */
13508 #include <tiffio.h>
13509 _ACEOF
13510 if { (ac_try="$ac_cpp conftest.$ac_ext"
13511 case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13514 esac
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13517 ac_status=$?
13518 grep -v '^ *+' conftest.er1 >conftest.err
13519 rm -f conftest.er1
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } >/dev/null && {
13523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13524 test ! -s conftest.err
13525 }; then
13526 ac_header_preproc=yes
13527 else
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 ac_header_preproc=no
13534 rm -f conftest.err conftest.$ac_ext
13535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13536 echo "${ECHO_T}$ac_header_preproc" >&6; }
13538 # So? What about this header?
13539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13540 yes:no: )
13541 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13542 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13543 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13544 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13545 ac_header_preproc=yes
13547 no:yes:* )
13548 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13549 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13551 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13553 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13555 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13556 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13557 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13559 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13562 esac
13563 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13564 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13565 if test "${ac_cv_header_tiffio_h+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568 ac_cv_header_tiffio_h=$ac_header_preproc
13570 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13571 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13574 if test $ac_cv_header_tiffio_h = yes; then
13575 tifflibs="-lz -lm"
13576 # At least one tiff package requires the jpeg library.
13577 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13578 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13579 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13580 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583 ac_check_lib_save_LIBS=$LIBS
13584 LIBS="-ltiff $tifflibs $LIBS"
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h. */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13592 /* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13595 #ifdef __cplusplus
13596 extern "C"
13597 #endif
13598 char TIFFGetVersion ();
13600 main ()
13602 return TIFFGetVersion ();
13604 return 0;
13606 _ACEOF
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (ac_try="$ac_link"
13609 case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612 esac
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_link") 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } && {
13621 test -z "$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest$ac_exeext &&
13624 $as_test_x conftest$ac_exeext; then
13625 ac_cv_lib_tiff_TIFFGetVersion=yes
13626 else
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_cv_lib_tiff_TIFFGetVersion=no
13633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13637 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13638 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13639 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13640 HAVE_TIFF=yes
13648 if test "${HAVE_TIFF}" = "yes"; then
13650 cat >>confdefs.h <<\_ACEOF
13651 #define HAVE_TIFF 1
13652 _ACEOF
13657 ### Use -lgif if available, unless `--with-gif=no'.
13658 HAVE_GIF=no
13659 if test "${HAVE_X11}" = "yes"; then
13660 if test "${with_gif}" != "no"; then
13661 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13662 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13663 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13664 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13668 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13669 else
13670 # Is the header compilable?
13671 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13672 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13673 cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h. */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13679 $ac_includes_default
13680 #include <gif_lib.h>
13681 _ACEOF
13682 rm -f conftest.$ac_objext
13683 if { (ac_try="$ac_compile"
13684 case "(($ac_try" in
13685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13686 *) ac_try_echo=$ac_try;;
13687 esac
13688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13689 (eval "$ac_compile") 2>conftest.er1
13690 ac_status=$?
13691 grep -v '^ *+' conftest.er1 >conftest.err
13692 rm -f conftest.er1
13693 cat conftest.err >&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } && {
13696 test -z "$ac_c_werror_flag" ||
13697 test ! -s conftest.err
13698 } && test -s conftest.$ac_objext; then
13699 ac_header_compiler=yes
13700 else
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13704 ac_header_compiler=no
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13709 echo "${ECHO_T}$ac_header_compiler" >&6; }
13711 # Is the header present?
13712 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13713 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13714 cat >conftest.$ac_ext <<_ACEOF
13715 /* confdefs.h. */
13716 _ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 #include <gif_lib.h>
13721 _ACEOF
13722 if { (ac_try="$ac_cpp conftest.$ac_ext"
13723 case "(($ac_try" in
13724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13726 esac
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13729 ac_status=$?
13730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } >/dev/null && {
13735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13736 test ! -s conftest.err
13737 }; then
13738 ac_header_preproc=yes
13739 else
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13743 ac_header_preproc=no
13746 rm -f conftest.err conftest.$ac_ext
13747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13748 echo "${ECHO_T}$ac_header_preproc" >&6; }
13750 # So? What about this header?
13751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13752 yes:no: )
13753 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13754 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13756 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13757 ac_header_preproc=yes
13759 no:yes:* )
13760 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13761 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13763 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13765 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13767 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13768 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13769 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13770 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13771 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13774 esac
13775 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13776 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13777 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780 ac_cv_header_gif_lib_h=$ac_header_preproc
13782 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13783 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13786 if test $ac_cv_header_gif_lib_h = yes; then
13787 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13788 # Earlier versions can crash Emacs.
13789 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13790 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13791 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 else
13794 ac_check_lib_save_LIBS=$LIBS
13795 LIBS="-lungif $LIBS"
13796 cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h. */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13803 /* Override any GCC internal prototype to avoid an error.
13804 Use char because int might match the return type of a GCC
13805 builtin and then its argument prototype would still apply. */
13806 #ifdef __cplusplus
13807 extern "C"
13808 #endif
13809 char EGifPutExtensionLast ();
13811 main ()
13813 return EGifPutExtensionLast ();
13815 return 0;
13817 _ACEOF
13818 rm -f conftest.$ac_objext conftest$ac_exeext
13819 if { (ac_try="$ac_link"
13820 case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_link") 2>conftest.er1
13826 ac_status=$?
13827 grep -v '^ *+' conftest.er1 >conftest.err
13828 rm -f conftest.er1
13829 cat conftest.err >&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } && {
13832 test -z "$ac_c_werror_flag" ||
13833 test ! -s conftest.err
13834 } && test -s conftest$ac_exeext &&
13835 $as_test_x conftest$ac_exeext; then
13836 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13837 else
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_lib_ungif_EGifPutExtensionLast=no
13844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13845 conftest$ac_exeext conftest.$ac_ext
13846 LIBS=$ac_check_lib_save_LIBS
13848 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13849 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13850 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13851 HAVE_GIF=yes
13859 if test "${HAVE_GIF}" = "yes"; then
13861 cat >>confdefs.h <<\_ACEOF
13862 #define HAVE_GIF 1
13863 _ACEOF
13868 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13869 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13870 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13871 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13875 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13876 else
13877 # Is the header compilable?
13878 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13879 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13880 cat >conftest.$ac_ext <<_ACEOF
13881 /* confdefs.h. */
13882 _ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 $ac_includes_default
13887 #include <malloc/malloc.h>
13888 _ACEOF
13889 rm -f conftest.$ac_objext
13890 if { (ac_try="$ac_compile"
13891 case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13894 esac
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_compile") 2>conftest.er1
13897 ac_status=$?
13898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
13900 cat conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } && {
13903 test -z "$ac_c_werror_flag" ||
13904 test ! -s conftest.err
13905 } && test -s conftest.$ac_objext; then
13906 ac_header_compiler=yes
13907 else
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13911 ac_header_compiler=no
13914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13916 echo "${ECHO_T}$ac_header_compiler" >&6; }
13918 # Is the header present?
13919 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13920 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13921 cat >conftest.$ac_ext <<_ACEOF
13922 /* confdefs.h. */
13923 _ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13927 #include <malloc/malloc.h>
13928 _ACEOF
13929 if { (ac_try="$ac_cpp conftest.$ac_ext"
13930 case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13933 esac
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13936 ac_status=$?
13937 grep -v '^ *+' conftest.er1 >conftest.err
13938 rm -f conftest.er1
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } >/dev/null && {
13942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13943 test ! -s conftest.err
13944 }; then
13945 ac_header_preproc=yes
13946 else
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_header_preproc=no
13953 rm -f conftest.err conftest.$ac_ext
13954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13955 echo "${ECHO_T}$ac_header_preproc" >&6; }
13957 # So? What about this header?
13958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13959 yes:no: )
13960 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13961 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13963 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13964 ac_header_preproc=yes
13966 no:yes:* )
13967 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13968 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13969 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13970 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13972 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13974 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13976 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13978 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13981 esac
13982 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13983 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13984 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 else
13987 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13989 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13990 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13993 if test $ac_cv_header_malloc_malloc_h = yes; then
13995 cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_MALLOC_MALLOC_H 1
13997 _ACEOF
14003 ### Use Mac OS X Carbon API to implement GUI.
14004 if test "${HAVE_CARBON}" = "yes"; then
14006 cat >>confdefs.h <<\_ACEOF
14007 #define HAVE_CARBON 1
14008 _ACEOF
14010 ## Specify the install directory
14011 carbon_appdir=
14012 if test "${carbon_appdir_x}" != ""; then
14013 case ${carbon_appdir_x} in
14014 y | ye | yes) carbon_appdir=/Applications ;;
14015 * ) carbon_appdir=${carbon_appdir_x} ;;
14016 esac
14018 # We also have mouse menus.
14019 HAVE_MENUS=yes
14022 ### Use session management (-lSM -lICE) if available
14023 HAVE_X_SM=no
14024 if test "${HAVE_X11}" = "yes"; then
14025 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14026 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14027 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14028 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14032 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14033 else
14034 # Is the header compilable?
14035 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14036 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14037 cat >conftest.$ac_ext <<_ACEOF
14038 /* confdefs.h. */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14044 #include <X11/SM/SMlib.h>
14045 _ACEOF
14046 rm -f conftest.$ac_objext
14047 if { (ac_try="$ac_compile"
14048 case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14051 esac
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_compile") 2>conftest.er1
14054 ac_status=$?
14055 grep -v '^ *+' conftest.er1 >conftest.err
14056 rm -f conftest.er1
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } && {
14060 test -z "$ac_c_werror_flag" ||
14061 test ! -s conftest.err
14062 } && test -s conftest.$ac_objext; then
14063 ac_header_compiler=yes
14064 else
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14068 ac_header_compiler=no
14071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14073 echo "${ECHO_T}$ac_header_compiler" >&6; }
14075 # Is the header present?
14076 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14077 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 #include <X11/SM/SMlib.h>
14085 _ACEOF
14086 if { (ac_try="$ac_cpp conftest.$ac_ext"
14087 case "(($ac_try" in
14088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14090 esac
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } >/dev/null && {
14099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14101 }; then
14102 ac_header_preproc=yes
14103 else
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14107 ac_header_preproc=no
14110 rm -f conftest.err conftest.$ac_ext
14111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14112 echo "${ECHO_T}$ac_header_preproc" >&6; }
14114 # So? What about this header?
14115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14116 yes:no: )
14117 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14118 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14120 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14121 ac_header_preproc=yes
14123 no:yes:* )
14124 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14125 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14127 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14129 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14130 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14131 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14132 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14133 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14134 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14135 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14138 esac
14139 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14140 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14141 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 else
14144 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14146 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14147 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14150 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14151 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14152 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14153 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156 ac_check_lib_save_LIBS=$LIBS
14157 LIBS="-lSM -lICE $LIBS"
14158 cat >conftest.$ac_ext <<_ACEOF
14159 /* confdefs.h. */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14165 /* Override any GCC internal prototype to avoid an error.
14166 Use char because int might match the return type of a GCC
14167 builtin and then its argument prototype would still apply. */
14168 #ifdef __cplusplus
14169 extern "C"
14170 #endif
14171 char SmcOpenConnection ();
14173 main ()
14175 return SmcOpenConnection ();
14177 return 0;
14179 _ACEOF
14180 rm -f conftest.$ac_objext conftest$ac_exeext
14181 if { (ac_try="$ac_link"
14182 case "(($ac_try" in
14183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14184 *) ac_try_echo=$ac_try;;
14185 esac
14186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14187 (eval "$ac_link") 2>conftest.er1
14188 ac_status=$?
14189 grep -v '^ *+' conftest.er1 >conftest.err
14190 rm -f conftest.er1
14191 cat conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } && {
14194 test -z "$ac_c_werror_flag" ||
14195 test ! -s conftest.err
14196 } && test -s conftest$ac_exeext &&
14197 $as_test_x conftest$ac_exeext; then
14198 ac_cv_lib_SM_SmcOpenConnection=yes
14199 else
14200 echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14203 ac_cv_lib_SM_SmcOpenConnection=no
14206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14207 conftest$ac_exeext conftest.$ac_ext
14208 LIBS=$ac_check_lib_save_LIBS
14210 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14211 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14212 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14213 HAVE_X_SM=yes
14220 if test "${HAVE_X_SM}" = "yes"; then
14222 cat >>confdefs.h <<\_ACEOF
14223 #define HAVE_X_SM 1
14224 _ACEOF
14226 case "$LIBS" in
14227 *-lSM*) ;;
14228 *) LIBS="-lSM -lICE $LIBS" ;;
14229 esac
14233 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14234 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14235 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14236 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14237 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 else
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. */
14245 #include <netdb.h>
14247 main ()
14249 return h_errno;
14251 return 0;
14253 _ACEOF
14254 rm -f conftest.$ac_objext conftest$ac_exeext
14255 if { (ac_try="$ac_link"
14256 case "(($ac_try" in
14257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14258 *) ac_try_echo=$ac_try;;
14259 esac
14260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14261 (eval "$ac_link") 2>conftest.er1
14262 ac_status=$?
14263 grep -v '^ *+' conftest.er1 >conftest.err
14264 rm -f conftest.er1
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } && {
14268 test -z "$ac_c_werror_flag" ||
14269 test ! -s conftest.err
14270 } && test -s conftest$ac_exeext &&
14271 $as_test_x conftest$ac_exeext; then
14272 emacs_cv_netdb_declares_h_errno=yes
14273 else
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14277 emacs_cv_netdb_declares_h_errno=no
14280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14281 conftest$ac_exeext conftest.$ac_ext
14283 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14284 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14285 if test $emacs_cv_netdb_declares_h_errno = yes; then
14287 cat >>confdefs.h <<\_ACEOF
14288 #define HAVE_H_ERRNO 1
14289 _ACEOF
14293 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14294 # for constant arguments. Useless!
14295 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14296 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14297 if test "${ac_cv_working_alloca_h+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14299 else
14300 cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h. */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 #include <alloca.h>
14308 main ()
14310 char *p = (char *) alloca (2 * sizeof (int));
14311 if (p) return 0;
14313 return 0;
14315 _ACEOF
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (ac_try="$ac_link"
14318 case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_link") 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest$ac_exeext &&
14333 $as_test_x conftest$ac_exeext; then
14334 ac_cv_working_alloca_h=yes
14335 else
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 ac_cv_working_alloca_h=no
14342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14343 conftest$ac_exeext conftest.$ac_ext
14345 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14346 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14347 if test $ac_cv_working_alloca_h = yes; then
14349 cat >>confdefs.h <<\_ACEOF
14350 #define HAVE_ALLOCA_H 1
14351 _ACEOF
14355 { echo "$as_me:$LINENO: checking for alloca" >&5
14356 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14357 if test "${ac_cv_func_alloca_works+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360 cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h. */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366 #ifdef __GNUC__
14367 # define alloca __builtin_alloca
14368 #else
14369 # ifdef _MSC_VER
14370 # include <malloc.h>
14371 # define alloca _alloca
14372 # else
14373 # ifdef HAVE_ALLOCA_H
14374 # include <alloca.h>
14375 # else
14376 # ifdef _AIX
14377 #pragma alloca
14378 # else
14379 # ifndef alloca /* predefined by HP cc +Olibcalls */
14380 char *alloca ();
14381 # endif
14382 # endif
14383 # endif
14384 # endif
14385 #endif
14388 main ()
14390 char *p = (char *) alloca (1);
14391 if (p) return 0;
14393 return 0;
14395 _ACEOF
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (ac_try="$ac_link"
14398 case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401 esac
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_link") 2>conftest.er1
14404 ac_status=$?
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } && {
14410 test -z "$ac_c_werror_flag" ||
14411 test ! -s conftest.err
14412 } && test -s conftest$ac_exeext &&
14413 $as_test_x conftest$ac_exeext; then
14414 ac_cv_func_alloca_works=yes
14415 else
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14419 ac_cv_func_alloca_works=no
14422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14423 conftest$ac_exeext conftest.$ac_ext
14425 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14426 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14428 if test $ac_cv_func_alloca_works = yes; then
14430 cat >>confdefs.h <<\_ACEOF
14431 #define HAVE_ALLOCA 1
14432 _ACEOF
14434 else
14435 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14436 # that cause trouble. Some versions do not even contain alloca or
14437 # contain a buggy version. If you still want to use their alloca,
14438 # use ar to extract alloca.o from them instead of compiling alloca.c.
14440 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14442 cat >>confdefs.h <<\_ACEOF
14443 #define C_ALLOCA 1
14444 _ACEOF
14447 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14448 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14449 if test "${ac_cv_os_cray+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452 cat >conftest.$ac_ext <<_ACEOF
14453 /* confdefs.h. */
14454 _ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14458 #if defined CRAY && ! defined CRAY2
14459 webecray
14460 #else
14461 wenotbecray
14462 #endif
14464 _ACEOF
14465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14466 $EGREP "webecray" >/dev/null 2>&1; then
14467 ac_cv_os_cray=yes
14468 else
14469 ac_cv_os_cray=no
14471 rm -f conftest*
14474 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14475 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14476 if test $ac_cv_os_cray = yes; then
14477 for ac_func in _getb67 GETB67 getb67; do
14478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484 cat >conftest.$ac_ext <<_ACEOF
14485 /* confdefs.h. */
14486 _ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14492 #define $ac_func innocuous_$ac_func
14494 /* System header to define __stub macros and hopefully few prototypes,
14495 which can conflict with char $ac_func (); below.
14496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14497 <limits.h> exists even on freestanding compilers. */
14499 #ifdef __STDC__
14500 # include <limits.h>
14501 #else
14502 # include <assert.h>
14503 #endif
14505 #undef $ac_func
14507 /* Override any GCC internal prototype to avoid an error.
14508 Use char because int might match the return type of a GCC
14509 builtin and then its argument prototype would still apply. */
14510 #ifdef __cplusplus
14511 extern "C"
14512 #endif
14513 char $ac_func ();
14514 /* The GNU C library defines this for functions which it implements
14515 to always fail with ENOSYS. Some functions are actually named
14516 something starting with __ and the normal name is an alias. */
14517 #if defined __stub_$ac_func || defined __stub___$ac_func
14518 choke me
14519 #endif
14522 main ()
14524 return $ac_func ();
14526 return 0;
14528 _ACEOF
14529 rm -f conftest.$ac_objext conftest$ac_exeext
14530 if { (ac_try="$ac_link"
14531 case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14534 esac
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_link") 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } && {
14543 test -z "$ac_c_werror_flag" ||
14544 test ! -s conftest.err
14545 } && test -s conftest$ac_exeext &&
14546 $as_test_x conftest$ac_exeext; then
14547 eval "$as_ac_var=yes"
14548 else
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14552 eval "$as_ac_var=no"
14555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14556 conftest$ac_exeext conftest.$ac_ext
14558 ac_res=`eval echo '${'$as_ac_var'}'`
14559 { echo "$as_me:$LINENO: result: $ac_res" >&5
14560 echo "${ECHO_T}$ac_res" >&6; }
14561 if test `eval echo '${'$as_ac_var'}'` = yes; then
14563 cat >>confdefs.h <<_ACEOF
14564 #define CRAY_STACKSEG_END $ac_func
14565 _ACEOF
14567 break
14570 done
14573 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14574 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14575 if test "${ac_cv_c_stack_direction+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 else
14578 if test "$cross_compiling" = yes; then
14579 ac_cv_c_stack_direction=0
14580 else
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14589 find_stack_direction ()
14591 static char *addr = 0;
14592 auto char dummy;
14593 if (addr == 0)
14595 addr = &dummy;
14596 return find_stack_direction ();
14598 else
14599 return (&dummy > addr) ? 1 : -1;
14603 main ()
14605 return find_stack_direction () < 0;
14607 _ACEOF
14608 rm -f conftest$ac_exeext
14609 if { (ac_try="$ac_link"
14610 case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_link") 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_cv_c_stack_direction=1
14629 else
14630 echo "$as_me: program exited with status $ac_status" >&5
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ( exit $ac_status )
14635 ac_cv_c_stack_direction=-1
14637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14642 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14643 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14645 cat >>confdefs.h <<_ACEOF
14646 #define STACK_DIRECTION $ac_cv_c_stack_direction
14647 _ACEOF
14653 # fmod, logb, and frexp are found in -lm on most systems.
14654 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14656 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14657 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14658 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661 ac_check_lib_save_LIBS=$LIBS
14662 LIBS="-lm $LIBS"
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h. */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14670 /* Override any GCC internal prototype to avoid an error.
14671 Use char because int might match the return type of a GCC
14672 builtin and then its argument prototype would still apply. */
14673 #ifdef __cplusplus
14674 extern "C"
14675 #endif
14676 char sqrt ();
14678 main ()
14680 return sqrt ();
14682 return 0;
14684 _ACEOF
14685 rm -f conftest.$ac_objext conftest$ac_exeext
14686 if { (ac_try="$ac_link"
14687 case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14690 esac
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_link") 2>conftest.er1
14693 ac_status=$?
14694 grep -v '^ *+' conftest.er1 >conftest.err
14695 rm -f conftest.er1
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest$ac_exeext &&
14702 $as_test_x conftest$ac_exeext; then
14703 ac_cv_lib_m_sqrt=yes
14704 else
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_cv_lib_m_sqrt=no
14711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14712 conftest$ac_exeext conftest.$ac_ext
14713 LIBS=$ac_check_lib_save_LIBS
14715 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14716 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14717 if test $ac_cv_lib_m_sqrt = yes; then
14718 cat >>confdefs.h <<_ACEOF
14719 #define HAVE_LIBM 1
14720 _ACEOF
14722 LIBS="-lm $LIBS"
14727 # Check for mail-locking functions in a "mail" library. Probably this should
14728 # have the same check as for liblockfile below.
14730 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14731 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14732 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735 ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-lmail $LIBS"
14737 cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h. */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14744 /* Override any GCC internal prototype to avoid an error.
14745 Use char because int might match the return type of a GCC
14746 builtin and then its argument prototype would still apply. */
14747 #ifdef __cplusplus
14748 extern "C"
14749 #endif
14750 char maillock ();
14752 main ()
14754 return maillock ();
14756 return 0;
14758 _ACEOF
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (ac_try="$ac_link"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14764 esac
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_link") 2>conftest.er1
14767 ac_status=$?
14768 grep -v '^ *+' conftest.er1 >conftest.err
14769 rm -f conftest.er1
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } && {
14773 test -z "$ac_c_werror_flag" ||
14774 test ! -s conftest.err
14775 } && test -s conftest$ac_exeext &&
14776 $as_test_x conftest$ac_exeext; then
14777 ac_cv_lib_mail_maillock=yes
14778 else
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_cv_lib_mail_maillock=no
14785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14786 conftest$ac_exeext conftest.$ac_ext
14787 LIBS=$ac_check_lib_save_LIBS
14789 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14790 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14791 if test $ac_cv_lib_mail_maillock = yes; then
14792 cat >>confdefs.h <<_ACEOF
14793 #define HAVE_LIBMAIL 1
14794 _ACEOF
14796 LIBS="-lmail $LIBS"
14801 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14802 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14803 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 else
14806 ac_check_lib_save_LIBS=$LIBS
14807 LIBS="-llockfile $LIBS"
14808 cat >conftest.$ac_ext <<_ACEOF
14809 /* confdefs.h. */
14810 _ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14815 /* Override any GCC internal prototype to avoid an error.
14816 Use char because int might match the return type of a GCC
14817 builtin and then its argument prototype would still apply. */
14818 #ifdef __cplusplus
14819 extern "C"
14820 #endif
14821 char maillock ();
14823 main ()
14825 return maillock ();
14827 return 0;
14829 _ACEOF
14830 rm -f conftest.$ac_objext conftest$ac_exeext
14831 if { (ac_try="$ac_link"
14832 case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14835 esac
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_link") 2>conftest.er1
14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest$ac_exeext &&
14847 $as_test_x conftest$ac_exeext; then
14848 ac_cv_lib_lockfile_maillock=yes
14849 else
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14853 ac_cv_lib_lockfile_maillock=no
14856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14857 conftest$ac_exeext conftest.$ac_ext
14858 LIBS=$ac_check_lib_save_LIBS
14860 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14861 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14862 if test $ac_cv_lib_lockfile_maillock = yes; then
14863 cat >>confdefs.h <<_ACEOF
14864 #define HAVE_LIBLOCKFILE 1
14865 _ACEOF
14867 LIBS="-llockfile $LIBS"
14871 # If we have the shared liblockfile, assume we must use it for mail
14872 # locking (e.g. Debian). If we couldn't link against liblockfile
14873 # (no liblockfile.a installed), ensure that we don't need to.
14874 if test "$ac_cv_lib_lockfile_maillock" = no; then
14875 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14876 set dummy liblockfile.so; ac_word=$2
14877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14879 if test "${ac_cv_prog_liblockfile+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882 if test -n "$liblockfile"; then
14883 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14884 else
14885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14886 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14887 for as_dir in $as_dummy
14889 IFS=$as_save_IFS
14890 test -z "$as_dir" && as_dir=.
14891 for ac_exec_ext in '' $ac_executable_extensions; do
14892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14893 ac_cv_prog_liblockfile="yes"
14894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14895 break 2
14897 done
14898 done
14899 IFS=$as_save_IFS
14901 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14904 liblockfile=$ac_cv_prog_liblockfile
14905 if test -n "$liblockfile"; then
14906 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14907 echo "${ECHO_T}$liblockfile" >&6; }
14908 else
14909 { echo "$as_me:$LINENO: result: no" >&5
14910 echo "${ECHO_T}no" >&6; }
14914 if test $ac_cv_prog_liblockfile = yes; then
14915 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14916 This probably means that movemail could lose mail.
14917 There may be a \`development' package to install containing liblockfile." >&5
14918 echo "$as_me: error: Shared liblockfile found but can't link against it.
14919 This probably means that movemail could lose mail.
14920 There may be a \`development' package to install containing liblockfile." >&2;}
14921 { (exit 1); exit 1; }; }
14922 else :
14926 for ac_func in touchlock
14928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14934 cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h. */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14942 #define $ac_func innocuous_$ac_func
14944 /* System header to define __stub macros and hopefully few prototypes,
14945 which can conflict with char $ac_func (); below.
14946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14947 <limits.h> exists even on freestanding compilers. */
14949 #ifdef __STDC__
14950 # include <limits.h>
14951 #else
14952 # include <assert.h>
14953 #endif
14955 #undef $ac_func
14957 /* Override any GCC internal prototype to avoid an error.
14958 Use char because int might match the return type of a GCC
14959 builtin and then its argument prototype would still apply. */
14960 #ifdef __cplusplus
14961 extern "C"
14962 #endif
14963 char $ac_func ();
14964 /* The GNU C library defines this for functions which it implements
14965 to always fail with ENOSYS. Some functions are actually named
14966 something starting with __ and the normal name is an alias. */
14967 #if defined __stub_$ac_func || defined __stub___$ac_func
14968 choke me
14969 #endif
14972 main ()
14974 return $ac_func ();
14976 return 0;
14978 _ACEOF
14979 rm -f conftest.$ac_objext conftest$ac_exeext
14980 if { (ac_try="$ac_link"
14981 case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_link") 2>conftest.er1
14987 ac_status=$?
14988 grep -v '^ *+' conftest.er1 >conftest.err
14989 rm -f conftest.er1
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } && {
14993 test -z "$ac_c_werror_flag" ||
14994 test ! -s conftest.err
14995 } && test -s conftest$ac_exeext &&
14996 $as_test_x conftest$ac_exeext; then
14997 eval "$as_ac_var=yes"
14998 else
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 eval "$as_ac_var=no"
15005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15006 conftest$ac_exeext conftest.$ac_ext
15008 ac_res=`eval echo '${'$as_ac_var'}'`
15009 { echo "$as_me:$LINENO: result: $ac_res" >&5
15010 echo "${ECHO_T}$ac_res" >&6; }
15011 if test `eval echo '${'$as_ac_var'}'` = yes; then
15012 cat >>confdefs.h <<_ACEOF
15013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15014 _ACEOF
15017 done
15020 for ac_header in maillock.h
15022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 ac_res=`eval echo '${'$as_ac_Header'}'`
15030 { echo "$as_me:$LINENO: result: $ac_res" >&5
15031 echo "${ECHO_T}$ac_res" >&6; }
15032 else
15033 # Is the header compilable?
15034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15036 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h. */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 $ac_includes_default
15043 #include <$ac_header>
15044 _ACEOF
15045 rm -f conftest.$ac_objext
15046 if { (ac_try="$ac_compile"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050 esac
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_compile") 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest.$ac_objext; then
15062 ac_header_compiler=yes
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 ac_header_compiler=no
15070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15072 echo "${ECHO_T}$ac_header_compiler" >&6; }
15074 # Is the header present?
15075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15077 cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h. */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 #include <$ac_header>
15084 _ACEOF
15085 if { (ac_try="$ac_cpp conftest.$ac_ext"
15086 case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15089 esac
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15092 ac_status=$?
15093 grep -v '^ *+' conftest.er1 >conftest.err
15094 rm -f conftest.er1
15095 cat conftest.err >&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } >/dev/null && {
15098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15099 test ! -s conftest.err
15100 }; then
15101 ac_header_preproc=yes
15102 else
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ac_header_preproc=no
15109 rm -f conftest.err conftest.$ac_ext
15110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15111 echo "${ECHO_T}$ac_header_preproc" >&6; }
15113 # So? What about this header?
15114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15115 yes:no: )
15116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15120 ac_header_preproc=yes
15122 no:yes:* )
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15137 esac
15138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15142 else
15143 eval "$as_ac_Header=\$ac_header_preproc"
15145 ac_res=`eval echo '${'$as_ac_Header'}'`
15146 { echo "$as_me:$LINENO: result: $ac_res" >&5
15147 echo "${ECHO_T}$ac_res" >&6; }
15150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15151 cat >>confdefs.h <<_ACEOF
15152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15153 _ACEOF
15157 done
15229 for ac_func in gethostname getdomainname dup2 \
15230 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15231 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15232 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15233 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15234 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15235 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15236 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15237 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 else
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15253 #define $ac_func innocuous_$ac_func
15255 /* System header to define __stub macros and hopefully few prototypes,
15256 which can conflict with char $ac_func (); below.
15257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15258 <limits.h> exists even on freestanding compilers. */
15260 #ifdef __STDC__
15261 # include <limits.h>
15262 #else
15263 # include <assert.h>
15264 #endif
15266 #undef $ac_func
15268 /* Override any GCC internal prototype to avoid an error.
15269 Use char because int might match the return type of a GCC
15270 builtin and then its argument prototype would still apply. */
15271 #ifdef __cplusplus
15272 extern "C"
15273 #endif
15274 char $ac_func ();
15275 /* The GNU C library defines this for functions which it implements
15276 to always fail with ENOSYS. Some functions are actually named
15277 something starting with __ and the normal name is an alias. */
15278 #if defined __stub_$ac_func || defined __stub___$ac_func
15279 choke me
15280 #endif
15283 main ()
15285 return $ac_func ();
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 eval "$as_ac_var=yes"
15309 else
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 eval "$as_ac_var=no"
15316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15317 conftest$ac_exeext conftest.$ac_ext
15319 ac_res=`eval echo '${'$as_ac_var'}'`
15320 { echo "$as_me:$LINENO: result: $ac_res" >&5
15321 echo "${ECHO_T}$ac_res" >&6; }
15322 if test `eval echo '${'$as_ac_var'}'` = yes; then
15323 cat >>confdefs.h <<_ACEOF
15324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15325 _ACEOF
15328 done
15332 for ac_header in sys/un.h
15334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 ac_res=`eval echo '${'$as_ac_Header'}'`
15342 { echo "$as_me:$LINENO: result: $ac_res" >&5
15343 echo "${ECHO_T}$ac_res" >&6; }
15344 else
15345 # Is the header compilable?
15346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15348 cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h. */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 $ac_includes_default
15355 #include <$ac_header>
15356 _ACEOF
15357 rm -f conftest.$ac_objext
15358 if { (ac_try="$ac_compile"
15359 case "(($ac_try" in
15360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361 *) ac_try_echo=$ac_try;;
15362 esac
15363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15364 (eval "$ac_compile") 2>conftest.er1
15365 ac_status=$?
15366 grep -v '^ *+' conftest.er1 >conftest.err
15367 rm -f conftest.er1
15368 cat conftest.err >&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); } && {
15371 test -z "$ac_c_werror_flag" ||
15372 test ! -s conftest.err
15373 } && test -s conftest.$ac_objext; then
15374 ac_header_compiler=yes
15375 else
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15379 ac_header_compiler=no
15382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15384 echo "${ECHO_T}$ac_header_compiler" >&6; }
15386 # Is the header present?
15387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15389 cat >conftest.$ac_ext <<_ACEOF
15390 /* confdefs.h. */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 #include <$ac_header>
15396 _ACEOF
15397 if { (ac_try="$ac_cpp conftest.$ac_ext"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401 esac
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15404 ac_status=$?
15405 grep -v '^ *+' conftest.er1 >conftest.err
15406 rm -f conftest.er1
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } >/dev/null && {
15410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15411 test ! -s conftest.err
15412 }; then
15413 ac_header_preproc=yes
15414 else
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 ac_header_preproc=no
15421 rm -f conftest.err conftest.$ac_ext
15422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15423 echo "${ECHO_T}$ac_header_preproc" >&6; }
15425 # So? What about this header?
15426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15427 yes:no: )
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15432 ac_header_preproc=yes
15434 no:yes:* )
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15449 esac
15450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15454 else
15455 eval "$as_ac_Header=\$ac_header_preproc"
15457 ac_res=`eval echo '${'$as_ac_Header'}'`
15458 { echo "$as_me:$LINENO: result: $ac_res" >&5
15459 echo "${ECHO_T}$ac_res" >&6; }
15462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15463 cat >>confdefs.h <<_ACEOF
15464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15465 _ACEOF
15469 done
15476 for ac_header in $ac_header_list
15478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 ac_res=`eval echo '${'$as_ac_Header'}'`
15486 { echo "$as_me:$LINENO: result: $ac_res" >&5
15487 echo "${ECHO_T}$ac_res" >&6; }
15488 else
15489 # Is the header compilable?
15490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15492 cat >conftest.$ac_ext <<_ACEOF
15493 /* confdefs.h. */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 $ac_includes_default
15499 #include <$ac_header>
15500 _ACEOF
15501 rm -f conftest.$ac_objext
15502 if { (ac_try="$ac_compile"
15503 case "(($ac_try" in
15504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505 *) ac_try_echo=$ac_try;;
15506 esac
15507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508 (eval "$ac_compile") 2>conftest.er1
15509 ac_status=$?
15510 grep -v '^ *+' conftest.er1 >conftest.err
15511 rm -f conftest.er1
15512 cat conftest.err >&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } && {
15515 test -z "$ac_c_werror_flag" ||
15516 test ! -s conftest.err
15517 } && test -s conftest.$ac_objext; then
15518 ac_header_compiler=yes
15519 else
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 ac_header_compiler=no
15526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15528 echo "${ECHO_T}$ac_header_compiler" >&6; }
15530 # Is the header present?
15531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15533 cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h. */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 #include <$ac_header>
15540 _ACEOF
15541 if { (ac_try="$ac_cpp conftest.$ac_ext"
15542 case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15545 esac
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15548 ac_status=$?
15549 grep -v '^ *+' conftest.er1 >conftest.err
15550 rm -f conftest.er1
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } >/dev/null && {
15554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15555 test ! -s conftest.err
15556 }; then
15557 ac_header_preproc=yes
15558 else
15559 echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15562 ac_header_preproc=no
15565 rm -f conftest.err conftest.$ac_ext
15566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15567 echo "${ECHO_T}$ac_header_preproc" >&6; }
15569 # So? What about this header?
15570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15571 yes:no: )
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15576 ac_header_preproc=yes
15578 no:yes:* )
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15593 esac
15594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599 eval "$as_ac_Header=\$ac_header_preproc"
15601 ac_res=`eval echo '${'$as_ac_Header'}'`
15602 { echo "$as_me:$LINENO: result: $ac_res" >&5
15603 echo "${ECHO_T}$ac_res" >&6; }
15606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15607 cat >>confdefs.h <<_ACEOF
15608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15609 _ACEOF
15613 done
15623 for ac_func in $ac_func_list
15625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15626 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631 cat >conftest.$ac_ext <<_ACEOF
15632 /* confdefs.h. */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15639 #define $ac_func innocuous_$ac_func
15641 /* System header to define __stub macros and hopefully few prototypes,
15642 which can conflict with char $ac_func (); below.
15643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15644 <limits.h> exists even on freestanding compilers. */
15646 #ifdef __STDC__
15647 # include <limits.h>
15648 #else
15649 # include <assert.h>
15650 #endif
15652 #undef $ac_func
15654 /* Override any GCC internal prototype to avoid an error.
15655 Use char because int might match the return type of a GCC
15656 builtin and then its argument prototype would still apply. */
15657 #ifdef __cplusplus
15658 extern "C"
15659 #endif
15660 char $ac_func ();
15661 /* The GNU C library defines this for functions which it implements
15662 to always fail with ENOSYS. Some functions are actually named
15663 something starting with __ and the normal name is an alias. */
15664 #if defined __stub_$ac_func || defined __stub___$ac_func
15665 choke me
15666 #endif
15669 main ()
15671 return $ac_func ();
15673 return 0;
15675 _ACEOF
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (ac_try="$ac_link"
15678 case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_link") 2>conftest.er1
15684 ac_status=$?
15685 grep -v '^ *+' conftest.er1 >conftest.err
15686 rm -f conftest.er1
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } && {
15690 test -z "$ac_c_werror_flag" ||
15691 test ! -s conftest.err
15692 } && test -s conftest$ac_exeext &&
15693 $as_test_x conftest$ac_exeext; then
15694 eval "$as_ac_var=yes"
15695 else
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15699 eval "$as_ac_var=no"
15702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15703 conftest$ac_exeext conftest.$ac_ext
15705 ac_res=`eval echo '${'$as_ac_var'}'`
15706 { echo "$as_me:$LINENO: result: $ac_res" >&5
15707 echo "${ECHO_T}$ac_res" >&6; }
15708 if test `eval echo '${'$as_ac_var'}'` = yes; then
15709 cat >>confdefs.h <<_ACEOF
15710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15711 _ACEOF
15714 done
15732 { echo "$as_me:$LINENO: checking for working mktime" >&5
15733 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15734 if test "${ac_cv_func_working_mktime+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737 if test "$cross_compiling" = yes; then
15738 ac_cv_func_working_mktime=no
15739 else
15740 cat >conftest.$ac_ext <<_ACEOF
15741 /* confdefs.h. */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746 /* Test program from Paul Eggert and Tony Leneis. */
15747 #ifdef TIME_WITH_SYS_TIME
15748 # include <sys/time.h>
15749 # include <time.h>
15750 #else
15751 # ifdef HAVE_SYS_TIME_H
15752 # include <sys/time.h>
15753 # else
15754 # include <time.h>
15755 # endif
15756 #endif
15758 #include <stdlib.h>
15760 #ifdef HAVE_UNISTD_H
15761 # include <unistd.h>
15762 #endif
15764 #ifndef HAVE_ALARM
15765 # define alarm(X) /* empty */
15766 #endif
15768 /* Work around redefinition to rpl_putenv by other config tests. */
15769 #undef putenv
15771 static time_t time_t_max;
15772 static time_t time_t_min;
15774 /* Values we'll use to set the TZ environment variable. */
15775 static char *tz_strings[] = {
15776 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15777 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15779 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15781 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15782 Based on a problem report from Andreas Jaeger. */
15783 static int
15784 spring_forward_gap ()
15786 /* glibc (up to about 1998-10-07) failed this test. */
15787 struct tm tm;
15789 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15790 instead of "TZ=America/Vancouver" in order to detect the bug even
15791 on systems that don't support the Olson extension, or don't have the
15792 full zoneinfo tables installed. */
15793 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15795 tm.tm_year = 98;
15796 tm.tm_mon = 3;
15797 tm.tm_mday = 5;
15798 tm.tm_hour = 2;
15799 tm.tm_min = 0;
15800 tm.tm_sec = 0;
15801 tm.tm_isdst = -1;
15802 return mktime (&tm) != (time_t) -1;
15805 static int
15806 mktime_test1 (now)
15807 time_t now;
15809 struct tm *lt;
15810 return ! (lt = localtime (&now)) || mktime (lt) == now;
15813 static int
15814 mktime_test (now)
15815 time_t now;
15817 return (mktime_test1 (now)
15818 && mktime_test1 ((time_t) (time_t_max - now))
15819 && mktime_test1 ((time_t) (time_t_min + now)));
15822 static int
15823 irix_6_4_bug ()
15825 /* Based on code from Ariel Faigon. */
15826 struct tm tm;
15827 tm.tm_year = 96;
15828 tm.tm_mon = 3;
15829 tm.tm_mday = 0;
15830 tm.tm_hour = 0;
15831 tm.tm_min = 0;
15832 tm.tm_sec = 0;
15833 tm.tm_isdst = -1;
15834 mktime (&tm);
15835 return tm.tm_mon == 2 && tm.tm_mday == 31;
15838 static int
15839 bigtime_test (j)
15840 int j;
15842 struct tm tm;
15843 time_t now;
15844 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15845 now = mktime (&tm);
15846 if (now != (time_t) -1)
15848 struct tm *lt = localtime (&now);
15849 if (! (lt
15850 && lt->tm_year == tm.tm_year
15851 && lt->tm_mon == tm.tm_mon
15852 && lt->tm_mday == tm.tm_mday
15853 && lt->tm_hour == tm.tm_hour
15854 && lt->tm_min == tm.tm_min
15855 && lt->tm_sec == tm.tm_sec
15856 && lt->tm_yday == tm.tm_yday
15857 && lt->tm_wday == tm.tm_wday
15858 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15859 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15860 return 0;
15862 return 1;
15865 static int
15866 year_2050_test ()
15868 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15869 ignoring leap seconds. */
15870 unsigned long int answer = 2527315200UL;
15872 struct tm tm;
15873 time_t t;
15874 tm.tm_year = 2050 - 1900;
15875 tm.tm_mon = 2 - 1;
15876 tm.tm_mday = 1;
15877 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15878 tm.tm_isdst = -1;
15880 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15881 instead of "TZ=America/Vancouver" in order to detect the bug even
15882 on systems that don't support the Olson extension, or don't have the
15883 full zoneinfo tables installed. */
15884 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15886 t = mktime (&tm);
15888 /* Check that the result is either a failure, or close enough
15889 to the correct answer that we can assume the discrepancy is
15890 due to leap seconds. */
15891 return (t == (time_t) -1
15892 || (0 < t && answer - 120 <= t && t <= answer + 120));
15896 main ()
15898 time_t t, delta;
15899 int i, j;
15901 /* This test makes some buggy mktime implementations loop.
15902 Give up after 60 seconds; a mktime slower than that
15903 isn't worth using anyway. */
15904 alarm (60);
15906 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15907 continue;
15908 time_t_max--;
15909 if ((time_t) -1 < 0)
15910 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15911 continue;
15912 delta = time_t_max / 997; /* a suitable prime number */
15913 for (i = 0; i < N_STRINGS; i++)
15915 if (tz_strings[i])
15916 putenv (tz_strings[i]);
15918 for (t = 0; t <= time_t_max - delta; t += delta)
15919 if (! mktime_test (t))
15920 return 1;
15921 if (! (mktime_test ((time_t) 1)
15922 && mktime_test ((time_t) (60 * 60))
15923 && mktime_test ((time_t) (60 * 60 * 24))))
15924 return 1;
15926 for (j = 1; 0 < j; j *= 2)
15927 if (! bigtime_test (j))
15928 return 1;
15929 if (! bigtime_test (j - 1))
15930 return 1;
15932 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15934 _ACEOF
15935 rm -f conftest$ac_exeext
15936 if { (ac_try="$ac_link"
15937 case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15940 esac
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_link") 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15946 { (case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_try") 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15955 ac_cv_func_working_mktime=yes
15956 else
15957 echo "$as_me: program exited with status $ac_status" >&5
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 ( exit $ac_status )
15962 ac_cv_func_working_mktime=no
15964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15970 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15971 if test $ac_cv_func_working_mktime = no; then
15972 case " $LIBOBJS " in
15973 *" mktime.$ac_objext "* ) ;;
15974 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15976 esac
15980 if test "$ac_cv_func_working_mktime" = no; then
15982 cat >>confdefs.h <<\_ACEOF
15983 #define BROKEN_MKTIME 1
15984 _ACEOF
15988 ac_have_func=no # yes means we've found a way to get the load average.
15990 # Make sure getloadavg.c is where it belongs, at configure-time.
15991 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15992 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15993 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15994 { (exit 1); exit 1; }; }
15996 ac_save_LIBS=$LIBS
15998 # Check for getloadavg, but be sure not to touch the cache variable.
15999 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16000 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16001 if test "${ac_cv_func_getloadavg+set}" = set; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 else
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h. */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16012 #define getloadavg innocuous_getloadavg
16014 /* System header to define __stub macros and hopefully few prototypes,
16015 which can conflict with char getloadavg (); below.
16016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16017 <limits.h> exists even on freestanding compilers. */
16019 #ifdef __STDC__
16020 # include <limits.h>
16021 #else
16022 # include <assert.h>
16023 #endif
16025 #undef getloadavg
16027 /* Override any GCC internal prototype to avoid an error.
16028 Use char because int might match the return type of a GCC
16029 builtin and then its argument prototype would still apply. */
16030 #ifdef __cplusplus
16031 extern "C"
16032 #endif
16033 char getloadavg ();
16034 /* The GNU C library defines this for functions which it implements
16035 to always fail with ENOSYS. Some functions are actually named
16036 something starting with __ and the normal name is an alias. */
16037 #if defined __stub_getloadavg || defined __stub___getloadavg
16038 choke me
16039 #endif
16042 main ()
16044 return getloadavg ();
16046 return 0;
16048 _ACEOF
16049 rm -f conftest.$ac_objext conftest$ac_exeext
16050 if { (ac_try="$ac_link"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16054 esac
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_link") 2>conftest.er1
16057 ac_status=$?
16058 grep -v '^ *+' conftest.er1 >conftest.err
16059 rm -f conftest.er1
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && {
16063 test -z "$ac_c_werror_flag" ||
16064 test ! -s conftest.err
16065 } && test -s conftest$ac_exeext &&
16066 $as_test_x conftest$ac_exeext; then
16067 ac_cv_func_getloadavg=yes
16068 else
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ac_cv_func_getloadavg=no
16075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16076 conftest$ac_exeext conftest.$ac_ext
16078 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16079 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16080 if test $ac_cv_func_getloadavg = yes; then
16081 exit 0
16082 else
16083 exit 1
16085 ) && ac_have_func=yes
16087 # On HPUX9, an unprivileged user can get load averages through this function.
16089 for ac_func in pstat_getdynamic
16091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16096 else
16097 cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h. */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16105 #define $ac_func innocuous_$ac_func
16107 /* System header to define __stub macros and hopefully few prototypes,
16108 which can conflict with char $ac_func (); below.
16109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16110 <limits.h> exists even on freestanding compilers. */
16112 #ifdef __STDC__
16113 # include <limits.h>
16114 #else
16115 # include <assert.h>
16116 #endif
16118 #undef $ac_func
16120 /* Override any GCC internal prototype to avoid an error.
16121 Use char because int might match the return type of a GCC
16122 builtin and then its argument prototype would still apply. */
16123 #ifdef __cplusplus
16124 extern "C"
16125 #endif
16126 char $ac_func ();
16127 /* The GNU C library defines this for functions which it implements
16128 to always fail with ENOSYS. Some functions are actually named
16129 something starting with __ and the normal name is an alias. */
16130 #if defined __stub_$ac_func || defined __stub___$ac_func
16131 choke me
16132 #endif
16135 main ()
16137 return $ac_func ();
16139 return 0;
16141 _ACEOF
16142 rm -f conftest.$ac_objext conftest$ac_exeext
16143 if { (ac_try="$ac_link"
16144 case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16147 esac
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_link") 2>conftest.er1
16150 ac_status=$?
16151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } && {
16156 test -z "$ac_c_werror_flag" ||
16157 test ! -s conftest.err
16158 } && test -s conftest$ac_exeext &&
16159 $as_test_x conftest$ac_exeext; then
16160 eval "$as_ac_var=yes"
16161 else
16162 echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 eval "$as_ac_var=no"
16168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16169 conftest$ac_exeext conftest.$ac_ext
16171 ac_res=`eval echo '${'$as_ac_var'}'`
16172 { echo "$as_me:$LINENO: result: $ac_res" >&5
16173 echo "${ECHO_T}$ac_res" >&6; }
16174 if test `eval echo '${'$as_ac_var'}'` = yes; then
16175 cat >>confdefs.h <<_ACEOF
16176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16177 _ACEOF
16180 done
16183 # Solaris has libkstat which does not require root.
16185 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16186 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16187 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 else
16190 ac_check_lib_save_LIBS=$LIBS
16191 LIBS="-lkstat $LIBS"
16192 cat >conftest.$ac_ext <<_ACEOF
16193 /* confdefs.h. */
16194 _ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16199 /* Override any GCC internal prototype to avoid an error.
16200 Use char because int might match the return type of a GCC
16201 builtin and then its argument prototype would still apply. */
16202 #ifdef __cplusplus
16203 extern "C"
16204 #endif
16205 char kstat_open ();
16207 main ()
16209 return kstat_open ();
16211 return 0;
16213 _ACEOF
16214 rm -f conftest.$ac_objext conftest$ac_exeext
16215 if { (ac_try="$ac_link"
16216 case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_link") 2>conftest.er1
16222 ac_status=$?
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } && {
16228 test -z "$ac_c_werror_flag" ||
16229 test ! -s conftest.err
16230 } && test -s conftest$ac_exeext &&
16231 $as_test_x conftest$ac_exeext; then
16232 ac_cv_lib_kstat_kstat_open=yes
16233 else
16234 echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16237 ac_cv_lib_kstat_kstat_open=no
16240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16241 conftest$ac_exeext conftest.$ac_ext
16242 LIBS=$ac_check_lib_save_LIBS
16244 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16245 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16246 if test $ac_cv_lib_kstat_kstat_open = yes; then
16247 cat >>confdefs.h <<_ACEOF
16248 #define HAVE_LIBKSTAT 1
16249 _ACEOF
16251 LIBS="-lkstat $LIBS"
16255 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16257 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16258 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16259 # to get the right answer into the cache.
16260 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16261 if test $ac_have_func = no; then
16262 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16263 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16264 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267 ac_check_lib_save_LIBS=$LIBS
16268 LIBS="-lelf $LIBS"
16269 cat >conftest.$ac_ext <<_ACEOF
16270 /* confdefs.h. */
16271 _ACEOF
16272 cat confdefs.h >>conftest.$ac_ext
16273 cat >>conftest.$ac_ext <<_ACEOF
16274 /* end confdefs.h. */
16276 /* Override any GCC internal prototype to avoid an error.
16277 Use char because int might match the return type of a GCC
16278 builtin and then its argument prototype would still apply. */
16279 #ifdef __cplusplus
16280 extern "C"
16281 #endif
16282 char elf_begin ();
16284 main ()
16286 return elf_begin ();
16288 return 0;
16290 _ACEOF
16291 rm -f conftest.$ac_objext conftest$ac_exeext
16292 if { (ac_try="$ac_link"
16293 case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16296 esac
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_link") 2>conftest.er1
16299 ac_status=$?
16300 grep -v '^ *+' conftest.er1 >conftest.err
16301 rm -f conftest.er1
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } && {
16305 test -z "$ac_c_werror_flag" ||
16306 test ! -s conftest.err
16307 } && test -s conftest$ac_exeext &&
16308 $as_test_x conftest$ac_exeext; then
16309 ac_cv_lib_elf_elf_begin=yes
16310 else
16311 echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16314 ac_cv_lib_elf_elf_begin=no
16317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16318 conftest$ac_exeext conftest.$ac_ext
16319 LIBS=$ac_check_lib_save_LIBS
16321 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16322 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16323 if test $ac_cv_lib_elf_elf_begin = yes; then
16324 LIBS="-lelf $LIBS"
16328 if test $ac_have_func = no; then
16329 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16330 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16331 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 else
16334 ac_check_lib_save_LIBS=$LIBS
16335 LIBS="-lkvm $LIBS"
16336 cat >conftest.$ac_ext <<_ACEOF
16337 /* confdefs.h. */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16343 /* Override any GCC internal prototype to avoid an error.
16344 Use char because int might match the return type of a GCC
16345 builtin and then its argument prototype would still apply. */
16346 #ifdef __cplusplus
16347 extern "C"
16348 #endif
16349 char kvm_open ();
16351 main ()
16353 return kvm_open ();
16355 return 0;
16357 _ACEOF
16358 rm -f conftest.$ac_objext conftest$ac_exeext
16359 if { (ac_try="$ac_link"
16360 case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_link") 2>conftest.er1
16366 ac_status=$?
16367 grep -v '^ *+' conftest.er1 >conftest.err
16368 rm -f conftest.er1
16369 cat conftest.err >&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } && {
16372 test -z "$ac_c_werror_flag" ||
16373 test ! -s conftest.err
16374 } && test -s conftest$ac_exeext &&
16375 $as_test_x conftest$ac_exeext; then
16376 ac_cv_lib_kvm_kvm_open=yes
16377 else
16378 echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16381 ac_cv_lib_kvm_kvm_open=no
16384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16385 conftest$ac_exeext conftest.$ac_ext
16386 LIBS=$ac_check_lib_save_LIBS
16388 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16389 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16390 if test $ac_cv_lib_kvm_kvm_open = yes; then
16391 LIBS="-lkvm $LIBS"
16394 # Check for the 4.4BSD definition of getloadavg.
16395 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16396 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16397 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400 ac_check_lib_save_LIBS=$LIBS
16401 LIBS="-lutil $LIBS"
16402 cat >conftest.$ac_ext <<_ACEOF
16403 /* confdefs.h. */
16404 _ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h. */
16409 /* Override any GCC internal prototype to avoid an error.
16410 Use char because int might match the return type of a GCC
16411 builtin and then its argument prototype would still apply. */
16412 #ifdef __cplusplus
16413 extern "C"
16414 #endif
16415 char getloadavg ();
16417 main ()
16419 return getloadavg ();
16421 return 0;
16423 _ACEOF
16424 rm -f conftest.$ac_objext conftest$ac_exeext
16425 if { (ac_try="$ac_link"
16426 case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16429 esac
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_link") 2>conftest.er1
16432 ac_status=$?
16433 grep -v '^ *+' conftest.er1 >conftest.err
16434 rm -f conftest.er1
16435 cat conftest.err >&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } && {
16438 test -z "$ac_c_werror_flag" ||
16439 test ! -s conftest.err
16440 } && test -s conftest$ac_exeext &&
16441 $as_test_x conftest$ac_exeext; then
16442 ac_cv_lib_util_getloadavg=yes
16443 else
16444 echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16447 ac_cv_lib_util_getloadavg=no
16450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16451 conftest$ac_exeext conftest.$ac_ext
16452 LIBS=$ac_check_lib_save_LIBS
16454 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16455 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16456 if test $ac_cv_lib_util_getloadavg = yes; then
16457 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16462 if test $ac_have_func = no; then
16463 # There is a commonly available library for RS/6000 AIX.
16464 # Since it is not a standard part of AIX, it might be installed locally.
16465 ac_getloadavg_LIBS=$LIBS
16466 LIBS="-L/usr/local/lib $LIBS"
16467 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16468 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16469 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 else
16472 ac_check_lib_save_LIBS=$LIBS
16473 LIBS="-lgetloadavg $LIBS"
16474 cat >conftest.$ac_ext <<_ACEOF
16475 /* confdefs.h. */
16476 _ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16481 /* Override any GCC internal prototype to avoid an error.
16482 Use char because int might match the return type of a GCC
16483 builtin and then its argument prototype would still apply. */
16484 #ifdef __cplusplus
16485 extern "C"
16486 #endif
16487 char getloadavg ();
16489 main ()
16491 return getloadavg ();
16493 return 0;
16495 _ACEOF
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (ac_try="$ac_link"
16498 case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16501 esac
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_link") 2>conftest.er1
16504 ac_status=$?
16505 grep -v '^ *+' conftest.er1 >conftest.err
16506 rm -f conftest.er1
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } && {
16510 test -z "$ac_c_werror_flag" ||
16511 test ! -s conftest.err
16512 } && test -s conftest$ac_exeext &&
16513 $as_test_x conftest$ac_exeext; then
16514 ac_cv_lib_getloadavg_getloadavg=yes
16515 else
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 ac_cv_lib_getloadavg_getloadavg=no
16522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16523 conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16526 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16527 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16528 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16529 LIBS="-lgetloadavg $LIBS"
16530 else
16531 LIBS=$ac_getloadavg_LIBS
16536 # Make sure it is really in the library, if we think we found it,
16537 # otherwise set up the replacement function.
16539 for ac_func in getloadavg
16541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547 cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h. */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16555 #define $ac_func innocuous_$ac_func
16557 /* System header to define __stub macros and hopefully few prototypes,
16558 which can conflict with char $ac_func (); below.
16559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16560 <limits.h> exists even on freestanding compilers. */
16562 #ifdef __STDC__
16563 # include <limits.h>
16564 #else
16565 # include <assert.h>
16566 #endif
16568 #undef $ac_func
16570 /* Override any GCC internal prototype to avoid an error.
16571 Use char because int might match the return type of a GCC
16572 builtin and then its argument prototype would still apply. */
16573 #ifdef __cplusplus
16574 extern "C"
16575 #endif
16576 char $ac_func ();
16577 /* The GNU C library defines this for functions which it implements
16578 to always fail with ENOSYS. Some functions are actually named
16579 something starting with __ and the normal name is an alias. */
16580 #if defined __stub_$ac_func || defined __stub___$ac_func
16581 choke me
16582 #endif
16585 main ()
16587 return $ac_func ();
16589 return 0;
16591 _ACEOF
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16597 esac
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_link") 2>conftest.er1
16600 ac_status=$?
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } && {
16606 test -z "$ac_c_werror_flag" ||
16607 test ! -s conftest.err
16608 } && test -s conftest$ac_exeext &&
16609 $as_test_x conftest$ac_exeext; then
16610 eval "$as_ac_var=yes"
16611 else
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 eval "$as_ac_var=no"
16618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16619 conftest$ac_exeext conftest.$ac_ext
16621 ac_res=`eval echo '${'$as_ac_var'}'`
16622 { echo "$as_me:$LINENO: result: $ac_res" >&5
16623 echo "${ECHO_T}$ac_res" >&6; }
16624 if test `eval echo '${'$as_ac_var'}'` = yes; then
16625 cat >>confdefs.h <<_ACEOF
16626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16627 _ACEOF
16629 else
16630 case " $LIBOBJS " in
16631 *" getloadavg.$ac_objext "* ) ;;
16632 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16634 esac
16637 cat >>confdefs.h <<\_ACEOF
16638 #define C_GETLOADAVG 1
16639 _ACEOF
16641 # Figure out what our getloadavg.c needs.
16642 ac_have_func=no
16643 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16644 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16645 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16646 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16650 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16651 else
16652 # Is the header compilable?
16653 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16654 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16655 cat >conftest.$ac_ext <<_ACEOF
16656 /* confdefs.h. */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 $ac_includes_default
16662 #include <sys/dg_sys_info.h>
16663 _ACEOF
16664 rm -f conftest.$ac_objext
16665 if { (ac_try="$ac_compile"
16666 case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16669 esac
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_compile") 2>conftest.er1
16672 ac_status=$?
16673 grep -v '^ *+' conftest.er1 >conftest.err
16674 rm -f conftest.er1
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } && {
16678 test -z "$ac_c_werror_flag" ||
16679 test ! -s conftest.err
16680 } && test -s conftest.$ac_objext; then
16681 ac_header_compiler=yes
16682 else
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16686 ac_header_compiler=no
16689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16691 echo "${ECHO_T}$ac_header_compiler" >&6; }
16693 # Is the header present?
16694 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16695 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16696 cat >conftest.$ac_ext <<_ACEOF
16697 /* confdefs.h. */
16698 _ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
16701 /* end confdefs.h. */
16702 #include <sys/dg_sys_info.h>
16703 _ACEOF
16704 if { (ac_try="$ac_cpp conftest.$ac_ext"
16705 case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } >/dev/null && {
16717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16718 test ! -s conftest.err
16719 }; then
16720 ac_header_preproc=yes
16721 else
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16725 ac_header_preproc=no
16728 rm -f conftest.err conftest.$ac_ext
16729 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16730 echo "${ECHO_T}$ac_header_preproc" >&6; }
16732 # So? What about this header?
16733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16734 yes:no: )
16735 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16736 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16738 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16739 ac_header_preproc=yes
16741 no:yes:* )
16742 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16743 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16744 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16745 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16747 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16748 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16749 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16751 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16752 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16753 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16756 esac
16757 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16758 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16759 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 else
16762 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16764 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16765 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16768 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16769 ac_have_func=yes
16771 cat >>confdefs.h <<\_ACEOF
16772 #define DGUX 1
16773 _ACEOF
16776 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16777 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16778 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16780 else
16781 ac_check_lib_save_LIBS=$LIBS
16782 LIBS="-ldgc $LIBS"
16783 cat >conftest.$ac_ext <<_ACEOF
16784 /* confdefs.h. */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16790 /* Override any GCC internal prototype to avoid an error.
16791 Use char because int might match the return type of a GCC
16792 builtin and then its argument prototype would still apply. */
16793 #ifdef __cplusplus
16794 extern "C"
16795 #endif
16796 char dg_sys_info ();
16798 main ()
16800 return dg_sys_info ();
16802 return 0;
16804 _ACEOF
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (ac_try="$ac_link"
16807 case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16810 esac
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_link") 2>conftest.er1
16813 ac_status=$?
16814 grep -v '^ *+' conftest.er1 >conftest.err
16815 rm -f conftest.er1
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } && {
16819 test -z "$ac_c_werror_flag" ||
16820 test ! -s conftest.err
16821 } && test -s conftest$ac_exeext &&
16822 $as_test_x conftest$ac_exeext; then
16823 ac_cv_lib_dgc_dg_sys_info=yes
16824 else
16825 echo "$as_me: failed program was:" >&5
16826 sed 's/^/| /' conftest.$ac_ext >&5
16828 ac_cv_lib_dgc_dg_sys_info=no
16831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16832 conftest$ac_exeext conftest.$ac_ext
16833 LIBS=$ac_check_lib_save_LIBS
16835 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16836 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16837 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16838 cat >>confdefs.h <<_ACEOF
16839 #define HAVE_LIBDGC 1
16840 _ACEOF
16842 LIBS="-ldgc $LIBS"
16850 if test "${ac_cv_header_locale_h+set}" = set; then
16851 { echo "$as_me:$LINENO: checking for locale.h" >&5
16852 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16853 if test "${ac_cv_header_locale_h+set}" = set; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16856 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16857 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16858 else
16859 # Is the header compilable?
16860 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16861 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16862 cat >conftest.$ac_ext <<_ACEOF
16863 /* confdefs.h. */
16864 _ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h. */
16868 $ac_includes_default
16869 #include <locale.h>
16870 _ACEOF
16871 rm -f conftest.$ac_objext
16872 if { (ac_try="$ac_compile"
16873 case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16876 esac
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_compile") 2>conftest.er1
16879 ac_status=$?
16880 grep -v '^ *+' conftest.er1 >conftest.err
16881 rm -f conftest.er1
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } && {
16885 test -z "$ac_c_werror_flag" ||
16886 test ! -s conftest.err
16887 } && test -s conftest.$ac_objext; then
16888 ac_header_compiler=yes
16889 else
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 ac_header_compiler=no
16896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16898 echo "${ECHO_T}$ac_header_compiler" >&6; }
16900 # Is the header present?
16901 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16902 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16903 cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h. */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 #include <locale.h>
16910 _ACEOF
16911 if { (ac_try="$ac_cpp conftest.$ac_ext"
16912 case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16918 ac_status=$?
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -f conftest.er1
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } >/dev/null && {
16924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16925 test ! -s conftest.err
16926 }; then
16927 ac_header_preproc=yes
16928 else
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16932 ac_header_preproc=no
16935 rm -f conftest.err conftest.$ac_ext
16936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16937 echo "${ECHO_T}$ac_header_preproc" >&6; }
16939 # So? What about this header?
16940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16941 yes:no: )
16942 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16943 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16944 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16945 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16946 ac_header_preproc=yes
16948 no:yes:* )
16949 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16950 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16951 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16952 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16953 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16954 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16955 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16956 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16957 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16958 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16959 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16960 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16963 esac
16964 { echo "$as_me:$LINENO: checking for locale.h" >&5
16965 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16966 if test "${ac_cv_header_locale_h+set}" = set; then
16967 echo $ECHO_N "(cached) $ECHO_C" >&6
16968 else
16969 ac_cv_header_locale_h=$ac_header_preproc
16971 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16972 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16978 for ac_func in setlocale
16980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986 cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h. */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16994 #define $ac_func innocuous_$ac_func
16996 /* System header to define __stub macros and hopefully few prototypes,
16997 which can conflict with char $ac_func (); below.
16998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16999 <limits.h> exists even on freestanding compilers. */
17001 #ifdef __STDC__
17002 # include <limits.h>
17003 #else
17004 # include <assert.h>
17005 #endif
17007 #undef $ac_func
17009 /* Override any GCC internal prototype to avoid an error.
17010 Use char because int might match the return type of a GCC
17011 builtin and then its argument prototype would still apply. */
17012 #ifdef __cplusplus
17013 extern "C"
17014 #endif
17015 char $ac_func ();
17016 /* The GNU C library defines this for functions which it implements
17017 to always fail with ENOSYS. Some functions are actually named
17018 something starting with __ and the normal name is an alias. */
17019 #if defined __stub_$ac_func || defined __stub___$ac_func
17020 choke me
17021 #endif
17024 main ()
17026 return $ac_func ();
17028 return 0;
17030 _ACEOF
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (ac_try="$ac_link"
17033 case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_link") 2>conftest.er1
17039 ac_status=$?
17040 grep -v '^ *+' conftest.er1 >conftest.err
17041 rm -f conftest.er1
17042 cat conftest.err >&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } && {
17045 test -z "$ac_c_werror_flag" ||
17046 test ! -s conftest.err
17047 } && test -s conftest$ac_exeext &&
17048 $as_test_x conftest$ac_exeext; then
17049 eval "$as_ac_var=yes"
17050 else
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 eval "$as_ac_var=no"
17057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17058 conftest$ac_exeext conftest.$ac_ext
17060 ac_res=`eval echo '${'$as_ac_var'}'`
17061 { echo "$as_me:$LINENO: result: $ac_res" >&5
17062 echo "${ECHO_T}$ac_res" >&6; }
17063 if test `eval echo '${'$as_ac_var'}'` = yes; then
17064 cat >>confdefs.h <<_ACEOF
17065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17066 _ACEOF
17069 done
17072 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17073 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17074 # Irix 4.0.5F has the header but not the library.
17075 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17076 ac_have_func=yes
17078 cat >>confdefs.h <<\_ACEOF
17079 #define SVR4 1
17080 _ACEOF
17084 if test $ac_have_func = no; then
17085 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17086 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17087 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17088 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17091 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17092 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17093 else
17094 # Is the header compilable?
17095 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17096 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17097 cat >conftest.$ac_ext <<_ACEOF
17098 /* confdefs.h. */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103 $ac_includes_default
17104 #include <inq_stats/cpustats.h>
17105 _ACEOF
17106 rm -f conftest.$ac_objext
17107 if { (ac_try="$ac_compile"
17108 case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17111 esac
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_compile") 2>conftest.er1
17114 ac_status=$?
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } && {
17120 test -z "$ac_c_werror_flag" ||
17121 test ! -s conftest.err
17122 } && test -s conftest.$ac_objext; then
17123 ac_header_compiler=yes
17124 else
17125 echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17128 ac_header_compiler=no
17131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17133 echo "${ECHO_T}$ac_header_compiler" >&6; }
17135 # Is the header present?
17136 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17137 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17138 cat >conftest.$ac_ext <<_ACEOF
17139 /* confdefs.h. */
17140 _ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17144 #include <inq_stats/cpustats.h>
17145 _ACEOF
17146 if { (ac_try="$ac_cpp conftest.$ac_ext"
17147 case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17150 esac
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17153 ac_status=$?
17154 grep -v '^ *+' conftest.er1 >conftest.err
17155 rm -f conftest.er1
17156 cat conftest.err >&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } >/dev/null && {
17159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17160 test ! -s conftest.err
17161 }; then
17162 ac_header_preproc=yes
17163 else
17164 echo "$as_me: failed program was:" >&5
17165 sed 's/^/| /' conftest.$ac_ext >&5
17167 ac_header_preproc=no
17170 rm -f conftest.err conftest.$ac_ext
17171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17172 echo "${ECHO_T}$ac_header_preproc" >&6; }
17174 # So? What about this header?
17175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17176 yes:no: )
17177 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17178 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17179 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17180 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17181 ac_header_preproc=yes
17183 no:yes:* )
17184 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17185 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17186 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17187 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17188 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17189 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17191 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17192 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17193 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17194 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17195 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17198 esac
17199 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17200 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17201 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 else
17204 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17206 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17207 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17210 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17211 ac_have_func=yes
17213 cat >>confdefs.h <<\_ACEOF
17214 #define UMAX 1
17215 _ACEOF
17218 cat >>confdefs.h <<\_ACEOF
17219 #define UMAX4_3 1
17220 _ACEOF
17227 if test $ac_have_func = no; then
17228 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17229 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17230 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17231 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17235 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17236 else
17237 # Is the header compilable?
17238 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17239 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17240 cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h. */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17246 $ac_includes_default
17247 #include <sys/cpustats.h>
17248 _ACEOF
17249 rm -f conftest.$ac_objext
17250 if { (ac_try="$ac_compile"
17251 case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17254 esac
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_compile") 2>conftest.er1
17257 ac_status=$?
17258 grep -v '^ *+' conftest.er1 >conftest.err
17259 rm -f conftest.er1
17260 cat conftest.err >&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } && {
17263 test -z "$ac_c_werror_flag" ||
17264 test ! -s conftest.err
17265 } && test -s conftest.$ac_objext; then
17266 ac_header_compiler=yes
17267 else
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_header_compiler=no
17274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17276 echo "${ECHO_T}$ac_header_compiler" >&6; }
17278 # Is the header present?
17279 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17280 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h. */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 #include <sys/cpustats.h>
17288 _ACEOF
17289 if { (ac_try="$ac_cpp conftest.$ac_ext"
17290 case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17293 esac
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17296 ac_status=$?
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } >/dev/null && {
17302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17303 test ! -s conftest.err
17304 }; then
17305 ac_header_preproc=yes
17306 else
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 ac_header_preproc=no
17313 rm -f conftest.err conftest.$ac_ext
17314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17315 echo "${ECHO_T}$ac_header_preproc" >&6; }
17317 # So? What about this header?
17318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17319 yes:no: )
17320 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17321 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17323 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17324 ac_header_preproc=yes
17326 no:yes:* )
17327 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17328 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17329 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17330 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17332 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17333 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17334 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17335 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17336 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17337 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17338 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17341 esac
17342 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17343 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17344 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17346 else
17347 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17349 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17350 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17353 if test $ac_cv_header_sys_cpustats_h = yes; then
17354 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17355 #define UMAX 1
17356 _ACEOF
17363 if test $ac_have_func = no; then
17365 for ac_header in mach/mach.h
17367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17372 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 ac_res=`eval echo '${'$as_ac_Header'}'`
17375 { echo "$as_me:$LINENO: result: $ac_res" >&5
17376 echo "${ECHO_T}$ac_res" >&6; }
17377 else
17378 # Is the header compilable?
17379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 $ac_includes_default
17388 #include <$ac_header>
17389 _ACEOF
17390 rm -f conftest.$ac_objext
17391 if { (ac_try="$ac_compile"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_compile") 2>conftest.er1
17398 ac_status=$?
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } && {
17404 test -z "$ac_c_werror_flag" ||
17405 test ! -s conftest.err
17406 } && test -s conftest.$ac_objext; then
17407 ac_header_compiler=yes
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ac_header_compiler=no
17415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17417 echo "${ECHO_T}$ac_header_compiler" >&6; }
17419 # Is the header present?
17420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17422 cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h. */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 #include <$ac_header>
17429 _ACEOF
17430 if { (ac_try="$ac_cpp conftest.$ac_ext"
17431 case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17434 esac
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17437 ac_status=$?
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } >/dev/null && {
17443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17444 test ! -s conftest.err
17445 }; then
17446 ac_header_preproc=yes
17447 else
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 ac_header_preproc=no
17454 rm -f conftest.err conftest.$ac_ext
17455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17456 echo "${ECHO_T}$ac_header_preproc" >&6; }
17458 # So? What about this header?
17459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17460 yes:no: )
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17465 ac_header_preproc=yes
17467 no:yes:* )
17468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17482 esac
17483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17486 echo $ECHO_N "(cached) $ECHO_C" >&6
17487 else
17488 eval "$as_ac_Header=\$ac_header_preproc"
17490 ac_res=`eval echo '${'$as_ac_Header'}'`
17491 { echo "$as_me:$LINENO: result: $ac_res" >&5
17492 echo "${ECHO_T}$ac_res" >&6; }
17495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17496 cat >>confdefs.h <<_ACEOF
17497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17498 _ACEOF
17502 done
17507 for ac_header in nlist.h
17509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
17516 ac_res=`eval echo '${'$as_ac_Header'}'`
17517 { echo "$as_me:$LINENO: result: $ac_res" >&5
17518 echo "${ECHO_T}$ac_res" >&6; }
17519 else
17520 # Is the header compilable?
17521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17523 cat >conftest.$ac_ext <<_ACEOF
17524 /* confdefs.h. */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 $ac_includes_default
17530 #include <$ac_header>
17531 _ACEOF
17532 rm -f conftest.$ac_objext
17533 if { (ac_try="$ac_compile"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_compile") 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && {
17546 test -z "$ac_c_werror_flag" ||
17547 test ! -s conftest.err
17548 } && test -s conftest.$ac_objext; then
17549 ac_header_compiler=yes
17550 else
17551 echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 ac_header_compiler=no
17557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17559 echo "${ECHO_T}$ac_header_compiler" >&6; }
17561 # Is the header present?
17562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17564 cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h. */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 #include <$ac_header>
17571 _ACEOF
17572 if { (ac_try="$ac_cpp conftest.$ac_ext"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17576 esac
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17579 ac_status=$?
17580 grep -v '^ *+' conftest.er1 >conftest.err
17581 rm -f conftest.er1
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } >/dev/null && {
17585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17586 test ! -s conftest.err
17587 }; then
17588 ac_header_preproc=yes
17589 else
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_header_preproc=no
17596 rm -f conftest.err conftest.$ac_ext
17597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17598 echo "${ECHO_T}$ac_header_preproc" >&6; }
17600 # So? What about this header?
17601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17602 yes:no: )
17603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17607 ac_header_preproc=yes
17609 no:yes:* )
17610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17624 esac
17625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 else
17630 eval "$as_ac_Header=\$ac_header_preproc"
17632 ac_res=`eval echo '${'$as_ac_Header'}'`
17633 { echo "$as_me:$LINENO: result: $ac_res" >&5
17634 echo "${ECHO_T}$ac_res" >&6; }
17637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17640 _ACEOF
17641 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17642 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17643 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17645 else
17646 cat >conftest.$ac_ext <<_ACEOF
17647 /* confdefs.h. */
17648 _ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17652 #include <nlist.h>
17655 main ()
17657 static struct nlist ac_aggr;
17658 if (ac_aggr.n_un.n_name)
17659 return 0;
17661 return 0;
17663 _ACEOF
17664 rm -f conftest.$ac_objext
17665 if { (ac_try="$ac_compile"
17666 case "(($ac_try" in
17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668 *) ac_try_echo=$ac_try;;
17669 esac
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_compile") 2>conftest.er1
17672 ac_status=$?
17673 grep -v '^ *+' conftest.er1 >conftest.err
17674 rm -f conftest.er1
17675 cat conftest.err >&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } && {
17678 test -z "$ac_c_werror_flag" ||
17679 test ! -s conftest.err
17680 } && test -s conftest.$ac_objext; then
17681 ac_cv_member_struct_nlist_n_un_n_name=yes
17682 else
17683 echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h. */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 #include <nlist.h>
17695 main ()
17697 static struct nlist ac_aggr;
17698 if (sizeof ac_aggr.n_un.n_name)
17699 return 0;
17701 return 0;
17703 _ACEOF
17704 rm -f conftest.$ac_objext
17705 if { (ac_try="$ac_compile"
17706 case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_compile") 2>conftest.er1
17712 ac_status=$?
17713 grep -v '^ *+' conftest.er1 >conftest.err
17714 rm -f conftest.er1
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } && {
17718 test -z "$ac_c_werror_flag" ||
17719 test ! -s conftest.err
17720 } && test -s conftest.$ac_objext; then
17721 ac_cv_member_struct_nlist_n_un_n_name=yes
17722 else
17723 echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17726 ac_cv_member_struct_nlist_n_un_n_name=no
17729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17734 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17735 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17736 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17738 cat >>confdefs.h <<_ACEOF
17739 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17740 _ACEOF
17743 cat >>confdefs.h <<\_ACEOF
17744 #define NLIST_NAME_UNION 1
17745 _ACEOF
17752 done
17755 done
17758 # Some definitions of getloadavg require that the program be installed setgid.
17759 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17760 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17761 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764 cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h. */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17770 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17771 #ifdef LDAV_PRIVILEGED
17772 Yowza Am I SETGID yet
17773 #endif
17774 _ACEOF
17775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17776 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17777 ac_cv_func_getloadavg_setgid=yes
17778 else
17779 ac_cv_func_getloadavg_setgid=no
17781 rm -f conftest*
17784 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17785 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17786 if test $ac_cv_func_getloadavg_setgid = yes; then
17787 NEED_SETGID=true
17789 cat >>confdefs.h <<\_ACEOF
17790 #define GETLOADAVG_PRIVILEGED 1
17791 _ACEOF
17793 else
17794 NEED_SETGID=false
17797 if test $ac_cv_func_getloadavg_setgid = yes; then
17798 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17799 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17800 if test "${ac_cv_group_kmem+set}" = set; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 else
17803 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17804 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17805 # If we got an error (system does not support symlinks), try without -L.
17806 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17807 ac_cv_group_kmem=`echo $ac_ls_output \
17808 | sed -ne 's/[ ][ ]*/ /g;
17809 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17810 / /s/.* //;p;'`
17813 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17814 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17815 KMEM_GROUP=$ac_cv_group_kmem
17817 if test "x$ac_save_LIBS" = x; then
17818 GETLOADAVG_LIBS=$LIBS
17819 else
17820 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17822 LIBS=$ac_save_LIBS
17826 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17827 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17828 if test "${ac_cv_sys_largefile_source+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 else
17831 while :; do
17832 cat >conftest.$ac_ext <<_ACEOF
17833 /* confdefs.h. */
17834 _ACEOF
17835 cat confdefs.h >>conftest.$ac_ext
17836 cat >>conftest.$ac_ext <<_ACEOF
17837 /* end confdefs.h. */
17838 #include <stdio.h>
17840 main ()
17842 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17844 return 0;
17846 _ACEOF
17847 rm -f conftest.$ac_objext conftest$ac_exeext
17848 if { (ac_try="$ac_link"
17849 case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17852 esac
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_link") 2>conftest.er1
17855 ac_status=$?
17856 grep -v '^ *+' conftest.er1 >conftest.err
17857 rm -f conftest.er1
17858 cat conftest.err >&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } && {
17861 test -z "$ac_c_werror_flag" ||
17862 test ! -s conftest.err
17863 } && test -s conftest$ac_exeext &&
17864 $as_test_x conftest$ac_exeext; then
17865 ac_cv_sys_largefile_source=no; break
17866 else
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17874 conftest$ac_exeext conftest.$ac_ext
17875 cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h. */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 #define _LARGEFILE_SOURCE 1
17882 #include <stdio.h>
17884 main ()
17886 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17888 return 0;
17890 _ACEOF
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (ac_try="$ac_link"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17896 esac
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_link") 2>conftest.er1
17899 ac_status=$?
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } && {
17905 test -z "$ac_c_werror_flag" ||
17906 test ! -s conftest.err
17907 } && test -s conftest$ac_exeext &&
17908 $as_test_x conftest$ac_exeext; then
17909 ac_cv_sys_largefile_source=1; break
17910 else
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17918 conftest$ac_exeext conftest.$ac_ext
17919 ac_cv_sys_largefile_source=unknown
17920 break
17921 done
17923 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17924 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17925 case $ac_cv_sys_largefile_source in #(
17926 no | unknown) ;;
17928 cat >>confdefs.h <<_ACEOF
17929 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17930 _ACEOF
17932 esac
17933 rm -f conftest*
17935 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17936 # in glibc 2.1.3, but that breaks too many other things.
17937 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17938 if test $ac_cv_sys_largefile_source != unknown; then
17940 cat >>confdefs.h <<\_ACEOF
17941 #define HAVE_FSEEKO 1
17942 _ACEOF
17947 # Configure getopt.
17948 # getopt.m4 serial 10
17950 # The getopt module assume you want GNU getopt, with getopt_long etc,
17951 # rather than vanilla POSIX getopt. This means your your code should
17952 # always include <getopt.h> for the getopt prototypes.
17964 # Prerequisites of lib/getopt*.
17969 GETOPT_H=
17971 for ac_header in getopt.h
17973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 ac_res=`eval echo '${'$as_ac_Header'}'`
17981 { echo "$as_me:$LINENO: result: $ac_res" >&5
17982 echo "${ECHO_T}$ac_res" >&6; }
17983 else
17984 # Is the header compilable?
17985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17987 cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h. */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 $ac_includes_default
17994 #include <$ac_header>
17995 _ACEOF
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_compile") 2>conftest.er1
18004 ac_status=$?
18005 grep -v '^ *+' conftest.er1 >conftest.err
18006 rm -f conftest.er1
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } && {
18010 test -z "$ac_c_werror_flag" ||
18011 test ! -s conftest.err
18012 } && test -s conftest.$ac_objext; then
18013 ac_header_compiler=yes
18014 else
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18018 ac_header_compiler=no
18021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18023 echo "${ECHO_T}$ac_header_compiler" >&6; }
18025 # Is the header present?
18026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18028 cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h. */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18034 #include <$ac_header>
18035 _ACEOF
18036 if { (ac_try="$ac_cpp conftest.$ac_ext"
18037 case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18040 esac
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18043 ac_status=$?
18044 grep -v '^ *+' conftest.er1 >conftest.err
18045 rm -f conftest.er1
18046 cat conftest.err >&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } >/dev/null && {
18049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18050 test ! -s conftest.err
18051 }; then
18052 ac_header_preproc=yes
18053 else
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18057 ac_header_preproc=no
18060 rm -f conftest.err conftest.$ac_ext
18061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18062 echo "${ECHO_T}$ac_header_preproc" >&6; }
18064 # So? What about this header?
18065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18066 yes:no: )
18067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18071 ac_header_preproc=yes
18073 no:yes:* )
18074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18088 esac
18089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094 eval "$as_ac_Header=\$ac_header_preproc"
18096 ac_res=`eval echo '${'$as_ac_Header'}'`
18097 { echo "$as_me:$LINENO: result: $ac_res" >&5
18098 echo "${ECHO_T}$ac_res" >&6; }
18101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18102 cat >>confdefs.h <<_ACEOF
18103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18104 _ACEOF
18106 else
18107 GETOPT_H=getopt.h
18110 done
18112 if test -z "$GETOPT_H"; then
18114 for ac_func in getopt_long_only
18116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18121 else
18122 cat >conftest.$ac_ext <<_ACEOF
18123 /* confdefs.h. */
18124 _ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h. */
18128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18130 #define $ac_func innocuous_$ac_func
18132 /* System header to define __stub macros and hopefully few prototypes,
18133 which can conflict with char $ac_func (); below.
18134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18135 <limits.h> exists even on freestanding compilers. */
18137 #ifdef __STDC__
18138 # include <limits.h>
18139 #else
18140 # include <assert.h>
18141 #endif
18143 #undef $ac_func
18145 /* Override any GCC internal prototype to avoid an error.
18146 Use char because int might match the return type of a GCC
18147 builtin and then its argument prototype would still apply. */
18148 #ifdef __cplusplus
18149 extern "C"
18150 #endif
18151 char $ac_func ();
18152 /* The GNU C library defines this for functions which it implements
18153 to always fail with ENOSYS. Some functions are actually named
18154 something starting with __ and the normal name is an alias. */
18155 #if defined __stub_$ac_func || defined __stub___$ac_func
18156 choke me
18157 #endif
18160 main ()
18162 return $ac_func ();
18164 return 0;
18166 _ACEOF
18167 rm -f conftest.$ac_objext conftest$ac_exeext
18168 if { (ac_try="$ac_link"
18169 case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_link") 2>conftest.er1
18175 ac_status=$?
18176 grep -v '^ *+' conftest.er1 >conftest.err
18177 rm -f conftest.er1
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest$ac_exeext &&
18184 $as_test_x conftest$ac_exeext; then
18185 eval "$as_ac_var=yes"
18186 else
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 eval "$as_ac_var=no"
18193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18194 conftest$ac_exeext conftest.$ac_ext
18196 ac_res=`eval echo '${'$as_ac_var'}'`
18197 { echo "$as_me:$LINENO: result: $ac_res" >&5
18198 echo "${ECHO_T}$ac_res" >&6; }
18199 if test `eval echo '${'$as_ac_var'}'` = yes; then
18200 cat >>confdefs.h <<_ACEOF
18201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18202 _ACEOF
18204 else
18205 GETOPT_H=getopt.h
18207 done
18211 if test -z "$GETOPT_H"; then
18212 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18213 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18214 if test "${ac_cv_have_decl_optreset+set}" = set; then
18215 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 else
18217 cat >conftest.$ac_ext <<_ACEOF
18218 /* confdefs.h. */
18219 _ACEOF
18220 cat confdefs.h >>conftest.$ac_ext
18221 cat >>conftest.$ac_ext <<_ACEOF
18222 /* end confdefs.h. */
18223 #include <getopt.h>
18226 main ()
18228 #ifndef optreset
18229 (void) optreset;
18230 #endif
18233 return 0;
18235 _ACEOF
18236 rm -f conftest.$ac_objext
18237 if { (ac_try="$ac_compile"
18238 case "(($ac_try" in
18239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240 *) ac_try_echo=$ac_try;;
18241 esac
18242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18243 (eval "$ac_compile") 2>conftest.er1
18244 ac_status=$?
18245 grep -v '^ *+' conftest.er1 >conftest.err
18246 rm -f conftest.er1
18247 cat conftest.err >&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } && {
18250 test -z "$ac_c_werror_flag" ||
18251 test ! -s conftest.err
18252 } && test -s conftest.$ac_objext; then
18253 ac_cv_have_decl_optreset=yes
18254 else
18255 echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18258 ac_cv_have_decl_optreset=no
18261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18263 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18264 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18265 if test $ac_cv_have_decl_optreset = yes; then
18266 GETOPT_H=getopt.h
18271 if test -z "$GETOPT_H"; then
18272 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18273 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18274 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277 if test "$cross_compiling" = yes; then
18278 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18279 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18280 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 else
18283 cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h. */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18289 #include <getopt.h>
18292 main ()
18294 #ifndef getopt_clip
18295 (void) getopt_clip;
18296 #endif
18299 return 0;
18301 _ACEOF
18302 rm -f conftest.$ac_objext
18303 if { (ac_try="$ac_compile"
18304 case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18307 esac
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_compile") 2>conftest.er1
18310 ac_status=$?
18311 grep -v '^ *+' conftest.er1 >conftest.err
18312 rm -f conftest.er1
18313 cat conftest.err >&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } && {
18316 test -z "$ac_c_werror_flag" ||
18317 test ! -s conftest.err
18318 } && test -s conftest.$ac_objext; then
18319 ac_cv_have_decl_getopt_clip=yes
18320 else
18321 echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18324 ac_cv_have_decl_getopt_clip=no
18327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18329 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18330 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18331 if test $ac_cv_have_decl_getopt_clip = yes; then
18332 gl_cv_func_gnu_getopt=no
18333 else
18334 gl_cv_func_gnu_getopt=yes
18337 else
18338 cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h. */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18344 #include <getopt.h>
18346 main ()
18349 char *myargv[3];
18350 myargv[0] = "conftest";
18351 myargv[1] = "-+";
18352 myargv[2] = 0;
18353 return getopt (2, myargv, "+a") != '?';
18356 return 0;
18358 _ACEOF
18359 rm -f conftest$ac_exeext
18360 if { (ac_try="$ac_link"
18361 case "(($ac_try" in
18362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363 *) ac_try_echo=$ac_try;;
18364 esac
18365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366 (eval "$ac_link") 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18370 { (case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_try") 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 gl_cv_func_gnu_getopt=yes
18380 else
18381 echo "$as_me: program exited with status $ac_status" >&5
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 ( exit $ac_status )
18386 gl_cv_func_gnu_getopt=no
18388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18393 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18394 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18395 if test "$gl_cv_func_gnu_getopt" = "no"; then
18396 GETOPT_H=getopt.h
18402 if test -n "$GETOPT_H"; then
18405 GETOPT_H=getopt.h
18407 cat >>confdefs.h <<\_ACEOF
18408 #define __GETOPT_PREFIX rpl_
18409 _ACEOF
18414 GETOPTOBJS='getopt.o getopt1.o'
18421 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18422 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18423 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426 # Use it with a single arg.
18427 cat >conftest.$ac_ext <<_ACEOF
18428 /* confdefs.h. */
18429 _ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18433 $ac_includes_default
18435 main ()
18437 getpgrp (0);
18439 return 0;
18441 _ACEOF
18442 rm -f conftest.$ac_objext
18443 if { (ac_try="$ac_compile"
18444 case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18447 esac
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_compile") 2>conftest.er1
18450 ac_status=$?
18451 grep -v '^ *+' conftest.er1 >conftest.err
18452 rm -f conftest.er1
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } && {
18456 test -z "$ac_c_werror_flag" ||
18457 test ! -s conftest.err
18458 } && test -s conftest.$ac_objext; then
18459 ac_cv_func_getpgrp_void=no
18460 else
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18464 ac_cv_func_getpgrp_void=yes
18467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18470 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18471 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18472 if test $ac_cv_func_getpgrp_void = yes; then
18474 cat >>confdefs.h <<\_ACEOF
18475 #define GETPGRP_VOID 1
18476 _ACEOF
18482 for ac_func in strftime
18484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 else
18490 cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h. */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18498 #define $ac_func innocuous_$ac_func
18500 /* System header to define __stub macros and hopefully few prototypes,
18501 which can conflict with char $ac_func (); below.
18502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18503 <limits.h> exists even on freestanding compilers. */
18505 #ifdef __STDC__
18506 # include <limits.h>
18507 #else
18508 # include <assert.h>
18509 #endif
18511 #undef $ac_func
18513 /* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18516 #ifdef __cplusplus
18517 extern "C"
18518 #endif
18519 char $ac_func ();
18520 /* The GNU C library defines this for functions which it implements
18521 to always fail with ENOSYS. Some functions are actually named
18522 something starting with __ and the normal name is an alias. */
18523 #if defined __stub_$ac_func || defined __stub___$ac_func
18524 choke me
18525 #endif
18528 main ()
18530 return $ac_func ();
18532 return 0;
18534 _ACEOF
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (ac_try="$ac_link"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_link") 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && {
18549 test -z "$ac_c_werror_flag" ||
18550 test ! -s conftest.err
18551 } && test -s conftest$ac_exeext &&
18552 $as_test_x conftest$ac_exeext; then
18553 eval "$as_ac_var=yes"
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 eval "$as_ac_var=no"
18561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18562 conftest$ac_exeext conftest.$ac_ext
18564 ac_res=`eval echo '${'$as_ac_var'}'`
18565 { echo "$as_me:$LINENO: result: $ac_res" >&5
18566 echo "${ECHO_T}$ac_res" >&6; }
18567 if test `eval echo '${'$as_ac_var'}'` = yes; then
18568 cat >>confdefs.h <<_ACEOF
18569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18570 _ACEOF
18572 else
18573 # strftime is in -lintl on SCO UNIX.
18574 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18575 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18576 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579 ac_check_lib_save_LIBS=$LIBS
18580 LIBS="-lintl $LIBS"
18581 cat >conftest.$ac_ext <<_ACEOF
18582 /* confdefs.h. */
18583 _ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h. */
18588 /* Override any GCC internal prototype to avoid an error.
18589 Use char because int might match the return type of a GCC
18590 builtin and then its argument prototype would still apply. */
18591 #ifdef __cplusplus
18592 extern "C"
18593 #endif
18594 char strftime ();
18596 main ()
18598 return strftime ();
18600 return 0;
18602 _ACEOF
18603 rm -f conftest.$ac_objext conftest$ac_exeext
18604 if { (ac_try="$ac_link"
18605 case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18608 esac
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_link") 2>conftest.er1
18611 ac_status=$?
18612 grep -v '^ *+' conftest.er1 >conftest.err
18613 rm -f conftest.er1
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } && {
18617 test -z "$ac_c_werror_flag" ||
18618 test ! -s conftest.err
18619 } && test -s conftest$ac_exeext &&
18620 $as_test_x conftest$ac_exeext; then
18621 ac_cv_lib_intl_strftime=yes
18622 else
18623 echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18626 ac_cv_lib_intl_strftime=no
18629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18630 conftest$ac_exeext conftest.$ac_ext
18631 LIBS=$ac_check_lib_save_LIBS
18633 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18634 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18635 if test $ac_cv_lib_intl_strftime = yes; then
18636 cat >>confdefs.h <<\_ACEOF
18637 #define HAVE_STRFTIME 1
18638 _ACEOF
18640 LIBS="-lintl $LIBS"
18644 done
18647 # UNIX98 PTYs.
18649 for ac_func in grantpt
18651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h. */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18665 #define $ac_func innocuous_$ac_func
18667 /* System header to define __stub macros and hopefully few prototypes,
18668 which can conflict with char $ac_func (); below.
18669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18670 <limits.h> exists even on freestanding compilers. */
18672 #ifdef __STDC__
18673 # include <limits.h>
18674 #else
18675 # include <assert.h>
18676 #endif
18678 #undef $ac_func
18680 /* Override any GCC internal prototype to avoid an error.
18681 Use char because int might match the return type of a GCC
18682 builtin and then its argument prototype would still apply. */
18683 #ifdef __cplusplus
18684 extern "C"
18685 #endif
18686 char $ac_func ();
18687 /* The GNU C library defines this for functions which it implements
18688 to always fail with ENOSYS. Some functions are actually named
18689 something starting with __ and the normal name is an alias. */
18690 #if defined __stub_$ac_func || defined __stub___$ac_func
18691 choke me
18692 #endif
18695 main ()
18697 return $ac_func ();
18699 return 0;
18701 _ACEOF
18702 rm -f conftest.$ac_objext conftest$ac_exeext
18703 if { (ac_try="$ac_link"
18704 case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18707 esac
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_link") 2>conftest.er1
18710 ac_status=$?
18711 grep -v '^ *+' conftest.er1 >conftest.err
18712 rm -f conftest.er1
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } && {
18716 test -z "$ac_c_werror_flag" ||
18717 test ! -s conftest.err
18718 } && test -s conftest$ac_exeext &&
18719 $as_test_x conftest$ac_exeext; then
18720 eval "$as_ac_var=yes"
18721 else
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18725 eval "$as_ac_var=no"
18728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18729 conftest$ac_exeext conftest.$ac_ext
18731 ac_res=`eval echo '${'$as_ac_var'}'`
18732 { echo "$as_me:$LINENO: result: $ac_res" >&5
18733 echo "${ECHO_T}$ac_res" >&6; }
18734 if test `eval echo '${'$as_ac_var'}'` = yes; then
18735 cat >>confdefs.h <<_ACEOF
18736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18737 _ACEOF
18740 done
18743 # PTY-related GNU extensions.
18745 for ac_func in getpt
18747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18753 cat >conftest.$ac_ext <<_ACEOF
18754 /* confdefs.h. */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h. */
18759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18761 #define $ac_func innocuous_$ac_func
18763 /* System header to define __stub macros and hopefully few prototypes,
18764 which can conflict with char $ac_func (); below.
18765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18766 <limits.h> exists even on freestanding compilers. */
18768 #ifdef __STDC__
18769 # include <limits.h>
18770 #else
18771 # include <assert.h>
18772 #endif
18774 #undef $ac_func
18776 /* Override any GCC internal prototype to avoid an error.
18777 Use char because int might match the return type of a GCC
18778 builtin and then its argument prototype would still apply. */
18779 #ifdef __cplusplus
18780 extern "C"
18781 #endif
18782 char $ac_func ();
18783 /* The GNU C library defines this for functions which it implements
18784 to always fail with ENOSYS. Some functions are actually named
18785 something starting with __ and the normal name is an alias. */
18786 #if defined __stub_$ac_func || defined __stub___$ac_func
18787 choke me
18788 #endif
18791 main ()
18793 return $ac_func ();
18795 return 0;
18797 _ACEOF
18798 rm -f conftest.$ac_objext conftest$ac_exeext
18799 if { (ac_try="$ac_link"
18800 case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18803 esac
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_link") 2>conftest.er1
18806 ac_status=$?
18807 grep -v '^ *+' conftest.er1 >conftest.err
18808 rm -f conftest.er1
18809 cat conftest.err >&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } && {
18812 test -z "$ac_c_werror_flag" ||
18813 test ! -s conftest.err
18814 } && test -s conftest$ac_exeext &&
18815 $as_test_x conftest$ac_exeext; then
18816 eval "$as_ac_var=yes"
18817 else
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18821 eval "$as_ac_var=no"
18824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18825 conftest$ac_exeext conftest.$ac_ext
18827 ac_res=`eval echo '${'$as_ac_var'}'`
18828 { echo "$as_me:$LINENO: result: $ac_res" >&5
18829 echo "${ECHO_T}$ac_res" >&6; }
18830 if test `eval echo '${'$as_ac_var'}'` = yes; then
18831 cat >>confdefs.h <<_ACEOF
18832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18833 _ACEOF
18836 done
18839 # Check this now, so that we will NOT find the above functions in ncurses.
18840 # That is because we have not set up to link ncurses in lib-src.
18841 # It's better to believe a function is not available
18842 # than to expect to find it in ncurses.
18844 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18845 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18846 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18848 else
18849 ac_check_lib_save_LIBS=$LIBS
18850 LIBS="-lncurses $LIBS"
18851 cat >conftest.$ac_ext <<_ACEOF
18852 /* confdefs.h. */
18853 _ACEOF
18854 cat confdefs.h >>conftest.$ac_ext
18855 cat >>conftest.$ac_ext <<_ACEOF
18856 /* end confdefs.h. */
18858 /* Override any GCC internal prototype to avoid an error.
18859 Use char because int might match the return type of a GCC
18860 builtin and then its argument prototype would still apply. */
18861 #ifdef __cplusplus
18862 extern "C"
18863 #endif
18864 char tparm ();
18866 main ()
18868 return tparm ();
18870 return 0;
18872 _ACEOF
18873 rm -f conftest.$ac_objext conftest$ac_exeext
18874 if { (ac_try="$ac_link"
18875 case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18878 esac
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_link") 2>conftest.er1
18881 ac_status=$?
18882 grep -v '^ *+' conftest.er1 >conftest.err
18883 rm -f conftest.er1
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } && {
18887 test -z "$ac_c_werror_flag" ||
18888 test ! -s conftest.err
18889 } && test -s conftest$ac_exeext &&
18890 $as_test_x conftest$ac_exeext; then
18891 ac_cv_lib_ncurses_tparm=yes
18892 else
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18896 ac_cv_lib_ncurses_tparm=no
18899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18900 conftest$ac_exeext conftest.$ac_ext
18901 LIBS=$ac_check_lib_save_LIBS
18903 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18904 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18905 if test $ac_cv_lib_ncurses_tparm = yes; then
18906 cat >>confdefs.h <<_ACEOF
18907 #define HAVE_LIBNCURSES 1
18908 _ACEOF
18910 LIBS="-lncurses $LIBS"
18915 # Do we need the Hesiod library to provide the support routines?
18916 if test "$with_hesiod" = yes ; then
18917 # Don't set $LIBS here -- see comments above.
18918 resolv=no
18919 { echo "$as_me:$LINENO: checking for res_send" >&5
18920 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18921 if test "${ac_cv_func_res_send+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 else
18924 cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h. */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18932 #define res_send innocuous_res_send
18934 /* System header to define __stub macros and hopefully few prototypes,
18935 which can conflict with char res_send (); below.
18936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18937 <limits.h> exists even on freestanding compilers. */
18939 #ifdef __STDC__
18940 # include <limits.h>
18941 #else
18942 # include <assert.h>
18943 #endif
18945 #undef res_send
18947 /* Override any GCC internal prototype to avoid an error.
18948 Use char because int might match the return type of a GCC
18949 builtin and then its argument prototype would still apply. */
18950 #ifdef __cplusplus
18951 extern "C"
18952 #endif
18953 char res_send ();
18954 /* The GNU C library defines this for functions which it implements
18955 to always fail with ENOSYS. Some functions are actually named
18956 something starting with __ and the normal name is an alias. */
18957 #if defined __stub_res_send || defined __stub___res_send
18958 choke me
18959 #endif
18962 main ()
18964 return res_send ();
18966 return 0;
18968 _ACEOF
18969 rm -f conftest.$ac_objext conftest$ac_exeext
18970 if { (ac_try="$ac_link"
18971 case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_link") 2>conftest.er1
18977 ac_status=$?
18978 grep -v '^ *+' conftest.er1 >conftest.err
18979 rm -f conftest.er1
18980 cat conftest.err >&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } && {
18983 test -z "$ac_c_werror_flag" ||
18984 test ! -s conftest.err
18985 } && test -s conftest$ac_exeext &&
18986 $as_test_x conftest$ac_exeext; then
18987 ac_cv_func_res_send=yes
18988 else
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18992 ac_cv_func_res_send=no
18995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18996 conftest$ac_exeext conftest.$ac_ext
18998 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18999 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19000 if test $ac_cv_func_res_send = yes; then
19002 else
19003 { echo "$as_me:$LINENO: checking for __res_send" >&5
19004 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19005 if test "${ac_cv_func___res_send+set}" = set; then
19006 echo $ECHO_N "(cached) $ECHO_C" >&6
19007 else
19008 cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h. */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19014 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19016 #define __res_send innocuous___res_send
19018 /* System header to define __stub macros and hopefully few prototypes,
19019 which can conflict with char __res_send (); below.
19020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19021 <limits.h> exists even on freestanding compilers. */
19023 #ifdef __STDC__
19024 # include <limits.h>
19025 #else
19026 # include <assert.h>
19027 #endif
19029 #undef __res_send
19031 /* Override any GCC internal prototype to avoid an error.
19032 Use char because int might match the return type of a GCC
19033 builtin and then its argument prototype would still apply. */
19034 #ifdef __cplusplus
19035 extern "C"
19036 #endif
19037 char __res_send ();
19038 /* The GNU C library defines this for functions which it implements
19039 to always fail with ENOSYS. Some functions are actually named
19040 something starting with __ and the normal name is an alias. */
19041 #if defined __stub___res_send || defined __stub_____res_send
19042 choke me
19043 #endif
19046 main ()
19048 return __res_send ();
19050 return 0;
19052 _ACEOF
19053 rm -f conftest.$ac_objext conftest$ac_exeext
19054 if { (ac_try="$ac_link"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19058 esac
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_link") 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } && {
19067 test -z "$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19069 } && test -s conftest$ac_exeext &&
19070 $as_test_x conftest$ac_exeext; then
19071 ac_cv_func___res_send=yes
19072 else
19073 echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19076 ac_cv_func___res_send=no
19079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19080 conftest$ac_exeext conftest.$ac_ext
19082 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19083 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19084 if test $ac_cv_func___res_send = yes; then
19086 else
19087 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19088 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19089 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092 ac_check_lib_save_LIBS=$LIBS
19093 LIBS="-lresolv $LIBS"
19094 cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h. */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19101 /* Override any GCC internal prototype to avoid an error.
19102 Use char because int might match the return type of a GCC
19103 builtin and then its argument prototype would still apply. */
19104 #ifdef __cplusplus
19105 extern "C"
19106 #endif
19107 char res_send ();
19109 main ()
19111 return res_send ();
19113 return 0;
19115 _ACEOF
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && {
19130 test -z "$ac_c_werror_flag" ||
19131 test ! -s conftest.err
19132 } && test -s conftest$ac_exeext &&
19133 $as_test_x conftest$ac_exeext; then
19134 ac_cv_lib_resolv_res_send=yes
19135 else
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19139 ac_cv_lib_resolv_res_send=no
19142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19143 conftest$ac_exeext conftest.$ac_ext
19144 LIBS=$ac_check_lib_save_LIBS
19146 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19147 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19148 if test $ac_cv_lib_resolv_res_send = yes; then
19149 resolv=yes
19150 else
19151 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19152 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19153 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19154 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 else
19156 ac_check_lib_save_LIBS=$LIBS
19157 LIBS="-lresolv $LIBS"
19158 cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h. */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19165 /* Override any GCC internal prototype to avoid an error.
19166 Use char because int might match the return type of a GCC
19167 builtin and then its argument prototype would still apply. */
19168 #ifdef __cplusplus
19169 extern "C"
19170 #endif
19171 char __res_send ();
19173 main ()
19175 return __res_send ();
19177 return 0;
19179 _ACEOF
19180 rm -f conftest.$ac_objext conftest$ac_exeext
19181 if { (ac_try="$ac_link"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_link") 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } && {
19194 test -z "$ac_c_werror_flag" ||
19195 test ! -s conftest.err
19196 } && test -s conftest$ac_exeext &&
19197 $as_test_x conftest$ac_exeext; then
19198 ac_cv_lib_resolv___res_send=yes
19199 else
19200 echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19203 ac_cv_lib_resolv___res_send=no
19206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19207 conftest$ac_exeext conftest.$ac_ext
19208 LIBS=$ac_check_lib_save_LIBS
19210 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19211 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19212 if test $ac_cv_lib_resolv___res_send = yes; then
19213 resolv=yes
19222 if test "$resolv" = yes ; then
19223 RESOLVLIB=-lresolv
19225 cat >>confdefs.h <<\_ACEOF
19226 #define HAVE_LIBRESOLV 1
19227 _ACEOF
19229 else
19230 RESOLVLIB=
19232 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19233 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19234 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237 cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h. */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19243 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19245 #define hes_getmailhost innocuous_hes_getmailhost
19247 /* System header to define __stub macros and hopefully few prototypes,
19248 which can conflict with char hes_getmailhost (); below.
19249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19250 <limits.h> exists even on freestanding compilers. */
19252 #ifdef __STDC__
19253 # include <limits.h>
19254 #else
19255 # include <assert.h>
19256 #endif
19258 #undef hes_getmailhost
19260 /* Override any GCC internal prototype to avoid an error.
19261 Use char because int might match the return type of a GCC
19262 builtin and then its argument prototype would still apply. */
19263 #ifdef __cplusplus
19264 extern "C"
19265 #endif
19266 char hes_getmailhost ();
19267 /* The GNU C library defines this for functions which it implements
19268 to always fail with ENOSYS. Some functions are actually named
19269 something starting with __ and the normal name is an alias. */
19270 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19271 choke me
19272 #endif
19275 main ()
19277 return hes_getmailhost ();
19279 return 0;
19281 _ACEOF
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (ac_try="$ac_link"
19284 case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19287 esac
19288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_link") 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } && {
19296 test -z "$ac_c_werror_flag" ||
19297 test ! -s conftest.err
19298 } && test -s conftest$ac_exeext &&
19299 $as_test_x conftest$ac_exeext; then
19300 ac_cv_func_hes_getmailhost=yes
19301 else
19302 echo "$as_me: failed program was:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19305 ac_cv_func_hes_getmailhost=no
19308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19309 conftest$ac_exeext conftest.$ac_ext
19311 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19312 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19313 if test $ac_cv_func_hes_getmailhost = yes; then
19315 else
19316 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19317 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19318 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19320 else
19321 ac_check_lib_save_LIBS=$LIBS
19322 LIBS="-lhesiod $RESOLVLIB $LIBS"
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h. */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19330 /* Override any GCC internal prototype to avoid an error.
19331 Use char because int might match the return type of a GCC
19332 builtin and then its argument prototype would still apply. */
19333 #ifdef __cplusplus
19334 extern "C"
19335 #endif
19336 char hes_getmailhost ();
19338 main ()
19340 return hes_getmailhost ();
19342 return 0;
19344 _ACEOF
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (ac_try="$ac_link"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350 esac
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_link") 2>conftest.er1
19353 ac_status=$?
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } && {
19359 test -z "$ac_c_werror_flag" ||
19360 test ! -s conftest.err
19361 } && test -s conftest$ac_exeext &&
19362 $as_test_x conftest$ac_exeext; then
19363 ac_cv_lib_hesiod_hes_getmailhost=yes
19364 else
19365 echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19368 ac_cv_lib_hesiod_hes_getmailhost=no
19371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19372 conftest$ac_exeext conftest.$ac_ext
19373 LIBS=$ac_check_lib_save_LIBS
19375 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19376 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19377 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19379 cat >>confdefs.h <<\_ACEOF
19380 #define HAVE_LIBHESIOD 1
19381 _ACEOF
19383 else
19391 # These tell us which Kerberos-related libraries to use.
19392 if test "${with_kerberos+set}" = set; then
19394 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19395 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19396 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399 ac_check_lib_save_LIBS=$LIBS
19400 LIBS="-lcom_err $LIBS"
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19411 #ifdef __cplusplus
19412 extern "C"
19413 #endif
19414 char com_err ();
19416 main ()
19418 return com_err ();
19420 return 0;
19422 _ACEOF
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428 esac
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_link") 2>conftest.er1
19431 ac_status=$?
19432 grep -v '^ *+' conftest.er1 >conftest.err
19433 rm -f conftest.er1
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } && {
19437 test -z "$ac_c_werror_flag" ||
19438 test ! -s conftest.err
19439 } && test -s conftest$ac_exeext &&
19440 $as_test_x conftest$ac_exeext; then
19441 ac_cv_lib_com_err_com_err=yes
19442 else
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_com_err_com_err=no
19449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19454 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19455 if test $ac_cv_lib_com_err_com_err = yes; then
19456 cat >>confdefs.h <<_ACEOF
19457 #define HAVE_LIBCOM_ERR 1
19458 _ACEOF
19460 LIBS="-lcom_err $LIBS"
19465 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19466 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19467 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 else
19470 ac_check_lib_save_LIBS=$LIBS
19471 LIBS="-lk5crypto $LIBS"
19472 cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h. */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19479 /* Override any GCC internal prototype to avoid an error.
19480 Use char because int might match the return type of a GCC
19481 builtin and then its argument prototype would still apply. */
19482 #ifdef __cplusplus
19483 extern "C"
19484 #endif
19485 char mit_des_cbc_encrypt ();
19487 main ()
19489 return mit_des_cbc_encrypt ();
19491 return 0;
19493 _ACEOF
19494 rm -f conftest.$ac_objext conftest$ac_exeext
19495 if { (ac_try="$ac_link"
19496 case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19499 esac
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_link") 2>conftest.er1
19502 ac_status=$?
19503 grep -v '^ *+' conftest.er1 >conftest.err
19504 rm -f conftest.er1
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } && {
19508 test -z "$ac_c_werror_flag" ||
19509 test ! -s conftest.err
19510 } && test -s conftest$ac_exeext &&
19511 $as_test_x conftest$ac_exeext; then
19512 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19513 else
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19517 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19521 conftest$ac_exeext conftest.$ac_ext
19522 LIBS=$ac_check_lib_save_LIBS
19524 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19525 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19526 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19527 cat >>confdefs.h <<_ACEOF
19528 #define HAVE_LIBK5CRYPTO 1
19529 _ACEOF
19531 LIBS="-lk5crypto $LIBS"
19536 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19537 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19538 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19541 ac_check_lib_save_LIBS=$LIBS
19542 LIBS="-lcrypto $LIBS"
19543 cat >conftest.$ac_ext <<_ACEOF
19544 /* confdefs.h. */
19545 _ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h. */
19550 /* Override any GCC internal prototype to avoid an error.
19551 Use char because int might match the return type of a GCC
19552 builtin and then its argument prototype would still apply. */
19553 #ifdef __cplusplus
19554 extern "C"
19555 #endif
19556 char mit_des_cbc_encrypt ();
19558 main ()
19560 return mit_des_cbc_encrypt ();
19562 return 0;
19564 _ACEOF
19565 rm -f conftest.$ac_objext conftest$ac_exeext
19566 if { (ac_try="$ac_link"
19567 case "(($ac_try" in
19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19570 esac
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_link") 2>conftest.er1
19573 ac_status=$?
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } && {
19579 test -z "$ac_c_werror_flag" ||
19580 test ! -s conftest.err
19581 } && test -s conftest$ac_exeext &&
19582 $as_test_x conftest$ac_exeext; then
19583 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19584 else
19585 echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19588 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19592 conftest$ac_exeext conftest.$ac_ext
19593 LIBS=$ac_check_lib_save_LIBS
19595 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19596 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19597 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19598 cat >>confdefs.h <<_ACEOF
19599 #define HAVE_LIBCRYPTO 1
19600 _ACEOF
19602 LIBS="-lcrypto $LIBS"
19607 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19608 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19609 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612 ac_check_lib_save_LIBS=$LIBS
19613 LIBS="-lkrb5 $LIBS"
19614 cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h. */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19621 /* Override any GCC internal prototype to avoid an error.
19622 Use char because int might match the return type of a GCC
19623 builtin and then its argument prototype would still apply. */
19624 #ifdef __cplusplus
19625 extern "C"
19626 #endif
19627 char krb5_init_context ();
19629 main ()
19631 return krb5_init_context ();
19633 return 0;
19635 _ACEOF
19636 rm -f conftest.$ac_objext conftest$ac_exeext
19637 if { (ac_try="$ac_link"
19638 case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19641 esac
19642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_link") 2>conftest.er1
19644 ac_status=$?
19645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } && {
19650 test -z "$ac_c_werror_flag" ||
19651 test ! -s conftest.err
19652 } && test -s conftest$ac_exeext &&
19653 $as_test_x conftest$ac_exeext; then
19654 ac_cv_lib_krb5_krb5_init_context=yes
19655 else
19656 echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19659 ac_cv_lib_krb5_krb5_init_context=no
19662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19663 conftest$ac_exeext conftest.$ac_ext
19664 LIBS=$ac_check_lib_save_LIBS
19666 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19667 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19668 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19669 cat >>confdefs.h <<_ACEOF
19670 #define HAVE_LIBKRB5 1
19671 _ACEOF
19673 LIBS="-lkrb5 $LIBS"
19677 if test "${with_kerberos5+set}" != set; then
19679 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19680 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19681 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19682 echo $ECHO_N "(cached) $ECHO_C" >&6
19683 else
19684 ac_check_lib_save_LIBS=$LIBS
19685 LIBS="-ldes425 $LIBS"
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h. */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19693 /* Override any GCC internal prototype to avoid an error.
19694 Use char because int might match the return type of a GCC
19695 builtin and then its argument prototype would still apply. */
19696 #ifdef __cplusplus
19697 extern "C"
19698 #endif
19699 char des_cbc_encrypt ();
19701 main ()
19703 return des_cbc_encrypt ();
19705 return 0;
19707 _ACEOF
19708 rm -f conftest.$ac_objext conftest$ac_exeext
19709 if { (ac_try="$ac_link"
19710 case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_link") 2>conftest.er1
19716 ac_status=$?
19717 grep -v '^ *+' conftest.er1 >conftest.err
19718 rm -f conftest.er1
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } && {
19722 test -z "$ac_c_werror_flag" ||
19723 test ! -s conftest.err
19724 } && test -s conftest$ac_exeext &&
19725 $as_test_x conftest$ac_exeext; then
19726 ac_cv_lib_des425_des_cbc_encrypt=yes
19727 else
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 ac_cv_lib_des425_des_cbc_encrypt=no
19734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19735 conftest$ac_exeext conftest.$ac_ext
19736 LIBS=$ac_check_lib_save_LIBS
19738 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19739 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19740 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19741 cat >>confdefs.h <<_ACEOF
19742 #define HAVE_LIBDES425 1
19743 _ACEOF
19745 LIBS="-ldes425 $LIBS"
19747 else
19749 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19750 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19751 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 else
19754 ac_check_lib_save_LIBS=$LIBS
19755 LIBS="-ldes $LIBS"
19756 cat >conftest.$ac_ext <<_ACEOF
19757 /* confdefs.h. */
19758 _ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19763 /* Override any GCC internal prototype to avoid an error.
19764 Use char because int might match the return type of a GCC
19765 builtin and then its argument prototype would still apply. */
19766 #ifdef __cplusplus
19767 extern "C"
19768 #endif
19769 char des_cbc_encrypt ();
19771 main ()
19773 return des_cbc_encrypt ();
19775 return 0;
19777 _ACEOF
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (ac_try="$ac_link"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19783 esac
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_link") 2>conftest.er1
19786 ac_status=$?
19787 grep -v '^ *+' conftest.er1 >conftest.err
19788 rm -f conftest.er1
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } && {
19792 test -z "$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 } && test -s conftest$ac_exeext &&
19795 $as_test_x conftest$ac_exeext; then
19796 ac_cv_lib_des_des_cbc_encrypt=yes
19797 else
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 ac_cv_lib_des_des_cbc_encrypt=no
19804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19805 conftest$ac_exeext conftest.$ac_ext
19806 LIBS=$ac_check_lib_save_LIBS
19808 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19809 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19810 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_LIBDES 1
19813 _ACEOF
19815 LIBS="-ldes $LIBS"
19822 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19823 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19824 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 else
19827 ac_check_lib_save_LIBS=$LIBS
19828 LIBS="-lkrb4 $LIBS"
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h. */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19836 /* Override any GCC internal prototype to avoid an error.
19837 Use char because int might match the return type of a GCC
19838 builtin and then its argument prototype would still apply. */
19839 #ifdef __cplusplus
19840 extern "C"
19841 #endif
19842 char krb_get_cred ();
19844 main ()
19846 return krb_get_cred ();
19848 return 0;
19850 _ACEOF
19851 rm -f conftest.$ac_objext conftest$ac_exeext
19852 if { (ac_try="$ac_link"
19853 case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19856 esac
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858 (eval "$ac_link") 2>conftest.er1
19859 ac_status=$?
19860 grep -v '^ *+' conftest.er1 >conftest.err
19861 rm -f conftest.er1
19862 cat conftest.err >&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } && {
19865 test -z "$ac_c_werror_flag" ||
19866 test ! -s conftest.err
19867 } && test -s conftest$ac_exeext &&
19868 $as_test_x conftest$ac_exeext; then
19869 ac_cv_lib_krb4_krb_get_cred=yes
19870 else
19871 echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19874 ac_cv_lib_krb4_krb_get_cred=no
19877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19878 conftest$ac_exeext conftest.$ac_ext
19879 LIBS=$ac_check_lib_save_LIBS
19881 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19882 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19883 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19884 cat >>confdefs.h <<_ACEOF
19885 #define HAVE_LIBKRB4 1
19886 _ACEOF
19888 LIBS="-lkrb4 $LIBS"
19890 else
19892 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19893 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19894 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 else
19897 ac_check_lib_save_LIBS=$LIBS
19898 LIBS="-lkrb $LIBS"
19899 cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h. */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19906 /* Override any GCC internal prototype to avoid an error.
19907 Use char because int might match the return type of a GCC
19908 builtin and then its argument prototype would still apply. */
19909 #ifdef __cplusplus
19910 extern "C"
19911 #endif
19912 char krb_get_cred ();
19914 main ()
19916 return krb_get_cred ();
19918 return 0;
19920 _ACEOF
19921 rm -f conftest.$ac_objext conftest$ac_exeext
19922 if { (ac_try="$ac_link"
19923 case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926 esac
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_link") 2>conftest.er1
19929 ac_status=$?
19930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest$ac_exeext &&
19938 $as_test_x conftest$ac_exeext; then
19939 ac_cv_lib_krb_krb_get_cred=yes
19940 else
19941 echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19944 ac_cv_lib_krb_krb_get_cred=no
19947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19948 conftest$ac_exeext conftest.$ac_ext
19949 LIBS=$ac_check_lib_save_LIBS
19951 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19952 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19953 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19954 cat >>confdefs.h <<_ACEOF
19955 #define HAVE_LIBKRB 1
19956 _ACEOF
19958 LIBS="-lkrb $LIBS"
19966 if test "${with_kerberos5+set}" = set; then
19968 for ac_header in krb5.h
19970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
19977 ac_res=`eval echo '${'$as_ac_Header'}'`
19978 { echo "$as_me:$LINENO: result: $ac_res" >&5
19979 echo "${ECHO_T}$ac_res" >&6; }
19980 else
19981 # Is the header compilable?
19982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19984 cat >conftest.$ac_ext <<_ACEOF
19985 /* confdefs.h. */
19986 _ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h. */
19990 $ac_includes_default
19991 #include <$ac_header>
19992 _ACEOF
19993 rm -f conftest.$ac_objext
19994 if { (ac_try="$ac_compile"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19998 esac
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_compile") 2>conftest.er1
20001 ac_status=$?
20002 grep -v '^ *+' conftest.er1 >conftest.err
20003 rm -f conftest.er1
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest.$ac_objext; then
20010 ac_header_compiler=yes
20011 else
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 ac_header_compiler=no
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20020 echo "${ECHO_T}$ac_header_compiler" >&6; }
20022 # Is the header present?
20023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20025 cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h. */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031 #include <$ac_header>
20032 _ACEOF
20033 if { (ac_try="$ac_cpp conftest.$ac_ext"
20034 case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037 esac
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20040 ac_status=$?
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } >/dev/null && {
20046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20047 test ! -s conftest.err
20048 }; then
20049 ac_header_preproc=yes
20050 else
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 ac_header_preproc=no
20057 rm -f conftest.err conftest.$ac_ext
20058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20059 echo "${ECHO_T}$ac_header_preproc" >&6; }
20061 # So? What about this header?
20062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20063 yes:no: )
20064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20068 ac_header_preproc=yes
20070 no:yes:* )
20071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20085 esac
20086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091 eval "$as_ac_Header=\$ac_header_preproc"
20093 ac_res=`eval echo '${'$as_ac_Header'}'`
20094 { echo "$as_me:$LINENO: result: $ac_res" >&5
20095 echo "${ECHO_T}$ac_res" >&6; }
20098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20099 cat >>confdefs.h <<_ACEOF
20100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20101 _ACEOF
20105 done
20107 else
20109 for ac_header in des.h
20111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 ac_res=`eval echo '${'$as_ac_Header'}'`
20119 { echo "$as_me:$LINENO: result: $ac_res" >&5
20120 echo "${ECHO_T}$ac_res" >&6; }
20121 else
20122 # Is the header compilable?
20123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20125 cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h. */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 $ac_includes_default
20132 #include <$ac_header>
20133 _ACEOF
20134 rm -f conftest.$ac_objext
20135 if { (ac_try="$ac_compile"
20136 case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20139 esac
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_compile") 2>conftest.er1
20142 ac_status=$?
20143 grep -v '^ *+' conftest.er1 >conftest.err
20144 rm -f conftest.er1
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } && {
20148 test -z "$ac_c_werror_flag" ||
20149 test ! -s conftest.err
20150 } && test -s conftest.$ac_objext; then
20151 ac_header_compiler=yes
20152 else
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 ac_header_compiler=no
20159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20161 echo "${ECHO_T}$ac_header_compiler" >&6; }
20163 # Is the header present?
20164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20166 cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h. */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20172 #include <$ac_header>
20173 _ACEOF
20174 if { (ac_try="$ac_cpp conftest.$ac_ext"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } >/dev/null && {
20187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20188 test ! -s conftest.err
20189 }; then
20190 ac_header_preproc=yes
20191 else
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_header_preproc=no
20198 rm -f conftest.err conftest.$ac_ext
20199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20200 echo "${ECHO_T}$ac_header_preproc" >&6; }
20202 # So? What about this header?
20203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20204 yes:no: )
20205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20209 ac_header_preproc=yes
20211 no:yes:* )
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20226 esac
20227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 else
20232 eval "$as_ac_Header=\$ac_header_preproc"
20234 ac_res=`eval echo '${'$as_ac_Header'}'`
20235 { echo "$as_me:$LINENO: result: $ac_res" >&5
20236 echo "${ECHO_T}$ac_res" >&6; }
20239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20240 cat >>confdefs.h <<_ACEOF
20241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20242 _ACEOF
20244 else
20246 for ac_header in kerberosIV/des.h
20248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20255 ac_res=`eval echo '${'$as_ac_Header'}'`
20256 { echo "$as_me:$LINENO: result: $ac_res" >&5
20257 echo "${ECHO_T}$ac_res" >&6; }
20258 else
20259 # Is the header compilable?
20260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20262 cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h. */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20268 $ac_includes_default
20269 #include <$ac_header>
20270 _ACEOF
20271 rm -f conftest.$ac_objext
20272 if { (ac_try="$ac_compile"
20273 case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_compile") 2>conftest.er1
20279 ac_status=$?
20280 grep -v '^ *+' conftest.er1 >conftest.err
20281 rm -f conftest.er1
20282 cat conftest.err >&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } && {
20285 test -z "$ac_c_werror_flag" ||
20286 test ! -s conftest.err
20287 } && test -s conftest.$ac_objext; then
20288 ac_header_compiler=yes
20289 else
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 ac_header_compiler=no
20296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20298 echo "${ECHO_T}$ac_header_compiler" >&6; }
20300 # Is the header present?
20301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h. */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 #include <$ac_header>
20310 _ACEOF
20311 if { (ac_try="$ac_cpp conftest.$ac_ext"
20312 case "(($ac_try" in
20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20315 esac
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20318 ac_status=$?
20319 grep -v '^ *+' conftest.er1 >conftest.err
20320 rm -f conftest.er1
20321 cat conftest.err >&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } >/dev/null && {
20324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20325 test ! -s conftest.err
20326 }; then
20327 ac_header_preproc=yes
20328 else
20329 echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20332 ac_header_preproc=no
20335 rm -f conftest.err conftest.$ac_ext
20336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20337 echo "${ECHO_T}$ac_header_preproc" >&6; }
20339 # So? What about this header?
20340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20341 yes:no: )
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20346 ac_header_preproc=yes
20348 no:yes:* )
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20363 esac
20364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 else
20369 eval "$as_ac_Header=\$ac_header_preproc"
20371 ac_res=`eval echo '${'$as_ac_Header'}'`
20372 { echo "$as_me:$LINENO: result: $ac_res" >&5
20373 echo "${ECHO_T}$ac_res" >&6; }
20376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20377 cat >>confdefs.h <<_ACEOF
20378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20379 _ACEOF
20381 else
20383 for ac_header in kerberos/des.h
20385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 ac_res=`eval echo '${'$as_ac_Header'}'`
20393 { echo "$as_me:$LINENO: result: $ac_res" >&5
20394 echo "${ECHO_T}$ac_res" >&6; }
20395 else
20396 # Is the header compilable?
20397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20399 cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h. */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 $ac_includes_default
20406 #include <$ac_header>
20407 _ACEOF
20408 rm -f conftest.$ac_objext
20409 if { (ac_try="$ac_compile"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_compile") 2>conftest.er1
20416 ac_status=$?
20417 grep -v '^ *+' conftest.er1 >conftest.err
20418 rm -f conftest.er1
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest.$ac_objext; then
20425 ac_header_compiler=yes
20426 else
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_header_compiler=no
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20435 echo "${ECHO_T}$ac_header_compiler" >&6; }
20437 # Is the header present?
20438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20440 cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h. */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 #include <$ac_header>
20447 _ACEOF
20448 if { (ac_try="$ac_cpp conftest.$ac_ext"
20449 case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452 esac
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20455 ac_status=$?
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } >/dev/null && {
20461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20462 test ! -s conftest.err
20463 }; then
20464 ac_header_preproc=yes
20465 else
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20469 ac_header_preproc=no
20472 rm -f conftest.err conftest.$ac_ext
20473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20474 echo "${ECHO_T}$ac_header_preproc" >&6; }
20476 # So? What about this header?
20477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20478 yes:no: )
20479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20483 ac_header_preproc=yes
20485 no:yes:* )
20486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20500 esac
20501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506 eval "$as_ac_Header=\$ac_header_preproc"
20508 ac_res=`eval echo '${'$as_ac_Header'}'`
20509 { echo "$as_me:$LINENO: result: $ac_res" >&5
20510 echo "${ECHO_T}$ac_res" >&6; }
20513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20514 cat >>confdefs.h <<_ACEOF
20515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20516 _ACEOF
20520 done
20524 done
20528 done
20531 for ac_header in krb.h
20533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20540 ac_res=`eval echo '${'$as_ac_Header'}'`
20541 { echo "$as_me:$LINENO: result: $ac_res" >&5
20542 echo "${ECHO_T}$ac_res" >&6; }
20543 else
20544 # Is the header compilable?
20545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20547 cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h. */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553 $ac_includes_default
20554 #include <$ac_header>
20555 _ACEOF
20556 rm -f conftest.$ac_objext
20557 if { (ac_try="$ac_compile"
20558 case "(($ac_try" in
20559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560 *) ac_try_echo=$ac_try;;
20561 esac
20562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563 (eval "$ac_compile") 2>conftest.er1
20564 ac_status=$?
20565 grep -v '^ *+' conftest.er1 >conftest.err
20566 rm -f conftest.er1
20567 cat conftest.err >&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } && {
20570 test -z "$ac_c_werror_flag" ||
20571 test ! -s conftest.err
20572 } && test -s conftest.$ac_objext; then
20573 ac_header_compiler=yes
20574 else
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 ac_header_compiler=no
20581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20583 echo "${ECHO_T}$ac_header_compiler" >&6; }
20585 # Is the header present?
20586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20588 cat >conftest.$ac_ext <<_ACEOF
20589 /* confdefs.h. */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 #include <$ac_header>
20595 _ACEOF
20596 if { (ac_try="$ac_cpp conftest.$ac_ext"
20597 case "(($ac_try" in
20598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599 *) ac_try_echo=$ac_try;;
20600 esac
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20603 ac_status=$?
20604 grep -v '^ *+' conftest.er1 >conftest.err
20605 rm -f conftest.er1
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } >/dev/null && {
20609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20610 test ! -s conftest.err
20611 }; then
20612 ac_header_preproc=yes
20613 else
20614 echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20617 ac_header_preproc=no
20620 rm -f conftest.err conftest.$ac_ext
20621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20622 echo "${ECHO_T}$ac_header_preproc" >&6; }
20624 # So? What about this header?
20625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20626 yes:no: )
20627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20631 ac_header_preproc=yes
20633 no:yes:* )
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20648 esac
20649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654 eval "$as_ac_Header=\$ac_header_preproc"
20656 ac_res=`eval echo '${'$as_ac_Header'}'`
20657 { echo "$as_me:$LINENO: result: $ac_res" >&5
20658 echo "${ECHO_T}$ac_res" >&6; }
20661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20662 cat >>confdefs.h <<_ACEOF
20663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20664 _ACEOF
20666 else
20668 for ac_header in kerberosIV/krb.h
20670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 ac_res=`eval echo '${'$as_ac_Header'}'`
20678 { echo "$as_me:$LINENO: result: $ac_res" >&5
20679 echo "${ECHO_T}$ac_res" >&6; }
20680 else
20681 # Is the header compilable?
20682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20684 cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h. */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 $ac_includes_default
20691 #include <$ac_header>
20692 _ACEOF
20693 rm -f conftest.$ac_objext
20694 if { (ac_try="$ac_compile"
20695 case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20698 esac
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_compile") 2>conftest.er1
20701 ac_status=$?
20702 grep -v '^ *+' conftest.er1 >conftest.err
20703 rm -f conftest.er1
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } && {
20707 test -z "$ac_c_werror_flag" ||
20708 test ! -s conftest.err
20709 } && test -s conftest.$ac_objext; then
20710 ac_header_compiler=yes
20711 else
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20715 ac_header_compiler=no
20718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20720 echo "${ECHO_T}$ac_header_compiler" >&6; }
20722 # Is the header present?
20723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20725 cat >conftest.$ac_ext <<_ACEOF
20726 /* confdefs.h. */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20731 #include <$ac_header>
20732 _ACEOF
20733 if { (ac_try="$ac_cpp conftest.$ac_ext"
20734 case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } >/dev/null && {
20746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20748 }; then
20749 ac_header_preproc=yes
20750 else
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20754 ac_header_preproc=no
20757 rm -f conftest.err conftest.$ac_ext
20758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20759 echo "${ECHO_T}$ac_header_preproc" >&6; }
20761 # So? What about this header?
20762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20763 yes:no: )
20764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20768 ac_header_preproc=yes
20770 no:yes:* )
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20785 esac
20786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20790 else
20791 eval "$as_ac_Header=\$ac_header_preproc"
20793 ac_res=`eval echo '${'$as_ac_Header'}'`
20794 { echo "$as_me:$LINENO: result: $ac_res" >&5
20795 echo "${ECHO_T}$ac_res" >&6; }
20798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20799 cat >>confdefs.h <<_ACEOF
20800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20801 _ACEOF
20803 else
20805 for ac_header in kerberos/krb.h
20807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20814 ac_res=`eval echo '${'$as_ac_Header'}'`
20815 { echo "$as_me:$LINENO: result: $ac_res" >&5
20816 echo "${ECHO_T}$ac_res" >&6; }
20817 else
20818 # Is the header compilable?
20819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 $ac_includes_default
20828 #include <$ac_header>
20829 _ACEOF
20830 rm -f conftest.$ac_objext
20831 if { (ac_try="$ac_compile"
20832 case "(($ac_try" in
20833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834 *) ac_try_echo=$ac_try;;
20835 esac
20836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837 (eval "$ac_compile") 2>conftest.er1
20838 ac_status=$?
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } && {
20844 test -z "$ac_c_werror_flag" ||
20845 test ! -s conftest.err
20846 } && test -s conftest.$ac_objext; then
20847 ac_header_compiler=yes
20848 else
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20852 ac_header_compiler=no
20855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20857 echo "${ECHO_T}$ac_header_compiler" >&6; }
20859 # Is the header present?
20860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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. */
20868 #include <$ac_header>
20869 _ACEOF
20870 if { (ac_try="$ac_cpp conftest.$ac_ext"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20877 ac_status=$?
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } >/dev/null && {
20883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20885 }; then
20886 ac_header_preproc=yes
20887 else
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 ac_header_preproc=no
20894 rm -f conftest.err conftest.$ac_ext
20895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20896 echo "${ECHO_T}$ac_header_preproc" >&6; }
20898 # So? What about this header?
20899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20900 yes:no: )
20901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20905 ac_header_preproc=yes
20907 no:yes:* )
20908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20922 esac
20923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
20927 else
20928 eval "$as_ac_Header=\$ac_header_preproc"
20930 ac_res=`eval echo '${'$as_ac_Header'}'`
20931 { echo "$as_me:$LINENO: result: $ac_res" >&5
20932 echo "${ECHO_T}$ac_res" >&6; }
20935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20936 cat >>confdefs.h <<_ACEOF
20937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20938 _ACEOF
20942 done
20946 done
20950 done
20954 for ac_header in com_err.h
20956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 ac_res=`eval echo '${'$as_ac_Header'}'`
20964 { echo "$as_me:$LINENO: result: $ac_res" >&5
20965 echo "${ECHO_T}$ac_res" >&6; }
20966 else
20967 # Is the header compilable?
20968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20970 cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h. */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976 $ac_includes_default
20977 #include <$ac_header>
20978 _ACEOF
20979 rm -f conftest.$ac_objext
20980 if { (ac_try="$ac_compile"
20981 case "(($ac_try" in
20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983 *) ac_try_echo=$ac_try;;
20984 esac
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986 (eval "$ac_compile") 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } && {
20993 test -z "$ac_c_werror_flag" ||
20994 test ! -s conftest.err
20995 } && test -s conftest.$ac_objext; then
20996 ac_header_compiler=yes
20997 else
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21001 ac_header_compiler=no
21004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21006 echo "${ECHO_T}$ac_header_compiler" >&6; }
21008 # Is the header present?
21009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21011 cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h. */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 #include <$ac_header>
21018 _ACEOF
21019 if { (ac_try="$ac_cpp conftest.$ac_ext"
21020 case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21026 ac_status=$?
21027 grep -v '^ *+' conftest.er1 >conftest.err
21028 rm -f conftest.er1
21029 cat conftest.err >&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } >/dev/null && {
21032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21033 test ! -s conftest.err
21034 }; then
21035 ac_header_preproc=yes
21036 else
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21040 ac_header_preproc=no
21043 rm -f conftest.err conftest.$ac_ext
21044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21045 echo "${ECHO_T}$ac_header_preproc" >&6; }
21047 # So? What about this header?
21048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21049 yes:no: )
21050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21054 ac_header_preproc=yes
21056 no:yes:* )
21057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21071 esac
21072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21075 echo $ECHO_N "(cached) $ECHO_C" >&6
21076 else
21077 eval "$as_ac_Header=\$ac_header_preproc"
21079 ac_res=`eval echo '${'$as_ac_Header'}'`
21080 { echo "$as_me:$LINENO: result: $ac_res" >&5
21081 echo "${ECHO_T}$ac_res" >&6; }
21084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21085 cat >>confdefs.h <<_ACEOF
21086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21087 _ACEOF
21091 done
21095 # Solaris requires -lintl if you want strerror (which calls dgettext)
21096 # to return localized messages.
21098 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21099 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21100 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21102 else
21103 ac_check_lib_save_LIBS=$LIBS
21104 LIBS="-lintl $LIBS"
21105 cat >conftest.$ac_ext <<_ACEOF
21106 /* confdefs.h. */
21107 _ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21112 /* Override any GCC internal prototype to avoid an error.
21113 Use char because int might match the return type of a GCC
21114 builtin and then its argument prototype would still apply. */
21115 #ifdef __cplusplus
21116 extern "C"
21117 #endif
21118 char dgettext ();
21120 main ()
21122 return dgettext ();
21124 return 0;
21126 _ACEOF
21127 rm -f conftest.$ac_objext conftest$ac_exeext
21128 if { (ac_try="$ac_link"
21129 case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21132 esac
21133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_link") 2>conftest.er1
21135 ac_status=$?
21136 grep -v '^ *+' conftest.er1 >conftest.err
21137 rm -f conftest.er1
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } && {
21141 test -z "$ac_c_werror_flag" ||
21142 test ! -s conftest.err
21143 } && test -s conftest$ac_exeext &&
21144 $as_test_x conftest$ac_exeext; then
21145 ac_cv_lib_intl_dgettext=yes
21146 else
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ac_cv_lib_intl_dgettext=no
21153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21154 conftest$ac_exeext conftest.$ac_ext
21155 LIBS=$ac_check_lib_save_LIBS
21157 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21158 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21159 if test $ac_cv_lib_intl_dgettext = yes; then
21160 cat >>confdefs.h <<_ACEOF
21161 #define HAVE_LIBINTL 1
21162 _ACEOF
21164 LIBS="-lintl $LIBS"
21169 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21170 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21171 if test "${emacs_cv_localtime_cache+set}" = set; then
21172 echo $ECHO_N "(cached) $ECHO_C" >&6
21173 else
21174 if test x$ac_cv_func_tzset = xyes; then
21175 if test "$cross_compiling" = yes; then
21176 # If we have tzset, assume the worst when cross-compiling.
21177 emacs_cv_localtime_cache=yes
21178 else
21179 cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h. */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 #include <time.h>
21186 extern char **environ;
21187 unset_TZ ()
21189 char **from, **to;
21190 for (to = from = environ; (*to = *from); from++)
21191 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21192 to++;
21194 char TZ_GMT0[] = "TZ=GMT0";
21195 char TZ_PST8[] = "TZ=PST8";
21196 main()
21198 time_t now = time ((time_t *) 0);
21199 int hour_GMT0, hour_unset;
21200 if (putenv (TZ_GMT0) != 0)
21201 exit (1);
21202 hour_GMT0 = localtime (&now)->tm_hour;
21203 unset_TZ ();
21204 hour_unset = localtime (&now)->tm_hour;
21205 if (putenv (TZ_PST8) != 0)
21206 exit (1);
21207 if (localtime (&now)->tm_hour == hour_GMT0)
21208 exit (1);
21209 unset_TZ ();
21210 if (localtime (&now)->tm_hour != hour_unset)
21211 exit (1);
21212 exit (0);
21214 _ACEOF
21215 rm -f conftest$ac_exeext
21216 if { (ac_try="$ac_link"
21217 case "(($ac_try" in
21218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219 *) ac_try_echo=$ac_try;;
21220 esac
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222 (eval "$ac_link") 2>&5
21223 ac_status=$?
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21226 { (case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21229 esac
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_try") 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }; then
21235 emacs_cv_localtime_cache=no
21236 else
21237 echo "$as_me: program exited with status $ac_status" >&5
21238 echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21241 ( exit $ac_status )
21242 emacs_cv_localtime_cache=yes
21244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21248 else
21249 # If we lack tzset, report that localtime does not cache TZ,
21250 # since we can't invalidate the cache if we don't have tzset.
21251 emacs_cv_localtime_cache=no
21254 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21255 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21256 if test $emacs_cv_localtime_cache = yes; then
21258 cat >>confdefs.h <<\_ACEOF
21259 #define LOCALTIME_CACHE 1
21260 _ACEOF
21264 if test "x$HAVE_TIMEVAL" = xyes; then
21266 for ac_func in gettimeofday
21268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21273 else
21274 cat >conftest.$ac_ext <<_ACEOF
21275 /* confdefs.h. */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h. */
21280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21282 #define $ac_func innocuous_$ac_func
21284 /* System header to define __stub macros and hopefully few prototypes,
21285 which can conflict with char $ac_func (); below.
21286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21287 <limits.h> exists even on freestanding compilers. */
21289 #ifdef __STDC__
21290 # include <limits.h>
21291 #else
21292 # include <assert.h>
21293 #endif
21295 #undef $ac_func
21297 /* Override any GCC internal prototype to avoid an error.
21298 Use char because int might match the return type of a GCC
21299 builtin and then its argument prototype would still apply. */
21300 #ifdef __cplusplus
21301 extern "C"
21302 #endif
21303 char $ac_func ();
21304 /* The GNU C library defines this for functions which it implements
21305 to always fail with ENOSYS. Some functions are actually named
21306 something starting with __ and the normal name is an alias. */
21307 #if defined __stub_$ac_func || defined __stub___$ac_func
21308 choke me
21309 #endif
21312 main ()
21314 return $ac_func ();
21316 return 0;
21318 _ACEOF
21319 rm -f conftest.$ac_objext conftest$ac_exeext
21320 if { (ac_try="$ac_link"
21321 case "(($ac_try" in
21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323 *) ac_try_echo=$ac_try;;
21324 esac
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326 (eval "$ac_link") 2>conftest.er1
21327 ac_status=$?
21328 grep -v '^ *+' conftest.er1 >conftest.err
21329 rm -f conftest.er1
21330 cat conftest.err >&5
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); } && {
21333 test -z "$ac_c_werror_flag" ||
21334 test ! -s conftest.err
21335 } && test -s conftest$ac_exeext &&
21336 $as_test_x conftest$ac_exeext; then
21337 eval "$as_ac_var=yes"
21338 else
21339 echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21342 eval "$as_ac_var=no"
21345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21346 conftest$ac_exeext conftest.$ac_ext
21348 ac_res=`eval echo '${'$as_ac_var'}'`
21349 { echo "$as_me:$LINENO: result: $ac_res" >&5
21350 echo "${ECHO_T}$ac_res" >&6; }
21351 if test `eval echo '${'$as_ac_var'}'` = yes; then
21352 cat >>confdefs.h <<_ACEOF
21353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21354 _ACEOF
21357 done
21359 if test $ac_cv_func_gettimeofday = yes; then
21360 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21361 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21362 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21364 else
21365 cat >conftest.$ac_ext <<_ACEOF
21366 /* confdefs.h. */
21367 _ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21372 #ifdef TIME_WITH_SYS_TIME
21373 #include <sys/time.h>
21374 #include <time.h>
21375 #else
21376 #ifdef HAVE_SYS_TIME_H
21377 #include <sys/time.h>
21378 #else
21379 #include <time.h>
21380 #endif
21381 #endif
21383 main ()
21385 struct timeval time;
21386 gettimeofday (&time, 0);
21388 return 0;
21390 _ACEOF
21391 rm -f conftest.$ac_objext
21392 if { (ac_try="$ac_compile"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21396 esac
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21399 ac_status=$?
21400 grep -v '^ *+' conftest.er1 >conftest.err
21401 rm -f conftest.er1
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } && {
21405 test -z "$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 } && test -s conftest.$ac_objext; then
21408 emacs_cv_gettimeofday_two_arguments=yes
21409 else
21410 echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21413 emacs_cv_gettimeofday_two_arguments=no
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21419 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21420 if test $emacs_cv_gettimeofday_two_arguments = no; then
21422 cat >>confdefs.h <<\_ACEOF
21423 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21424 _ACEOF
21430 ok_so_far=yes
21431 { echo "$as_me:$LINENO: checking for socket" >&5
21432 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21433 if test "${ac_cv_func_socket+set}" = set; then
21434 echo $ECHO_N "(cached) $ECHO_C" >&6
21435 else
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21444 #define socket innocuous_socket
21446 /* System header to define __stub macros and hopefully few prototypes,
21447 which can conflict with char socket (); below.
21448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21449 <limits.h> exists even on freestanding compilers. */
21451 #ifdef __STDC__
21452 # include <limits.h>
21453 #else
21454 # include <assert.h>
21455 #endif
21457 #undef socket
21459 /* Override any GCC internal prototype to avoid an error.
21460 Use char because int might match the return type of a GCC
21461 builtin and then its argument prototype would still apply. */
21462 #ifdef __cplusplus
21463 extern "C"
21464 #endif
21465 char socket ();
21466 /* The GNU C library defines this for functions which it implements
21467 to always fail with ENOSYS. Some functions are actually named
21468 something starting with __ and the normal name is an alias. */
21469 #if defined __stub_socket || defined __stub___socket
21470 choke me
21471 #endif
21474 main ()
21476 return socket ();
21478 return 0;
21480 _ACEOF
21481 rm -f conftest.$ac_objext conftest$ac_exeext
21482 if { (ac_try="$ac_link"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21486 esac
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_link") 2>conftest.er1
21489 ac_status=$?
21490 grep -v '^ *+' conftest.er1 >conftest.err
21491 rm -f conftest.er1
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } && {
21495 test -z "$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21497 } && test -s conftest$ac_exeext &&
21498 $as_test_x conftest$ac_exeext; then
21499 ac_cv_func_socket=yes
21500 else
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21504 ac_cv_func_socket=no
21507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21508 conftest$ac_exeext conftest.$ac_ext
21510 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21511 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21512 if test $ac_cv_func_socket = yes; then
21514 else
21515 ok_so_far=no
21518 if test $ok_so_far = yes; then
21519 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21520 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21521 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21522 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21526 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21527 else
21528 # Is the header compilable?
21529 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21530 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21531 cat >conftest.$ac_ext <<_ACEOF
21532 /* confdefs.h. */
21533 _ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 $ac_includes_default
21538 #include <netinet/in.h>
21539 _ACEOF
21540 rm -f conftest.$ac_objext
21541 if { (ac_try="$ac_compile"
21542 case "(($ac_try" in
21543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544 *) ac_try_echo=$ac_try;;
21545 esac
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547 (eval "$ac_compile") 2>conftest.er1
21548 ac_status=$?
21549 grep -v '^ *+' conftest.er1 >conftest.err
21550 rm -f conftest.er1
21551 cat conftest.err >&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } && {
21554 test -z "$ac_c_werror_flag" ||
21555 test ! -s conftest.err
21556 } && test -s conftest.$ac_objext; then
21557 ac_header_compiler=yes
21558 else
21559 echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21562 ac_header_compiler=no
21565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21567 echo "${ECHO_T}$ac_header_compiler" >&6; }
21569 # Is the header present?
21570 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21571 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21572 cat >conftest.$ac_ext <<_ACEOF
21573 /* confdefs.h. */
21574 _ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h. */
21578 #include <netinet/in.h>
21579 _ACEOF
21580 if { (ac_try="$ac_cpp conftest.$ac_ext"
21581 case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21584 esac
21585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21587 ac_status=$?
21588 grep -v '^ *+' conftest.er1 >conftest.err
21589 rm -f conftest.er1
21590 cat conftest.err >&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } >/dev/null && {
21593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21594 test ! -s conftest.err
21595 }; then
21596 ac_header_preproc=yes
21597 else
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21601 ac_header_preproc=no
21604 rm -f conftest.err conftest.$ac_ext
21605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21606 echo "${ECHO_T}$ac_header_preproc" >&6; }
21608 # So? What about this header?
21609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21610 yes:no: )
21611 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21612 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21613 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21614 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21615 ac_header_preproc=yes
21617 no:yes:* )
21618 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21619 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21620 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21621 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21622 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21623 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21624 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21625 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21627 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21629 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21632 esac
21633 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21634 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21635 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21636 echo $ECHO_N "(cached) $ECHO_C" >&6
21637 else
21638 ac_cv_header_netinet_in_h=$ac_header_preproc
21640 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21641 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21644 if test $ac_cv_header_netinet_in_h = yes; then
21646 else
21647 ok_so_far=no
21652 if test $ok_so_far = yes; then
21653 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21654 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21655 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21656 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21660 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21661 else
21662 # Is the header compilable?
21663 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21664 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21665 cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h. */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671 $ac_includes_default
21672 #include <arpa/inet.h>
21673 _ACEOF
21674 rm -f conftest.$ac_objext
21675 if { (ac_try="$ac_compile"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21679 esac
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_compile") 2>conftest.er1
21682 ac_status=$?
21683 grep -v '^ *+' conftest.er1 >conftest.err
21684 rm -f conftest.er1
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && {
21688 test -z "$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21690 } && test -s conftest.$ac_objext; then
21691 ac_header_compiler=yes
21692 else
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 ac_header_compiler=no
21699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21701 echo "${ECHO_T}$ac_header_compiler" >&6; }
21703 # Is the header present?
21704 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21705 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21706 cat >conftest.$ac_ext <<_ACEOF
21707 /* confdefs.h. */
21708 _ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21712 #include <arpa/inet.h>
21713 _ACEOF
21714 if { (ac_try="$ac_cpp conftest.$ac_ext"
21715 case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21718 esac
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21721 ac_status=$?
21722 grep -v '^ *+' conftest.er1 >conftest.err
21723 rm -f conftest.er1
21724 cat conftest.err >&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); } >/dev/null && {
21727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21728 test ! -s conftest.err
21729 }; then
21730 ac_header_preproc=yes
21731 else
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21735 ac_header_preproc=no
21738 rm -f conftest.err conftest.$ac_ext
21739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21740 echo "${ECHO_T}$ac_header_preproc" >&6; }
21742 # So? What about this header?
21743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21744 yes:no: )
21745 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21746 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21748 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21749 ac_header_preproc=yes
21751 no:yes:* )
21752 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21753 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21755 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21756 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21757 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21759 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21761 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21762 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21763 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21766 esac
21767 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21768 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21769 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 else
21772 ac_cv_header_arpa_inet_h=$ac_header_preproc
21774 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21775 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21778 if test $ac_cv_header_arpa_inet_h = yes; then
21780 else
21781 ok_so_far=no
21786 if test $ok_so_far = yes; then
21788 cat >>confdefs.h <<\_ACEOF
21789 #define HAVE_INET_SOCKETS 1
21790 _ACEOF
21795 for ac_header in sys/ioctl.h
21797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21802 echo $ECHO_N "(cached) $ECHO_C" >&6
21804 ac_res=`eval echo '${'$as_ac_Header'}'`
21805 { echo "$as_me:$LINENO: result: $ac_res" >&5
21806 echo "${ECHO_T}$ac_res" >&6; }
21807 else
21808 # Is the header compilable?
21809 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21811 cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h. */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21817 $ac_includes_default
21818 #include <$ac_header>
21819 _ACEOF
21820 rm -f conftest.$ac_objext
21821 if { (ac_try="$ac_compile"
21822 case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21825 esac
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_compile") 2>conftest.er1
21828 ac_status=$?
21829 grep -v '^ *+' conftest.er1 >conftest.err
21830 rm -f conftest.er1
21831 cat conftest.err >&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } && {
21834 test -z "$ac_c_werror_flag" ||
21835 test ! -s conftest.err
21836 } && test -s conftest.$ac_objext; then
21837 ac_header_compiler=yes
21838 else
21839 echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21842 ac_header_compiler=no
21845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21847 echo "${ECHO_T}$ac_header_compiler" >&6; }
21849 # Is the header present?
21850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21852 cat >conftest.$ac_ext <<_ACEOF
21853 /* confdefs.h. */
21854 _ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h. */
21858 #include <$ac_header>
21859 _ACEOF
21860 if { (ac_try="$ac_cpp conftest.$ac_ext"
21861 case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864 esac
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21867 ac_status=$?
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } >/dev/null && {
21873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 }; then
21876 ac_header_preproc=yes
21877 else
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 ac_header_preproc=no
21884 rm -f conftest.err conftest.$ac_ext
21885 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21886 echo "${ECHO_T}$ac_header_preproc" >&6; }
21888 # So? What about this header?
21889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21890 yes:no: )
21891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21895 ac_header_preproc=yes
21897 no:yes:* )
21898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21912 esac
21913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21917 else
21918 eval "$as_ac_Header=\$ac_header_preproc"
21920 ac_res=`eval echo '${'$as_ac_Header'}'`
21921 { echo "$as_me:$LINENO: result: $ac_res" >&5
21922 echo "${ECHO_T}$ac_res" >&6; }
21925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21926 cat >>confdefs.h <<_ACEOF
21927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21928 _ACEOF
21932 done
21935 if test -f /usr/lpp/X11/bin/smt.exp; then
21937 cat >>confdefs.h <<\_ACEOF
21938 #define HAVE_AIX_SMT_EXP 1
21939 _ACEOF
21943 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21944 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
21945 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21946 { echo "$as_me:$LINENO: result: yes" >&5
21947 echo "${ECHO_T}yes" >&6; }
21949 cat >>confdefs.h <<\_ACEOF
21950 #define HAVE_DEV_PTMX 1
21951 _ACEOF
21953 else
21954 { echo "$as_me:$LINENO: result: no" >&5
21955 echo "${ECHO_T}no" >&6; }
21958 { echo "$as_me:$LINENO: checking for pid_t" >&5
21959 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21960 if test "${ac_cv_type_pid_t+set}" = set; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21962 else
21963 cat >conftest.$ac_ext <<_ACEOF
21964 /* confdefs.h. */
21965 _ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21969 $ac_includes_default
21970 typedef pid_t ac__type_new_;
21972 main ()
21974 if ((ac__type_new_ *) 0)
21975 return 0;
21976 if (sizeof (ac__type_new_))
21977 return 0;
21979 return 0;
21981 _ACEOF
21982 rm -f conftest.$ac_objext
21983 if { (ac_try="$ac_compile"
21984 case "(($ac_try" in
21985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21987 esac
21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989 (eval "$ac_compile") 2>conftest.er1
21990 ac_status=$?
21991 grep -v '^ *+' conftest.er1 >conftest.err
21992 rm -f conftest.er1
21993 cat conftest.err >&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); } && {
21996 test -z "$ac_c_werror_flag" ||
21997 test ! -s conftest.err
21998 } && test -s conftest.$ac_objext; then
21999 ac_cv_type_pid_t=yes
22000 else
22001 echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 ac_cv_type_pid_t=no
22007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22009 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22010 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22011 if test $ac_cv_type_pid_t = yes; then
22013 else
22015 cat >>confdefs.h <<_ACEOF
22016 #define pid_t int
22017 _ACEOF
22022 for ac_header in vfork.h
22024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 ac_res=`eval echo '${'$as_ac_Header'}'`
22032 { echo "$as_me:$LINENO: result: $ac_res" >&5
22033 echo "${ECHO_T}$ac_res" >&6; }
22034 else
22035 # Is the header compilable?
22036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22038 cat >conftest.$ac_ext <<_ACEOF
22039 /* confdefs.h. */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h. */
22044 $ac_includes_default
22045 #include <$ac_header>
22046 _ACEOF
22047 rm -f conftest.$ac_objext
22048 if { (ac_try="$ac_compile"
22049 case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22052 esac
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_compile") 2>conftest.er1
22055 ac_status=$?
22056 grep -v '^ *+' conftest.er1 >conftest.err
22057 rm -f conftest.er1
22058 cat conftest.err >&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); } && {
22061 test -z "$ac_c_werror_flag" ||
22062 test ! -s conftest.err
22063 } && test -s conftest.$ac_objext; then
22064 ac_header_compiler=yes
22065 else
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 ac_header_compiler=no
22072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22074 echo "${ECHO_T}$ac_header_compiler" >&6; }
22076 # Is the header present?
22077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22079 cat >conftest.$ac_ext <<_ACEOF
22080 /* confdefs.h. */
22081 _ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h. */
22085 #include <$ac_header>
22086 _ACEOF
22087 if { (ac_try="$ac_cpp conftest.$ac_ext"
22088 case "(($ac_try" in
22089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090 *) ac_try_echo=$ac_try;;
22091 esac
22092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22094 ac_status=$?
22095 grep -v '^ *+' conftest.er1 >conftest.err
22096 rm -f conftest.er1
22097 cat conftest.err >&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } >/dev/null && {
22100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22101 test ! -s conftest.err
22102 }; then
22103 ac_header_preproc=yes
22104 else
22105 echo "$as_me: failed program was:" >&5
22106 sed 's/^/| /' conftest.$ac_ext >&5
22108 ac_header_preproc=no
22111 rm -f conftest.err conftest.$ac_ext
22112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22113 echo "${ECHO_T}$ac_header_preproc" >&6; }
22115 # So? What about this header?
22116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22117 yes:no: )
22118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22122 ac_header_preproc=yes
22124 no:yes:* )
22125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22139 esac
22140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22143 echo $ECHO_N "(cached) $ECHO_C" >&6
22144 else
22145 eval "$as_ac_Header=\$ac_header_preproc"
22147 ac_res=`eval echo '${'$as_ac_Header'}'`
22148 { echo "$as_me:$LINENO: result: $ac_res" >&5
22149 echo "${ECHO_T}$ac_res" >&6; }
22152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22153 cat >>confdefs.h <<_ACEOF
22154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22155 _ACEOF
22159 done
22163 for ac_func in fork vfork
22165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22169 echo $ECHO_N "(cached) $ECHO_C" >&6
22170 else
22171 cat >conftest.$ac_ext <<_ACEOF
22172 /* confdefs.h. */
22173 _ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22179 #define $ac_func innocuous_$ac_func
22181 /* System header to define __stub macros and hopefully few prototypes,
22182 which can conflict with char $ac_func (); below.
22183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22184 <limits.h> exists even on freestanding compilers. */
22186 #ifdef __STDC__
22187 # include <limits.h>
22188 #else
22189 # include <assert.h>
22190 #endif
22192 #undef $ac_func
22194 /* Override any GCC internal prototype to avoid an error.
22195 Use char because int might match the return type of a GCC
22196 builtin and then its argument prototype would still apply. */
22197 #ifdef __cplusplus
22198 extern "C"
22199 #endif
22200 char $ac_func ();
22201 /* The GNU C library defines this for functions which it implements
22202 to always fail with ENOSYS. Some functions are actually named
22203 something starting with __ and the normal name is an alias. */
22204 #if defined __stub_$ac_func || defined __stub___$ac_func
22205 choke me
22206 #endif
22209 main ()
22211 return $ac_func ();
22213 return 0;
22215 _ACEOF
22216 rm -f conftest.$ac_objext conftest$ac_exeext
22217 if { (ac_try="$ac_link"
22218 case "(($ac_try" in
22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22221 esac
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223 (eval "$ac_link") 2>conftest.er1
22224 ac_status=$?
22225 grep -v '^ *+' conftest.er1 >conftest.err
22226 rm -f conftest.er1
22227 cat conftest.err >&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); } && {
22230 test -z "$ac_c_werror_flag" ||
22231 test ! -s conftest.err
22232 } && test -s conftest$ac_exeext &&
22233 $as_test_x conftest$ac_exeext; then
22234 eval "$as_ac_var=yes"
22235 else
22236 echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22239 eval "$as_ac_var=no"
22242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22243 conftest$ac_exeext conftest.$ac_ext
22245 ac_res=`eval echo '${'$as_ac_var'}'`
22246 { echo "$as_me:$LINENO: result: $ac_res" >&5
22247 echo "${ECHO_T}$ac_res" >&6; }
22248 if test `eval echo '${'$as_ac_var'}'` = yes; then
22249 cat >>confdefs.h <<_ACEOF
22250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22251 _ACEOF
22254 done
22256 if test "x$ac_cv_func_fork" = xyes; then
22257 { echo "$as_me:$LINENO: checking for working fork" >&5
22258 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22259 if test "${ac_cv_func_fork_works+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22261 else
22262 if test "$cross_compiling" = yes; then
22263 ac_cv_func_fork_works=cross
22264 else
22265 cat >conftest.$ac_ext <<_ACEOF
22266 /* confdefs.h. */
22267 _ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22271 $ac_includes_default
22273 main ()
22276 /* By Ruediger Kuhlmann. */
22277 return fork () < 0;
22280 return 0;
22282 _ACEOF
22283 rm -f conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_link") 2>&5
22291 ac_status=$?
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22294 { (case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22297 esac
22298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22299 (eval "$ac_try") 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; }; then
22303 ac_cv_func_fork_works=yes
22304 else
22305 echo "$as_me: program exited with status $ac_status" >&5
22306 echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22309 ( exit $ac_status )
22310 ac_cv_func_fork_works=no
22312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22317 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22318 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22320 else
22321 ac_cv_func_fork_works=$ac_cv_func_fork
22323 if test "x$ac_cv_func_fork_works" = xcross; then
22324 case $host in
22325 *-*-amigaos* | *-*-msdosdjgpp*)
22326 # Override, as these systems have only a dummy fork() stub
22327 ac_cv_func_fork_works=no
22330 ac_cv_func_fork_works=yes
22332 esac
22333 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22334 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22336 ac_cv_func_vfork_works=$ac_cv_func_vfork
22337 if test "x$ac_cv_func_vfork" = xyes; then
22338 { echo "$as_me:$LINENO: checking for working vfork" >&5
22339 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22340 if test "${ac_cv_func_vfork_works+set}" = set; then
22341 echo $ECHO_N "(cached) $ECHO_C" >&6
22342 else
22343 if test "$cross_compiling" = yes; then
22344 ac_cv_func_vfork_works=cross
22345 else
22346 cat >conftest.$ac_ext <<_ACEOF
22347 /* confdefs.h. */
22348 _ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h. */
22352 /* Thanks to Paul Eggert for this test. */
22353 $ac_includes_default
22354 #include <sys/wait.h>
22355 #ifdef HAVE_VFORK_H
22356 # include <vfork.h>
22357 #endif
22358 /* On some sparc systems, changes by the child to local and incoming
22359 argument registers are propagated back to the parent. The compiler
22360 is told about this with #include <vfork.h>, but some compilers
22361 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22362 static variable whose address is put into a register that is
22363 clobbered by the vfork. */
22364 static void
22365 #ifdef __cplusplus
22366 sparc_address_test (int arg)
22367 # else
22368 sparc_address_test (arg) int arg;
22369 #endif
22371 static pid_t child;
22372 if (!child) {
22373 child = vfork ();
22374 if (child < 0) {
22375 perror ("vfork");
22376 _exit(2);
22378 if (!child) {
22379 arg = getpid();
22380 write(-1, "", 0);
22381 _exit (arg);
22387 main ()
22389 pid_t parent = getpid ();
22390 pid_t child;
22392 sparc_address_test (0);
22394 child = vfork ();
22396 if (child == 0) {
22397 /* Here is another test for sparc vfork register problems. This
22398 test uses lots of local variables, at least as many local
22399 variables as main has allocated so far including compiler
22400 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22401 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22402 reuse the register of parent for one of the local variables,
22403 since it will think that parent can't possibly be used any more
22404 in this routine. Assigning to the local variable will thus
22405 munge parent in the parent process. */
22406 pid_t
22407 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22408 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22409 /* Convince the compiler that p..p7 are live; otherwise, it might
22410 use the same hardware register for all 8 local variables. */
22411 if (p != p1 || p != p2 || p != p3 || p != p4
22412 || p != p5 || p != p6 || p != p7)
22413 _exit(1);
22415 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22416 from child file descriptors. If the child closes a descriptor
22417 before it execs or exits, this munges the parent's descriptor
22418 as well. Test for this by closing stdout in the child. */
22419 _exit(close(fileno(stdout)) != 0);
22420 } else {
22421 int status;
22422 struct stat st;
22424 while (wait(&status) != child)
22426 return (
22427 /* Was there some problem with vforking? */
22428 child < 0
22430 /* Did the child fail? (This shouldn't happen.) */
22431 || status
22433 /* Did the vfork/compiler bug occur? */
22434 || parent != getpid()
22436 /* Did the file descriptor bug occur? */
22437 || fstat(fileno(stdout), &st) != 0
22441 _ACEOF
22442 rm -f conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_link") 2>&5
22450 ac_status=$?
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22453 { (case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22456 esac
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_try") 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
22462 ac_cv_func_vfork_works=yes
22463 else
22464 echo "$as_me: program exited with status $ac_status" >&5
22465 echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22468 ( exit $ac_status )
22469 ac_cv_func_vfork_works=no
22471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22476 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22477 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22480 if test "x$ac_cv_func_fork_works" = xcross; then
22481 ac_cv_func_vfork_works=$ac_cv_func_vfork
22482 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22483 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22486 if test "x$ac_cv_func_vfork_works" = xyes; then
22488 cat >>confdefs.h <<\_ACEOF
22489 #define HAVE_WORKING_VFORK 1
22490 _ACEOF
22492 else
22494 cat >>confdefs.h <<\_ACEOF
22495 #define vfork fork
22496 _ACEOF
22499 if test "x$ac_cv_func_fork_works" = xyes; then
22501 cat >>confdefs.h <<\_ACEOF
22502 #define HAVE_WORKING_FORK 1
22503 _ACEOF
22508 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22509 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22510 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22512 else
22513 cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h. */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22519 #include <langinfo.h>
22521 main ()
22523 char* cs = nl_langinfo(CODESET);
22525 return 0;
22527 _ACEOF
22528 rm -f conftest.$ac_objext conftest$ac_exeext
22529 if { (ac_try="$ac_link"
22530 case "(($ac_try" in
22531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22532 *) ac_try_echo=$ac_try;;
22533 esac
22534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22535 (eval "$ac_link") 2>conftest.er1
22536 ac_status=$?
22537 grep -v '^ *+' conftest.er1 >conftest.err
22538 rm -f conftest.er1
22539 cat conftest.err >&5
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); } && {
22542 test -z "$ac_c_werror_flag" ||
22543 test ! -s conftest.err
22544 } && test -s conftest$ac_exeext &&
22545 $as_test_x conftest$ac_exeext; then
22546 emacs_cv_langinfo_codeset=yes
22547 else
22548 echo "$as_me: failed program was:" >&5
22549 sed 's/^/| /' conftest.$ac_ext >&5
22551 emacs_cv_langinfo_codeset=no
22554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22555 conftest$ac_exeext conftest.$ac_ext
22558 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22559 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22560 if test $emacs_cv_langinfo_codeset = yes; then
22562 cat >>confdefs.h <<\_ACEOF
22563 #define HAVE_LANGINFO_CODESET 1
22564 _ACEOF
22568 { echo "$as_me:$LINENO: checking for size_t" >&5
22569 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22570 if test "${ac_cv_type_size_t+set}" = set; then
22571 echo $ECHO_N "(cached) $ECHO_C" >&6
22572 else
22573 cat >conftest.$ac_ext <<_ACEOF
22574 /* confdefs.h. */
22575 _ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22579 $ac_includes_default
22580 typedef size_t ac__type_new_;
22582 main ()
22584 if ((ac__type_new_ *) 0)
22585 return 0;
22586 if (sizeof (ac__type_new_))
22587 return 0;
22589 return 0;
22591 _ACEOF
22592 rm -f conftest.$ac_objext
22593 if { (ac_try="$ac_compile"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22597 esac
22598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22599 (eval "$ac_compile") 2>conftest.er1
22600 ac_status=$?
22601 grep -v '^ *+' conftest.er1 >conftest.err
22602 rm -f conftest.er1
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } && {
22606 test -z "$ac_c_werror_flag" ||
22607 test ! -s conftest.err
22608 } && test -s conftest.$ac_objext; then
22609 ac_cv_type_size_t=yes
22610 else
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22614 ac_cv_type_size_t=no
22617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22619 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22620 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22621 if test $ac_cv_type_size_t = yes; then
22623 cat >>confdefs.h <<_ACEOF
22624 #define HAVE_SIZE_T 1
22625 _ACEOF
22631 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22632 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22633 if test "${ac_cv_type_mbstate_t+set}" = set; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22635 else
22636 cat >conftest.$ac_ext <<_ACEOF
22637 /* confdefs.h. */
22638 _ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h. */
22642 $ac_includes_default
22643 # include <wchar.h>
22645 main ()
22647 mbstate_t x; return sizeof x;
22649 return 0;
22651 _ACEOF
22652 rm -f conftest.$ac_objext
22653 if { (ac_try="$ac_compile"
22654 case "(($ac_try" in
22655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22656 *) ac_try_echo=$ac_try;;
22657 esac
22658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22659 (eval "$ac_compile") 2>conftest.er1
22660 ac_status=$?
22661 grep -v '^ *+' conftest.er1 >conftest.err
22662 rm -f conftest.er1
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } && {
22666 test -z "$ac_c_werror_flag" ||
22667 test ! -s conftest.err
22668 } && test -s conftest.$ac_objext; then
22669 ac_cv_type_mbstate_t=yes
22670 else
22671 echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22674 ac_cv_type_mbstate_t=no
22677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22679 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22680 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22681 if test $ac_cv_type_mbstate_t = yes; then
22683 cat >>confdefs.h <<\_ACEOF
22684 #define HAVE_MBSTATE_T 1
22685 _ACEOF
22687 else
22689 cat >>confdefs.h <<\_ACEOF
22690 #define mbstate_t int
22691 _ACEOF
22695 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22696 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22697 if test "${emacs_cv_c_restrict+set}" = set; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22699 else
22700 cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h. */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 void fred (int *restrict x);
22708 main ()
22712 return 0;
22714 _ACEOF
22715 rm -f conftest.$ac_objext
22716 if { (ac_try="$ac_compile"
22717 case "(($ac_try" in
22718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22719 *) ac_try_echo=$ac_try;;
22720 esac
22721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22722 (eval "$ac_compile") 2>conftest.er1
22723 ac_status=$?
22724 grep -v '^ *+' conftest.er1 >conftest.err
22725 rm -f conftest.er1
22726 cat conftest.err >&5
22727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728 (exit $ac_status); } && {
22729 test -z "$ac_c_werror_flag" ||
22730 test ! -s conftest.err
22731 } && test -s conftest.$ac_objext; then
22732 emacs_cv_c_restrict=yes
22733 else
22734 echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22737 cat >conftest.$ac_ext <<_ACEOF
22738 /* confdefs.h. */
22739 _ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h. */
22743 void fred (int *__restrict x);
22745 main ()
22749 return 0;
22751 _ACEOF
22752 rm -f conftest.$ac_objext
22753 if { (ac_try="$ac_compile"
22754 case "(($ac_try" in
22755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756 *) ac_try_echo=$ac_try;;
22757 esac
22758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22759 (eval "$ac_compile") 2>conftest.er1
22760 ac_status=$?
22761 grep -v '^ *+' conftest.er1 >conftest.err
22762 rm -f conftest.er1
22763 cat conftest.err >&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } && {
22766 test -z "$ac_c_werror_flag" ||
22767 test ! -s conftest.err
22768 } && test -s conftest.$ac_objext; then
22769 emacs_cv_c_restrict=__restrict
22770 else
22771 echo "$as_me: failed program was:" >&5
22772 sed 's/^/| /' conftest.$ac_ext >&5
22774 emacs_cv_c_restrict=no
22777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22782 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22783 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22784 case "$emacs_cv_c_restrict" in
22785 yes) emacs_restrict=restrict;;
22786 no) emacs_restrict="";;
22787 *) emacs_restrict="$emacs_cv_c_restrict";;
22788 esac
22789 if test "$emacs_restrict" != __restrict; then
22791 cat >>confdefs.h <<_ACEOF
22792 #define __restrict $emacs_restrict
22793 _ACEOF
22797 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22798 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22799 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22801 else
22802 cat >conftest.$ac_ext <<_ACEOF
22803 /* confdefs.h. */
22804 _ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22808 void fred (int x[__restrict]);
22810 main ()
22814 return 0;
22816 _ACEOF
22817 rm -f conftest.$ac_objext
22818 if { (ac_try="$ac_compile"
22819 case "(($ac_try" in
22820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22821 *) ac_try_echo=$ac_try;;
22822 esac
22823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22824 (eval "$ac_compile") 2>conftest.er1
22825 ac_status=$?
22826 grep -v '^ *+' conftest.er1 >conftest.err
22827 rm -f conftest.er1
22828 cat conftest.err >&5
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); } && {
22831 test -z "$ac_c_werror_flag" ||
22832 test ! -s conftest.err
22833 } && test -s conftest.$ac_objext; then
22834 emacs_cv_c_restrict_arr=yes
22835 else
22836 echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.$ac_ext >&5
22839 emacs_cv_c_restrict_arr=no
22842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22845 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22846 if test "$emacs_cv_c_restrict_arr" = yes; then
22848 cat >>confdefs.h <<\_ACEOF
22849 #define __restrict_arr __restrict
22850 _ACEOF
22856 # Set up the CFLAGS for real compilation, so we can substitute it.
22857 CFLAGS="$REAL_CFLAGS"
22858 CPPFLAGS="$REAL_CPPFLAGS"
22860 #### Find out which version of Emacs this is.
22861 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22862 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22863 if test x"${version}" = x; then
22864 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22865 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22866 { (exit 1); exit 1; }; }
22869 ### Specify what sort of things we'll be editing into Makefile and config.h.
22870 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22906 cat >>confdefs.h <<_ACEOF
22907 #define EMACS_CONFIGURATION "${canonical}"
22908 _ACEOF
22911 cat >>confdefs.h <<_ACEOF
22912 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22913 _ACEOF
22916 cat >>confdefs.h <<_ACEOF
22917 #define config_machfile "${machfile}"
22918 _ACEOF
22921 cat >>confdefs.h <<_ACEOF
22922 #define config_opsysfile "${opsysfile}"
22923 _ACEOF
22926 cat >>confdefs.h <<_ACEOF
22927 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22928 _ACEOF
22931 cat >>confdefs.h <<_ACEOF
22932 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22933 _ACEOF
22936 cat >>confdefs.h <<_ACEOF
22937 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22938 _ACEOF
22941 cat >>confdefs.h <<_ACEOF
22942 #define UNEXEC_SRC ${UNEXEC_SRC}
22943 _ACEOF
22946 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22948 cat >>confdefs.h <<\_ACEOF
22949 #define HAVE_X_WINDOWS 1
22950 _ACEOF
22953 if test "${USE_X_TOOLKIT}" != "none" ; then
22955 cat >>confdefs.h <<\_ACEOF
22956 #define USE_X_TOOLKIT 1
22957 _ACEOF
22960 if test "${HAVE_X11}" = "yes" ; then
22962 cat >>confdefs.h <<\_ACEOF
22963 #define HAVE_X11 1
22964 _ACEOF
22967 if test "${HAVE_XFREE386}" = "yes" ; then
22969 cat >>confdefs.h <<\_ACEOF
22970 #define HAVE_XFREE386 1
22971 _ACEOF
22974 if test "${HAVE_MENUS}" = "yes" ; then
22976 cat >>confdefs.h <<\_ACEOF
22977 #define HAVE_MENUS 1
22978 _ACEOF
22981 if test "${GNU_MALLOC}" = "yes" ; then
22983 cat >>confdefs.h <<\_ACEOF
22984 #define GNU_MALLOC 1
22985 _ACEOF
22988 if test "${REL_ALLOC}" = "yes" ; then
22990 cat >>confdefs.h <<\_ACEOF
22991 #define REL_ALLOC 1
22992 _ACEOF
23000 #### Report on what we decided to do.
23001 #### Report GTK as a toolkit, even if it doesn't use Xt.
23002 #### It makes printing result more understandable as using GTK sets
23003 #### toolkit_scroll_bars to yes by default.
23004 if test "${HAVE_GTK}" = "yes"; then
23005 USE_X_TOOLKIT=GTK
23008 echo "
23009 Configured for \`${canonical}'.
23011 Where should the build process find the source code? ${srcdir}
23012 What operating system and machine description files should Emacs use?
23013 \`${opsysfile}' and \`${machfile}'
23014 What compiler should emacs be built with? ${CC} ${CFLAGS}
23015 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23016 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23017 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23018 What window system should Emacs use? ${window_system}
23019 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23021 if test -n "${x_includes}"; then
23022 echo " Where do we find X Windows header files? ${x_includes}"
23023 else
23024 echo " Where do we find X Windows header files? Standard dirs"
23026 if test -n "${x_libraries}"; then
23027 echo " Where do we find X Windows libraries? ${x_libraries}"
23028 else
23029 echo " Where do we find X Windows libraries? Standard dirs"
23032 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23033 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23034 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23035 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23036 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23037 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23038 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23039 echo
23041 if test $USE_XASSERTS = yes; then
23042 echo " Compiling with asserts turned on."
23043 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23044 echo
23049 # Remove any trailing slashes in these variables.
23050 test "${prefix}" != NONE &&
23051 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23052 test "${exec_prefix}" != NONE &&
23053 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23055 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23056 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23057 ## from Makefile.c can correctly provide the arg `-traditional' to the
23058 ## C preprocessor.
23060 cat >conftest.$ac_ext <<_ACEOF
23061 /* confdefs.h. */
23062 _ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h. */
23066 yes..yes
23067 _ACEOF
23068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23069 $EGREP "yes..yes" >/dev/null 2>&1; then
23070 CPP_NEED_TRADITIONAL=no
23071 else
23072 CPP_NEED_TRADITIONAL=yes
23074 rm -f conftest*
23077 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
23079 ac_config_commands="$ac_config_commands default"
23081 cat >confcache <<\_ACEOF
23082 # This file is a shell script that caches the results of configure
23083 # tests run on this system so they can be shared between configure
23084 # scripts and configure runs, see configure's option --config-cache.
23085 # It is not useful on other systems. If it contains results you don't
23086 # want to keep, you may remove or edit it.
23088 # config.status only pays attention to the cache file if you give it
23089 # the --recheck option to rerun configure.
23091 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23092 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23093 # following values.
23095 _ACEOF
23097 # The following way of writing the cache mishandles newlines in values,
23098 # but we know of no workaround that is simple, portable, and efficient.
23099 # So, we kill variables containing newlines.
23100 # Ultrix sh set writes to stderr and can't be redirected directly,
23101 # and sets the high bit in the cache file unless we assign to the vars.
23103 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23104 eval ac_val=\$$ac_var
23105 case $ac_val in #(
23106 *${as_nl}*)
23107 case $ac_var in #(
23108 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23109 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23110 esac
23111 case $ac_var in #(
23112 _ | IFS | as_nl) ;; #(
23113 *) $as_unset $ac_var ;;
23114 esac ;;
23115 esac
23116 done
23118 (set) 2>&1 |
23119 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23120 *${as_nl}ac_space=\ *)
23121 # `set' does not quote correctly, so add quotes (double-quote
23122 # substitution turns \\\\ into \\, and sed turns \\ into \).
23123 sed -n \
23124 "s/'/'\\\\''/g;
23125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23126 ;; #(
23128 # `set' quotes correctly as required by POSIX, so do not add quotes.
23129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23131 esac |
23132 sort
23134 sed '
23135 /^ac_cv_env_/b end
23136 t clear
23137 :clear
23138 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23139 t end
23140 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23141 :end' >>confcache
23142 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23143 if test -w "$cache_file"; then
23144 test "x$cache_file" != "x/dev/null" &&
23145 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23146 echo "$as_me: updating cache $cache_file" >&6;}
23147 cat confcache >$cache_file
23148 else
23149 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23150 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23153 rm -f confcache
23155 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23156 # Let make expand exec_prefix.
23157 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23159 DEFS=-DHAVE_CONFIG_H
23161 ac_libobjs=
23162 ac_ltlibobjs=
23163 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23164 # 1. Remove the extension, and $U if already installed.
23165 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23166 ac_i=`echo "$ac_i" | sed "$ac_script"`
23167 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23168 # will be set to the directory where LIBOBJS objects are built.
23169 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23170 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23171 done
23172 LIBOBJS=$ac_libobjs
23174 LTLIBOBJS=$ac_ltlibobjs
23178 : ${CONFIG_STATUS=./config.status}
23179 ac_clean_files_save=$ac_clean_files
23180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23181 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23182 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23183 cat >$CONFIG_STATUS <<_ACEOF
23184 #! $SHELL
23185 # Generated by $as_me.
23186 # Run this file to recreate the current configuration.
23187 # Compiler output produced by configure, useful for debugging
23188 # configure, is in config.log if it exists.
23190 debug=false
23191 ac_cs_recheck=false
23192 ac_cs_silent=false
23193 SHELL=\${CONFIG_SHELL-$SHELL}
23194 _ACEOF
23196 cat >>$CONFIG_STATUS <<\_ACEOF
23197 ## --------------------- ##
23198 ## M4sh Initialization. ##
23199 ## --------------------- ##
23201 # Be more Bourne compatible
23202 DUALCASE=1; export DUALCASE # for MKS sh
23203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23204 emulate sh
23205 NULLCMD=:
23206 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23207 # is contrary to our usage. Disable this feature.
23208 alias -g '${1+"$@"}'='"$@"'
23209 setopt NO_GLOB_SUBST
23210 else
23211 case `(set -o) 2>/dev/null` in
23212 *posix*) set -o posix ;;
23213 esac
23220 # PATH needs CR
23221 # Avoid depending upon Character Ranges.
23222 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23223 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23224 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23225 as_cr_digits='0123456789'
23226 as_cr_alnum=$as_cr_Letters$as_cr_digits
23228 # The user is always right.
23229 if test "${PATH_SEPARATOR+set}" != set; then
23230 echo "#! /bin/sh" >conf$$.sh
23231 echo "exit 0" >>conf$$.sh
23232 chmod +x conf$$.sh
23233 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23234 PATH_SEPARATOR=';'
23235 else
23236 PATH_SEPARATOR=:
23238 rm -f conf$$.sh
23241 # Support unset when possible.
23242 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23243 as_unset=unset
23244 else
23245 as_unset=false
23249 # IFS
23250 # We need space, tab and new line, in precisely that order. Quoting is
23251 # there to prevent editors from complaining about space-tab.
23252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23253 # splitting by setting IFS to empty value.)
23254 as_nl='
23256 IFS=" "" $as_nl"
23258 # Find who we are. Look in the path if we contain no directory separator.
23259 case $0 in
23260 *[\\/]* ) as_myself=$0 ;;
23261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23262 for as_dir in $PATH
23264 IFS=$as_save_IFS
23265 test -z "$as_dir" && as_dir=.
23266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23267 done
23268 IFS=$as_save_IFS
23271 esac
23272 # We did not find ourselves, most probably we were run as `sh COMMAND'
23273 # in which case we are not to be found in the path.
23274 if test "x$as_myself" = x; then
23275 as_myself=$0
23277 if test ! -f "$as_myself"; then
23278 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23279 { (exit 1); exit 1; }
23282 # Work around bugs in pre-3.0 UWIN ksh.
23283 for as_var in ENV MAIL MAILPATH
23284 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23285 done
23286 PS1='$ '
23287 PS2='> '
23288 PS4='+ '
23290 # NLS nuisances.
23291 for as_var in \
23292 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23293 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23294 LC_TELEPHONE LC_TIME
23296 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23297 eval $as_var=C; export $as_var
23298 else
23299 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23301 done
23303 # Required to use basename.
23304 if expr a : '\(a\)' >/dev/null 2>&1 &&
23305 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23306 as_expr=expr
23307 else
23308 as_expr=false
23311 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23312 as_basename=basename
23313 else
23314 as_basename=false
23318 # Name of the executable.
23319 as_me=`$as_basename -- "$0" ||
23320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23321 X"$0" : 'X\(//\)$' \| \
23322 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23323 echo X/"$0" |
23324 sed '/^.*\/\([^/][^/]*\)\/*$/{
23325 s//\1/
23328 /^X\/\(\/\/\)$/{
23329 s//\1/
23332 /^X\/\(\/\).*/{
23333 s//\1/
23336 s/.*/./; q'`
23338 # CDPATH.
23339 $as_unset CDPATH
23343 as_lineno_1=$LINENO
23344 as_lineno_2=$LINENO
23345 test "x$as_lineno_1" != "x$as_lineno_2" &&
23346 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23348 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23349 # uniformly replaced by the line number. The first 'sed' inserts a
23350 # line-number line after each line using $LINENO; the second 'sed'
23351 # does the real work. The second script uses 'N' to pair each
23352 # line-number line with the line containing $LINENO, and appends
23353 # trailing '-' during substitution so that $LINENO is not a special
23354 # case at line end.
23355 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23356 # scripts with optimization help from Paolo Bonzini. Blame Lee
23357 # E. McMahon (1931-1989) for sed's syntax. :-)
23358 sed -n '
23360 /[$]LINENO/=
23361 ' <$as_myself |
23362 sed '
23363 s/[$]LINENO.*/&-/
23364 t lineno
23366 :lineno
23368 :loop
23369 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23370 t loop
23371 s/-\n.*//
23372 ' >$as_me.lineno &&
23373 chmod +x "$as_me.lineno" ||
23374 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23375 { (exit 1); exit 1; }; }
23377 # Don't try to exec as it changes $[0], causing all sort of problems
23378 # (the dirname of $[0] is not the place where we might find the
23379 # original and so on. Autoconf is especially sensitive to this).
23380 . "./$as_me.lineno"
23381 # Exit status is that of the last command.
23382 exit
23386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23387 as_dirname=dirname
23388 else
23389 as_dirname=false
23392 ECHO_C= ECHO_N= ECHO_T=
23393 case `echo -n x` in
23394 -n*)
23395 case `echo 'x\c'` in
23396 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23397 *) ECHO_C='\c';;
23398 esac;;
23400 ECHO_N='-n';;
23401 esac
23403 if expr a : '\(a\)' >/dev/null 2>&1 &&
23404 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23405 as_expr=expr
23406 else
23407 as_expr=false
23410 rm -f conf$$ conf$$.exe conf$$.file
23411 if test -d conf$$.dir; then
23412 rm -f conf$$.dir/conf$$.file
23413 else
23414 rm -f conf$$.dir
23415 mkdir conf$$.dir
23417 echo >conf$$.file
23418 if ln -s conf$$.file conf$$ 2>/dev/null; then
23419 as_ln_s='ln -s'
23420 # ... but there are two gotchas:
23421 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23422 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23423 # In both cases, we have to default to `cp -p'.
23424 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23425 as_ln_s='cp -p'
23426 elif ln conf$$.file conf$$ 2>/dev/null; then
23427 as_ln_s=ln
23428 else
23429 as_ln_s='cp -p'
23431 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23432 rmdir conf$$.dir 2>/dev/null
23434 if mkdir -p . 2>/dev/null; then
23435 as_mkdir_p=:
23436 else
23437 test -d ./-p && rmdir ./-p
23438 as_mkdir_p=false
23441 if test -x / >/dev/null 2>&1; then
23442 as_test_x='test -x'
23443 else
23444 if ls -dL / >/dev/null 2>&1; then
23445 as_ls_L_option=L
23446 else
23447 as_ls_L_option=
23449 as_test_x='
23450 eval sh -c '\''
23451 if test -d "$1"; then
23452 test -d "$1/.";
23453 else
23454 case $1 in
23455 -*)set "./$1";;
23456 esac;
23457 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23458 ???[sx]*):;;*)false;;esac;fi
23459 '\'' sh
23462 as_executable_p=$as_test_x
23464 # Sed expression to map a string onto a valid CPP name.
23465 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23467 # Sed expression to map a string onto a valid variable name.
23468 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23471 exec 6>&1
23473 # Save the log message, to keep $[0] and so on meaningful, and to
23474 # report actual input values of CONFIG_FILES etc. instead of their
23475 # values after options handling.
23476 ac_log="
23477 This file was extended by $as_me, which was
23478 generated by GNU Autoconf 2.61. Invocation command line was
23480 CONFIG_FILES = $CONFIG_FILES
23481 CONFIG_HEADERS = $CONFIG_HEADERS
23482 CONFIG_LINKS = $CONFIG_LINKS
23483 CONFIG_COMMANDS = $CONFIG_COMMANDS
23484 $ $0 $@
23486 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23489 _ACEOF
23491 cat >>$CONFIG_STATUS <<_ACEOF
23492 # Files that config.status was made for.
23493 config_files="$ac_config_files"
23494 config_headers="$ac_config_headers"
23495 config_commands="$ac_config_commands"
23497 _ACEOF
23499 cat >>$CONFIG_STATUS <<\_ACEOF
23500 ac_cs_usage="\
23501 \`$as_me' instantiates files from templates according to the
23502 current configuration.
23504 Usage: $0 [OPTIONS] [FILE]...
23506 -h, --help print this help, then exit
23507 -V, --version print version number and configuration settings, then exit
23508 -q, --quiet do not print progress messages
23509 -d, --debug don't remove temporary files
23510 --recheck update $as_me by reconfiguring in the same conditions
23511 --file=FILE[:TEMPLATE]
23512 instantiate the configuration file FILE
23513 --header=FILE[:TEMPLATE]
23514 instantiate the configuration header FILE
23516 Configuration files:
23517 $config_files
23519 Configuration headers:
23520 $config_headers
23522 Configuration commands:
23523 $config_commands
23525 Report bugs to <bug-autoconf@gnu.org>."
23527 _ACEOF
23528 cat >>$CONFIG_STATUS <<_ACEOF
23529 ac_cs_version="\\
23530 config.status
23531 configured by $0, generated by GNU Autoconf 2.61,
23532 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23534 Copyright (C) 2006 Free Software Foundation, Inc.
23535 This config.status script is free software; the Free Software Foundation
23536 gives unlimited permission to copy, distribute and modify it."
23538 ac_pwd='$ac_pwd'
23539 srcdir='$srcdir'
23540 INSTALL='$INSTALL'
23541 _ACEOF
23543 cat >>$CONFIG_STATUS <<\_ACEOF
23544 # If no file are specified by the user, then we need to provide default
23545 # value. By we need to know if files were specified by the user.
23546 ac_need_defaults=:
23547 while test $# != 0
23549 case $1 in
23550 --*=*)
23551 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23552 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23553 ac_shift=:
23556 ac_option=$1
23557 ac_optarg=$2
23558 ac_shift=shift
23560 esac
23562 case $ac_option in
23563 # Handling of the options.
23564 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23565 ac_cs_recheck=: ;;
23566 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23567 echo "$ac_cs_version"; exit ;;
23568 --debug | --debu | --deb | --de | --d | -d )
23569 debug=: ;;
23570 --file | --fil | --fi | --f )
23571 $ac_shift
23572 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23573 ac_need_defaults=false;;
23574 --header | --heade | --head | --hea )
23575 $ac_shift
23576 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23577 ac_need_defaults=false;;
23578 --he | --h)
23579 # Conflict between --help and --header
23580 { echo "$as_me: error: ambiguous option: $1
23581 Try \`$0 --help' for more information." >&2
23582 { (exit 1); exit 1; }; };;
23583 --help | --hel | -h )
23584 echo "$ac_cs_usage"; exit ;;
23585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23586 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23587 ac_cs_silent=: ;;
23589 # This is an error.
23590 -*) { echo "$as_me: error: unrecognized option: $1
23591 Try \`$0 --help' for more information." >&2
23592 { (exit 1); exit 1; }; } ;;
23594 *) ac_config_targets="$ac_config_targets $1"
23595 ac_need_defaults=false ;;
23597 esac
23598 shift
23599 done
23601 ac_configure_extra_args=
23603 if $ac_cs_silent; then
23604 exec 6>/dev/null
23605 ac_configure_extra_args="$ac_configure_extra_args --silent"
23608 _ACEOF
23609 cat >>$CONFIG_STATUS <<_ACEOF
23610 if \$ac_cs_recheck; then
23611 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23612 CONFIG_SHELL=$SHELL
23613 export CONFIG_SHELL
23614 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23617 _ACEOF
23618 cat >>$CONFIG_STATUS <<\_ACEOF
23619 exec 5>>config.log
23621 echo
23622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23623 ## Running $as_me. ##
23624 _ASBOX
23625 echo "$ac_log"
23626 } >&5
23628 _ACEOF
23629 cat >>$CONFIG_STATUS <<_ACEOF
23631 # INIT-COMMANDS
23633 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23635 _ACEOF
23637 cat >>$CONFIG_STATUS <<\_ACEOF
23639 # Handling of arguments.
23640 for ac_config_target in $ac_config_targets
23642 case $ac_config_target in
23643 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23644 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23645 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23646 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23647 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23648 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23649 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23650 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23651 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23652 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23653 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23654 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23656 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23657 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23658 { (exit 1); exit 1; }; };;
23659 esac
23660 done
23663 # If the user did not use the arguments to specify the items to instantiate,
23664 # then the envvar interface is used. Set only those that are not.
23665 # We use the long form for the default assignment because of an extremely
23666 # bizarre bug on SunOS 4.1.3.
23667 if $ac_need_defaults; then
23668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23673 # Have a temporary directory for convenience. Make it in the build tree
23674 # simply because there is no reason against having it here, and in addition,
23675 # creating and moving files from /tmp can sometimes cause problems.
23676 # Hook for its removal unless debugging.
23677 # Note that there is a small window in which the directory will not be cleaned:
23678 # after its creation but before its name has been assigned to `$tmp'.
23679 $debug ||
23681 tmp=
23682 trap 'exit_status=$?
23683 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23685 trap '{ (exit 1); exit 1; }' 1 2 13 15
23687 # Create a (secure) tmp directory for tmp files.
23690 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23691 test -n "$tmp" && test -d "$tmp"
23692 } ||
23694 tmp=./conf$$-$RANDOM
23695 (umask 077 && mkdir "$tmp")
23696 } ||
23698 echo "$me: cannot create a temporary directory in ." >&2
23699 { (exit 1); exit 1; }
23703 # Set up the sed scripts for CONFIG_FILES section.
23706 # No need to generate the scripts if there are no CONFIG_FILES.
23707 # This happens for instance when ./config.status config.h
23708 if test -n "$CONFIG_FILES"; then
23710 _ACEOF
23714 ac_delim='%!_!# '
23715 for ac_last_try in false false false false false :; do
23716 cat >conf$$subs.sed <<_ACEOF
23717 SHELL!$SHELL$ac_delim
23718 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23719 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23720 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23721 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23722 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23723 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23724 exec_prefix!$exec_prefix$ac_delim
23725 prefix!$prefix$ac_delim
23726 program_transform_name!$program_transform_name$ac_delim
23727 bindir!$bindir$ac_delim
23728 sbindir!$sbindir$ac_delim
23729 libexecdir!$libexecdir$ac_delim
23730 datarootdir!$datarootdir$ac_delim
23731 datadir!$datadir$ac_delim
23732 sysconfdir!$sysconfdir$ac_delim
23733 sharedstatedir!$sharedstatedir$ac_delim
23734 localstatedir!$localstatedir$ac_delim
23735 includedir!$includedir$ac_delim
23736 oldincludedir!$oldincludedir$ac_delim
23737 docdir!$docdir$ac_delim
23738 infodir!$infodir$ac_delim
23739 htmldir!$htmldir$ac_delim
23740 dvidir!$dvidir$ac_delim
23741 pdfdir!$pdfdir$ac_delim
23742 psdir!$psdir$ac_delim
23743 libdir!$libdir$ac_delim
23744 localedir!$localedir$ac_delim
23745 mandir!$mandir$ac_delim
23746 DEFS!$DEFS$ac_delim
23747 ECHO_C!$ECHO_C$ac_delim
23748 ECHO_N!$ECHO_N$ac_delim
23749 ECHO_T!$ECHO_T$ac_delim
23750 LIBS!$LIBS$ac_delim
23751 build_alias!$build_alias$ac_delim
23752 host_alias!$host_alias$ac_delim
23753 target_alias!$target_alias$ac_delim
23754 MAINT!$MAINT$ac_delim
23755 build!$build$ac_delim
23756 build_cpu!$build_cpu$ac_delim
23757 build_vendor!$build_vendor$ac_delim
23758 build_os!$build_os$ac_delim
23759 host!$host$ac_delim
23760 host_cpu!$host_cpu$ac_delim
23761 host_vendor!$host_vendor$ac_delim
23762 host_os!$host_os$ac_delim
23763 CC!$CC$ac_delim
23764 CFLAGS!$CFLAGS$ac_delim
23765 LDFLAGS!$LDFLAGS$ac_delim
23766 CPPFLAGS!$CPPFLAGS$ac_delim
23767 ac_ct_CC!$ac_ct_CC$ac_delim
23768 EXEEXT!$EXEEXT$ac_delim
23769 OBJEXT!$OBJEXT$ac_delim
23770 CPP!$CPP$ac_delim
23771 GREP!$GREP$ac_delim
23772 EGREP!$EGREP$ac_delim
23773 LN_S!$LN_S$ac_delim
23774 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23775 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23776 INSTALL_DATA!$INSTALL_DATA$ac_delim
23777 RANLIB!$RANLIB$ac_delim
23778 INSTALL_INFO!$INSTALL_INFO$ac_delim
23779 GZIP_PROG!$GZIP_PROG$ac_delim
23780 LIBSOUND!$LIBSOUND$ac_delim
23781 PKG_CONFIG!$PKG_CONFIG$ac_delim
23782 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23783 ALSA_LIBS!$ALSA_LIBS$ac_delim
23784 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23785 SET_MAKE!$SET_MAKE$ac_delim
23786 XMKMF!$XMKMF$ac_delim
23787 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23788 GTK_LIBS!$GTK_LIBS$ac_delim
23789 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23790 XFT_LIBS!$XFT_LIBS$ac_delim
23791 ALLOCA!$ALLOCA$ac_delim
23792 liblockfile!$liblockfile$ac_delim
23793 LIBOBJS!$LIBOBJS$ac_delim
23794 NEED_SETGID!$NEED_SETGID$ac_delim
23795 KMEM_GROUP!$KMEM_GROUP$ac_delim
23796 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23797 GETOPT_H!$GETOPT_H$ac_delim
23798 GETOPTOBJS!$GETOPTOBJS$ac_delim
23799 version!$version$ac_delim
23800 configuration!$configuration$ac_delim
23801 canonical!$canonical$ac_delim
23802 srcdir!$srcdir$ac_delim
23803 lispdir!$lispdir$ac_delim
23804 locallisppath!$locallisppath$ac_delim
23805 lisppath!$lisppath$ac_delim
23806 x_default_search_path!$x_default_search_path$ac_delim
23807 etcdir!$etcdir$ac_delim
23808 archlibdir!$archlibdir$ac_delim
23809 bitmapdir!$bitmapdir$ac_delim
23810 gamedir!$gamedir$ac_delim
23811 gameuser!$gameuser$ac_delim
23812 c_switch_system!$c_switch_system$ac_delim
23813 c_switch_machine!$c_switch_machine$ac_delim
23814 _ACEOF
23816 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23817 break
23818 elif $ac_last_try; then
23819 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23820 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23821 { (exit 1); exit 1; }; }
23822 else
23823 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23825 done
23827 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23828 if test -n "$ac_eof"; then
23829 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23830 ac_eof=`expr $ac_eof + 1`
23833 cat >>$CONFIG_STATUS <<_ACEOF
23834 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23835 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23836 _ACEOF
23837 sed '
23838 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23839 s/^/s,@/; s/!/@,|#_!!_#|/
23842 s/'"$ac_delim"'$/,g/; t
23843 s/$/\\/; p
23844 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23845 ' >>$CONFIG_STATUS <conf$$subs.sed
23846 rm -f conf$$subs.sed
23847 cat >>$CONFIG_STATUS <<_ACEOF
23848 CEOF$ac_eof
23849 _ACEOF
23852 ac_delim='%!_!# '
23853 for ac_last_try in false false false false false :; do
23854 cat >conf$$subs.sed <<_ACEOF
23855 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23856 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23857 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23858 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23859 machfile!$machfile$ac_delim
23860 opsysfile!$opsysfile$ac_delim
23861 carbon_appdir!$carbon_appdir$ac_delim
23862 LTLIBOBJS!$LTLIBOBJS$ac_delim
23863 _ACEOF
23865 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23866 break
23867 elif $ac_last_try; then
23868 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23869 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23870 { (exit 1); exit 1; }; }
23871 else
23872 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23874 done
23876 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23877 if test -n "$ac_eof"; then
23878 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23879 ac_eof=`expr $ac_eof + 1`
23882 cat >>$CONFIG_STATUS <<_ACEOF
23883 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23885 _ACEOF
23886 sed '
23887 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23888 s/^/s,@/; s/!/@,|#_!!_#|/
23891 s/'"$ac_delim"'$/,g/; t
23892 s/$/\\/; p
23893 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23894 ' >>$CONFIG_STATUS <conf$$subs.sed
23895 rm -f conf$$subs.sed
23896 cat >>$CONFIG_STATUS <<_ACEOF
23897 :end
23898 s/|#_!!_#|//g
23899 CEOF$ac_eof
23900 _ACEOF
23903 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23904 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23905 # trailing colons and then remove the whole line if VPATH becomes empty
23906 # (actually we leave an empty line to preserve line numbers).
23907 if test "x$srcdir" = x.; then
23908 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23909 s/:*\$(srcdir):*/:/
23910 s/:*\${srcdir}:*/:/
23911 s/:*@srcdir@:*/:/
23912 s/^\([^=]*=[ ]*\):*/\1/
23913 s/:*$//
23914 s/^[^=]*=[ ]*$//
23918 cat >>$CONFIG_STATUS <<\_ACEOF
23919 fi # test -n "$CONFIG_FILES"
23922 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23924 case $ac_tag in
23925 :[FHLC]) ac_mode=$ac_tag; continue;;
23926 esac
23927 case $ac_mode$ac_tag in
23928 :[FHL]*:*);;
23929 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23930 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23931 { (exit 1); exit 1; }; };;
23932 :[FH]-) ac_tag=-:-;;
23933 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23934 esac
23935 ac_save_IFS=$IFS
23936 IFS=:
23937 set x $ac_tag
23938 IFS=$ac_save_IFS
23939 shift
23940 ac_file=$1
23941 shift
23943 case $ac_mode in
23944 :L) ac_source=$1;;
23945 :[FH])
23946 ac_file_inputs=
23947 for ac_f
23949 case $ac_f in
23950 -) ac_f="$tmp/stdin";;
23951 *) # Look for the file first in the build tree, then in the source tree
23952 # (if the path is not absolute). The absolute path cannot be DOS-style,
23953 # because $ac_f cannot contain `:'.
23954 test -f "$ac_f" ||
23955 case $ac_f in
23956 [\\/$]*) false;;
23957 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23958 esac ||
23959 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23960 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23961 { (exit 1); exit 1; }; };;
23962 esac
23963 ac_file_inputs="$ac_file_inputs $ac_f"
23964 done
23966 # Let's still pretend it is `configure' which instantiates (i.e., don't
23967 # use $as_me), people would be surprised to read:
23968 # /* config.h. Generated by config.status. */
23969 configure_input="Generated from "`IFS=:
23970 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23971 if test x"$ac_file" != x-; then
23972 configure_input="$ac_file. $configure_input"
23973 { echo "$as_me:$LINENO: creating $ac_file" >&5
23974 echo "$as_me: creating $ac_file" >&6;}
23977 case $ac_tag in
23978 *:-:* | *:-) cat >"$tmp/stdin";;
23979 esac
23981 esac
23983 ac_dir=`$as_dirname -- "$ac_file" ||
23984 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23985 X"$ac_file" : 'X\(//\)[^/]' \| \
23986 X"$ac_file" : 'X\(//\)$' \| \
23987 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23988 echo X"$ac_file" |
23989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23990 s//\1/
23993 /^X\(\/\/\)[^/].*/{
23994 s//\1/
23997 /^X\(\/\/\)$/{
23998 s//\1/
24001 /^X\(\/\).*/{
24002 s//\1/
24005 s/.*/./; q'`
24006 { as_dir="$ac_dir"
24007 case $as_dir in #(
24008 -*) as_dir=./$as_dir;;
24009 esac
24010 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24011 as_dirs=
24012 while :; do
24013 case $as_dir in #(
24014 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24015 *) as_qdir=$as_dir;;
24016 esac
24017 as_dirs="'$as_qdir' $as_dirs"
24018 as_dir=`$as_dirname -- "$as_dir" ||
24019 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24020 X"$as_dir" : 'X\(//\)[^/]' \| \
24021 X"$as_dir" : 'X\(//\)$' \| \
24022 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24023 echo X"$as_dir" |
24024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24025 s//\1/
24028 /^X\(\/\/\)[^/].*/{
24029 s//\1/
24032 /^X\(\/\/\)$/{
24033 s//\1/
24036 /^X\(\/\).*/{
24037 s//\1/
24040 s/.*/./; q'`
24041 test -d "$as_dir" && break
24042 done
24043 test -z "$as_dirs" || eval "mkdir $as_dirs"
24044 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24045 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24046 { (exit 1); exit 1; }; }; }
24047 ac_builddir=.
24049 case "$ac_dir" in
24050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24052 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24053 # A ".." for each directory in $ac_dir_suffix.
24054 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24055 case $ac_top_builddir_sub in
24056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24058 esac ;;
24059 esac
24060 ac_abs_top_builddir=$ac_pwd
24061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24062 # for backward compatibility:
24063 ac_top_builddir=$ac_top_build_prefix
24065 case $srcdir in
24066 .) # We are building in place.
24067 ac_srcdir=.
24068 ac_top_srcdir=$ac_top_builddir_sub
24069 ac_abs_top_srcdir=$ac_pwd ;;
24070 [\\/]* | ?:[\\/]* ) # Absolute name.
24071 ac_srcdir=$srcdir$ac_dir_suffix;
24072 ac_top_srcdir=$srcdir
24073 ac_abs_top_srcdir=$srcdir ;;
24074 *) # Relative name.
24075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24076 ac_top_srcdir=$ac_top_build_prefix$srcdir
24077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24078 esac
24079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24082 case $ac_mode in
24085 # CONFIG_FILE
24088 case $INSTALL in
24089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24090 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24091 esac
24092 _ACEOF
24094 cat >>$CONFIG_STATUS <<\_ACEOF
24095 # If the template does not know about datarootdir, expand it.
24096 # FIXME: This hack should be removed a few years after 2.60.
24097 ac_datarootdir_hack=; ac_datarootdir_seen=
24099 case `sed -n '/datarootdir/ {
24103 /@datadir@/p
24104 /@docdir@/p
24105 /@infodir@/p
24106 /@localedir@/p
24107 /@mandir@/p
24108 ' $ac_file_inputs` in
24109 *datarootdir*) ac_datarootdir_seen=yes;;
24110 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24111 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24112 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24113 _ACEOF
24114 cat >>$CONFIG_STATUS <<_ACEOF
24115 ac_datarootdir_hack='
24116 s&@datadir@&$datadir&g
24117 s&@docdir@&$docdir&g
24118 s&@infodir@&$infodir&g
24119 s&@localedir@&$localedir&g
24120 s&@mandir@&$mandir&g
24121 s&\\\${datarootdir}&$datarootdir&g' ;;
24122 esac
24123 _ACEOF
24125 # Neutralize VPATH when `$srcdir' = `.'.
24126 # Shell code in configure.ac might set extrasub.
24127 # FIXME: do we really want to maintain this feature?
24128 cat >>$CONFIG_STATUS <<_ACEOF
24129 sed "$ac_vpsub
24130 $extrasub
24131 _ACEOF
24132 cat >>$CONFIG_STATUS <<\_ACEOF
24134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24135 s&@configure_input@&$configure_input&;t t
24136 s&@top_builddir@&$ac_top_builddir_sub&;t t
24137 s&@srcdir@&$ac_srcdir&;t t
24138 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24139 s&@top_srcdir@&$ac_top_srcdir&;t t
24140 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24141 s&@builddir@&$ac_builddir&;t t
24142 s&@abs_builddir@&$ac_abs_builddir&;t t
24143 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24144 s&@INSTALL@&$ac_INSTALL&;t t
24145 $ac_datarootdir_hack
24146 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24148 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24149 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24150 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24151 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24152 which seems to be undefined. Please make sure it is defined." >&5
24153 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24154 which seems to be undefined. Please make sure it is defined." >&2;}
24156 rm -f "$tmp/stdin"
24157 case $ac_file in
24158 -) cat "$tmp/out"; rm -f "$tmp/out";;
24159 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24160 esac
24164 # CONFIG_HEADER
24166 _ACEOF
24168 # Transform confdefs.h into a sed script `conftest.defines', that
24169 # substitutes the proper values into config.h.in to produce config.h.
24170 rm -f conftest.defines conftest.tail
24171 # First, append a space to every undef/define line, to ease matching.
24172 echo 's/$/ /' >conftest.defines
24173 # Then, protect against being on the right side of a sed subst, or in
24174 # an unquoted here document, in config.status. If some macros were
24175 # called several times there might be several #defines for the same
24176 # symbol, which is useless. But do not sort them, since the last
24177 # AC_DEFINE must be honored.
24178 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24179 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24180 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24181 # PARAMS is the parameter list in the macro definition--in most cases, it's
24182 # just an empty string.
24183 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24184 ac_dB='\\)[ (].*,\\1define\\2'
24185 ac_dC=' '
24186 ac_dD=' ,'
24188 uniq confdefs.h |
24189 sed -n '
24190 t rset
24191 :rset
24192 s/^[ ]*#[ ]*define[ ][ ]*//
24193 t ok
24196 s/[\\&,]/\\&/g
24197 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24198 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24199 ' >>conftest.defines
24201 # Remove the space that was appended to ease matching.
24202 # Then replace #undef with comments. This is necessary, for
24203 # example, in the case of _POSIX_SOURCE, which is predefined and required
24204 # on some systems where configure will not decide to define it.
24205 # (The regexp can be short, since the line contains either #define or #undef.)
24206 echo 's/ $//
24207 s,^[ #]*u.*,/* & */,' >>conftest.defines
24209 # Break up conftest.defines:
24210 ac_max_sed_lines=50
24212 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24213 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24214 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24215 # et cetera.
24216 ac_in='$ac_file_inputs'
24217 ac_out='"$tmp/out1"'
24218 ac_nxt='"$tmp/out2"'
24220 while :
24222 # Write a here document:
24223 cat >>$CONFIG_STATUS <<_ACEOF
24224 # First, check the format of the line:
24225 cat >"\$tmp/defines.sed" <<\\CEOF
24226 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24227 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24229 :def
24230 _ACEOF
24231 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24232 echo 'CEOF
24233 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24234 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24235 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24236 grep . conftest.tail >/dev/null || break
24237 rm -f conftest.defines
24238 mv conftest.tail conftest.defines
24239 done
24240 rm -f conftest.defines conftest.tail
24242 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24243 cat >>$CONFIG_STATUS <<\_ACEOF
24244 if test x"$ac_file" != x-; then
24245 echo "/* $configure_input */" >"$tmp/config.h"
24246 cat "$ac_result" >>"$tmp/config.h"
24247 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24248 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24249 echo "$as_me: $ac_file is unchanged" >&6;}
24250 else
24251 rm -f $ac_file
24252 mv "$tmp/config.h" $ac_file
24254 else
24255 echo "/* $configure_input */"
24256 cat "$ac_result"
24258 rm -f "$tmp/out12"
24261 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24262 echo "$as_me: executing $ac_file commands" >&6;}
24264 esac
24267 case $ac_file$ac_mode in
24268 "default":C)
24270 ### Make the necessary directories, if they don't exist.
24271 for dir in etc lisp ; do
24272 test -d ${dir} || mkdir ${dir}
24273 done
24275 # Build src/Makefile from ${srcdir}/src/Makefile.c
24276 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24277 # This must be done after src/config.h is built, since we rely on that file.
24279 # Now get this: Some word that is part of the ${srcdir} directory name
24280 # or the ${configuration} value might, just might, happen to be an
24281 # identifier like `sun4' or `i386' or something, and be predefined by
24282 # the C preprocessor to some helpful value like 1, or maybe the empty
24283 # string. Needless to say consequent macro substitutions are less
24284 # than conducive to the makefile finding the correct directory.
24285 undefs="`echo $top_srcdir $configuration $canonical |
24286 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24287 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24290 echo creating src/epaths.h
24291 ${MAKE-make} epaths-force
24293 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24294 # `..' to `. .' unless invoked with -traditional
24296 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24297 CPPFLAGS="$CPPFLAGS -traditional"
24300 echo creating lib-src/Makefile
24301 ( cd lib-src
24302 rm -f junk.c junk1.c junk2.c
24303 sed -e '/start of cpp stuff/q' \
24304 < Makefile.c > junk1.c
24305 sed -e '1,/start of cpp stuff/d'\
24306 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24307 < Makefile.c > junk.c
24308 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24309 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24310 cat junk1.c junk2.c > Makefile.new
24311 rm -f junk.c junk1.c junk2.c
24312 chmod 444 Makefile.new
24313 mv -f Makefile.new Makefile
24316 echo creating src/Makefile
24317 ( cd src
24318 rm -f junk.c junk1.c junk2.c
24319 sed -e '/start of cpp stuff/q' \
24320 < Makefile.c > junk1.c
24321 sed -e '1,/start of cpp stuff/d'\
24322 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24323 < Makefile.c > junk.c
24324 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24325 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24326 cat junk1.c junk2.c > Makefile.new
24327 rm -f junk.c junk1.c junk2.c
24328 chmod 444 Makefile.new
24329 mv -f Makefile.new Makefile
24332 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24333 echo creating src/.gdbinit
24334 echo source $srcdir/src/.gdbinit > src/.gdbinit
24337 # This is how we know whether to re-run configure in certain cases.
24338 touch src/config.stamp
24342 esac
24343 done # for ac_tag
24346 { (exit 0); exit 0; }
24347 _ACEOF
24348 chmod +x $CONFIG_STATUS
24349 ac_clean_files=$ac_clean_files_save
24352 # configure is writing to config.log, and then calls config.status.
24353 # config.status does its own redirection, appending to config.log.
24354 # Unfortunately, on DOS this fails, as config.log is still kept open
24355 # by configure, so config.status won't be able to write to it; its
24356 # output is simply discarded. So we exec the FD to /dev/null,
24357 # effectively closing config.log, so it can be properly (re)opened and
24358 # appended to by config.status. When coming back to configure, we
24359 # need to make the FD available again.
24360 if test "$no_create" != yes; then
24361 ac_cs_success=:
24362 ac_config_status_args=
24363 test "$silent" = yes &&
24364 ac_config_status_args="$ac_config_status_args --quiet"
24365 exec 5>/dev/null
24366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24367 exec 5>>config.log
24368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24369 # would make configure fail if this is the last instruction.
24370 $ac_cs_success || { (exit 1); exit 1; }