Place-holder entry for nXML.
[emacs.git] / configure
blobb2ea135388bea1a6f1403ae88807408c21471739
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 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 XFT_CFLAGS
696 XFT_LIBS
697 ALLOCA
698 liblockfile
699 LIBOBJS
700 NEED_SETGID
701 KMEM_GROUP
702 GETLOADAVG_LIBS
703 GETOPT_H
704 GETOPTOBJS
705 version
706 configuration
707 canonical
708 srcdir
709 lispdir
710 locallisppath
711 lisppath
712 x_default_search_path
713 etcdir
714 archlibdir
715 bitmapdir
716 gamedir
717 gameuser
718 c_switch_system
719 c_switch_machine
720 LD_SWITCH_X_SITE
721 LD_SWITCH_X_SITE_AUX
722 C_SWITCH_X_SITE
723 X_TOOLKIT_TYPE
724 machfile
725 opsysfile
726 carbon_appdir
727 LTLIBOBJS'
728 ac_subst_files=''
729 ac_precious_vars='build_alias
730 host_alias
731 target_alias
733 CFLAGS
734 LDFLAGS
735 LIBS
736 CPPFLAGS
738 XMKMF'
741 # Initialize some variables set by options.
742 ac_init_help=
743 ac_init_version=false
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
746 cache_file=/dev/null
747 exec_prefix=NONE
748 no_create=
749 no_recursion=
750 prefix=NONE
751 program_prefix=NONE
752 program_suffix=NONE
753 program_transform_name=s,x,x,
754 silent=
755 site=
756 srcdir=
757 verbose=
758 x_includes=NONE
759 x_libraries=NONE
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 includedir='${prefix}/include'
776 oldincludedir='/usr/include'
777 docdir='${datarootdir}/doc/${PACKAGE}'
778 infodir='${datarootdir}/info'
779 htmldir='${docdir}'
780 dvidir='${docdir}'
781 pdfdir='${docdir}'
782 psdir='${docdir}'
783 libdir='${exec_prefix}/lib'
784 localedir='${datarootdir}/locale'
785 mandir='${datarootdir}/man'
787 ac_prev=
788 ac_dashdash=
789 for ac_option
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
794 ac_prev=
795 continue
798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
803 # Accept the important Cygnus configure options, so we can diagnose typos.
805 case $ac_dashdash$ac_option in
807 ac_dashdash=yes ;;
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
826 --config-cache | -C)
827 cache_file=config.cache ;;
829 -datadir | --datadir | --datadi | --datad)
830 ac_prev=datadir ;;
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
841 -disable-* | --disable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_$ac_feature=no ;;
850 -docdir | --docdir | --docdi | --doc | --do)
851 ac_prev=docdir ;;
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 docdir=$ac_optarg ;;
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 ac_prev=dvidir ;;
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 dvidir=$ac_optarg ;;
860 -enable-* | --enable-*)
861 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
867 eval enable_$ac_feature=\$ac_optarg ;;
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
947 no_create=yes ;;
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1057 -with-* | --with-*)
1058 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_$ac_package=\$ac_optarg ;;
1066 -without-* | --without-*)
1067 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=no ;;
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094 Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1098 *=*)
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 esac
1116 done
1118 if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1124 # Be sure to have absolute directory names.
1125 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1130 eval ac_val=\$$ac_var
1131 case $ac_val in
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 esac
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1137 done
1139 # There might be people who depend on the old broken behavior: `$host'
1140 # used to hold the argument of --host etc.
1141 # FIXME: To remove some day.
1142 build=$build_alias
1143 host=$host_alias
1144 target=$target_alias
1146 # FIXME: To remove some day.
1147 if test "x$host_alias" != x; then
1148 if test "x$build_alias" = x; then
1149 cross_compiling=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1157 ac_tool_prefix=
1158 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1160 test "$silent" = yes && exec 6>/dev/null
1163 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164 ac_ls_di=`ls -di .` &&
1165 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1173 # Find the source files, if location was not specified.
1174 if test -z "$srcdir"; then
1175 ac_srcdir_defaulted=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir=`$as_dirname -- "$0" ||
1178 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182 echo X"$0" |
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1187 /^X\(\/\/\)[^/].*/{
1188 s//\1/
1191 /^X\(\/\/\)$/{
1192 s//\1/
1195 /^X\(\/\).*/{
1196 s//\1/
1199 s/.*/./; q'`
1200 srcdir=$ac_confdir
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 srcdir=..
1204 else
1205 ac_srcdir_defaulted=no
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1212 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213 ac_abs_confdir=`(
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1216 pwd)`
1217 # When building in place, set srcdir=.
1218 if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1221 # Remove unnecessary trailing slashes from srcdir.
1222 # Double slashes in file names in object file debugging info
1223 # mess up M-x gdb in Emacs.
1224 case $srcdir in
1225 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226 esac
1227 for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232 done
1235 # Report the --help message.
1237 if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241 \`configure' configures this package to adapt to many kinds of systems.
1243 Usage: $0 [OPTION]... [VAR=VALUE]...
1245 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246 VAR=VALUE. See below for descriptions of some of the useful variables.
1248 Defaults for the options are specified in brackets.
1250 Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261 Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1267 By default, \`make install' will install all the files in
1268 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270 for instance \`--prefix=\$HOME'.
1272 For better control, use the options below.
1274 Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294 _ACEOF
1296 cat <<\_ACEOF
1298 Program names:
1299 --program-prefix=PREFIX prepend PREFIX to installed program names
1300 --program-suffix=SUFFIX append SUFFIX to installed program names
1301 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1303 X features:
1304 --x-includes=DIR X include files are in DIR
1305 --x-libraries=DIR X library files are in DIR
1307 System types:
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310 _ACEOF
1313 if test -n "$ac_init_help"; then
1315 cat <<\_ACEOF
1317 Optional Features:
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-carbon-app[=DIR]
1321 specify install directory for Emacs.app on Mac OS X
1322 [DIR=/Application]
1323 --enable-asserts compile code with asserts enabled
1324 --enable-maintainer-mode
1325 enable make rules and dependencies not useful (and
1326 sometimes confusing) to the casual installer
1327 --enable-locallisppath=PATH
1328 directories Emacs should search for lisp files
1329 specific to this site
1330 --disable-largefile omit support for large files
1332 Optional Packages:
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --without-gcc don't use GCC to compile Emacs if GCC is found
1336 --without-pop don't support POP mail retrieval with movemail
1337 --with-kerberos support Kerberos-authenticated POP
1338 --with-kerberos5 support Kerberos version 5 authenticated POP
1339 --with-hesiod support Hesiod to get the POP server host
1340 --without-sound don't compile with sound support
1341 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1342 motif, gtk, no)
1343 --with-xpm use -lXpm for displaying XPM images
1344 --with-jpeg use -ljpeg for displaying JPEG images
1345 --with-tiff use -ltiff for displaying TIFF images
1346 --with-gif use -lgif (or -lungif) for displaying GIF images
1347 --with-png use -lpng for displaying PNG images
1348 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1349 --with-rsvg use -lrsvg-2 for displaying SVG images
1350 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1351 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1352 --without-toolkit-scroll-bars
1353 don't use Motif or Xaw3d scroll bars
1354 --without-xaw3d don't use Xaw3d
1355 --without-xim don't use X11 XIM
1356 --without-carbon don't use Carbon GUI on Mac OS X
1357 --with-x use the X Window System
1359 Some influential environment variables:
1360 CC C compiler command
1361 CFLAGS C compiler flags
1362 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1363 nonstandard directory <lib dir>
1364 LIBS libraries to pass to the linker, e.g. -l<library>
1365 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1366 you have headers in a nonstandard directory <include dir>
1367 CPP C preprocessor
1368 XMKMF Path to xmkmf, Makefile generator for X Window System
1370 Use these variables to override the choices made by `configure' or to help
1371 it to find libraries and programs with nonstandard names/locations.
1373 _ACEOF
1374 ac_status=$?
1377 if test "$ac_init_help" = "recursive"; then
1378 # If there are subdirs, report their specific --help.
1379 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1380 test -d "$ac_dir" || continue
1381 ac_builddir=.
1383 case "$ac_dir" in
1384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1386 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1387 # A ".." for each directory in $ac_dir_suffix.
1388 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1389 case $ac_top_builddir_sub in
1390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392 esac ;;
1393 esac
1394 ac_abs_top_builddir=$ac_pwd
1395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1396 # for backward compatibility:
1397 ac_top_builddir=$ac_top_build_prefix
1399 case $srcdir in
1400 .) # We are building in place.
1401 ac_srcdir=.
1402 ac_top_srcdir=$ac_top_builddir_sub
1403 ac_abs_top_srcdir=$ac_pwd ;;
1404 [\\/]* | ?:[\\/]* ) # Absolute name.
1405 ac_srcdir=$srcdir$ac_dir_suffix;
1406 ac_top_srcdir=$srcdir
1407 ac_abs_top_srcdir=$srcdir ;;
1408 *) # Relative name.
1409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1410 ac_top_srcdir=$ac_top_build_prefix$srcdir
1411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1412 esac
1413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1415 cd "$ac_dir" || { ac_status=$?; continue; }
1416 # Check for guested configure.
1417 if test -f "$ac_srcdir/configure.gnu"; then
1418 echo &&
1419 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1420 elif test -f "$ac_srcdir/configure"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure" --help=recursive
1423 else
1424 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1425 fi || ac_status=$?
1426 cd "$ac_pwd" || { ac_status=$?; break; }
1427 done
1430 test -n "$ac_init_help" && exit $ac_status
1431 if $ac_init_version; then
1432 cat <<\_ACEOF
1433 configure
1434 generated by GNU Autoconf 2.61
1436 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1437 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1438 This configure script is free software; the Free Software Foundation
1439 gives unlimited permission to copy, distribute and modify it.
1440 _ACEOF
1441 exit
1443 cat >config.log <<_ACEOF
1444 This file contains any messages produced by compilers while
1445 running configure, to aid debugging if configure makes a mistake.
1447 It was created by $as_me, which was
1448 generated by GNU Autoconf 2.61. Invocation command line was
1450 $ $0 $@
1452 _ACEOF
1453 exec 5>>config.log
1455 cat <<_ASUNAME
1456 ## --------- ##
1457 ## Platform. ##
1458 ## --------- ##
1460 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1461 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1462 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1463 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1464 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1466 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1467 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1469 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1470 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1471 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1472 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1473 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1474 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1475 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1477 _ASUNAME
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 echo "PATH: $as_dir"
1485 done
1486 IFS=$as_save_IFS
1488 } >&5
1490 cat >&5 <<_ACEOF
1493 ## ----------- ##
1494 ## Core tests. ##
1495 ## ----------- ##
1497 _ACEOF
1500 # Keep a trace of the command line.
1501 # Strip out --no-create and --no-recursion so they do not pile up.
1502 # Strip out --silent because we don't want to record it for future runs.
1503 # Also quote any args containing shell meta-characters.
1504 # Make two passes to allow for proper duplicate-argument suppression.
1505 ac_configure_args=
1506 ac_configure_args0=
1507 ac_configure_args1=
1508 ac_must_keep_next=false
1509 for ac_pass in 1 2
1511 for ac_arg
1513 case $ac_arg in
1514 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1516 | -silent | --silent | --silen | --sile | --sil)
1517 continue ;;
1518 *\'*)
1519 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1520 esac
1521 case $ac_pass in
1522 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1524 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1525 if test $ac_must_keep_next = true; then
1526 ac_must_keep_next=false # Got value, back to normal.
1527 else
1528 case $ac_arg in
1529 *=* | --config-cache | -C | -disable-* | --disable-* \
1530 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1531 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1532 | -with-* | --with-* | -without-* | --without-* | --x)
1533 case "$ac_configure_args0 " in
1534 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1535 esac
1537 -* ) ac_must_keep_next=true ;;
1538 esac
1540 ac_configure_args="$ac_configure_args '$ac_arg'"
1542 esac
1543 done
1544 done
1545 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1546 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1548 # When interrupted or exit'd, cleanup temporary files, and complete
1549 # config.log. We remove comments because anyway the quotes in there
1550 # would cause problems or look ugly.
1551 # WARNING: Use '\'' to represent an apostrophe within the trap.
1552 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1553 trap 'exit_status=$?
1554 # Save into config.log some information that might help in debugging.
1556 echo
1558 cat <<\_ASBOX
1559 ## ---------------- ##
1560 ## Cache variables. ##
1561 ## ---------------- ##
1562 _ASBOX
1563 echo
1564 # The following way of writing the cache mishandles newlines in values,
1566 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1567 eval ac_val=\$$ac_var
1568 case $ac_val in #(
1569 *${as_nl}*)
1570 case $ac_var in #(
1571 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1572 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1573 esac
1574 case $ac_var in #(
1575 _ | IFS | as_nl) ;; #(
1576 *) $as_unset $ac_var ;;
1577 esac ;;
1578 esac
1579 done
1580 (set) 2>&1 |
1581 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1582 *${as_nl}ac_space=\ *)
1583 sed -n \
1584 "s/'\''/'\''\\\\'\'''\''/g;
1585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1586 ;; #(
1588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1590 esac |
1591 sort
1593 echo
1595 cat <<\_ASBOX
1596 ## ----------------- ##
1597 ## Output variables. ##
1598 ## ----------------- ##
1599 _ASBOX
1600 echo
1601 for ac_var in $ac_subst_vars
1603 eval ac_val=\$$ac_var
1604 case $ac_val in
1605 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1606 esac
1607 echo "$ac_var='\''$ac_val'\''"
1608 done | sort
1609 echo
1611 if test -n "$ac_subst_files"; then
1612 cat <<\_ASBOX
1613 ## ------------------- ##
1614 ## File substitutions. ##
1615 ## ------------------- ##
1616 _ASBOX
1617 echo
1618 for ac_var in $ac_subst_files
1620 eval ac_val=\$$ac_var
1621 case $ac_val in
1622 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1623 esac
1624 echo "$ac_var='\''$ac_val'\''"
1625 done | sort
1626 echo
1629 if test -s confdefs.h; then
1630 cat <<\_ASBOX
1631 ## ----------- ##
1632 ## confdefs.h. ##
1633 ## ----------- ##
1634 _ASBOX
1635 echo
1636 cat confdefs.h
1637 echo
1639 test "$ac_signal" != 0 &&
1640 echo "$as_me: caught signal $ac_signal"
1641 echo "$as_me: exit $exit_status"
1642 } >&5
1643 rm -f core *.core core.conftest.* &&
1644 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1645 exit $exit_status
1647 for ac_signal in 1 2 13 15; do
1648 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1649 done
1650 ac_signal=0
1652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1653 rm -f -r conftest* confdefs.h
1655 # Predefined preprocessor variables.
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_NAME "$PACKAGE_NAME"
1659 _ACEOF
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1664 _ACEOF
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1669 _ACEOF
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_STRING "$PACKAGE_STRING"
1674 _ACEOF
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1679 _ACEOF
1682 # Let the site file select an alternate cache file if it wants to.
1683 # Prefer explicitly selected file to automatically selected ones.
1684 if test -n "$CONFIG_SITE"; then
1685 set x "$CONFIG_SITE"
1686 elif test "x$prefix" != xNONE; then
1687 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1688 else
1689 set x "$ac_default_prefix/share/config.site" \
1690 "$ac_default_prefix/etc/config.site"
1692 shift
1693 for ac_site_file
1695 if test -r "$ac_site_file"; then
1696 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1697 echo "$as_me: loading site script $ac_site_file" >&6;}
1698 sed 's/^/| /' "$ac_site_file" >&5
1699 . "$ac_site_file"
1701 done
1703 if test -r "$cache_file"; then
1704 # Some versions of bash will fail to source /dev/null (special
1705 # files actually), so we avoid doing that.
1706 if test -f "$cache_file"; then
1707 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1708 echo "$as_me: loading cache $cache_file" >&6;}
1709 case $cache_file in
1710 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1711 *) . "./$cache_file";;
1712 esac
1714 else
1715 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1716 echo "$as_me: creating cache $cache_file" >&6;}
1717 >$cache_file
1720 ac_header_list="$ac_header_list sys/time.h"
1721 ac_header_list="$ac_header_list unistd.h"
1722 ac_func_list="$ac_func_list alarm"
1723 # Check that the precious variables saved in the cache have kept the same
1724 # value.
1725 ac_cache_corrupted=false
1726 for ac_var in $ac_precious_vars; do
1727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1728 eval ac_new_set=\$ac_env_${ac_var}_set
1729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1730 eval ac_new_val=\$ac_env_${ac_var}_value
1731 case $ac_old_set,$ac_new_set in
1732 set,)
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1734 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1736 ,set)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1738 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,);;
1742 if test "x$ac_old_val" != "x$ac_new_val"; then
1743 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1744 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1745 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1746 echo "$as_me: former value: $ac_old_val" >&2;}
1747 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1748 echo "$as_me: current value: $ac_new_val" >&2;}
1749 ac_cache_corrupted=:
1750 fi;;
1751 esac
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1754 case $ac_new_val in
1755 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 *) ac_arg=$ac_var=$ac_new_val ;;
1757 esac
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1761 esac
1763 done
1764 if $ac_cache_corrupted; then
1765 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1766 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1767 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1768 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1769 { (exit 1); exit 1; }; }
1788 ac_ext=c
1789 ac_cpp='$CPP $CPPFLAGS'
1790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1798 test "$program_prefix" != NONE &&
1799 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1800 # Use a double $ so make ignores it.
1801 test "$program_suffix" != NONE &&
1802 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1803 # Double any \ or $. echo might interpret backslashes.
1804 # By default was `s,x,x', remove it if useless.
1805 cat <<\_ACEOF >conftest.sed
1806 s/[\\$]/&&/g;s/;s,x,x,$//
1807 _ACEOF
1808 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1809 rm -f conftest.sed
1812 lispdir='${datadir}/emacs/${version}/lisp'
1813 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1814 '${datadir}/emacs/site-lisp'
1815 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1816 etcdir='${datadir}/emacs/${version}/etc'
1817 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1818 docdir='${datadir}/emacs/${version}/etc'
1819 gamedir='${localstatedir}/games/emacs'
1821 gameuser=games
1825 # Check whether --with-gcc was given.
1826 if test "${with_gcc+set}" = set; then
1827 withval=$with_gcc;
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1837 _ACEOF
1839 else :
1841 else
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1844 _ACEOF
1851 # Check whether --with-kerberos was given.
1852 if test "${with_kerberos+set}" = set; then
1853 withval=$with_kerberos; if test "$withval" = yes; then
1854 cat >>confdefs.h <<\_ACEOF
1855 #define KERBEROS 1
1856 _ACEOF
1864 # Check whether --with-kerberos5 was given.
1865 if test "${with_kerberos5+set}" = set; then
1866 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1867 if test "${with_kerberos+set}" != set; then
1868 with_kerberos=yes
1869 cat >>confdefs.h <<\_ACEOF
1870 #define KERBEROS 1
1871 _ACEOF
1875 cat >>confdefs.h <<\_ACEOF
1876 #define KERBEROS5 1
1877 _ACEOF
1884 # Check whether --with-hesiod was given.
1885 if test "${with_hesiod+set}" = set; then
1886 withval=$with_hesiod; if test "$withval" = yes; then
1888 cat >>confdefs.h <<\_ACEOF
1889 #define HESIOD 1
1890 _ACEOF
1897 # Check whether --with-sound was given.
1898 if test "${with_sound+set}" = set; then
1899 withval=$with_sound;
1904 # Check whether --with-x-toolkit was given.
1905 if test "${with_x_toolkit+set}" = set; then
1906 withval=$with_x_toolkit; case "${withval}" in
1907 y | ye | yes ) val=gtk ;;
1908 n | no ) val=no ;;
1909 l | lu | luc | luci | lucid ) val=lucid ;;
1910 a | at | ath | athe | athen | athena ) val=athena ;;
1911 m | mo | mot | moti | motif ) val=motif ;;
1912 g | gt | gtk ) val=gtk ;;
1914 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1915 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1916 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1917 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1918 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1919 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1920 { (exit 1); exit 1; }; }
1922 esac
1923 with_x_toolkit=$val
1929 # Check whether --with-xpm was given.
1930 if test "${with_xpm+set}" = set; then
1931 withval=$with_xpm;
1935 # Check whether --with-jpeg was given.
1936 if test "${with_jpeg+set}" = set; then
1937 withval=$with_jpeg;
1941 # Check whether --with-tiff was given.
1942 if test "${with_tiff+set}" = set; then
1943 withval=$with_tiff;
1947 # Check whether --with-gif was given.
1948 if test "${with_gif+set}" = set; then
1949 withval=$with_gif;
1953 # Check whether --with-png was given.
1954 if test "${with_png+set}" = set; then
1955 withval=$with_png;
1959 # Check whether --with-gpm was given.
1960 if test "${with_gpm+set}" = set; then
1961 withval=$with_gpm;
1965 # Check whether --with-rsvg was given.
1966 if test "${with_rsvg+set}" = set; then
1967 withval=$with_rsvg;
1971 # Check whether --with-gtk was given.
1972 if test "${with_gtk+set}" = set; then
1973 withval=$with_gtk;
1977 # Check whether --with-pkg-config-prog was given.
1978 if test "${with_pkg_config_prog+set}" = set; then
1979 withval=$with_pkg_config_prog;
1983 # Check whether --with-toolkit-scroll-bars was given.
1984 if test "${with_toolkit_scroll_bars+set}" = set; then
1985 withval=$with_toolkit_scroll_bars;
1989 # Check whether --with-xaw3d was given.
1990 if test "${with_xaw3d+set}" = set; then
1991 withval=$with_xaw3d;
1995 # Check whether --with-xim was given.
1996 if test "${with_xim+set}" = set; then
1997 withval=$with_xim;
2001 # Check whether --with-carbon was given.
2002 if test "${with_carbon+set}" = set; then
2003 withval=$with_carbon;
2007 # Check whether --enable-carbon-app was given.
2008 if test "${enable_carbon_app+set}" = set; then
2009 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2013 # Check whether --enable-asserts was given.
2014 if test "${enable_asserts+set}" = set; then
2015 enableval=$enable_asserts; USE_XASSERTS=$enableval
2016 else
2017 USE_XASSERTS=no
2021 # Check whether --enable-maintainer-mode was given.
2022 if test "${enable_maintainer_mode+set}" = set; then
2023 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2024 else
2025 USE_MAINTAINER_MODE=no
2028 if test $USE_MAINTAINER_MODE = yes; then
2029 MAINT=
2030 else
2031 MAINT=#
2035 # Check whether --enable-locallisppath was given.
2036 if test "${enable_locallisppath+set}" = set; then
2037 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2038 locallisppath=
2039 elif test "${enableval}" != "yes"; then
2040 locallisppath=${enableval}
2045 #### Make srcdir absolute, if it isn't already. It's important to
2046 #### avoid running the path through pwd unnecessarily, since pwd can
2047 #### give you automounter prefixes, which can go away. We do all this
2048 #### so Emacs can find its files when run uninstalled.
2049 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2050 unset CDPATH
2051 case "${srcdir}" in
2052 /* ) ;;
2054 ## We may be able to use the $PWD environment variable to make this
2055 ## absolute. But sometimes PWD is inaccurate.
2056 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2057 ## but that tested only for a well-formed and valid PWD,
2058 ## it did not object when PWD was well-formed and valid but just wrong.
2059 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2060 then
2061 srcdir="$PWD"
2062 else
2063 srcdir="`(cd ${srcdir}; pwd)`"
2066 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2067 esac
2069 #### Check if the source directory already has a configured system in it.
2070 if test `pwd` != `(cd ${srcdir} && pwd)` \
2071 && test -f "${srcdir}/src/config.h" ; then
2072 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2073 as a build directory right now; it has been configured in its own
2074 right. To configure in another directory as well, you MUST
2075 use GNU make. If you do not have GNU make, then you must
2076 now do \`make distclean' in ${srcdir},
2077 and then run $0 again." >&5
2078 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2079 as a build directory right now; it has been configured in its own
2080 right. To configure in another directory as well, you MUST
2081 use GNU make. If you do not have GNU make, then you must
2082 now do \`make distclean' in ${srcdir},
2083 and then run $0 again." >&2;}
2086 #### Given the configuration name, set machfile and opsysfile to the
2087 #### names of the m/*.h and s/*.h files we should use.
2089 ### Canonicalize the configuration name.
2091 ac_aux_dir=
2092 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2093 if test -f "$ac_dir/install-sh"; then
2094 ac_aux_dir=$ac_dir
2095 ac_install_sh="$ac_aux_dir/install-sh -c"
2096 break
2097 elif test -f "$ac_dir/install.sh"; then
2098 ac_aux_dir=$ac_dir
2099 ac_install_sh="$ac_aux_dir/install.sh -c"
2100 break
2101 elif test -f "$ac_dir/shtool"; then
2102 ac_aux_dir=$ac_dir
2103 ac_install_sh="$ac_aux_dir/shtool install -c"
2104 break
2106 done
2107 if test -z "$ac_aux_dir"; then
2108 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2109 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2110 { (exit 1); exit 1; }; }
2113 # These three variables are undocumented and unsupported,
2114 # and are intended to be withdrawn in a future Autoconf release.
2115 # They can cause serious problems if a builder's source tree is in a directory
2116 # whose full name contains unusual characters.
2117 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2118 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2119 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2122 # Make sure we can run config.sub.
2123 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2124 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2125 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2126 { (exit 1); exit 1; }; }
2128 { echo "$as_me:$LINENO: checking build system type" >&5
2129 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_build+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 ac_build_alias=$build_alias
2134 test "x$ac_build_alias" = x &&
2135 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2136 test "x$ac_build_alias" = x &&
2137 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139 { (exit 1); exit 1; }; }
2140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2141 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2142 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147 echo "${ECHO_T}$ac_cv_build" >&6; }
2148 case $ac_cv_build in
2149 *-*-*) ;;
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2151 echo "$as_me: error: invalid value of canonical build" >&2;}
2152 { (exit 1); exit 1; }; };;
2153 esac
2154 build=$ac_cv_build
2155 ac_save_IFS=$IFS; IFS='-'
2156 set x $ac_cv_build
2157 shift
2158 build_cpu=$1
2159 build_vendor=$2
2160 shift; shift
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2163 build_os=$*
2164 IFS=$ac_save_IFS
2165 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2168 { echo "$as_me:$LINENO: checking host system type" >&5
2169 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_host+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test "x$host_alias" = x; then
2174 ac_cv_host=$ac_cv_build
2175 else
2176 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2178 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2179 { (exit 1); exit 1; }; }
2183 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184 echo "${ECHO_T}$ac_cv_host" >&6; }
2185 case $ac_cv_host in
2186 *-*-*) ;;
2187 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2188 echo "$as_me: error: invalid value of canonical host" >&2;}
2189 { (exit 1); exit 1; }; };;
2190 esac
2191 host=$ac_cv_host
2192 ac_save_IFS=$IFS; IFS='-'
2193 set x $ac_cv_host
2194 shift
2195 host_cpu=$1
2196 host_vendor=$2
2197 shift; shift
2198 # Remember, the first character of IFS is used to create $*,
2199 # except with old shells:
2200 host_os=$*
2201 IFS=$ac_save_IFS
2202 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2205 canonical=$host
2206 configuration=${host_alias-${build_alias-$host}}
2210 ### If you add support for a new configuration, add code to this
2211 ### switch statement to recognize your configuration name and select
2212 ### the appropriate operating system and machine description files.
2214 ### You would hope that you could choose an m/*.h file pretty much
2215 ### based on the machine portion of the configuration name, and an s-
2216 ### file based on the operating system portion. However, it turns out
2217 ### that each m/*.h file is pretty manufacturer-specific - for
2218 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2219 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2220 ### machines. So we basically have to have a special case for each
2221 ### configuration name.
2223 ### As far as handling version numbers on operating systems is
2224 ### concerned, make sure things will fail in a fixable way. If
2225 ### /etc/MACHINES doesn't say anything about version numbers, be
2226 ### prepared to handle anything reasonably. If version numbers
2227 ### matter, be sure /etc/MACHINES says something about it.
2229 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2230 ### "System V Release 4"; he writes, "The old convention encouraged
2231 ### confusion between `system' and `release' levels'."
2233 machine='' opsys='' unported=no
2234 case "${canonical}" in
2236 ## FreeBSD ports
2237 *-*-freebsd* )
2238 opsys=freebsd
2239 case "${canonical}" in
2240 alpha*-*-freebsd*) machine=alpha ;;
2241 ia64-*-freebsd*) machine=ia64 ;;
2242 sparc64-*-freebsd*) machine=sparc ;;
2243 powerpc-*-freebsd*) machine=macppc ;;
2244 i[3456]86-*-freebsd*) machine=intel386 ;;
2245 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2246 esac
2249 ## NetBSD ports
2250 *-*-netbsd* )
2251 opsys=netbsd
2252 if test -f /usr/lib/crti.o; then
2254 cat >>confdefs.h <<\_ACEOF
2255 #define HAVE_CRTIN
2256 _ACEOF
2260 case "${canonical}" in
2261 alpha*-*-netbsd*) machine=alpha ;;
2262 i[3456]86-*-netbsd*) machine=intel386 ;;
2263 m68k-*-netbsd*)
2264 # This is somewhat bogus.
2265 machine=hp9000s300 ;;
2266 mips-*-netbsd*) machine=pmax ;;
2267 mipsel-*-netbsd*) machine=pmax ;;
2268 mipseb-*-netbsd*) machine=pmax ;;
2269 ns32k-*-netbsd*) machine=ns32000 ;;
2270 powerpc-*-netbsd*) machine=macppc ;;
2271 sparc*-*-netbsd*) machine=sparc ;;
2272 vax-*-netbsd*) machine=vax ;;
2273 arm-*-netbsd*) machine=arm ;;
2274 x86_64-*-netbsd*) machine=amdx86-64 ;;
2275 hppa-*-netbsd*) machine=hp800 ;;
2276 shle-*-netbsd*) machine=sh3el ;;
2277 esac
2280 ## OpenBSD ports
2281 *-*-openbsd* )
2282 opsys=openbsd
2283 case "${canonical}" in
2284 alpha*-*-openbsd*) machine=alpha ;;
2285 arm-*-openbsd*) machine=arm ;;
2286 hppa-*-openbsd*) machine=hp9000s300 ;;
2287 i386-*-openbsd*) machine=intel386 ;;
2288 m68k-*-openbsd*) machine=hp9000s300 ;;
2289 m88k-*-openbsd*) machine=aviion ;;
2290 mips64-*-openbsd*) machine=mips64 ;;
2291 powerpc-*-openbsd*) machine=macppc ;;
2292 sh-*-openbsd*) machine=sh3el ;;
2293 sparc*-*-openbsd*) machine=sparc ;;
2294 vax-*-openbsd*) machine=vax ;;
2295 x86_64-*-openbsd*) machine=amdx86-64 ;;
2296 esac
2299 ## LynxOS ports
2300 *-*-lynxos* )
2301 opsys=lynxos
2302 case "${canonical}" in
2303 i[3456]86-*-lynxos*) machine=intel386 ;;
2304 powerpc-*-lynxos*) machine=powerpc ;;
2305 esac
2308 ## Acorn RISCiX:
2309 arm-acorn-riscix1.1* )
2310 machine=acorn opsys=riscix1-1
2312 arm-acorn-riscix1.2* | arm-acorn-riscix )
2313 ## This name is riscix12 instead of riscix1.2
2314 ## to avoid a file name conflict on MSDOS.
2315 machine=acorn opsys=riscix12
2318 ## BSDI ports
2319 *-*-bsdi* )
2320 opsys=bsdi
2321 case "${canonical}" in
2322 i[345]86-*-bsdi*) machine=intel386 ;;
2323 sparc-*-bsdi*) machine=sparc ;;
2324 powerpc-*-bsdi*) machine=macppc ;;
2325 esac
2326 case "${canonical}" in
2327 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2328 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2329 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2330 *-*-bsdi3* ) opsys=bsdos3 ;;
2331 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2332 esac
2335 ## Alliant machines
2336 ## Strictly speaking, we need the version of the alliant operating
2337 ## system to choose the right machine file, but currently the
2338 ## configuration name doesn't tell us enough to choose the right
2339 ## one; we need to give alliants their own operating system name to
2340 ## do this right. When someone cares, they can help us.
2341 fx80-alliant-* )
2342 machine=alliant4 opsys=bsd4-2
2344 i860-alliant-* )
2345 machine=alliant-2800 opsys=bsd4-3
2348 ## Alpha (DEC) machines.
2349 alpha*-dec-osf* )
2350 machine=alpha opsys=osf1
2351 # This is needed to find X11R6.1 libraries for certain tests.
2352 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2353 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2354 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2355 # due to non-traditional preprocessing with the current compiler
2356 # defaults. OSF 4 can also have that compiler version, and there
2357 # seems always to have been a usable /usr/bin/cpp.
2358 NON_GNU_CPP=/usr/bin/cpp
2359 case "${canonical}" in
2360 alpha*-dec-osf[5-9]*)
2361 opsys=osf5-0 ;;
2362 esac
2365 alpha*-*-linux-gnu* )
2366 machine=alpha opsys=gnu-linux
2369 arm*-*-linux-gnu* )
2370 machine=arm opsys=gnu-linux
2373 ## Altos 3068
2374 m68*-altos-sysv* )
2375 machine=altos opsys=usg5-2
2378 ## Amdahl UTS
2379 580-amdahl-sysv* )
2380 machine=amdahl opsys=usg5-2-2
2383 ## Apollo, Domain/OS
2384 m68*-apollo-* )
2385 machine=apollo opsys=bsd4-3
2388 ## Apple Darwin / Mac OS X
2389 *-apple-darwin* )
2390 case "${canonical}" in
2391 i[3456]86-* ) machine=intel386 ;;
2392 powerpc-* ) machine=powermac ;;
2393 * ) unported=yes ;;
2394 esac
2395 opsys=darwin
2396 # Define CPP as follows to make autoconf work correctly.
2397 CPP="${CC-cc} -E -no-cpp-precomp"
2398 # Use fink packages if available.
2399 if test -d /sw/include && test -d /sw/lib; then
2400 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2401 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2402 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2406 ## AT&T 3b2, 3b5, 3b15, 3b20
2407 we32k-att-sysv* )
2408 machine=att3b opsys=usg5-2-2
2411 ## AT&T 3b1 - The Mighty Unix PC!
2412 m68*-att-sysv* )
2413 machine=7300 opsys=usg5-2-2
2416 ## Bull dpx20
2417 rs6000-bull-bosx* )
2418 machine=ibmrs6000 opsys=aix3-2
2421 ## Bull dpx2
2422 m68*-bull-sysv3* )
2423 machine=dpx2 opsys=usg5-3
2426 ## Bull sps7
2427 m68*-bull-sysv2* )
2428 machine=sps7 opsys=usg5-2
2431 ## CCI 5/32, 6/32 -- see "Tahoe".
2433 ## Celerity
2434 ## I don't know what configuration name to use for this; config.sub
2435 ## doesn't seem to know anything about it. Hey, Celerity users, get
2436 ## in touch with us!
2437 celerity-celerity-bsd* )
2438 machine=celerity opsys=bsd4-2
2441 ## Clipper
2442 ## What operating systems does this chip run that Emacs has been
2443 ## tested on?
2444 clipper-* )
2445 machine=clipper
2446 ## We'll use the catch-all code at the bottom to guess the
2447 ## operating system.
2450 ## Compaq Nonstop
2451 mips-compaq-nonstopux* )
2452 machine=nonstopux opsys=nonstopux
2455 ## Convex
2456 *-convex-bsd* | *-convex-convexos* )
2457 machine=convex opsys=bsd4-3
2458 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2459 NON_GNU_CPP="cc -E -P"
2462 ## Cubix QBx/386
2463 i[3456]86-cubix-sysv* )
2464 machine=intel386 opsys=usg5-3
2467 ## Cydra 5
2468 cydra*-cydrome-sysv* )
2469 machine=cydra5 opsys=usg5-3
2472 ## Data General AViiON Machines
2473 ## DG changed naming conventions with the release of 5.4.4.10, they
2474 ## dropped the initial 5.4 but left the intervening R. Because of the
2475 ## R this shouldn't conflict with older versions of the OS (which I
2476 ## think were named like dgux4.*). In addition, DG new AViiONs series
2477 ## uses either Motorola M88k or Intel Pentium CPUs.
2478 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2479 machine=aviion opsys=dgux4
2481 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2482 ## This name is dgux5-4-3 instead of dgux5-4r3
2483 ## to avoid a file name conflict on MSDOS.
2484 machine=aviion opsys=dgux5-4-3
2486 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2487 machine=aviion opsys=dgux5-4r2
2489 m88k-dg-dgux* )
2490 machine=aviion opsys=dgux
2493 ## Data General AViiON Intel (x86) Machines
2494 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2495 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2496 i[345]86-dg-dguxR4* )
2497 machine=aviion-intel opsys=dgux4
2500 ## DECstations
2501 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2502 machine=pmax opsys=bsd4-2
2504 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2505 machine=pmax opsys=bsd4-3
2507 mips-dec-ultrix* )
2508 machine=pmax opsys=ultrix4-3
2510 mips-dec-osf* )
2511 machine=pmax opsys=osf1
2513 mips-dec-mach_bsd4.3* )
2514 machine=pmax opsys=mach-bsd4-3
2517 ## Motorola Delta machines
2518 m68k-motorola-sysv* | m68000-motorola-sysv* )
2519 machine=delta opsys=usg5-3
2520 if test -z "`type gnucc | grep 'not found'`"
2521 then
2522 if test -s /etc/167config
2523 then CC="gnucc -m68040"
2524 else CC="gnucc -m68881"
2526 else
2527 if test -z "`type gcc | grep 'not found'`"
2528 then CC=gcc
2529 else CC=cc
2533 m88k-motorola-sysv4* )
2534 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2535 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2536 # I hope there are not other 4.0 versions for this machine
2537 # which really need usg5-4 instead.
2538 machine=delta88k opsys=usg5-4-2
2540 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2541 machine=delta88k opsys=usg5-3
2544 ## Dual machines
2545 m68*-dual-sysv* )
2546 machine=dual opsys=usg5-2
2548 m68*-dual-uniplus* )
2549 machine=dual opsys=unipl5-2
2552 ## Elxsi 6400
2553 elxsi-elxsi-sysv* )
2554 machine=elxsi opsys=usg5-2
2557 ## Encore machines
2558 ns16k-encore-bsd* )
2559 machine=ns16000 opsys=umax
2562 ## The GEC 63 - apparently, this port isn't really finished yet.
2563 # I'm sure we finished off the last of the machines, though. -- fx
2565 ## Gould Power Node and NP1
2566 pn-gould-bsd4.2* )
2567 machine=gould opsys=bsd4-2
2569 pn-gould-bsd4.3* )
2570 machine=gould opsys=bsd4-3
2572 np1-gould-bsd* )
2573 machine=gould-np1 opsys=bsd4-3
2576 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2577 ## as far as Emacs is concerned).
2578 m88k-harris-cxux* )
2579 # Build needs to be different on 7.0 and later releases
2580 case "`uname -r`" in
2581 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2582 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2583 esac
2584 NON_GNU_CPP="/lib/cpp"
2586 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2587 m68k-harris-cxux* )
2588 machine=nh3000 opsys=cxux
2590 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2591 powerpc-harris-powerunix )
2592 machine=nh6000 opsys=powerunix
2593 NON_GNU_CPP="cc -Xo -E -P"
2595 ## SR2001/SR2201 running HI-UX/MPP
2596 hppa1.1-hitachi-hiuxmpp* )
2597 machine=sr2k opsys=hiuxmpp
2599 hppa1.1-hitachi-hiuxwe2* )
2600 machine=sr2k opsys=hiuxwe2
2602 ## Honeywell XPS100
2603 xps*-honeywell-sysv* )
2604 machine=xps100 opsys=usg5-2
2607 ## HP 9000 series 200 or 300
2608 m68*-hp-bsd* )
2609 machine=hp9000s300 opsys=bsd4-3
2611 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2612 m68*-hp-hpux* )
2613 case "`uname -r`" in
2614 ## Someone's system reports A.B8.05 for this.
2615 ## I wonder what other possibilities there are.
2616 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2617 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2618 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2619 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2620 *) machine=hp9000s300 opsys=hpux ;;
2621 esac
2624 ## HP 9000 series 700 and 800, running HP/UX
2625 hppa*-hp-hpux7* )
2626 machine=hp800 opsys=hpux
2628 hppa*-hp-hpux8* )
2629 machine=hp800 opsys=hpux8
2631 hppa*-hp-hpux9shr* )
2632 machine=hp800 opsys=hpux9shr
2634 hppa*-hp-hpux9* )
2635 machine=hp800 opsys=hpux9
2637 hppa*-hp-hpux10.2* )
2638 machine=hp800 opsys=hpux10-20
2640 hppa*-hp-hpux10* )
2641 machine=hp800 opsys=hpux10
2643 hppa*-hp-hpux1[1-9]* )
2644 machine=hp800 opsys=hpux11
2645 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2648 hppa*-*-linux-gnu* )
2649 machine=hp800 opsys=gnu-linux
2652 ## HP 9000 series 700 and 800, running HP/UX
2653 hppa*-hp-hpux* )
2654 ## Cross-compilation? Nah!
2655 case "`uname -r`" in
2656 ## Someone's system reports A.B8.05 for this.
2657 ## I wonder what other possibilities there are.
2658 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2659 *.08.* ) machine=hp800 opsys=hpux8 ;;
2660 *.09.* ) machine=hp800 opsys=hpux9 ;;
2661 *) machine=hp800 opsys=hpux10 ;;
2662 esac
2664 hppa*-*-nextstep* )
2665 machine=hp800 opsys=nextstep
2668 ## Orion machines
2669 orion-orion-bsd* )
2670 machine=orion opsys=bsd4-2
2672 clipper-orion-bsd* )
2673 machine=orion105 opsys=bsd4-2
2676 ## IBM machines
2677 i[3456]86-ibm-aix1.1* )
2678 machine=ibmps2-aix opsys=usg5-2-2
2680 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2681 machine=ibmps2-aix opsys=usg5-3
2683 i370-ibm-aix*)
2684 machine=ibm370aix opsys=usg5-3
2686 s390-*-linux-gnu* )
2687 machine=ibms390 opsys=gnu-linux
2689 s390x-*-linux-gnu* )
2690 machine=ibms390x opsys=gnu-linux
2692 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2693 machine=ibmrs6000 opsys=aix3-1
2695 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2696 machine=ibmrs6000 opsys=aix3-2-5
2698 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2699 machine=ibmrs6000 opsys=aix4-1
2701 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2702 machine=ibmrs6000 opsys=aix4-2
2704 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2705 machine=ibmrs6000 opsys=aix4-2
2707 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2708 machine=ibmrs6000 opsys=aix4-2
2710 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2711 machine=ibmrs6000 opsys=aix4
2713 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2714 machine=ibmrs6000 opsys=aix4-1
2716 rs6000-ibm-aix* | powerpc-ibm-aix* )
2717 machine=ibmrs6000 opsys=aix3-2
2719 romp-ibm-bsd4.3* )
2720 machine=ibmrt opsys=bsd4-3
2722 romp-ibm-bsd4.2* )
2723 machine=ibmrt opsys=bsd4-2
2725 romp-ibm-aos4.3* )
2726 machine=ibmrt opsys=bsd4-3
2728 romp-ibm-aos4.2* )
2729 machine=ibmrt opsys=bsd4-2
2731 romp-ibm-aos* )
2732 machine=ibmrt opsys=bsd4-3
2734 romp-ibm-bsd* )
2735 machine=ibmrt opsys=bsd4-3
2737 romp-ibm-aix* )
2738 machine=ibmrt-aix opsys=usg5-2-2
2741 ## Integrated Solutions `Optimum V'
2742 m68*-isi-bsd4.2* )
2743 machine=isi-ov opsys=bsd4-2
2745 m68*-isi-bsd4.3* )
2746 machine=isi-ov opsys=bsd4-3
2749 ## Intel 386 machines where we do care about the manufacturer
2750 i[3456]86-intsys-sysv* )
2751 machine=is386 opsys=usg5-2-2
2754 ## Prime EXL
2755 i[3456]86-prime-sysv* )
2756 machine=i386 opsys=usg5-3
2759 ## Sequent Symmetry running Dynix
2760 i[3456]86-sequent-bsd* )
2761 machine=symmetry opsys=bsd4-3
2764 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2765 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2766 machine=sequent-ptx opsys=ptx4
2767 NON_GNU_CPP=/lib/cpp
2770 ## Sequent Symmetry running DYNIX/ptx
2771 ## Use the old cpp rather than the newer ANSI one.
2772 i[3456]86-sequent-ptx* )
2773 machine=sequent-ptx opsys=ptx
2774 NON_GNU_CPP="/lib/cpp"
2777 ## ncr machine running svr4.3.
2778 i[3456]86-ncr-sysv4.3 )
2779 machine=ncr386 opsys=usg5-4-3
2782 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2783 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2784 i[3456]86-ncr-sysv* )
2785 machine=ncr386 opsys=usg5-4-2
2788 ## Intel Paragon OSF/1
2789 i860-intel-osf1* )
2790 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2793 ## Intel 860
2794 i860-*-sysv4* )
2795 machine=i860 opsys=usg5-4
2796 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2797 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2800 ## Macintosh PowerPC
2801 powerpc*-*-linux-gnu* )
2802 machine=macppc opsys=gnu-linux
2805 ## Masscomp machines
2806 m68*-masscomp-rtu* )
2807 machine=masscomp opsys=rtu
2810 ## Megatest machines
2811 m68*-megatest-bsd* )
2812 machine=mega68 opsys=bsd4-2
2815 ## Workstations sold by MIPS
2816 ## This is not necessarily all workstations using the MIPS processor -
2817 ## Irises are produced by SGI, and DECstations by DEC.
2819 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2820 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2821 ## it gives for choosing between the alternatives seems to be "Use
2822 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2823 ## the BSD world." I'll assume that these are instructions for
2824 ## handling two odd situations, and that every other situation
2825 ## should use mips.h and usg5-2-2, they being listed first.
2826 mips-mips-usg* )
2827 machine=mips4
2828 ## Fall through to the general code at the bottom to decide on the OS.
2830 mips-mips-riscos4* )
2831 machine=mips4 opsys=bsd4-3
2832 NON_GNU_CC="cc -systype bsd43"
2833 NON_GNU_CPP="cc -systype bsd43 -E"
2835 mips-mips-riscos5* )
2836 machine=mips4 opsys=riscos5
2837 NON_GNU_CC="cc -systype bsd43"
2838 NON_GNU_CPP="cc -systype bsd43 -E"
2840 mips-mips-bsd* )
2841 machine=mips opsys=bsd4-3
2843 mips-mips-* )
2844 machine=mips opsys=usg5-2-2
2847 ## NeXT
2848 m68*-next-* | m68k-*-nextstep* )
2849 machine=m68k opsys=nextstep
2852 ## The complete machine from National Semiconductor
2853 ns32k-ns-genix* )
2854 machine=ns32000 opsys=usg5-2
2857 ## NCR machines
2858 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2859 machine=tower32 opsys=usg5-2-2
2861 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2862 machine=tower32v3 opsys=usg5-3
2865 ## NEC EWS4800
2866 mips-nec-sysv4*)
2867 machine=ews4800 opsys=ux4800
2870 ## Nixdorf Targon 31
2871 m68*-nixdorf-sysv* )
2872 machine=targon31 opsys=usg5-2-2
2875 ## Nu (TI or LMI)
2876 m68*-nu-sysv* )
2877 machine=nu opsys=usg5-2
2880 ## Plexus
2881 m68*-plexus-sysv* )
2882 machine=plexus opsys=usg5-2
2885 ## Pyramid machines
2886 ## I don't really have any idea what sort of processor the Pyramid has,
2887 ## so I'm assuming it is its own architecture.
2888 pyramid-pyramid-bsd* )
2889 machine=pyramid opsys=bsd4-2
2892 ## Sequent Balance
2893 ns32k-sequent-bsd4.2* )
2894 machine=sequent opsys=bsd4-2
2896 ns32k-sequent-bsd4.3* )
2897 machine=sequent opsys=bsd4-3
2900 ## Siemens Nixdorf
2901 mips-siemens-sysv* | mips-sni-sysv*)
2902 machine=mips-siemens opsys=usg5-4
2903 NON_GNU_CC=/usr/ccs/bin/cc
2904 NON_GNU_CPP=/usr/ccs/lib/cpp
2907 ## Silicon Graphics machines
2908 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2909 m68*-sgi-iris3.5* )
2910 machine=irist opsys=iris3-5
2912 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2913 machine=irist opsys=iris3-6
2915 ## Iris 4D
2916 mips-sgi-irix3* )
2917 machine=iris4d opsys=irix3-3
2919 mips-sgi-irix4* )
2920 machine=iris4d opsys=irix4-0
2922 mips-sgi-irix6.5 )
2923 machine=iris4d opsys=irix6-5
2924 # Without defining _LANGUAGE_C, things get masked out in the headers
2925 # so that, for instance, grepping for `free' in stdlib.h fails and
2926 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2927 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2928 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2930 mips-sgi-irix6* )
2931 machine=iris4d opsys=irix6-0
2932 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2933 # but presumably it does no harm.
2934 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2935 # -32 probably isn't necessary in later v.6s -- anyone know which?
2936 NON_GCC_TEST_OPTIONS=-32
2938 mips-sgi-irix5.[01]* )
2939 machine=iris4d opsys=irix5-0
2941 mips-sgi-irix5* | mips-sgi-irix* )
2942 machine=iris4d opsys=irix5-2
2945 ## SONY machines
2946 m68*-sony-bsd4.2* )
2947 machine=news opsys=bsd4-2
2949 m68*-sony-bsd4.3* )
2950 machine=news opsys=bsd4-3
2952 m68*-sony-newsos3* | m68*-sony-news3*)
2953 machine=news opsys=bsd4-3
2955 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2956 machine=news-risc opsys=bsd4-3
2958 mips-sony-newsos6* )
2959 machine=news-r6 opsys=newsos6
2961 mips-sony-news* )
2962 machine=news-risc opsys=newsos5
2965 ## Stride
2966 m68*-stride-sysv* )
2967 machine=stride opsys=usg5-2
2970 ## Suns
2971 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2972 machine=sparc opsys=gnu-linux
2975 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2976 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2977 | rs6000-*-solaris2*)
2978 case "${canonical}" in
2979 m68*-sunos1* ) machine=sun1 ;;
2980 m68*-sunos2* ) machine=sun2 ;;
2981 m68* ) machine=sun3 ;;
2982 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2983 i[3456]86-*-* ) machine=intel386 ;;
2984 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2985 powerpcle* ) machine=powerpcle ;;
2986 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2987 sparc* ) machine=sparc ;;
2988 * ) unported=yes ;;
2989 esac
2990 case "${canonical}" in
2991 ## The Sun386 didn't get past 4.0.
2992 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2993 *-sunos4.0* ) opsys=sunos4-0 ;;
2994 *-sunos4.1.[3-9]*noshare )
2995 ## This name is sunos413 instead of sunos4-1-3
2996 ## to avoid a file name conflict on MSDOS.
2997 opsys=sunos413
2998 NON_GNU_CPP=/usr/lib/cpp
2999 NON_GCC_TEST_OPTIONS=-Bstatic
3000 GCC_TEST_OPTIONS=-static
3002 *-sunos4.1.[3-9]* | *-sunos4shr*)
3003 opsys=sunos4shr
3004 NON_GNU_CPP=/usr/lib/cpp
3006 *-sunos4* | *-sunos )
3007 opsys=sunos4-1
3008 NON_GCC_TEST_OPTIONS=-Bstatic
3009 GCC_TEST_OPTIONS=-static
3011 *-sunos5.3* | *-solaris2.3* )
3012 opsys=sol2-3
3013 NON_GNU_CPP=/usr/ccs/lib/cpp
3015 *-sunos5.4* | *-solaris2.4* )
3016 opsys=sol2-4
3017 NON_GNU_CPP=/usr/ccs/lib/cpp
3018 RANLIB="ar -ts"
3020 *-sunos5.5* | *-solaris2.5* )
3021 opsys=sol2-5
3022 NON_GNU_CPP=/usr/ccs/lib/cpp
3023 RANLIB="ar -ts"
3025 *-sunos5.6* | *-solaris2.6* )
3026 opsys=sol2-6
3027 NON_GNU_CPP=/usr/ccs/lib/cpp
3028 RANLIB="ar -ts"
3030 *-sunos5* | *-solaris* )
3031 opsys=sol2-6
3032 emacs_check_sunpro_c=yes
3033 NON_GNU_CPP=/usr/ccs/lib/cpp
3035 * ) opsys=bsd4-2 ;;
3036 esac
3037 ## Watch out for a compiler that we know will not work.
3038 case "${canonical}" in
3039 *-solaris* | *-sunos5* )
3040 if [ "x$CC" = x/usr/ucb/cc ]; then
3041 ## /usr/ucb/cc doesn't work;
3042 ## we should find some other compiler that does work.
3043 unset CC
3046 *) ;;
3047 esac
3049 sparc-*-nextstep* )
3050 machine=sparc opsys=nextstep
3053 ## Tadpole 68k
3054 m68*-tadpole-sysv* )
3055 machine=tad68k opsys=usg5-3
3058 ## Tahoe machines
3059 tahoe-tahoe-bsd4.2* )
3060 machine=tahoe opsys=bsd4-2
3062 tahoe-tahoe-bsd4.3* )
3063 machine=tahoe opsys=bsd4-3
3066 ## Tandem Integrity S2
3067 mips-tandem-sysv* )
3068 machine=tandem-s2 opsys=usg5-3
3071 ## Tektronix XD88
3072 m88k-tektronix-sysv3* )
3073 machine=tekxd88 opsys=usg5-3
3076 ## Tektronix 16000 box (6130?)
3077 ns16k-tektronix-bsd* )
3078 machine=ns16000 opsys=bsd4-2
3080 ## Tektronix 4300
3081 ## src/m/tek4300.h hints that this is a m68k machine.
3082 m68*-tektronix-bsd* )
3083 machine=tek4300 opsys=bsd4-3
3086 ## Titan P2 or P3
3087 ## We seem to have lost the machine-description file titan.h!
3088 titan-titan-sysv* )
3089 machine=titan opsys=usg5-3
3092 ## Ustation E30 (SS5E)
3093 m68*-unisys-uniplus* )
3094 machine=ustation opsystem=unipl5-2
3097 ## Vaxen.
3098 vax-dec-* )
3099 machine=vax
3100 case "${canonical}" in
3101 *-bsd4.1* ) opsys=bsd4-1 ;;
3102 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3103 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3104 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3105 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3106 *-vms* ) opsys=vms ;;
3107 * ) unported=yes
3108 esac
3111 ## Whitechapel MG1
3112 ns16k-whitechapel-* )
3113 machine=mg1
3114 ## We don't know what sort of OS runs on these; we'll let the
3115 ## operating system guessing code below try.
3118 ## Wicat
3119 m68*-wicat-sysv* )
3120 machine=wicat opsys=usg5-2
3123 ## IA-64
3124 ia64*-*-linux* )
3125 machine=ia64 opsys=gnu-linux
3128 ## Intel 386 machines where we don't care about the manufacturer
3129 i[3456]86-*-* )
3130 machine=intel386
3131 case "${canonical}" in
3132 *-cygwin ) opsys=cygwin ;;
3133 *-darwin* ) opsys=darwin
3134 CPP="${CC-cc} -E -no-cpp-precomp"
3136 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3137 *-isc2.2* ) opsys=isc2-2 ;;
3138 *-isc4.0* ) opsys=isc4-0 ;;
3139 *-isc4.* ) opsys=isc4-1
3140 GCC_TEST_OPTIONS=-posix
3141 NON_GCC_TEST_OPTIONS=-Xp
3143 *-isc* ) opsys=isc3-0 ;;
3144 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3145 *-esix* ) opsys=esix ;;
3146 *-xenix* ) opsys=xenix ;;
3147 *-linux-gnu* ) opsys=gnu-linux ;;
3148 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3149 *-sco3.2v5* ) opsys=sco5
3150 NON_GNU_CPP=/lib/cpp
3151 # Prevent -belf from being passed to $CPP.
3152 # /lib/cpp does not accept it.
3153 OVERRIDE_CPPFLAGS=" "
3155 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3156 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3157 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3158 *-386bsd* ) opsys=386bsd ;;
3159 *-nextstep* ) opsys=nextstep ;;
3160 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3161 esac
3164 ## m68k Linux-based GNU system
3165 m68k-*-linux-gnu* )
3166 machine=m68k opsys=gnu-linux
3169 ## Mips Linux-based GNU system
3170 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3171 machine=mips opsys=gnu-linux
3174 ## UXP/DS
3175 sparc-fujitsu-sysv4* )
3176 machine=sparc opsys=uxpds
3177 NON_GNU_CPP=/usr/ccs/lib/cpp
3178 RANLIB="ar -ts"
3181 ## UXP/V
3182 f301-fujitsu-uxpv4.1)
3183 machine=f301 opsys=uxpv
3186 ## AMD x86-64 Linux-based GNU system
3187 x86_64-*-linux-gnu* )
3188 machine=amdx86-64 opsys=gnu-linux
3191 ## Tensilica Xtensa Linux-based GNU system
3192 xtensa-*-linux-gnu* )
3193 machine=xtensa opsys=gnu-linux
3197 unported=yes
3199 esac
3201 ### If the code above didn't choose an operating system, just choose
3202 ### an operating system based on the configuration name. You really
3203 ### only want to use this when you have no idea what the right
3204 ### operating system is; if you know what operating systems a machine
3205 ### runs, it's cleaner to make it explicit in the case statement
3206 ### above.
3207 if test x"${opsys}" = x; then
3208 case "${canonical}" in
3209 *-gnu* ) opsys=gnu ;;
3210 *-bsd4.[01] ) opsys=bsd4-1 ;;
3211 *-bsd4.2 ) opsys=bsd4-2 ;;
3212 *-bsd4.3 ) opsys=bsd4-3 ;;
3213 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3214 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3215 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3216 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3217 *-sysv4.2uw* ) opsys=unixware ;;
3218 *-sysv5uw* ) opsys=unixware ;;
3219 *-sysv5OpenUNIX* ) opsys=unixware ;;
3220 *-sysv4.1* | *-sysvr4.1* )
3221 NON_GNU_CPP=/usr/lib/cpp
3222 opsys=usg5-4 ;;
3223 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3224 if [ x$NON_GNU_CPP = x ]; then
3225 if [ -f /usr/ccs/lib/cpp ]; then
3226 NON_GNU_CPP=/usr/ccs/lib/cpp
3227 else
3228 NON_GNU_CPP=/lib/cpp
3231 opsys=usg5-4-2 ;;
3232 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3234 unported=yes
3236 esac
3241 if test $unported = yes; then
3242 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3243 Check \`etc/MACHINES' for recognized configuration names." >&5
3244 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3245 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3246 { (exit 1); exit 1; }; }
3249 machfile="m/${machine}.h"
3250 opsysfile="s/${opsys}.h"
3253 #### Choose a compiler.
3254 test -n "$CC" && cc_specified=yes
3256 # Save the value of CFLAGS that the user specified.
3257 SPECIFIED_CFLAGS="$CFLAGS"
3259 case ${with_gcc} in
3260 "yes" ) CC="gcc" GCC=yes ;;
3261 "no" ) : ${CC=cc} ;;
3263 esac
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 if test -n "$ac_tool_prefix"; then
3270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3271 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3274 if test "${ac_cv_prog_CC+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3291 done
3292 done
3293 IFS=$as_save_IFS
3297 CC=$ac_cv_prog_CC
3298 if test -n "$CC"; then
3299 { echo "$as_me:$LINENO: result: $CC" >&5
3300 echo "${ECHO_T}$CC" >&6; }
3301 else
3302 { echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6; }
3308 if test -z "$ac_cv_prog_CC"; then
3309 ac_ct_CC=$CC
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311 set dummy gcc; ac_word=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 ac_cv_prog_ac_ct_CC="gcc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3331 done
3332 done
3333 IFS=$as_save_IFS
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3340 echo "${ECHO_T}$ac_ct_CC" >&6; }
3341 else
3342 { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3346 if test "x$ac_ct_CC" = x; then
3347 CC=""
3348 else
3349 case $cross_compiling:$ac_tool_warned in
3350 yes:)
3351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3352 whose name does not start with the host triplet. If you think this
3353 configuration is useful to you, please write to autoconf@gnu.org." >&5
3354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet. If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359 CC=$ac_ct_CC
3361 else
3362 CC="$ac_cv_prog_CC"
3365 if test -z "$CC"; then
3366 if test -n "$ac_tool_prefix"; then
3367 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}cc; ac_word=$2
3369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3371 if test "${ac_cv_prog_CC+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_CC="${ac_tool_prefix}cc"
3385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3388 done
3389 done
3390 IFS=$as_save_IFS
3394 CC=$ac_cv_prog_CC
3395 if test -n "$CC"; then
3396 { echo "$as_me:$LINENO: result: $CC" >&5
3397 echo "${ECHO_T}$CC" >&6; }
3398 else
3399 { echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6; }
3406 if test -z "$CC"; then
3407 # Extract the first word of "cc", so it can be a program name with args.
3408 set dummy cc; ac_word=$2
3409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3411 if test "${ac_cv_prog_CC+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 else
3417 ac_prog_rejected=no
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3426 ac_prog_rejected=yes
3427 continue
3429 ac_cv_prog_CC="cc"
3430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3433 done
3434 done
3435 IFS=$as_save_IFS
3437 if test $ac_prog_rejected = yes; then
3438 # We found a bogon in the path, so make sure we never use it.
3439 set dummy $ac_cv_prog_CC
3440 shift
3441 if test $# != 0; then
3442 # We chose a different compiler from the bogus one.
3443 # However, it has the same basename, so the bogon will be chosen
3444 # first if we set CC to just the basename; use the full file name.
3445 shift
3446 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3451 CC=$ac_cv_prog_CC
3452 if test -n "$CC"; then
3453 { echo "$as_me:$LINENO: result: $CC" >&5
3454 echo "${ECHO_T}$CC" >&6; }
3455 else
3456 { echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6; }
3462 if test -z "$CC"; then
3463 if test -n "$ac_tool_prefix"; then
3464 for ac_prog in cl.exe
3466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3470 if test "${ac_cv_prog_CC+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3487 done
3488 done
3489 IFS=$as_save_IFS
3493 CC=$ac_cv_prog_CC
3494 if test -n "$CC"; then
3495 { echo "$as_me:$LINENO: result: $CC" >&5
3496 echo "${ECHO_T}$CC" >&6; }
3497 else
3498 { echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6; }
3503 test -n "$CC" && break
3504 done
3506 if test -z "$CC"; then
3507 ac_ct_CC=$CC
3508 for ac_prog in cl.exe
3510 # Extract the first word of "$ac_prog", so it can be a program name with args.
3511 set dummy $ac_prog; ac_word=$2
3512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517 if test -n "$ac_ct_CC"; then
3518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 ac_cv_prog_ac_ct_CC="$ac_prog"
3528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
3531 done
3532 done
3533 IFS=$as_save_IFS
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540 echo "${ECHO_T}$ac_ct_CC" >&6; }
3541 else
3542 { echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6; }
3547 test -n "$ac_ct_CC" && break
3548 done
3550 if test "x$ac_ct_CC" = x; then
3551 CC=""
3552 else
3553 case $cross_compiling:$ac_tool_warned in
3554 yes:)
3555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3556 whose name does not start with the host triplet. If you think this
3557 configuration is useful to you, please write to autoconf@gnu.org." >&5
3558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3559 whose name does not start with the host triplet. If you think this
3560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3561 ac_tool_warned=yes ;;
3562 esac
3563 CC=$ac_ct_CC
3570 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3571 See \`config.log' for more details." >&5
3572 echo "$as_me: error: no acceptable C compiler found in \$PATH
3573 See \`config.log' for more details." >&2;}
3574 { (exit 1); exit 1; }; }
3576 # Provide some information about the compiler.
3577 echo "$as_me:$LINENO: checking for C compiler version" >&5
3578 ac_compiler=`set X $ac_compile; echo $2`
3579 { (ac_try="$ac_compiler --version >&5"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_compiler --version >&5") 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }
3589 { (ac_try="$ac_compiler -v >&5"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_compiler -v >&5") 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }
3599 { (ac_try="$ac_compiler -V >&5"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_compiler -V >&5") 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }
3610 cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3618 main ()
3622 return 0;
3624 _ACEOF
3625 ac_clean_files_save=$ac_clean_files
3626 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3627 # Try to create an executable without -o first, disregard a.out.
3628 # It will help us diagnose broken compilers, and finding out an intuition
3629 # of exeext.
3630 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3631 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3632 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3634 # List of possible output files, starting from the most likely.
3635 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3636 # only as a last resort. b.out is created by i960 compilers.
3637 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3639 # The IRIX 6 linker writes into existing files which may not be
3640 # executable, retaining their permissions. Remove them first so a
3641 # subsequent execution test works.
3642 ac_rmfiles=
3643 for ac_file in $ac_files
3645 case $ac_file in
3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3647 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3648 esac
3649 done
3650 rm -f $ac_rmfiles
3652 if { (ac_try="$ac_link_default"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_link_default") 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; then
3662 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3663 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3664 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3665 # so that the user can short-circuit this test for compilers unknown to
3666 # Autoconf.
3667 for ac_file in $ac_files ''
3669 test -f "$ac_file" || continue
3670 case $ac_file in
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3673 [ab].out )
3674 # We found the default executable, but exeext='' is most
3675 # certainly right.
3676 break;;
3677 *.* )
3678 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3679 then :; else
3680 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682 # We set ac_cv_exeext here because the later test for it is not
3683 # safe: cross compilers may not add the suffix if given an `-o'
3684 # argument, so we may need to know it at that point already.
3685 # Even if this section looks crufty: it has the advantage of
3686 # actually working.
3687 break;;
3689 break;;
3690 esac
3691 done
3692 test "$ac_cv_exeext" = no && ac_cv_exeext=
3694 else
3695 ac_file=''
3698 { echo "$as_me:$LINENO: result: $ac_file" >&5
3699 echo "${ECHO_T}$ac_file" >&6; }
3700 if test -z "$ac_file"; then
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3704 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3705 See \`config.log' for more details." >&5
3706 echo "$as_me: error: C compiler cannot create executables
3707 See \`config.log' for more details." >&2;}
3708 { (exit 77); exit 77; }; }
3711 ac_exeext=$ac_cv_exeext
3713 # Check that the compiler produces executables we can run. If not, either
3714 # the compiler is broken, or we cross compile.
3715 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3716 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3717 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3718 # If not cross compiling, check that we can run a simple program.
3719 if test "$cross_compiling" != yes; then
3720 if { ac_try='./$ac_file'
3721 { (case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726 (eval "$ac_try") 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 cross_compiling=no
3731 else
3732 if test "$cross_compiling" = maybe; then
3733 cross_compiling=yes
3734 else
3735 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3736 If you meant to cross compile, use \`--host'.
3737 See \`config.log' for more details." >&5
3738 echo "$as_me: error: cannot run C compiled programs.
3739 If you meant to cross compile, use \`--host'.
3740 See \`config.log' for more details." >&2;}
3741 { (exit 1); exit 1; }; }
3745 { echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6; }
3748 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3749 ac_clean_files=$ac_clean_files_save
3750 # Check that the compiler produces executables we can run. If not, either
3751 # the compiler is broken, or we cross compile.
3752 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3753 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3754 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3755 echo "${ECHO_T}$cross_compiling" >&6; }
3757 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3758 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3759 if { (ac_try="$ac_link"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765 (eval "$ac_link") 2>&5
3766 ac_status=$?
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; then
3769 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3770 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3771 # work properly (i.e., refer to `conftest.exe'), while it won't with
3772 # `rm'.
3773 for ac_file in conftest.exe conftest conftest.*; do
3774 test -f "$ac_file" || continue
3775 case $ac_file in
3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3777 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778 break;;
3779 * ) break;;
3780 esac
3781 done
3782 else
3783 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3784 See \`config.log' for more details." >&5
3785 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3786 See \`config.log' for more details." >&2;}
3787 { (exit 1); exit 1; }; }
3790 rm -f conftest$ac_cv_exeext
3791 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3792 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3794 rm -f conftest.$ac_ext
3795 EXEEXT=$ac_cv_exeext
3796 ac_exeext=$EXEEXT
3797 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3798 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3799 if test "${ac_cv_objext+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3810 main ()
3814 return 0;
3816 _ACEOF
3817 rm -f conftest.o conftest.obj
3818 if { (ac_try="$ac_compile"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_compile") 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; then
3828 for ac_file in conftest.o conftest.obj conftest.*; do
3829 test -f "$ac_file" || continue;
3830 case $ac_file in
3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3833 break;;
3834 esac
3835 done
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3841 See \`config.log' for more details." >&5
3842 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3843 See \`config.log' for more details." >&2;}
3844 { (exit 1); exit 1; }; }
3847 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3849 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3850 echo "${ECHO_T}$ac_cv_objext" >&6; }
3851 OBJEXT=$ac_cv_objext
3852 ac_objext=$OBJEXT
3853 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3854 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858 cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h. */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3866 main ()
3868 #ifndef __GNUC__
3869 choke me
3870 #endif
3873 return 0;
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3893 ac_compiler_gnu=yes
3894 else
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3898 ac_compiler_gnu=no
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3905 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3906 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3907 GCC=`test $ac_compiler_gnu = yes && echo yes`
3908 ac_test_CFLAGS=${CFLAGS+set}
3909 ac_save_CFLAGS=$CFLAGS
3910 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3911 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3912 if test "${ac_cv_prog_cc_g+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 ac_save_c_werror_flag=$ac_c_werror_flag
3916 ac_c_werror_flag=yes
3917 ac_cv_prog_cc_g=no
3918 CFLAGS="-g"
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h. */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3927 main ()
3931 return 0;
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && {
3948 test -z "$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 } && test -s conftest.$ac_objext; then
3951 ac_cv_prog_cc_g=yes
3952 else
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3956 CFLAGS=""
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3965 main ()
3969 return 0;
3971 _ACEOF
3972 rm -f conftest.$ac_objext
3973 if { (ac_try="$ac_compile"
3974 case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977 esac
3978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979 (eval "$ac_compile") 2>conftest.er1
3980 ac_status=$?
3981 grep -v '^ *+' conftest.er1 >conftest.err
3982 rm -f conftest.er1
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } && {
3986 test -z "$ac_c_werror_flag" ||
3987 test ! -s conftest.err
3988 } && test -s conftest.$ac_objext; then
3990 else
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 ac_c_werror_flag=$ac_save_c_werror_flag
3995 CFLAGS="-g"
3996 cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h. */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4004 main ()
4008 return 0;
4010 _ACEOF
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4013 case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } && {
4025 test -z "$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4027 } && test -s conftest.$ac_objext; then
4028 ac_cv_prog_cc_g=yes
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 ac_c_werror_flag=$ac_save_c_werror_flag
4045 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4046 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4047 if test "$ac_test_CFLAGS" = set; then
4048 CFLAGS=$ac_save_CFLAGS
4049 elif test $ac_cv_prog_cc_g = yes; then
4050 if test "$GCC" = yes; then
4051 CFLAGS="-g -O2"
4052 else
4053 CFLAGS="-g"
4055 else
4056 if test "$GCC" = yes; then
4057 CFLAGS="-O2"
4058 else
4059 CFLAGS=
4062 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4063 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4064 if test "${ac_cv_prog_cc_c89+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 ac_cv_prog_cc_c89=no
4068 ac_save_CC=$CC
4069 cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h. */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 #include <stdarg.h>
4076 #include <stdio.h>
4077 #include <sys/types.h>
4078 #include <sys/stat.h>
4079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4080 struct buf { int x; };
4081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4082 static char *e (p, i)
4083 char **p;
4084 int i;
4086 return p[i];
4088 static char *f (char * (*g) (char **, int), char **p, ...)
4090 char *s;
4091 va_list v;
4092 va_start (v,p);
4093 s = g (p, va_arg (v,int));
4094 va_end (v);
4095 return s;
4098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4099 function prototypes and stuff, but not '\xHH' hex character constants.
4100 These don't provoke an error unfortunately, instead are silently treated
4101 as 'x'. The following induces an error, until -std is added to get
4102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4103 array size at least. It's necessary to write '\x00'==0 to get something
4104 that's true only with -std. */
4105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4108 inside strings and character constants. */
4109 #define FOO(x) 'x'
4110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4112 int test (int i, double x);
4113 struct s1 {int (*f) (int a);};
4114 struct s2 {int (*f) (double a);};
4115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4116 int argc;
4117 char **argv;
4119 main ()
4121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4123 return 0;
4125 _ACEOF
4126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4129 CC="$ac_save_CC $ac_arg"
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4132 case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest.$ac_objext; then
4147 ac_cv_prog_cc_c89=$ac_arg
4148 else
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4155 rm -f core conftest.err conftest.$ac_objext
4156 test "x$ac_cv_prog_cc_c89" != "xno" && break
4157 done
4158 rm -f conftest.$ac_ext
4159 CC=$ac_save_CC
4162 # AC_CACHE_VAL
4163 case "x$ac_cv_prog_cc_c89" in
4165 { echo "$as_me:$LINENO: result: none needed" >&5
4166 echo "${ECHO_T}none needed" >&6; } ;;
4167 xno)
4168 { echo "$as_me:$LINENO: result: unsupported" >&5
4169 echo "${ECHO_T}unsupported" >&6; } ;;
4171 CC="$CC $ac_cv_prog_cc_c89"
4172 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4173 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4174 esac
4177 ac_ext=c
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 # On Suns, sometimes $CPP names a directory.
4185 if test -n "$CPP" && test -d "$CPP"; then
4186 CPP=
4189 ## If not using gcc, and on Solaris, and no CPP specified, see if
4190 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4191 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4192 test x"$CPP" = x; then
4193 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4194 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4196 if test "${emacs_cv_sunpro_c+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4207 main ()
4209 #ifndef __SUNPRO_C
4210 fail;
4211 #endif
4214 return 0;
4216 _ACEOF
4217 rm -f conftest.$ac_objext conftest$ac_exeext
4218 if { (ac_try="$ac_link"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_link") 2>conftest.er1
4225 ac_status=$?
4226 grep -v '^ *+' conftest.er1 >conftest.err
4227 rm -f conftest.er1
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && {
4231 test -z "$ac_c_werror_flag" ||
4232 test ! -s conftest.err
4233 } && test -s conftest$ac_exeext &&
4234 $as_test_x conftest$ac_exeext; then
4235 emacs_cv_sunpro_c=yes
4236 else
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 emacs_cv_sunpro_c=no
4243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4244 conftest$ac_exeext conftest.$ac_ext
4247 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4248 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4250 if test x"$emacs_cv_sunpro_c" = xyes; then
4251 NON_GNU_CPP="$CC -E -Xs"
4255 #### Some systems specify a CPP to use unless we are using GCC.
4256 #### Now that we know whether we are using GCC, we can decide whether
4257 #### to use that one.
4258 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4259 then
4260 CPP="$NON_GNU_CPP"
4263 #### Some systems specify a CC to use unless we are using GCC.
4264 #### Now that we know whether we are using GCC, we can decide whether
4265 #### to use that one.
4266 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4267 test x$cc_specified != xyes
4268 then
4269 CC="$NON_GNU_CC"
4272 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4273 then
4274 CC="$CC $GCC_TEST_OPTIONS"
4277 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4278 then
4279 CC="$CC $NON_GCC_TEST_OPTIONS"
4282 ac_ext=c
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4288 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4289 # On Suns, sometimes $CPP names a directory.
4290 if test -n "$CPP" && test -d "$CPP"; then
4291 CPP=
4293 if test -z "$CPP"; then
4294 if test "${ac_cv_prog_CPP+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 # Double quotes because CPP needs to be expanded
4298 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4300 ac_preproc_ok=false
4301 for ac_c_preproc_warn_flag in '' yes
4303 # Use a header file that comes with gcc, so configuring glibc
4304 # with a fresh cross-compiler works.
4305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4306 # <limits.h> exists even on freestanding compilers.
4307 # On the NeXT, cc -E runs the code through the compiler's parser,
4308 # not just through cpp. "Syntax error" is here to catch this case.
4309 cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h. */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 #ifdef __STDC__
4316 # include <limits.h>
4317 #else
4318 # include <assert.h>
4319 #endif
4320 Syntax error
4321 _ACEOF
4322 if { (ac_try="$ac_cpp conftest.$ac_ext"
4323 case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } >/dev/null && {
4335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 }; then
4339 else
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 # Broken: fails on valid input.
4344 continue
4347 rm -f conftest.err conftest.$ac_ext
4349 # OK, works on sane cases. Now check whether nonexistent headers
4350 # can be detected and how.
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h. */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <ac_nonexistent.h>
4358 _ACEOF
4359 if { (ac_try="$ac_cpp conftest.$ac_ext"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } >/dev/null && {
4372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4373 test ! -s conftest.err
4374 }; then
4375 # Broken: success on invalid input.
4376 continue
4377 else
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 # Passes both tests.
4382 ac_preproc_ok=:
4383 break
4386 rm -f conftest.err conftest.$ac_ext
4388 done
4389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4390 rm -f conftest.err conftest.$ac_ext
4391 if $ac_preproc_ok; then
4392 break
4395 done
4396 ac_cv_prog_CPP=$CPP
4399 CPP=$ac_cv_prog_CPP
4400 else
4401 ac_cv_prog_CPP=$CPP
4403 { echo "$as_me:$LINENO: result: $CPP" >&5
4404 echo "${ECHO_T}$CPP" >&6; }
4405 ac_preproc_ok=false
4406 for ac_c_preproc_warn_flag in '' yes
4408 # Use a header file that comes with gcc, so configuring glibc
4409 # with a fresh cross-compiler works.
4410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4411 # <limits.h> exists even on freestanding compilers.
4412 # On the NeXT, cc -E runs the code through the compiler's parser,
4413 # not just through cpp. "Syntax error" is here to catch this case.
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #ifdef __STDC__
4421 # include <limits.h>
4422 #else
4423 # include <assert.h>
4424 #endif
4425 Syntax error
4426 _ACEOF
4427 if { (ac_try="$ac_cpp conftest.$ac_ext"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } >/dev/null && {
4440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4441 test ! -s conftest.err
4442 }; then
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 # Broken: fails on valid input.
4449 continue
4452 rm -f conftest.err conftest.$ac_ext
4454 # OK, works on sane cases. Now check whether nonexistent headers
4455 # can be detected and how.
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h. */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #include <ac_nonexistent.h>
4463 _ACEOF
4464 if { (ac_try="$ac_cpp conftest.$ac_ext"
4465 case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468 esac
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } >/dev/null && {
4477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4478 test ! -s conftest.err
4479 }; then
4480 # Broken: success on invalid input.
4481 continue
4482 else
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 # Passes both tests.
4487 ac_preproc_ok=:
4488 break
4491 rm -f conftest.err conftest.$ac_ext
4493 done
4494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4495 rm -f conftest.err conftest.$ac_ext
4496 if $ac_preproc_ok; then
4498 else
4499 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4500 See \`config.log' for more details." >&5
4501 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4502 See \`config.log' for more details." >&2;}
4503 { (exit 1); exit 1; }; }
4506 ac_ext=c
4507 ac_cpp='$CPP $CPPFLAGS'
4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4514 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4515 if test "${ac_cv_path_GREP+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 # Extract the first word of "grep ggrep" to use in msg output
4519 if test -z "$GREP"; then
4520 set dummy grep ggrep; ac_prog_name=$2
4521 if test "${ac_cv_path_GREP+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 ac_path_GREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in grep ggrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4534 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4535 # Check for GNU ac_path_GREP and select it if it is found.
4536 # Check for GNU $ac_path_GREP
4537 case `"$ac_path_GREP" --version 2>&1` in
4538 *GNU*)
4539 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4541 ac_count=0
4542 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4543 while :
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 echo 'GREP' >> "conftest.nl"
4549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 ac_count=`expr $ac_count + 1`
4552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_GREP="$ac_path_GREP"
4555 ac_path_GREP_max=$ac_count
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4559 done
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561 esac
4564 $ac_path_GREP_found && break 3
4565 done
4566 done
4568 done
4569 IFS=$as_save_IFS
4574 GREP="$ac_cv_path_GREP"
4575 if test -z "$GREP"; then
4576 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4577 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4578 { (exit 1); exit 1; }; }
4581 else
4582 ac_cv_path_GREP=$GREP
4587 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4588 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4589 GREP="$ac_cv_path_GREP"
4592 { echo "$as_me:$LINENO: checking for egrep" >&5
4593 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4594 if test "${ac_cv_path_EGREP+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4598 then ac_cv_path_EGREP="$GREP -E"
4599 else
4600 # Extract the first word of "egrep" to use in msg output
4601 if test -z "$EGREP"; then
4602 set dummy egrep; ac_prog_name=$2
4603 if test "${ac_cv_path_EGREP+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 ac_path_EGREP_found=false
4607 # Loop through the user's path and test for each of PROGNAME-LIST
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_prog in egrep; do
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4616 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4617 # Check for GNU ac_path_EGREP and select it if it is found.
4618 # Check for GNU $ac_path_EGREP
4619 case `"$ac_path_EGREP" --version 2>&1` in
4620 *GNU*)
4621 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4623 ac_count=0
4624 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4625 while :
4627 cat "conftest.in" "conftest.in" >"conftest.tmp"
4628 mv "conftest.tmp" "conftest.in"
4629 cp "conftest.in" "conftest.nl"
4630 echo 'EGREP' >> "conftest.nl"
4631 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4633 ac_count=`expr $ac_count + 1`
4634 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4635 # Best one so far, save it but keep looking for a better one
4636 ac_cv_path_EGREP="$ac_path_EGREP"
4637 ac_path_EGREP_max=$ac_count
4639 # 10*(2^10) chars as input seems more than enough
4640 test $ac_count -gt 10 && break
4641 done
4642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643 esac
4646 $ac_path_EGREP_found && break 3
4647 done
4648 done
4650 done
4651 IFS=$as_save_IFS
4656 EGREP="$ac_cv_path_EGREP"
4657 if test -z "$EGREP"; then
4658 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4659 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4660 { (exit 1); exit 1; }; }
4663 else
4664 ac_cv_path_EGREP=$EGREP
4670 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4671 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4672 EGREP="$ac_cv_path_EGREP"
4676 { echo "$as_me:$LINENO: checking for AIX" >&5
4677 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4678 cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 #ifdef _AIX
4686 #endif
4688 _ACEOF
4689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4690 $EGREP "yes" >/dev/null 2>&1; then
4691 { echo "$as_me:$LINENO: result: yes" >&5
4692 echo "${ECHO_T}yes" >&6; }
4693 cat >>confdefs.h <<\_ACEOF
4694 #define _ALL_SOURCE 1
4695 _ACEOF
4697 else
4698 { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4701 rm -f conftest*
4705 cat >>confdefs.h <<\_ACEOF
4706 #define _GNU_SOURCE 1
4707 _ACEOF
4711 ### Use -Wno-pointer-sign if the compiler supports it
4712 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4713 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4714 SAVE_CFLAGS="$CFLAGS"
4715 CFLAGS="$CFLAGS -Wno-pointer-sign"
4716 cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h. */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4724 main ()
4728 return 0;
4730 _ACEOF
4731 rm -f conftest.$ac_objext
4732 if { (ac_try="$ac_compile"
4733 case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_compile") 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } && {
4745 test -z "$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest.$ac_objext; then
4748 has_option=yes
4749 else
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4753 has_option=no
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 if test $has_option = yes; then
4758 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4760 { echo "$as_me:$LINENO: result: $has_option" >&5
4761 echo "${ECHO_T}$has_option" >&6; }
4762 CFLAGS="$SAVE_CFLAGS"
4763 unset has_option
4764 unset SAVE_CFLAGS
4766 #### Some other nice autoconf tests.
4768 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4769 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4770 LN_S=$as_ln_s
4771 if test "$LN_S" = "ln -s"; then
4772 { echo "$as_me:$LINENO: result: yes" >&5
4773 echo "${ECHO_T}yes" >&6; }
4774 else
4775 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4776 echo "${ECHO_T}no, using $LN_S" >&6; }
4779 ac_ext=c
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4785 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4786 # On Suns, sometimes $CPP names a directory.
4787 if test -n "$CPP" && test -d "$CPP"; then
4788 CPP=
4790 if test -z "$CPP"; then
4791 if test "${ac_cv_prog_CPP+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794 # Double quotes because CPP needs to be expanded
4795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4797 ac_preproc_ok=false
4798 for ac_c_preproc_warn_flag in '' yes
4800 # Use a header file that comes with gcc, so configuring glibc
4801 # with a fresh cross-compiler works.
4802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803 # <limits.h> exists even on freestanding compilers.
4804 # On the NeXT, cc -E runs the code through the compiler's parser,
4805 # not just through cpp. "Syntax error" is here to catch this case.
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 #ifdef __STDC__
4813 # include <limits.h>
4814 #else
4815 # include <assert.h>
4816 #endif
4817 Syntax error
4818 _ACEOF
4819 if { (ac_try="$ac_cpp conftest.$ac_ext"
4820 case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } >/dev/null && {
4832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4834 }; then
4836 else
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 # Broken: fails on valid input.
4841 continue
4844 rm -f conftest.err conftest.$ac_ext
4846 # OK, works on sane cases. Now check whether nonexistent headers
4847 # can be detected and how.
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <ac_nonexistent.h>
4855 _ACEOF
4856 if { (ac_try="$ac_cpp conftest.$ac_ext"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } >/dev/null && {
4869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 }; then
4872 # Broken: success on invalid input.
4873 continue
4874 else
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 # Passes both tests.
4879 ac_preproc_ok=:
4880 break
4883 rm -f conftest.err conftest.$ac_ext
4885 done
4886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4887 rm -f conftest.err conftest.$ac_ext
4888 if $ac_preproc_ok; then
4889 break
4892 done
4893 ac_cv_prog_CPP=$CPP
4896 CPP=$ac_cv_prog_CPP
4897 else
4898 ac_cv_prog_CPP=$CPP
4900 { echo "$as_me:$LINENO: result: $CPP" >&5
4901 echo "${ECHO_T}$CPP" >&6; }
4902 ac_preproc_ok=false
4903 for ac_c_preproc_warn_flag in '' yes
4905 # Use a header file that comes with gcc, so configuring glibc
4906 # with a fresh cross-compiler works.
4907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4908 # <limits.h> exists even on freestanding compilers.
4909 # On the NeXT, cc -E runs the code through the compiler's parser,
4910 # not just through cpp. "Syntax error" is here to catch this case.
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 #ifdef __STDC__
4918 # include <limits.h>
4919 #else
4920 # include <assert.h>
4921 #endif
4922 Syntax error
4923 _ACEOF
4924 if { (ac_try="$ac_cpp conftest.$ac_ext"
4925 case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928 esac
4929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } >/dev/null && {
4937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 }; then
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 # Broken: fails on valid input.
4946 continue
4949 rm -f conftest.err conftest.$ac_ext
4951 # OK, works on sane cases. Now check whether nonexistent headers
4952 # can be detected and how.
4953 cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h. */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #include <ac_nonexistent.h>
4960 _ACEOF
4961 if { (ac_try="$ac_cpp conftest.$ac_ext"
4962 case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } >/dev/null && {
4974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4976 }; then
4977 # Broken: success on invalid input.
4978 continue
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 # Passes both tests.
4984 ac_preproc_ok=:
4985 break
4988 rm -f conftest.err conftest.$ac_ext
4990 done
4991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4992 rm -f conftest.err conftest.$ac_ext
4993 if $ac_preproc_ok; then
4995 else
4996 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." >&5
4998 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4999 See \`config.log' for more details." >&2;}
5000 { (exit 1); exit 1; }; }
5003 ac_ext=c
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009 # Find a good install program. We prefer a C program (faster),
5010 # so one script is as good as another. But avoid the broken or
5011 # incompatible versions:
5012 # SysV /etc/install, /usr/sbin/install
5013 # SunOS /usr/etc/install
5014 # IRIX /sbin/install
5015 # AIX /bin/install
5016 # AmigaOS /C/install, which installs bootblocks on floppy discs
5017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5020 # OS/2's system install, which has a completely different semantic
5021 # ./install, which can be erroneously created by make from ./install.sh.
5022 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5023 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5024 if test -z "$INSTALL"; then
5025 if test "${ac_cv_path_install+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 # Account for people who put trailing slashes in PATH elements.
5034 case $as_dir/ in
5035 ./ | .// | /cC/* | \
5036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5038 /usr/ucb/* ) ;;
5040 # OSF1 and SCO ODT 3.0 have their own names for install.
5041 # Don't use installbsd from OSF since it installs stuff as root
5042 # by default.
5043 for ac_prog in ginstall scoinst install; do
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5046 if test $ac_prog = install &&
5047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5048 # AIX install. It has an incompatible calling convention.
5050 elif test $ac_prog = install &&
5051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5052 # program-specific install script used by HP pwplus--don't use.
5054 else
5055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5056 break 3
5059 done
5060 done
5062 esac
5063 done
5064 IFS=$as_save_IFS
5068 if test "${ac_cv_path_install+set}" = set; then
5069 INSTALL=$ac_cv_path_install
5070 else
5071 # As a last resort, use the slow shell script. Don't cache a
5072 # value for INSTALL within a source directory, because that will
5073 # break other packages using the cache if that directory is
5074 # removed, or if the value is a relative name.
5075 INSTALL=$ac_install_sh
5078 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5079 echo "${ECHO_T}$INSTALL" >&6; }
5081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5082 # It thinks the first close brace ends the variable substitution.
5083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5087 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5089 if test "x$RANLIB" = x; then
5090 if test -n "$ac_tool_prefix"; then
5091 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5092 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095 if test "${ac_cv_prog_RANLIB+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 if test -n "$RANLIB"; then
5099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5112 done
5113 done
5114 IFS=$as_save_IFS
5118 RANLIB=$ac_cv_prog_RANLIB
5119 if test -n "$RANLIB"; then
5120 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5121 echo "${ECHO_T}$RANLIB" >&6; }
5122 else
5123 { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5129 if test -z "$ac_cv_prog_RANLIB"; then
5130 ac_ct_RANLIB=$RANLIB
5131 # Extract the first word of "ranlib", so it can be a program name with args.
5132 set dummy ranlib; ac_word=$2
5133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5135 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 if test -n "$ac_ct_RANLIB"; then
5139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_prog_ac_ct_RANLIB="ranlib"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5152 done
5153 done
5154 IFS=$as_save_IFS
5158 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5159 if test -n "$ac_ct_RANLIB"; then
5160 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5161 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5162 else
5163 { echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6; }
5167 if test "x$ac_ct_RANLIB" = x; then
5168 RANLIB=":"
5169 else
5170 case $cross_compiling:$ac_tool_warned in
5171 yes:)
5172 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5173 whose name does not start with the host triplet. If you think this
5174 configuration is useful to you, please write to autoconf@gnu.org." >&5
5175 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5176 whose name does not start with the host triplet. If you think this
5177 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5178 ac_tool_warned=yes ;;
5179 esac
5180 RANLIB=$ac_ct_RANLIB
5182 else
5183 RANLIB="$ac_cv_prog_RANLIB"
5187 # Extract the first word of "install-info", so it can be a program name with args.
5188 set dummy install-info; ac_word=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 case $INSTALL_INFO in
5195 [\\/]* | ?:[\\/]*)
5196 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5215 esac
5217 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5218 if test -n "$INSTALL_INFO"; then
5219 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5220 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5221 else
5222 { echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6; }
5227 # Extract the first word of "install-info", so it can be a program name with args.
5228 set dummy install-info; ac_word=$2
5229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5231 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234 case $INSTALL_INFO in
5235 [\\/]* | ?:[\\/]*)
5236 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in /usr/sbin
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5252 IFS=$as_save_IFS
5255 esac
5257 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5258 if test -n "$INSTALL_INFO"; then
5259 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5260 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5261 else
5262 { echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6; }
5267 # Extract the first word of "install-info", so it can be a program name with args.
5268 set dummy install-info; ac_word=$2
5269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5271 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274 case $INSTALL_INFO in
5275 [\\/]* | ?:[\\/]*)
5276 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in /sbin
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5290 done
5291 done
5292 IFS=$as_save_IFS
5294 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5296 esac
5298 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5299 if test -n "$INSTALL_INFO"; then
5300 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5301 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5302 else
5303 { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
5308 # Extract the first word of "gzip", so it can be a program name with args.
5309 set dummy gzip; ac_word=$2
5310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5312 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 case $GZIP_PROG in
5316 [\\/]* | ?:[\\/]*)
5317 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5333 IFS=$as_save_IFS
5336 esac
5338 GZIP_PROG=$ac_cv_path_GZIP_PROG
5339 if test -n "$GZIP_PROG"; then
5340 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5341 echo "${ECHO_T}$GZIP_PROG" >&6; }
5342 else
5343 { echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6; }
5350 ## Need makeinfo >= 4.6 (?) to build the manuals.
5351 # Extract the first word of "makeinfo", so it can be a program name with args.
5352 set dummy makeinfo; ac_word=$2
5353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5355 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358 case $MAKEINFO in
5359 [\\/]* | ?:[\\/]*)
5360 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5374 done
5375 done
5376 IFS=$as_save_IFS
5378 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5380 esac
5382 MAKEINFO=$ac_cv_path_MAKEINFO
5383 if test -n "$MAKEINFO"; then
5384 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5385 echo "${ECHO_T}$MAKEINFO" >&6; }
5386 else
5387 { echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6; }
5392 if test "$MAKEINFO" != "no" && \
5393 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5394 MAKEINFO=no
5397 if test "$MAKEINFO" = "no"; then
5398 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5399 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5400 { (exit 1); exit 1; }; }
5405 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5406 then
5407 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5410 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5411 then
5412 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5416 late_LDFLAGS=$LDFLAGS
5417 if test "$GCC" = yes; then
5418 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5419 else
5420 LDFLAGS="$LDFLAGS -znocombreloc"
5423 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5424 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5425 cat >conftest.$ac_ext <<_ACEOF
5426 main(){return 0;}
5427 _ACEOF
5428 rm -f conftest.$ac_objext conftest$ac_exeext
5429 if { (ac_try="$ac_link"
5430 case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_link") 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest$ac_exeext &&
5445 $as_test_x conftest$ac_exeext; then
5446 { echo "$as_me:$LINENO: result: yes" >&5
5447 echo "${ECHO_T}yes" >&6; }
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 LDFLAGS=$late_LDFLAGS
5453 { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5458 conftest$ac_exeext conftest.$ac_ext
5460 #### Extract some information from the operating system and machine files.
5462 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5463 - which libraries the lib-src programs will want, and
5464 - whether the GNU malloc routines are usable..." >&5
5465 echo "$as_me: checking the machine- and system-dependent files to find out
5466 - which libraries the lib-src programs will want, and
5467 - whether the GNU malloc routines are usable..." >&6;}
5469 ### First figure out CFLAGS (which we use for running the compiler here)
5470 ### and REAL_CFLAGS (which we use for real compilation).
5471 ### The two are the same except on a few systems, where they are made
5472 ### different to work around various lossages. For example,
5473 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5474 ### as implying static linking.
5476 ### If the CFLAGS env var is specified, we use that value
5477 ### instead of the default.
5479 ### It's not important that this name contain the PID; you can't run
5480 ### two configures in the same directory and have anything work
5481 ### anyway.
5482 tempcname="conftest.c"
5484 echo '
5485 #include "'${srcdir}'/src/'${opsysfile}'"
5486 #include "'${srcdir}'/src/'${machfile}'"
5487 #ifndef LIBS_MACHINE
5488 #define LIBS_MACHINE
5489 #endif
5490 #ifndef LIBS_SYSTEM
5491 #define LIBS_SYSTEM
5492 #endif
5493 #ifndef C_SWITCH_SYSTEM
5494 #define C_SWITCH_SYSTEM
5495 #endif
5496 #ifndef C_SWITCH_MACHINE
5497 #define C_SWITCH_MACHINE
5498 #endif
5499 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5500 configure___ c_switch_system=C_SWITCH_SYSTEM
5501 configure___ c_switch_machine=C_SWITCH_MACHINE
5503 #ifndef LIB_X11_LIB
5504 #define LIB_X11_LIB -lX11
5505 #endif
5507 #ifndef LIBX11_MACHINE
5508 #define LIBX11_MACHINE
5509 #endif
5511 #ifndef LIBX11_SYSTEM
5512 #define LIBX11_SYSTEM
5513 #endif
5514 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5516 #ifdef UNEXEC
5517 configure___ unexec=UNEXEC
5518 #else
5519 configure___ unexec=unexec.o
5520 #endif
5522 #ifdef SYSTEM_MALLOC
5523 configure___ system_malloc=yes
5524 #else
5525 configure___ system_malloc=no
5526 #endif
5528 #ifdef USE_MMAP_FOR_BUFFERS
5529 configure___ use_mmap_for_buffers=yes
5530 #else
5531 configure___ use_mmap_for_buffers=no
5532 #endif
5534 #ifndef C_DEBUG_SWITCH
5535 #define C_DEBUG_SWITCH -g
5536 #endif
5538 #ifndef C_OPTIMIZE_SWITCH
5539 #ifdef __GNUC__
5540 #define C_OPTIMIZE_SWITCH -O2
5541 #else
5542 #define C_OPTIMIZE_SWITCH -O
5543 #endif
5544 #endif
5546 #ifndef C_WARNINGS_SWITCH
5547 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5548 #endif
5550 #ifndef LD_SWITCH_MACHINE
5551 #define LD_SWITCH_MACHINE
5552 #endif
5554 #ifndef LD_SWITCH_SYSTEM
5555 #define LD_SWITCH_SYSTEM
5556 #endif
5558 #ifndef LD_SWITCH_X_SITE_AUX
5559 #define LD_SWITCH_X_SITE_AUX
5560 #endif
5562 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5563 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5565 #ifdef THIS_IS_CONFIGURE
5567 /* Get the CFLAGS for tests in configure. */
5568 #ifdef __GNUC__
5569 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5570 #else
5571 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5572 #endif
5574 #else /* not THIS_IS_CONFIGURE */
5576 /* Get the CFLAGS for real compilation. */
5577 #ifdef __GNUC__
5578 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5579 #else
5580 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5581 #endif
5583 #endif /* not THIS_IS_CONFIGURE */
5584 ' > ${tempcname}
5586 # The value of CPP is a quoted variable reference, so we need to do this
5587 # to get its actual value...
5588 CPP=`eval "echo $CPP"`
5589 eval `${CPP} -Isrc ${tempcname} \
5590 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5591 if test "x$SPECIFIED_CFLAGS" = x; then
5592 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5593 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5594 else
5595 REAL_CFLAGS="$CFLAGS"
5597 rm ${tempcname}
5599 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5601 ### Make sure subsequent tests use flags consistent with the build flags.
5603 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5604 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5605 else
5606 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5611 # Check whether --enable-largefile was given.
5612 if test "${enable_largefile+set}" = set; then
5613 enableval=$enable_largefile;
5616 if test "$enable_largefile" != no; then
5618 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5619 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5620 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623 ac_cv_sys_largefile_CC=no
5624 if test "$GCC" != yes; then
5625 ac_save_CC=$CC
5626 while :; do
5627 # IRIX 6.2 and later do not support large files by default,
5628 # so use the C compiler's -n32 option if that helps.
5629 cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h. */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 #include <sys/types.h>
5636 /* Check that off_t can represent 2**63 - 1 correctly.
5637 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5638 since some C++ compilers masquerading as C compilers
5639 incorrectly reject 9223372036854775807. */
5640 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5641 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5642 && LARGE_OFF_T % 2147483647 == 1)
5643 ? 1 : -1];
5645 main ()
5649 return 0;
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (ac_try="$ac_compile"
5654 case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657 esac
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_compile") 2>conftest.er1
5660 ac_status=$?
5661 grep -v '^ *+' conftest.er1 >conftest.err
5662 rm -f conftest.er1
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && {
5666 test -z "$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest.$ac_objext; then
5669 break
5670 else
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5677 rm -f core conftest.err conftest.$ac_objext
5678 CC="$CC -n32"
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5681 case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_c_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5696 ac_cv_sys_largefile_CC=' -n32'; break
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5704 rm -f core conftest.err conftest.$ac_objext
5705 break
5706 done
5707 CC=$ac_save_CC
5708 rm -f conftest.$ac_ext
5711 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5712 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5713 if test "$ac_cv_sys_largefile_CC" != no; then
5714 CC=$CC$ac_cv_sys_largefile_CC
5717 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5718 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5719 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 while :; do
5723 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 #include <sys/types.h>
5730 /* Check that off_t can represent 2**63 - 1 correctly.
5731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5732 since some C++ compilers masquerading as C compilers
5733 incorrectly reject 9223372036854775807. */
5734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5736 && LARGE_OFF_T % 2147483647 == 1)
5737 ? 1 : -1];
5739 main ()
5743 return 0;
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5748 case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5763 ac_cv_sys_file_offset_bits=no; break
5764 else
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #define _FILE_OFFSET_BITS 64
5779 #include <sys/types.h>
5780 /* Check that off_t can represent 2**63 - 1 correctly.
5781 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5782 since some C++ compilers masquerading as C compilers
5783 incorrectly reject 9223372036854775807. */
5784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5785 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5786 && LARGE_OFF_T % 2147483647 == 1)
5787 ? 1 : -1];
5789 main ()
5793 return 0;
5795 _ACEOF
5796 rm -f conftest.$ac_objext
5797 if { (ac_try="$ac_compile"
5798 case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801 esac
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_compile") 2>conftest.er1
5804 ac_status=$?
5805 grep -v '^ *+' conftest.er1 >conftest.err
5806 rm -f conftest.er1
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } && {
5810 test -z "$ac_c_werror_flag" ||
5811 test ! -s conftest.err
5812 } && test -s conftest.$ac_objext; then
5813 ac_cv_sys_file_offset_bits=64; break
5814 else
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 ac_cv_sys_file_offset_bits=unknown
5823 break
5824 done
5826 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5827 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5828 case $ac_cv_sys_file_offset_bits in #(
5829 no | unknown) ;;
5831 cat >>confdefs.h <<_ACEOF
5832 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5833 _ACEOF
5835 esac
5836 rm -f conftest*
5837 if test $ac_cv_sys_file_offset_bits = unknown; then
5838 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5839 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5840 if test "${ac_cv_sys_large_files+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843 while :; do
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 #include <sys/types.h>
5851 /* Check that off_t can represent 2**63 - 1 correctly.
5852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5853 since some C++ compilers masquerading as C compilers
5854 incorrectly reject 9223372036854775807. */
5855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5857 && LARGE_OFF_T % 2147483647 == 1)
5858 ? 1 : -1];
5860 main ()
5864 return 0;
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (ac_try="$ac_compile"
5869 case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872 esac
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_compile") 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } && {
5881 test -z "$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 } && test -s conftest.$ac_objext; then
5884 ac_cv_sys_large_files=no; break
5885 else
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #define _LARGE_FILES 1
5900 #include <sys/types.h>
5901 /* Check that off_t can represent 2**63 - 1 correctly.
5902 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5903 since some C++ compilers masquerading as C compilers
5904 incorrectly reject 9223372036854775807. */
5905 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5907 && LARGE_OFF_T % 2147483647 == 1)
5908 ? 1 : -1];
5910 main ()
5914 return 0;
5916 _ACEOF
5917 rm -f conftest.$ac_objext
5918 if { (ac_try="$ac_compile"
5919 case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922 esac
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_compile") 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest.$ac_objext; then
5934 ac_cv_sys_large_files=1; break
5935 else
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 ac_cv_sys_large_files=unknown
5944 break
5945 done
5947 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5948 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5949 case $ac_cv_sys_large_files in #(
5950 no | unknown) ;;
5952 cat >>confdefs.h <<_ACEOF
5953 #define _LARGE_FILES $ac_cv_sys_large_files
5954 _ACEOF
5956 esac
5957 rm -f conftest*
5963 ### The standard library on x86-64 GNU/Linux distributions can
5964 ### be located in either /usr/lib64 or /usr/lib.
5965 case "${canonical}" in
5966 x86_64-*-linux-gnu* )
5967 if test -d /usr/lib64; then
5969 cat >>confdefs.h <<\_ACEOF
5970 #define HAVE_X86_64_LIB64_DIR 1
5971 _ACEOF
5974 esac
5979 if test "${with_sound}" != "no"; then
5980 # Sound support for GNU/Linux and the free BSDs.
5981 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5983 if test "${ac_cv_header_stdc+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <stdlib.h>
5993 #include <stdarg.h>
5994 #include <string.h>
5995 #include <float.h>
5998 main ()
6002 return 0;
6004 _ACEOF
6005 rm -f conftest.$ac_objext
6006 if { (ac_try="$ac_compile"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compile") 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest.$ac_objext; then
6022 ac_cv_header_stdc=yes
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 ac_cv_header_stdc=no
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 if test $ac_cv_header_stdc = yes; then
6033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6034 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #include <string.h>
6042 _ACEOF
6043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044 $EGREP "memchr" >/dev/null 2>&1; then
6046 else
6047 ac_cv_header_stdc=no
6049 rm -f conftest*
6053 if test $ac_cv_header_stdc = yes; then
6054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #include <stdlib.h>
6063 _ACEOF
6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 $EGREP "free" >/dev/null 2>&1; then
6067 else
6068 ac_cv_header_stdc=no
6070 rm -f conftest*
6074 if test $ac_cv_header_stdc = yes; then
6075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6076 if test "$cross_compiling" = yes; then
6078 else
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <ctype.h>
6086 #include <stdlib.h>
6087 #if ((' ' & 0x0FF) == 0x020)
6088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6090 #else
6091 # define ISLOWER(c) \
6092 (('a' <= (c) && (c) <= 'i') \
6093 || ('j' <= (c) && (c) <= 'r') \
6094 || ('s' <= (c) && (c) <= 'z'))
6095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6096 #endif
6098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6100 main ()
6102 int i;
6103 for (i = 0; i < 256; i++)
6104 if (XOR (islower (i), ISLOWER (i))
6105 || toupper (i) != TOUPPER (i))
6106 return 2;
6107 return 0;
6109 _ACEOF
6110 rm -f conftest$ac_exeext
6111 if { (ac_try="$ac_link"
6112 case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115 esac
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_link") 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6121 { (case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124 esac
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_try") 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6131 else
6132 echo "$as_me: program exited with status $ac_status" >&5
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6136 ( exit $ac_status )
6137 ac_cv_header_stdc=no
6139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6145 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6146 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6147 if test $ac_cv_header_stdc = yes; then
6149 cat >>confdefs.h <<\_ACEOF
6150 #define STDC_HEADERS 1
6151 _ACEOF
6155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6165 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6166 inttypes.h stdint.h unistd.h
6168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 $ac_includes_default
6182 #include <$ac_header>
6183 _ACEOF
6184 rm -f conftest.$ac_objext
6185 if { (ac_try="$ac_compile"
6186 case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_compile") 2>conftest.er1
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } && {
6198 test -z "$ac_c_werror_flag" ||
6199 test ! -s conftest.err
6200 } && test -s conftest.$ac_objext; then
6201 eval "$as_ac_Header=yes"
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 eval "$as_ac_Header=no"
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 ac_res=`eval echo '${'$as_ac_Header'}'`
6212 { echo "$as_me:$LINENO: result: $ac_res" >&5
6213 echo "${ECHO_T}$ac_res" >&6; }
6214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6215 cat >>confdefs.h <<_ACEOF
6216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6217 _ACEOF
6221 done
6227 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_res=`eval echo '${'$as_ac_Header'}'`
6237 { echo "$as_me:$LINENO: result: $ac_res" >&5
6238 echo "${ECHO_T}$ac_res" >&6; }
6239 else
6240 # Is the header compilable?
6241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 $ac_includes_default
6250 #include <$ac_header>
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6254 case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_compile") 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } && {
6266 test -z "$ac_c_werror_flag" ||
6267 test ! -s conftest.err
6268 } && test -s conftest.$ac_objext; then
6269 ac_header_compiler=yes
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 ac_header_compiler=no
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6279 echo "${ECHO_T}$ac_header_compiler" >&6; }
6281 # Is the header present?
6282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6284 cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h. */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 #include <$ac_header>
6291 _ACEOF
6292 if { (ac_try="$ac_cpp conftest.$ac_ext"
6293 case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } >/dev/null && {
6305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 }; then
6308 ac_header_preproc=yes
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_header_preproc=no
6316 rm -f conftest.err conftest.$ac_ext
6317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6318 echo "${ECHO_T}$ac_header_preproc" >&6; }
6320 # So? What about this header?
6321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6322 yes:no: )
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6327 ac_header_preproc=yes
6329 no:yes:* )
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6344 esac
6345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350 eval "$as_ac_Header=\$ac_header_preproc"
6352 ac_res=`eval echo '${'$as_ac_Header'}'`
6353 { echo "$as_me:$LINENO: result: $ac_res" >&5
6354 echo "${ECHO_T}$ac_res" >&6; }
6357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6358 cat >>confdefs.h <<_ACEOF
6359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6360 _ACEOF
6364 done
6366 # Emulation library used on NetBSD.
6367 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6368 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6369 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372 ac_check_lib_save_LIBS=$LIBS
6373 LIBS="-lossaudio $LIBS"
6374 cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h. */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6381 /* Override any GCC internal prototype to avoid an error.
6382 Use char because int might match the return type of a GCC
6383 builtin and then its argument prototype would still apply. */
6384 #ifdef __cplusplus
6385 extern "C"
6386 #endif
6387 char _oss_ioctl ();
6389 main ()
6391 return _oss_ioctl ();
6393 return 0;
6395 _ACEOF
6396 rm -f conftest.$ac_objext conftest$ac_exeext
6397 if { (ac_try="$ac_link"
6398 case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_link") 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } && {
6410 test -z "$ac_c_werror_flag" ||
6411 test ! -s conftest.err
6412 } && test -s conftest$ac_exeext &&
6413 $as_test_x conftest$ac_exeext; then
6414 ac_cv_lib_ossaudio__oss_ioctl=yes
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_cv_lib_ossaudio__oss_ioctl=no
6422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6423 conftest$ac_exeext conftest.$ac_ext
6424 LIBS=$ac_check_lib_save_LIBS
6426 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6427 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6428 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6429 LIBSOUND=-lossaudio
6430 else
6431 LIBSOUND=
6436 ALSA_REQUIRED=1.0.0
6437 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6438 if test "X${with_pkg_config_prog}" != X; then
6439 PKG_CONFIG="${with_pkg_config_prog}"
6442 succeeded=no
6444 if test -z "$PKG_CONFIG"; then
6445 # Extract the first word of "pkg-config", so it can be a program name with args.
6446 set dummy pkg-config; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 case $PKG_CONFIG in
6453 [\\/]* | ?:[\\/]*)
6454 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6468 done
6469 done
6470 IFS=$as_save_IFS
6472 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6474 esac
6476 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6477 if test -n "$PKG_CONFIG"; then
6478 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6479 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6480 else
6481 { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6488 if test "$PKG_CONFIG" = "no" ; then
6489 HAVE_ALSA=no
6490 else
6491 PKG_CONFIG_MIN_VERSION=0.9.0
6492 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6493 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6494 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6496 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6497 { echo "$as_me:$LINENO: result: yes" >&5
6498 echo "${ECHO_T}yes" >&6; }
6499 succeeded=yes
6501 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6502 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6503 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6504 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6505 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6507 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6508 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6509 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6510 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6511 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6512 else
6513 { echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6; }
6515 ALSA_CFLAGS=""
6516 ALSA_LIBS=""
6517 ## If we have a custom action on failure, don't print errors, but
6518 ## do set a variable so people can do so.
6519 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6525 else
6526 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6527 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6531 if test $succeeded = yes; then
6532 HAVE_ALSA=yes
6533 else
6534 HAVE_ALSA=no
6537 if test $HAVE_ALSA = yes; then
6538 SAVE_CFLAGS="$CFLAGS"
6539 SAVE_LDFLAGS="$LDFLAGS"
6540 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6541 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6542 cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h. */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 #include <asoundlib.h>
6550 main ()
6552 snd_lib_error_set_handler (0);
6554 return 0;
6556 _ACEOF
6557 rm -f conftest.$ac_objext
6558 if { (ac_try="$ac_compile"
6559 case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562 esac
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_compile") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && {
6571 test -z "$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 } && test -s conftest.$ac_objext; then
6574 emacs_alsa_normal=yes
6575 else
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6579 emacs_alsa_normal=no
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 if test "$emacs_alsa_normal" != yes; then
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <alsa/asoundlib.h>
6592 main ()
6594 snd_lib_error_set_handler (0);
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6601 case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604 esac
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.$ac_objext; then
6616 emacs_alsa_subdir=yes
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 emacs_alsa_subdir=no
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 if test "$emacs_alsa_subdir" != yes; then
6626 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6627 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6628 { (exit 1); exit 1; }; }
6630 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6633 CFLAGS="$SAVE_CFLAGS"
6634 LDFLAGS="$SAVE_LDFLAGS"
6635 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6636 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6638 cat >>confdefs.h <<\_ACEOF
6639 #define HAVE_ALSA 1
6640 _ACEOF
6671 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6672 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6673 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6674 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6675 sys/utsname.h pwd.h
6677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 ac_res=`eval echo '${'$as_ac_Header'}'`
6685 { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 echo "${ECHO_T}$ac_res" >&6; }
6687 else
6688 # Is the header compilable?
6689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6698 #include <$ac_header>
6699 _ACEOF
6700 rm -f conftest.$ac_objext
6701 if { (ac_try="$ac_compile"
6702 case "(($ac_try" in
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6705 esac
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707 (eval "$ac_compile") 2>conftest.er1
6708 ac_status=$?
6709 grep -v '^ *+' conftest.er1 >conftest.err
6710 rm -f conftest.er1
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && {
6714 test -z "$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6716 } && test -s conftest.$ac_objext; then
6717 ac_header_compiler=yes
6718 else
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6722 ac_header_compiler=no
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6727 echo "${ECHO_T}$ac_header_compiler" >&6; }
6729 # Is the header present?
6730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <$ac_header>
6739 _ACEOF
6740 if { (ac_try="$ac_cpp conftest.$ac_ext"
6741 case "(($ac_try" in
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6744 esac
6745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev/null && {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6755 }; then
6756 ac_header_preproc=yes
6757 else
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6761 ac_header_preproc=no
6764 rm -f conftest.err conftest.$ac_ext
6765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6766 echo "${ECHO_T}$ac_header_preproc" >&6; }
6768 # So? What about this header?
6769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6770 yes:no: )
6771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6775 ac_header_preproc=yes
6777 no:yes:* )
6778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6792 esac
6793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798 eval "$as_ac_Header=\$ac_header_preproc"
6800 ac_res=`eval echo '${'$as_ac_Header'}'`
6801 { echo "$as_me:$LINENO: result: $ac_res" >&5
6802 echo "${ECHO_T}$ac_res" >&6; }
6805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6806 cat >>confdefs.h <<_ACEOF
6807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6808 _ACEOF
6812 done
6815 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6816 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6817 cat >conftest.$ac_ext <<_ACEOF
6818 /* confdefs.h. */
6819 _ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6823 #include <sys/personality.h>
6825 main ()
6827 personality (PER_LINUX32)
6829 return 0;
6831 _ACEOF
6832 rm -f conftest.$ac_objext
6833 if { (ac_try="$ac_compile"
6834 case "(($ac_try" in
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6837 esac
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_compile") 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest.$ac_objext; then
6849 emacs_cv_personality_linux32=yes
6850 else
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 emacs_cv_personality_linux32=no
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6859 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6861 if test $emacs_cv_personality_linux32 = yes; then
6863 cat >>confdefs.h <<\_ACEOF
6864 #define HAVE_PERSONALITY_LINUX32 1
6865 _ACEOF
6870 for ac_header in term.h
6872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 #include <$ac_header>
6885 _ACEOF
6886 if { (ac_try="$ac_cpp conftest.$ac_ext"
6887 case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890 esac
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } >/dev/null && {
6899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 }; then
6902 eval "$as_ac_Header=yes"
6903 else
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 eval "$as_ac_Header=no"
6910 rm -f conftest.err conftest.$ac_ext
6912 ac_res=`eval echo '${'$as_ac_Header'}'`
6913 { echo "$as_me:$LINENO: result: $ac_res" >&5
6914 echo "${ECHO_T}$ac_res" >&6; }
6915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6916 cat >>confdefs.h <<_ACEOF
6917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6918 _ACEOF
6922 done
6924 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6925 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6926 if test "${ac_cv_header_stdc+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <stdlib.h>
6936 #include <stdarg.h>
6937 #include <string.h>
6938 #include <float.h>
6941 main ()
6945 return 0;
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (ac_try="$ac_compile"
6950 case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953 esac
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_compile") 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest.$ac_objext; then
6965 ac_cv_header_stdc=yes
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_header_stdc=no
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 if test $ac_cv_header_stdc = yes; then
6976 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 #include <string.h>
6985 _ACEOF
6986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6987 $EGREP "memchr" >/dev/null 2>&1; then
6989 else
6990 ac_cv_header_stdc=no
6992 rm -f conftest*
6996 if test $ac_cv_header_stdc = yes; then
6997 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6998 cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h. */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 #include <stdlib.h>
7006 _ACEOF
7007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7008 $EGREP "free" >/dev/null 2>&1; then
7010 else
7011 ac_cv_header_stdc=no
7013 rm -f conftest*
7017 if test $ac_cv_header_stdc = yes; then
7018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7019 if test "$cross_compiling" = yes; then
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 #include <ctype.h>
7029 #include <stdlib.h>
7030 #if ((' ' & 0x0FF) == 0x020)
7031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7033 #else
7034 # define ISLOWER(c) \
7035 (('a' <= (c) && (c) <= 'i') \
7036 || ('j' <= (c) && (c) <= 'r') \
7037 || ('s' <= (c) && (c) <= 'z'))
7038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7039 #endif
7041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7043 main ()
7045 int i;
7046 for (i = 0; i < 256; i++)
7047 if (XOR (islower (i), ISLOWER (i))
7048 || toupper (i) != TOUPPER (i))
7049 return 2;
7050 return 0;
7052 _ACEOF
7053 rm -f conftest$ac_exeext
7054 if { (ac_try="$ac_link"
7055 case "(($ac_try" in
7056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7057 *) ac_try_echo=$ac_try;;
7058 esac
7059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7060 (eval "$ac_link") 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7064 { (case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7067 esac
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_try") 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7074 else
7075 echo "$as_me: program exited with status $ac_status" >&5
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ( exit $ac_status )
7080 ac_cv_header_stdc=no
7082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7088 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7089 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7090 if test $ac_cv_header_stdc = yes; then
7092 cat >>confdefs.h <<\_ACEOF
7093 #define STDC_HEADERS 1
7094 _ACEOF
7098 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7099 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7100 if test "${ac_cv_header_time+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h. */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 #include <sys/types.h>
7110 #include <sys/time.h>
7111 #include <time.h>
7114 main ()
7116 if ((struct tm *) 0)
7117 return 0;
7119 return 0;
7121 _ACEOF
7122 rm -f conftest.$ac_objext
7123 if { (ac_try="$ac_compile"
7124 case "(($ac_try" in
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7127 esac
7128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7130 ac_status=$?
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 ac_cv_header_time=yes
7140 else
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 ac_cv_header_time=no
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7150 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7151 if test $ac_cv_header_time = yes; then
7153 cat >>confdefs.h <<\_ACEOF
7154 #define TIME_WITH_SYS_TIME 1
7155 _ACEOF
7159 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7160 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7161 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h. */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 $ac_includes_default
7172 main ()
7174 #ifndef sys_siglist
7175 (void) sys_siglist;
7176 #endif
7179 return 0;
7181 _ACEOF
7182 rm -f conftest.$ac_objext
7183 if { (ac_try="$ac_compile"
7184 case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187 esac
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_compile") 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest.$ac_objext; then
7199 ac_cv_have_decl_sys_siglist=yes
7200 else
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 ac_cv_have_decl_sys_siglist=no
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7210 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7211 if test $ac_cv_have_decl_sys_siglist = yes; then
7213 cat >>confdefs.h <<_ACEOF
7214 #define HAVE_DECL_SYS_SIGLIST 1
7215 _ACEOF
7218 else
7219 cat >>confdefs.h <<_ACEOF
7220 #define HAVE_DECL_SYS_SIGLIST 0
7221 _ACEOF
7227 if test $ac_cv_have_decl_sys_siglist != yes; then
7228 # For Tru64, at least:
7229 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7230 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7231 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7242 main ()
7244 #ifndef __sys_siglist
7245 (void) __sys_siglist;
7246 #endif
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_have_decl___sys_siglist=yes
7270 else
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 ac_cv_have_decl___sys_siglist=no
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7280 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7281 if test $ac_cv_have_decl___sys_siglist = yes; then
7283 cat >>confdefs.h <<_ACEOF
7284 #define HAVE_DECL___SYS_SIGLIST 1
7285 _ACEOF
7288 else
7289 cat >>confdefs.h <<_ACEOF
7290 #define HAVE_DECL___SYS_SIGLIST 0
7291 _ACEOF
7297 if test $ac_cv_have_decl___sys_siglist = yes; then
7299 cat >>confdefs.h <<\_ACEOF
7300 #define sys_siglist __sys_siglist
7301 _ACEOF
7305 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7306 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7307 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 #include <sys/types.h>
7317 #include <sys/wait.h>
7318 #ifndef WEXITSTATUS
7319 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7320 #endif
7321 #ifndef WIFEXITED
7322 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7323 #endif
7326 main ()
7328 int s;
7329 wait (&s);
7330 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7332 return 0;
7334 _ACEOF
7335 rm -f conftest.$ac_objext
7336 if { (ac_try="$ac_compile"
7337 case "(($ac_try" in
7338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7339 *) ac_try_echo=$ac_try;;
7340 esac
7341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7342 (eval "$ac_compile") 2>conftest.er1
7343 ac_status=$?
7344 grep -v '^ *+' conftest.er1 >conftest.err
7345 rm -f conftest.er1
7346 cat conftest.err >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } && {
7349 test -z "$ac_c_werror_flag" ||
7350 test ! -s conftest.err
7351 } && test -s conftest.$ac_objext; then
7352 ac_cv_header_sys_wait_h=yes
7353 else
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 ac_cv_header_sys_wait_h=no
7360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7363 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7364 if test $ac_cv_header_sys_wait_h = yes; then
7366 cat >>confdefs.h <<\_ACEOF
7367 #define HAVE_SYS_WAIT_H 1
7368 _ACEOF
7373 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7374 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7375 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #ifdef TIME_WITH_SYS_TIME
7385 #include <sys/time.h>
7386 #include <time.h>
7387 #else
7388 #ifdef HAVE_SYS_TIME_H
7389 #include <sys/time.h>
7390 #else
7391 #include <time.h>
7392 #endif
7393 #endif
7394 #ifdef HAVE_UTIME_H
7395 #include <utime.h>
7396 #endif
7398 main ()
7400 static struct utimbuf x; x.actime = x.modtime;
7402 return 0;
7404 _ACEOF
7405 rm -f conftest.$ac_objext
7406 if { (ac_try="$ac_compile"
7407 case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410 esac
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7422 emacs_cv_struct_utimbuf=yes
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 emacs_cv_struct_utimbuf=no
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7433 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7434 if test $emacs_cv_struct_utimbuf = yes; then
7436 cat >>confdefs.h <<\_ACEOF
7437 #define HAVE_STRUCT_UTIMBUF 1
7438 _ACEOF
7442 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7443 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7444 if test "${ac_cv_type_signal+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447 cat >conftest.$ac_ext <<_ACEOF
7448 /* confdefs.h. */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7453 #include <sys/types.h>
7454 #include <signal.h>
7457 main ()
7459 return *(signal (0, 0)) (0) == 1;
7461 return 0;
7463 _ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (ac_try="$ac_compile"
7466 case "(($ac_try" in
7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7469 esac
7470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471 (eval "$ac_compile") 2>conftest.er1
7472 ac_status=$?
7473 grep -v '^ *+' conftest.er1 >conftest.err
7474 rm -f conftest.er1
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.$ac_objext; then
7481 ac_cv_type_signal=int
7482 else
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 ac_cv_type_signal=void
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7492 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7494 cat >>confdefs.h <<_ACEOF
7495 #define RETSIGTYPE $ac_cv_type_signal
7496 _ACEOF
7500 { echo "$as_me:$LINENO: checking for speed_t" >&5
7501 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7502 if test "${emacs_cv_speed_t+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505 cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h. */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 #include <termios.h>
7513 main ()
7515 speed_t x = 1;
7517 return 0;
7519 _ACEOF
7520 rm -f conftest.$ac_objext
7521 if { (ac_try="$ac_compile"
7522 case "(($ac_try" in
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7525 esac
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_compile") 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && {
7534 test -z "$ac_c_werror_flag" ||
7535 test ! -s conftest.err
7536 } && test -s conftest.$ac_objext; then
7537 emacs_cv_speed_t=yes
7538 else
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7542 emacs_cv_speed_t=no
7545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7548 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7549 if test $emacs_cv_speed_t = yes; then
7551 cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_SPEED_T 1
7553 _ACEOF
7557 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7558 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7559 if test "${emacs_cv_struct_timeval+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #ifdef TIME_WITH_SYS_TIME
7569 #include <sys/time.h>
7570 #include <time.h>
7571 #else
7572 #ifdef HAVE_SYS_TIME_H
7573 #include <sys/time.h>
7574 #else
7575 #include <time.h>
7576 #endif
7577 #endif
7579 main ()
7581 static struct timeval x; x.tv_sec = x.tv_usec;
7583 return 0;
7585 _ACEOF
7586 rm -f conftest.$ac_objext
7587 if { (ac_try="$ac_compile"
7588 case "(($ac_try" in
7589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7591 esac
7592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593 (eval "$ac_compile") 2>conftest.er1
7594 ac_status=$?
7595 grep -v '^ *+' conftest.er1 >conftest.err
7596 rm -f conftest.er1
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } && {
7600 test -z "$ac_c_werror_flag" ||
7601 test ! -s conftest.err
7602 } && test -s conftest.$ac_objext; then
7603 emacs_cv_struct_timeval=yes
7604 else
7605 echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7608 emacs_cv_struct_timeval=no
7611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7614 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7615 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7616 if test $emacs_cv_struct_timeval = yes; then
7618 cat >>confdefs.h <<\_ACEOF
7619 #define HAVE_TIMEVAL 1
7620 _ACEOF
7624 { echo "$as_me:$LINENO: checking for struct exception" >&5
7625 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7626 if test "${emacs_cv_struct_exception+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h. */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 #include <math.h>
7637 main ()
7639 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7641 return 0;
7643 _ACEOF
7644 rm -f conftest.$ac_objext
7645 if { (ac_try="$ac_compile"
7646 case "(($ac_try" in
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7649 esac
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_compile") 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && {
7658 test -z "$ac_c_werror_flag" ||
7659 test ! -s conftest.err
7660 } && test -s conftest.$ac_objext; then
7661 emacs_cv_struct_exception=yes
7662 else
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7666 emacs_cv_struct_exception=no
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7672 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7673 HAVE_EXCEPTION=$emacs_cv_struct_exception
7674 if test $emacs_cv_struct_exception != yes; then
7676 cat >>confdefs.h <<\_ACEOF
7677 #define NO_MATHERR 1
7678 _ACEOF
7683 for ac_header in sys/socket.h
7685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 ac_res=`eval echo '${'$as_ac_Header'}'`
7693 { echo "$as_me:$LINENO: result: $ac_res" >&5
7694 echo "${ECHO_T}$ac_res" >&6; }
7695 else
7696 # Is the header compilable?
7697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7699 cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h. */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 $ac_includes_default
7706 #include <$ac_header>
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7710 case "(($ac_try" in
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7713 esac
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_compile") 2>conftest.er1
7716 ac_status=$?
7717 grep -v '^ *+' conftest.er1 >conftest.err
7718 rm -f conftest.er1
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_c_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest.$ac_objext; then
7725 ac_header_compiler=yes
7726 else
7727 echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7730 ac_header_compiler=no
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7735 echo "${ECHO_T}$ac_header_compiler" >&6; }
7737 # Is the header present?
7738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7740 cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h. */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 #include <$ac_header>
7747 _ACEOF
7748 if { (ac_try="$ac_cpp conftest.$ac_ext"
7749 case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7752 esac
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7755 ac_status=$?
7756 grep -v '^ *+' conftest.er1 >conftest.err
7757 rm -f conftest.er1
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } >/dev/null && {
7761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7763 }; then
7764 ac_header_preproc=yes
7765 else
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_header_preproc=no
7772 rm -f conftest.err conftest.$ac_ext
7773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7774 echo "${ECHO_T}$ac_header_preproc" >&6; }
7776 # So? What about this header?
7777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7778 yes:no: )
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7783 ac_header_preproc=yes
7785 no:yes:* )
7786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7800 esac
7801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806 eval "$as_ac_Header=\$ac_header_preproc"
7808 ac_res=`eval echo '${'$as_ac_Header'}'`
7809 { echo "$as_me:$LINENO: result: $ac_res" >&5
7810 echo "${ECHO_T}$ac_res" >&6; }
7813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7814 cat >>confdefs.h <<_ACEOF
7815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7816 _ACEOF
7820 done
7823 for ac_header in net/if.h
7825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h. */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 $ac_includes_default
7838 #if HAVE_SYS_SOCKET_H
7839 #include <sys/socket.h>
7840 #endif
7842 #include <$ac_header>
7843 _ACEOF
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7846 case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849 esac
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_compile") 2>conftest.er1
7852 ac_status=$?
7853 grep -v '^ *+' conftest.er1 >conftest.err
7854 rm -f conftest.er1
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } && {
7858 test -z "$ac_c_werror_flag" ||
7859 test ! -s conftest.err
7860 } && test -s conftest.$ac_objext; then
7861 eval "$as_ac_Header=yes"
7862 else
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7866 eval "$as_ac_Header=no"
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 ac_res=`eval echo '${'$as_ac_Header'}'`
7872 { echo "$as_me:$LINENO: result: $ac_res" >&5
7873 echo "${ECHO_T}$ac_res" >&6; }
7874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7875 cat >>confdefs.h <<_ACEOF
7876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7877 _ACEOF
7881 done
7884 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7885 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7886 if test "${ac_cv_struct_tm+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 #include <sys/types.h>
7896 #include <time.h>
7899 main ()
7901 struct tm tm;
7902 int *p = &tm.tm_sec;
7903 return !p;
7905 return 0;
7907 _ACEOF
7908 rm -f conftest.$ac_objext
7909 if { (ac_try="$ac_compile"
7910 case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913 esac
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
7925 ac_cv_struct_tm=time.h
7926 else
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 ac_cv_struct_tm=sys/time.h
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7936 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7937 if test $ac_cv_struct_tm = sys/time.h; then
7939 cat >>confdefs.h <<\_ACEOF
7940 #define TM_IN_SYS_TIME 1
7941 _ACEOF
7945 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7946 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7947 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 #include <sys/types.h>
7957 #include <$ac_cv_struct_tm>
7961 main ()
7963 static struct tm ac_aggr;
7964 if (ac_aggr.tm_zone)
7965 return 0;
7967 return 0;
7969 _ACEOF
7970 rm -f conftest.$ac_objext
7971 if { (ac_try="$ac_compile"
7972 case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975 esac
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_cv_member_struct_tm_tm_zone=yes
7988 else
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7992 cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 #include <sys/types.h>
7999 #include <$ac_cv_struct_tm>
8003 main ()
8005 static struct tm ac_aggr;
8006 if (sizeof ac_aggr.tm_zone)
8007 return 0;
8009 return 0;
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_cv_member_struct_tm_tm_zone=yes
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 ac_cv_member_struct_tm_tm_zone=no
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8043 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8044 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8046 cat >>confdefs.h <<_ACEOF
8047 #define HAVE_STRUCT_TM_TM_ZONE 1
8048 _ACEOF
8053 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8055 cat >>confdefs.h <<\_ACEOF
8056 #define HAVE_TM_ZONE 1
8057 _ACEOF
8059 else
8060 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8061 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8062 if test "${ac_cv_have_decl_tzname+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065 cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h. */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 #include <time.h>
8074 main ()
8076 #ifndef tzname
8077 (void) tzname;
8078 #endif
8081 return 0;
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (ac_try="$ac_compile"
8086 case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
8101 ac_cv_have_decl_tzname=yes
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 ac_cv_have_decl_tzname=no
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8112 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8113 if test $ac_cv_have_decl_tzname = yes; then
8115 cat >>confdefs.h <<_ACEOF
8116 #define HAVE_DECL_TZNAME 1
8117 _ACEOF
8120 else
8121 cat >>confdefs.h <<_ACEOF
8122 #define HAVE_DECL_TZNAME 0
8123 _ACEOF
8129 { echo "$as_me:$LINENO: checking for tzname" >&5
8130 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8131 if test "${ac_cv_var_tzname+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h. */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 #include <time.h>
8141 #if !HAVE_DECL_TZNAME
8142 extern char *tzname[];
8143 #endif
8146 main ()
8148 return tzname[0][0];
8150 return 0;
8152 _ACEOF
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (ac_try="$ac_link"
8155 case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_link") 2>conftest.er1
8161 ac_status=$?
8162 grep -v '^ *+' conftest.er1 >conftest.err
8163 rm -f conftest.er1
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && {
8167 test -z "$ac_c_werror_flag" ||
8168 test ! -s conftest.err
8169 } && test -s conftest$ac_exeext &&
8170 $as_test_x conftest$ac_exeext; then
8171 ac_cv_var_tzname=yes
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_cv_var_tzname=no
8179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8180 conftest$ac_exeext conftest.$ac_ext
8182 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8183 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8184 if test $ac_cv_var_tzname = yes; then
8186 cat >>confdefs.h <<\_ACEOF
8187 #define HAVE_TZNAME 1
8188 _ACEOF
8193 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8194 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8195 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 else
8198 cat >conftest.$ac_ext <<_ACEOF
8199 /* confdefs.h. */
8200 _ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8204 #include <time.h>
8207 main ()
8209 static struct tm ac_aggr;
8210 if (ac_aggr.tm_gmtoff)
8211 return 0;
8213 return 0;
8215 _ACEOF
8216 rm -f conftest.$ac_objext
8217 if { (ac_try="$ac_compile"
8218 case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_compile") 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } && {
8230 test -z "$ac_c_werror_flag" ||
8231 test ! -s conftest.err
8232 } && test -s conftest.$ac_objext; then
8233 ac_cv_member_struct_tm_tm_gmtoff=yes
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 cat >conftest.$ac_ext <<_ACEOF
8239 /* confdefs.h. */
8240 _ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 #include <time.h>
8247 main ()
8249 static struct tm ac_aggr;
8250 if (sizeof ac_aggr.tm_gmtoff)
8251 return 0;
8253 return 0;
8255 _ACEOF
8256 rm -f conftest.$ac_objext
8257 if { (ac_try="$ac_compile"
8258 case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8261 esac
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_compile") 2>conftest.er1
8264 ac_status=$?
8265 grep -v '^ *+' conftest.er1 >conftest.err
8266 rm -f conftest.er1
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } && {
8270 test -z "$ac_c_werror_flag" ||
8271 test ! -s conftest.err
8272 } && test -s conftest.$ac_objext; then
8273 ac_cv_member_struct_tm_tm_gmtoff=yes
8274 else
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8278 ac_cv_member_struct_tm_tm_gmtoff=no
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8287 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8288 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8290 cat >>confdefs.h <<\_ACEOF
8291 #define HAVE_TM_GMTOFF 1
8292 _ACEOF
8296 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8297 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8298 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 $ac_includes_default
8308 #if HAVE_SYS_SOCKET_H
8309 #include <sys/socket.h>
8310 #endif
8311 #if HAVE_NET_IF_H
8312 #include <net/if.h>
8313 #endif
8316 main ()
8318 static struct ifreq ac_aggr;
8319 if (ac_aggr.ifr_flags)
8320 return 0;
8322 return 0;
8324 _ACEOF
8325 rm -f conftest.$ac_objext
8326 if { (ac_try="$ac_compile"
8327 case "(($ac_try" in
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8330 esac
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332 (eval "$ac_compile") 2>conftest.er1
8333 ac_status=$?
8334 grep -v '^ *+' conftest.er1 >conftest.err
8335 rm -f conftest.er1
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } && {
8339 test -z "$ac_c_werror_flag" ||
8340 test ! -s conftest.err
8341 } && test -s conftest.$ac_objext; then
8342 ac_cv_member_struct_ifreq_ifr_flags=yes
8343 else
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h. */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 $ac_includes_default
8354 #if HAVE_SYS_SOCKET_H
8355 #include <sys/socket.h>
8356 #endif
8357 #if HAVE_NET_IF_H
8358 #include <net/if.h>
8359 #endif
8362 main ()
8364 static struct ifreq ac_aggr;
8365 if (sizeof ac_aggr.ifr_flags)
8366 return 0;
8368 return 0;
8370 _ACEOF
8371 rm -f conftest.$ac_objext
8372 if { (ac_try="$ac_compile"
8373 case "(($ac_try" in
8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8376 esac
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_compile") 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } && {
8385 test -z "$ac_c_werror_flag" ||
8386 test ! -s conftest.err
8387 } && test -s conftest.$ac_objext; then
8388 ac_cv_member_struct_ifreq_ifr_flags=yes
8389 else
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_cv_member_struct_ifreq_ifr_flags=no
8396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8402 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8403 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8405 cat >>confdefs.h <<_ACEOF
8406 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8407 _ACEOF
8411 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8412 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8413 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416 cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h. */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 $ac_includes_default
8423 #if HAVE_SYS_SOCKET_H
8424 #include <sys/socket.h>
8425 #endif
8426 #if HAVE_NET_IF_H
8427 #include <net/if.h>
8428 #endif
8431 main ()
8433 static struct ifreq ac_aggr;
8434 if (ac_aggr.ifr_hwaddr)
8435 return 0;
8437 return 0;
8439 _ACEOF
8440 rm -f conftest.$ac_objext
8441 if { (ac_try="$ac_compile"
8442 case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_compile") 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } && {
8454 test -z "$ac_c_werror_flag" ||
8455 test ! -s conftest.err
8456 } && test -s conftest.$ac_objext; then
8457 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8458 else
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 cat >conftest.$ac_ext <<_ACEOF
8463 /* confdefs.h. */
8464 _ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h. */
8468 $ac_includes_default
8469 #if HAVE_SYS_SOCKET_H
8470 #include <sys/socket.h>
8471 #endif
8472 #if HAVE_NET_IF_H
8473 #include <net/if.h>
8474 #endif
8477 main ()
8479 static struct ifreq ac_aggr;
8480 if (sizeof ac_aggr.ifr_hwaddr)
8481 return 0;
8483 return 0;
8485 _ACEOF
8486 rm -f conftest.$ac_objext
8487 if { (ac_try="$ac_compile"
8488 case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491 esac
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_compile") 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && {
8500 test -z "$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8502 } && test -s conftest.$ac_objext; then
8503 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8504 else
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8517 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8518 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8520 cat >>confdefs.h <<_ACEOF
8521 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8522 _ACEOF
8526 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8527 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8528 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531 cat >conftest.$ac_ext <<_ACEOF
8532 /* confdefs.h. */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 $ac_includes_default
8538 #if HAVE_SYS_SOCKET_H
8539 #include <sys/socket.h>
8540 #endif
8541 #if HAVE_NET_IF_H
8542 #include <net/if.h>
8543 #endif
8546 main ()
8548 static struct ifreq ac_aggr;
8549 if (ac_aggr.ifr_netmask)
8550 return 0;
8552 return 0;
8554 _ACEOF
8555 rm -f conftest.$ac_objext
8556 if { (ac_try="$ac_compile"
8557 case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560 esac
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_compile") 2>conftest.er1
8563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest.$ac_objext; then
8572 ac_cv_member_struct_ifreq_ifr_netmask=yes
8573 else
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h. */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 $ac_includes_default
8584 #if HAVE_SYS_SOCKET_H
8585 #include <sys/socket.h>
8586 #endif
8587 #if HAVE_NET_IF_H
8588 #include <net/if.h>
8589 #endif
8592 main ()
8594 static struct ifreq ac_aggr;
8595 if (sizeof ac_aggr.ifr_netmask)
8596 return 0;
8598 return 0;
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8603 case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
8609 ac_status=$?
8610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } && {
8615 test -z "$ac_c_werror_flag" ||
8616 test ! -s conftest.err
8617 } && test -s conftest.$ac_objext; then
8618 ac_cv_member_struct_ifreq_ifr_netmask=yes
8619 else
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_cv_member_struct_ifreq_ifr_netmask=no
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8632 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8633 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8635 cat >>confdefs.h <<_ACEOF
8636 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8637 _ACEOF
8641 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8642 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8643 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h. */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652 $ac_includes_default
8653 #if HAVE_SYS_SOCKET_H
8654 #include <sys/socket.h>
8655 #endif
8656 #if HAVE_NET_IF_H
8657 #include <net/if.h>
8658 #endif
8661 main ()
8663 static struct ifreq ac_aggr;
8664 if (ac_aggr.ifr_broadaddr)
8665 return 0;
8667 return 0;
8669 _ACEOF
8670 rm -f conftest.$ac_objext
8671 if { (ac_try="$ac_compile"
8672 case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8675 esac
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_compile") 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } && {
8684 test -z "$ac_c_werror_flag" ||
8685 test ! -s conftest.err
8686 } && test -s conftest.$ac_objext; then
8687 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8688 else
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 $ac_includes_default
8699 #if HAVE_SYS_SOCKET_H
8700 #include <sys/socket.h>
8701 #endif
8702 #if HAVE_NET_IF_H
8703 #include <net/if.h>
8704 #endif
8707 main ()
8709 static struct ifreq ac_aggr;
8710 if (sizeof ac_aggr.ifr_broadaddr)
8711 return 0;
8713 return 0;
8715 _ACEOF
8716 rm -f conftest.$ac_objext
8717 if { (ac_try="$ac_compile"
8718 case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8721 esac
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_compile") 2>conftest.er1
8724 ac_status=$?
8725 grep -v '^ *+' conftest.er1 >conftest.err
8726 rm -f conftest.er1
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } && {
8730 test -z "$ac_c_werror_flag" ||
8731 test ! -s conftest.err
8732 } && test -s conftest.$ac_objext; then
8733 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8747 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8748 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8750 cat >>confdefs.h <<_ACEOF
8751 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8752 _ACEOF
8756 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8757 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8758 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 else
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h. */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 $ac_includes_default
8768 #if HAVE_SYS_SOCKET_H
8769 #include <sys/socket.h>
8770 #endif
8771 #if HAVE_NET_IF_H
8772 #include <net/if.h>
8773 #endif
8776 main ()
8778 static struct ifreq ac_aggr;
8779 if (ac_aggr.ifr_addr)
8780 return 0;
8782 return 0;
8784 _ACEOF
8785 rm -f conftest.$ac_objext
8786 if { (ac_try="$ac_compile"
8787 case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790 esac
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_compile") 2>conftest.er1
8793 ac_status=$?
8794 grep -v '^ *+' conftest.er1 >conftest.err
8795 rm -f conftest.er1
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } && {
8799 test -z "$ac_c_werror_flag" ||
8800 test ! -s conftest.err
8801 } && test -s conftest.$ac_objext; then
8802 ac_cv_member_struct_ifreq_ifr_addr=yes
8803 else
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h. */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 #if HAVE_SYS_SOCKET_H
8815 #include <sys/socket.h>
8816 #endif
8817 #if HAVE_NET_IF_H
8818 #include <net/if.h>
8819 #endif
8822 main ()
8824 static struct ifreq ac_aggr;
8825 if (sizeof ac_aggr.ifr_addr)
8826 return 0;
8828 return 0;
8830 _ACEOF
8831 rm -f conftest.$ac_objext
8832 if { (ac_try="$ac_compile"
8833 case "(($ac_try" in
8834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835 *) ac_try_echo=$ac_try;;
8836 esac
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838 (eval "$ac_compile") 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && {
8845 test -z "$ac_c_werror_flag" ||
8846 test ! -s conftest.err
8847 } && test -s conftest.$ac_objext; then
8848 ac_cv_member_struct_ifreq_ifr_addr=yes
8849 else
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 ac_cv_member_struct_ifreq_ifr_addr=no
8856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8862 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8863 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8865 cat >>confdefs.h <<_ACEOF
8866 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8867 _ACEOF
8874 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8875 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8876 if test "$ac_cv_prog_cc_c89" != no; then
8877 { echo "$as_me:$LINENO: result: yes" >&5
8878 echo "${ECHO_T}yes" >&6; }
8880 cat >>confdefs.h <<\_ACEOF
8881 #define PROTOTYPES 1
8882 _ACEOF
8885 cat >>confdefs.h <<\_ACEOF
8886 #define __PROTOTYPES 1
8887 _ACEOF
8889 else
8890 { echo "$as_me:$LINENO: result: no" >&5
8891 echo "${ECHO_T}no" >&6; }
8894 { echo "$as_me:$LINENO: checking for working volatile" >&5
8895 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8896 if test "${ac_cv_c_volatile+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8907 main ()
8910 volatile int x;
8911 int * volatile y = (int *) 0;
8912 return !x && !y;
8914 return 0;
8916 _ACEOF
8917 rm -f conftest.$ac_objext
8918 if { (ac_try="$ac_compile"
8919 case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922 esac
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_compile") 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest.$ac_objext; then
8934 ac_cv_c_volatile=yes
8935 else
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_cv_c_volatile=no
8942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8945 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8946 if test $ac_cv_c_volatile = no; then
8948 cat >>confdefs.h <<\_ACEOF
8949 #define volatile
8950 _ACEOF
8954 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8955 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8956 if test "${ac_cv_c_const+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8967 main ()
8969 /* FIXME: Include the comments suggested by Paul. */
8970 #ifndef __cplusplus
8971 /* Ultrix mips cc rejects this. */
8972 typedef int charset[2];
8973 const charset cs;
8974 /* SunOS 4.1.1 cc rejects this. */
8975 char const *const *pcpcc;
8976 char **ppc;
8977 /* NEC SVR4.0.2 mips cc rejects this. */
8978 struct point {int x, y;};
8979 static struct point const zero = {0,0};
8980 /* AIX XL C 1.02.0.0 rejects this.
8981 It does not let you subtract one const X* pointer from another in
8982 an arm of an if-expression whose if-part is not a constant
8983 expression */
8984 const char *g = "string";
8985 pcpcc = &g + (g ? g-g : 0);
8986 /* HPUX 7.0 cc rejects these. */
8987 ++pcpcc;
8988 ppc = (char**) pcpcc;
8989 pcpcc = (char const *const *) ppc;
8990 { /* SCO 3.2v4 cc rejects this. */
8991 char *t;
8992 char const *s = 0 ? (char *) 0 : (char const *) 0;
8994 *t++ = 0;
8995 if (s) return 0;
8997 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8998 int x[] = {25, 17};
8999 const int *foo = &x[0];
9000 ++foo;
9002 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9003 typedef const int *iptr;
9004 iptr p = 0;
9005 ++p;
9007 { /* AIX XL C 1.02.0.0 rejects this saying
9008 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9009 struct s { int j; const int *ap[3]; };
9010 struct s *b; b->j = 5;
9012 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9013 const int foo = 10;
9014 if (!foo) return 0;
9016 return !cs[0] && !zero.x;
9017 #endif
9020 return 0;
9022 _ACEOF
9023 rm -f conftest.$ac_objext
9024 if { (ac_try="$ac_compile"
9025 case "(($ac_try" in
9026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9028 esac
9029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_compile") 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } && {
9037 test -z "$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 } && test -s conftest.$ac_objext; then
9040 ac_cv_c_const=yes
9041 else
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9045 ac_cv_c_const=no
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9051 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9052 if test $ac_cv_c_const = no; then
9054 cat >>confdefs.h <<\_ACEOF
9055 #define const
9056 _ACEOF
9060 { echo "$as_me:$LINENO: checking for void * support" >&5
9061 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9062 if test "${emacs_cv_void_star+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h. */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9073 main ()
9075 void * foo;
9077 return 0;
9079 _ACEOF
9080 rm -f conftest.$ac_objext
9081 if { (ac_try="$ac_compile"
9082 case "(($ac_try" in
9083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084 *) ac_try_echo=$ac_try;;
9085 esac
9086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9087 (eval "$ac_compile") 2>conftest.er1
9088 ac_status=$?
9089 grep -v '^ *+' conftest.er1 >conftest.err
9090 rm -f conftest.er1
9091 cat conftest.err >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } && {
9094 test -z "$ac_c_werror_flag" ||
9095 test ! -s conftest.err
9096 } && test -s conftest.$ac_objext; then
9097 emacs_cv_void_star=yes
9098 else
9099 echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9102 emacs_cv_void_star=no
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9108 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9109 if test $emacs_cv_void_star = yes; then
9110 cat >>confdefs.h <<\_ACEOF
9111 #define POINTER_TYPE void
9112 _ACEOF
9114 else
9115 cat >>confdefs.h <<\_ACEOF
9116 #define POINTER_TYPE char
9117 _ACEOF
9125 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9126 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9127 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9128 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131 cat >conftest.make <<\_ACEOF
9132 SHELL = /bin/sh
9133 all:
9134 @echo '@@@%%%=$(MAKE)=@@@%%%'
9135 _ACEOF
9136 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9137 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9138 *@@@%%%=?*=@@@%%%*)
9139 eval ac_cv_prog_make_${ac_make}_set=yes;;
9141 eval ac_cv_prog_make_${ac_make}_set=no;;
9142 esac
9143 rm -f conftest.make
9145 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9146 { echo "$as_me:$LINENO: result: yes" >&5
9147 echo "${ECHO_T}yes" >&6; }
9148 SET_MAKE=
9149 else
9150 { echo "$as_me:$LINENO: result: no" >&5
9151 echo "${ECHO_T}no" >&6; }
9152 SET_MAKE="MAKE=${MAKE-make}"
9156 { echo "$as_me:$LINENO: checking for long file names" >&5
9157 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9158 if test "${ac_cv_sys_long_file_names+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 ac_cv_sys_long_file_names=yes
9162 # Test for long file names in all the places we know might matter:
9163 # . the current directory, where building will happen
9164 # $prefix/lib where we will be installing things
9165 # $exec_prefix/lib likewise
9166 # $TMPDIR if set, where it might want to write temporary files
9167 # /tmp where it might want to write temporary files
9168 # /var/tmp likewise
9169 # /usr/tmp likewise
9170 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9171 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9172 # in the usual case where exec_prefix is '${prefix}'.
9173 case $ac_dir in #(
9174 . | /* | ?:[\\/]*) ;; #(
9175 *) continue;;
9176 esac
9177 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9178 ac_xdir=$ac_dir/cf$$
9179 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9180 ac_tf1=$ac_xdir/conftest9012345
9181 ac_tf2=$ac_xdir/conftest9012346
9182 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9183 ac_cv_sys_long_file_names=no
9184 rm -f -r "$ac_xdir" 2>/dev/null
9185 test $ac_cv_sys_long_file_names = no && break
9186 done
9188 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9189 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9190 if test $ac_cv_sys_long_file_names = yes; then
9192 cat >>confdefs.h <<\_ACEOF
9193 #define HAVE_LONG_FILE_NAMES 1
9194 _ACEOF
9199 #### Choose a window system.
9201 { echo "$as_me:$LINENO: checking for X" >&5
9202 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9205 # Check whether --with-x was given.
9206 if test "${with_x+set}" = set; then
9207 withval=$with_x;
9210 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9211 if test "x$with_x" = xno; then
9212 # The user explicitly disabled X.
9213 have_x=disabled
9214 else
9215 case $x_includes,$x_libraries in #(
9216 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9217 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9218 { (exit 1); exit 1; }; };; #(
9219 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222 # One or both of the vars are not set, and there is no cached value.
9223 ac_x_includes=no ac_x_libraries=no
9224 rm -f -r conftest.dir
9225 if mkdir conftest.dir; then
9226 cd conftest.dir
9227 cat >Imakefile <<'_ACEOF'
9228 incroot:
9229 @echo incroot='${INCROOT}'
9230 usrlibdir:
9231 @echo usrlibdir='${USRLIBDIR}'
9232 libdir:
9233 @echo libdir='${LIBDIR}'
9234 _ACEOF
9235 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9236 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9237 for ac_var in incroot usrlibdir libdir; do
9238 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9239 done
9240 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9241 for ac_extension in a so sl; do
9242 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9243 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9244 ac_im_usrlibdir=$ac_im_libdir; break
9246 done
9247 # Screen out bogus values from the imake configuration. They are
9248 # bogus both because they are the default anyway, and because
9249 # using them would break gcc on systems where it needs fixed includes.
9250 case $ac_im_incroot in
9251 /usr/include) ac_x_includes= ;;
9252 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9253 esac
9254 case $ac_im_usrlibdir in
9255 /usr/lib | /lib) ;;
9256 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9257 esac
9259 cd ..
9260 rm -f -r conftest.dir
9263 # Standard set of common directories for X headers.
9264 # Check X11 before X11Rn because it is often a symlink to the current release.
9265 ac_x_header_dirs='
9266 /usr/X11/include
9267 /usr/X11R6/include
9268 /usr/X11R5/include
9269 /usr/X11R4/include
9271 /usr/include/X11
9272 /usr/include/X11R6
9273 /usr/include/X11R5
9274 /usr/include/X11R4
9276 /usr/local/X11/include
9277 /usr/local/X11R6/include
9278 /usr/local/X11R5/include
9279 /usr/local/X11R4/include
9281 /usr/local/include/X11
9282 /usr/local/include/X11R6
9283 /usr/local/include/X11R5
9284 /usr/local/include/X11R4
9286 /usr/X386/include
9287 /usr/x386/include
9288 /usr/XFree86/include/X11
9290 /usr/include
9291 /usr/local/include
9292 /usr/unsupported/include
9293 /usr/athena/include
9294 /usr/local/x11r5/include
9295 /usr/lpp/Xamples/include
9297 /usr/openwin/include
9298 /usr/openwin/share/include'
9300 if test "$ac_x_includes" = no; then
9301 # Guess where to find include files, by looking for Xlib.h.
9302 # First, try using that file with no special directory specified.
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h. */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 #include <X11/Xlib.h>
9310 _ACEOF
9311 if { (ac_try="$ac_cpp conftest.$ac_ext"
9312 case "(($ac_try" in
9313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314 *) ac_try_echo=$ac_try;;
9315 esac
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9318 ac_status=$?
9319 grep -v '^ *+' conftest.er1 >conftest.err
9320 rm -f conftest.er1
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } >/dev/null && {
9324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9326 }; then
9327 # We can compile using X headers with no special include directory.
9328 ac_x_includes=
9329 else
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9333 for ac_dir in $ac_x_header_dirs; do
9334 if test -r "$ac_dir/X11/Xlib.h"; then
9335 ac_x_includes=$ac_dir
9336 break
9338 done
9341 rm -f conftest.err conftest.$ac_ext
9342 fi # $ac_x_includes = no
9344 if test "$ac_x_libraries" = no; then
9345 # Check for the libraries.
9346 # See if we find them without any special options.
9347 # Don't add to $LIBS permanently.
9348 ac_save_LIBS=$LIBS
9349 LIBS="-lX11 $LIBS"
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h. */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 #include <X11/Xlib.h>
9358 main ()
9360 XrmInitialize ()
9362 return 0;
9364 _ACEOF
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (ac_try="$ac_link"
9367 case "(($ac_try" in
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9370 esac
9371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_link") 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest$ac_exeext &&
9382 $as_test_x conftest$ac_exeext; then
9383 LIBS=$ac_save_LIBS
9384 # We can link X programs with no special library path.
9385 ac_x_libraries=
9386 else
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9390 LIBS=$ac_save_LIBS
9391 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9393 # Don't even attempt the hair of trying to link an X program!
9394 for ac_extension in a so sl; do
9395 if test -r "$ac_dir/libX11.$ac_extension"; then
9396 ac_x_libraries=$ac_dir
9397 break 2
9399 done
9400 done
9403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9404 conftest$ac_exeext conftest.$ac_ext
9405 fi # $ac_x_libraries = no
9407 case $ac_x_includes,$ac_x_libraries in #(
9408 no,* | *,no | *\'*)
9409 # Didn't find X, or a directory has "'" in its name.
9410 ac_cv_have_x="have_x=no";; #(
9412 # Record where we found X for the cache.
9413 ac_cv_have_x="have_x=yes\
9414 ac_x_includes='$ac_x_includes'\
9415 ac_x_libraries='$ac_x_libraries'"
9416 esac
9418 ;; #(
9419 *) have_x=yes;;
9420 esac
9421 eval "$ac_cv_have_x"
9422 fi # $with_x != no
9424 if test "$have_x" != yes; then
9425 { echo "$as_me:$LINENO: result: $have_x" >&5
9426 echo "${ECHO_T}$have_x" >&6; }
9427 no_x=yes
9428 else
9429 # If each of the values was on the command line, it overrides each guess.
9430 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9431 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9432 # Update the cache value to reflect the command line values.
9433 ac_cv_have_x="have_x=yes\
9434 ac_x_includes='$x_includes'\
9435 ac_x_libraries='$x_libraries'"
9436 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9437 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9440 if test "$no_x" = yes; then
9441 window_system=none
9442 else
9443 window_system=x11
9446 if test "${x_libraries}" != NONE; then
9447 if test -n "${x_libraries}"; then
9448 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9449 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9451 x_default_search_path=""
9452 x_search_path=${x_libraries}
9453 if test -z "${x_search_path}"; then
9454 x_search_path=/usr/lib
9456 for x_library in `echo ${x_search_path}: | \
9457 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9458 x_search_path="\
9459 ${x_library}/X11/%L/%T/%N%C%S:\
9460 ${x_library}/X11/%l/%T/%N%C%S:\
9461 ${x_library}/X11/%T/%N%C%S:\
9462 ${x_library}/X11/%L/%T/%N%S:\
9463 ${x_library}/X11/%l/%T/%N%S:\
9464 ${x_library}/X11/%T/%N%S"
9465 if test x"${x_default_search_path}" = x; then
9466 x_default_search_path=${x_search_path}
9467 else
9468 x_default_search_path="${x_search_path}:${x_default_search_path}"
9470 done
9472 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9473 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9476 if test x"${x_includes}" = x; then
9477 bitmapdir=/usr/include/X11/bitmaps
9478 else
9479 # accumulate include directories that have X11 bitmap subdirectories
9480 bmd_acc="dummyval"
9481 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9482 if test -d "${bmd}/X11/bitmaps"; then
9483 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9485 if test -d "${bmd}/bitmaps"; then
9486 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9488 done
9489 if test ${bmd_acc} != "dummyval"; then
9490 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9494 HAVE_CARBON=no
9495 if test "${with_carbon}" != no; then
9496 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9497 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9498 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9499 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9503 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9504 else
9505 # Is the header compilable?
9506 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9507 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 #include <Carbon/Carbon.h>
9516 _ACEOF
9517 rm -f conftest.$ac_objext
9518 if { (ac_try="$ac_compile"
9519 case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9522 esac
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_compile") 2>conftest.er1
9525 ac_status=$?
9526 grep -v '^ *+' conftest.er1 >conftest.err
9527 rm -f conftest.er1
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } && {
9531 test -z "$ac_c_werror_flag" ||
9532 test ! -s conftest.err
9533 } && test -s conftest.$ac_objext; then
9534 ac_header_compiler=yes
9535 else
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9539 ac_header_compiler=no
9542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9544 echo "${ECHO_T}$ac_header_compiler" >&6; }
9546 # Is the header present?
9547 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9548 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h. */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 #include <Carbon/Carbon.h>
9556 _ACEOF
9557 if { (ac_try="$ac_cpp conftest.$ac_ext"
9558 case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9561 esac
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9564 ac_status=$?
9565 grep -v '^ *+' conftest.er1 >conftest.err
9566 rm -f conftest.er1
9567 cat conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } >/dev/null && {
9570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9571 test ! -s conftest.err
9572 }; then
9573 ac_header_preproc=yes
9574 else
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9578 ac_header_preproc=no
9581 rm -f conftest.err conftest.$ac_ext
9582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9583 echo "${ECHO_T}$ac_header_preproc" >&6; }
9585 # So? What about this header?
9586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9587 yes:no: )
9588 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9589 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9591 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9592 ac_header_preproc=yes
9594 no:yes:* )
9595 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9596 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9598 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9599 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9600 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9602 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9604 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9605 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9606 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9609 esac
9610 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9611 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9612 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9617 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9618 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9621 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9622 HAVE_CARBON=yes
9627 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9628 if test "${with_carbon+set}" != set \
9629 && test "${carbon_appdir_x+set}" != set; then
9630 for var in with_x with_x_toolkit with_gtk with_xim \
9631 with_xpm with_jpeg with_tiff with_gif with_png; do
9632 if eval test \"\${$var+set}\" = set; then
9633 HAVE_CARBON=no
9634 break
9636 done
9639 if test "${HAVE_CARBON}" = yes; then
9640 window_system=mac
9643 case "${window_system}" in
9644 x11 )
9645 HAVE_X_WINDOWS=yes
9646 HAVE_X11=yes
9647 case "${with_x_toolkit}" in
9648 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9649 motif ) USE_X_TOOLKIT=MOTIF ;;
9650 gtk ) with_gtk=yes
9651 USE_X_TOOLKIT=none ;;
9652 no ) USE_X_TOOLKIT=none ;;
9654 if test x"$with_gtk" = xyes; then
9655 USE_X_TOOLKIT=none
9656 else
9657 USE_X_TOOLKIT=maybe
9660 esac
9662 mac | none )
9663 HAVE_X_WINDOWS=no
9664 HAVE_X11=no
9665 USE_X_TOOLKIT=none
9667 esac
9669 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9670 # Extract the first word of "X", so it can be a program name with args.
9671 set dummy X; ac_word=$2
9672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9674 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677 if test -n "$HAVE_XSERVER"; then
9678 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9679 else
9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 for as_dir in $PATH
9683 IFS=$as_save_IFS
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9687 ac_cv_prog_HAVE_XSERVER="true"
9688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9689 break 2
9691 done
9692 done
9693 IFS=$as_save_IFS
9695 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9698 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9699 if test -n "$HAVE_XSERVER"; then
9700 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9701 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9702 else
9703 { echo "$as_me:$LINENO: result: no" >&5
9704 echo "${ECHO_T}no" >&6; }
9708 if test "$HAVE_XSERVER" = true ||
9709 test -n "$DISPLAY" ||
9710 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9711 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9712 were found. You should install the relevant development files for X
9713 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9714 sure you have development files for image handling, i.e.
9715 tiff, gif, jpeg, png and xpm.
9716 If you are sure you want Emacs compiled without X window support, pass
9717 --without-x
9718 to configure." >&5
9719 echo "$as_me: error: You seem to be running X, but no X development libraries
9720 were found. You should install the relevant development files for X
9721 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9722 sure you have development files for image handling, i.e.
9723 tiff, gif, jpeg, png and xpm.
9724 If you are sure you want Emacs compiled without X window support, pass
9725 --without-x
9726 to configure." >&2;}
9727 { (exit 1); exit 1; }; }
9731 ### If we're using X11, we should use the X menu package.
9732 HAVE_MENUS=no
9733 case ${HAVE_X11} in
9734 yes ) HAVE_MENUS=yes ;;
9735 esac
9737 if test "${opsys}" = "hpux9"; then
9738 case "${x_libraries}" in
9739 *X11R4* )
9740 opsysfile="s/hpux9-x11r4.h"
9742 esac
9745 if test "${opsys}" = "hpux9shr"; then
9746 case "${x_libraries}" in
9747 *X11R4* )
9748 opsysfile="s/hpux9shxr4.h"
9750 esac
9753 ### Compute the unexec source name from the object name.
9754 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9756 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9757 # Assume not, until told otherwise.
9758 GNU_MALLOC=yes
9759 doug_lea_malloc=yes
9760 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9761 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9762 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765 cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h. */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9771 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9773 #define malloc_get_state innocuous_malloc_get_state
9775 /* System header to define __stub macros and hopefully few prototypes,
9776 which can conflict with char malloc_get_state (); below.
9777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9778 <limits.h> exists even on freestanding compilers. */
9780 #ifdef __STDC__
9781 # include <limits.h>
9782 #else
9783 # include <assert.h>
9784 #endif
9786 #undef malloc_get_state
9788 /* Override any GCC internal prototype to avoid an error.
9789 Use char because int might match the return type of a GCC
9790 builtin and then its argument prototype would still apply. */
9791 #ifdef __cplusplus
9792 extern "C"
9793 #endif
9794 char malloc_get_state ();
9795 /* The GNU C library defines this for functions which it implements
9796 to always fail with ENOSYS. Some functions are actually named
9797 something starting with __ and the normal name is an alias. */
9798 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9799 choke me
9800 #endif
9803 main ()
9805 return malloc_get_state ();
9807 return 0;
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9812 case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest$ac_exeext &&
9827 $as_test_x conftest$ac_exeext; then
9828 ac_cv_func_malloc_get_state=yes
9829 else
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 ac_cv_func_malloc_get_state=no
9836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837 conftest$ac_exeext conftest.$ac_ext
9839 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9840 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9841 if test $ac_cv_func_malloc_get_state = yes; then
9843 else
9844 doug_lea_malloc=no
9847 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9848 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9849 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852 cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h. */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9858 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9860 #define malloc_set_state innocuous_malloc_set_state
9862 /* System header to define __stub macros and hopefully few prototypes,
9863 which can conflict with char malloc_set_state (); below.
9864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9865 <limits.h> exists even on freestanding compilers. */
9867 #ifdef __STDC__
9868 # include <limits.h>
9869 #else
9870 # include <assert.h>
9871 #endif
9873 #undef malloc_set_state
9875 /* Override any GCC internal prototype to avoid an error.
9876 Use char because int might match the return type of a GCC
9877 builtin and then its argument prototype would still apply. */
9878 #ifdef __cplusplus
9879 extern "C"
9880 #endif
9881 char malloc_set_state ();
9882 /* The GNU C library defines this for functions which it implements
9883 to always fail with ENOSYS. Some functions are actually named
9884 something starting with __ and the normal name is an alias. */
9885 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9886 choke me
9887 #endif
9890 main ()
9892 return malloc_set_state ();
9894 return 0;
9896 _ACEOF
9897 rm -f conftest.$ac_objext conftest$ac_exeext
9898 if { (ac_try="$ac_link"
9899 case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9902 esac
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_link") 2>conftest.er1
9905 ac_status=$?
9906 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } && {
9911 test -z "$ac_c_werror_flag" ||
9912 test ! -s conftest.err
9913 } && test -s conftest$ac_exeext &&
9914 $as_test_x conftest$ac_exeext; then
9915 ac_cv_func_malloc_set_state=yes
9916 else
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 ac_cv_func_malloc_set_state=no
9923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9924 conftest$ac_exeext conftest.$ac_ext
9926 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9927 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9928 if test $ac_cv_func_malloc_set_state = yes; then
9930 else
9931 doug_lea_malloc=no
9934 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9935 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9936 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h. */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 extern void (* __after_morecore_hook)();
9947 main ()
9949 __after_morecore_hook = 0
9951 return 0;
9953 _ACEOF
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (ac_try="$ac_link"
9956 case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959 esac
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_link") 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } && {
9968 test -z "$ac_c_werror_flag" ||
9969 test ! -s conftest.err
9970 } && test -s conftest$ac_exeext &&
9971 $as_test_x conftest$ac_exeext; then
9972 emacs_cv_var___after_morecore_hook=yes
9973 else
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 emacs_cv_var___after_morecore_hook=no
9980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9981 conftest$ac_exeext conftest.$ac_ext
9983 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9984 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9985 if test $emacs_cv_var___after_morecore_hook = no; then
9986 doug_lea_malloc=no
9988 if test "${system_malloc}" = "yes"; then
9989 GNU_MALLOC=no
9990 GNU_MALLOC_reason="
9991 (The GNU allocators don't work with this system configuration.)"
9993 if test "$doug_lea_malloc" = "yes" ; then
9994 if test "$GNU_MALLOC" = yes ; then
9995 GNU_MALLOC_reason="
9996 (Using Doug Lea's new malloc from the GNU C Library.)"
9999 cat >>confdefs.h <<\_ACEOF
10000 #define DOUG_LEA_MALLOC 1
10001 _ACEOF
10005 if test x"${REL_ALLOC}" = x; then
10006 REL_ALLOC=${GNU_MALLOC}
10012 for ac_header in stdlib.h unistd.h
10014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 ac_res=`eval echo '${'$as_ac_Header'}'`
10022 { echo "$as_me:$LINENO: result: $ac_res" >&5
10023 echo "${ECHO_T}$ac_res" >&6; }
10024 else
10025 # Is the header compilable?
10026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 $ac_includes_default
10035 #include <$ac_header>
10036 _ACEOF
10037 rm -f conftest.$ac_objext
10038 if { (ac_try="$ac_compile"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.$ac_objext; then
10054 ac_header_compiler=yes
10055 else
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_header_compiler=no
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10064 echo "${ECHO_T}$ac_header_compiler" >&6; }
10066 # Is the header present?
10067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 #include <$ac_header>
10076 _ACEOF
10077 if { (ac_try="$ac_cpp conftest.$ac_ext"
10078 case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10084 ac_status=$?
10085 grep -v '^ *+' conftest.er1 >conftest.err
10086 rm -f conftest.er1
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } >/dev/null && {
10090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10091 test ! -s conftest.err
10092 }; then
10093 ac_header_preproc=yes
10094 else
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_header_preproc=no
10101 rm -f conftest.err conftest.$ac_ext
10102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10103 echo "${ECHO_T}$ac_header_preproc" >&6; }
10105 # So? What about this header?
10106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10107 yes:no: )
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10112 ac_header_preproc=yes
10114 no:yes:* )
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10129 esac
10130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135 eval "$as_ac_Header=\$ac_header_preproc"
10137 ac_res=`eval echo '${'$as_ac_Header'}'`
10138 { echo "$as_me:$LINENO: result: $ac_res" >&5
10139 echo "${ECHO_T}$ac_res" >&6; }
10142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10143 cat >>confdefs.h <<_ACEOF
10144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10145 _ACEOF
10149 done
10152 for ac_func in getpagesize
10154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10168 #define $ac_func innocuous_$ac_func
10170 /* System header to define __stub macros and hopefully few prototypes,
10171 which can conflict with char $ac_func (); below.
10172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10173 <limits.h> exists even on freestanding compilers. */
10175 #ifdef __STDC__
10176 # include <limits.h>
10177 #else
10178 # include <assert.h>
10179 #endif
10181 #undef $ac_func
10183 /* Override any GCC internal prototype to avoid an error.
10184 Use char because int might match the return type of a GCC
10185 builtin and then its argument prototype would still apply. */
10186 #ifdef __cplusplus
10187 extern "C"
10188 #endif
10189 char $ac_func ();
10190 /* The GNU C library defines this for functions which it implements
10191 to always fail with ENOSYS. Some functions are actually named
10192 something starting with __ and the normal name is an alias. */
10193 #if defined __stub_$ac_func || defined __stub___$ac_func
10194 choke me
10195 #endif
10198 main ()
10200 return $ac_func ();
10202 return 0;
10204 _ACEOF
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (ac_try="$ac_link"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_link") 2>conftest.er1
10213 ac_status=$?
10214 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest$ac_exeext &&
10222 $as_test_x conftest$ac_exeext; then
10223 eval "$as_ac_var=yes"
10224 else
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 eval "$as_ac_var=no"
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232 conftest$ac_exeext conftest.$ac_ext
10234 ac_res=`eval echo '${'$as_ac_var'}'`
10235 { echo "$as_me:$LINENO: result: $ac_res" >&5
10236 echo "${ECHO_T}$ac_res" >&6; }
10237 if test `eval echo '${'$as_ac_var'}'` = yes; then
10238 cat >>confdefs.h <<_ACEOF
10239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10240 _ACEOF
10243 done
10245 { echo "$as_me:$LINENO: checking for working mmap" >&5
10246 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10247 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250 if test "$cross_compiling" = yes; then
10251 ac_cv_func_mmap_fixed_mapped=no
10252 else
10253 cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h. */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 $ac_includes_default
10260 /* malloc might have been renamed as rpl_malloc. */
10261 #undef malloc
10263 /* Thanks to Mike Haertel and Jim Avera for this test.
10264 Here is a matrix of mmap possibilities:
10265 mmap private not fixed
10266 mmap private fixed at somewhere currently unmapped
10267 mmap private fixed at somewhere already mapped
10268 mmap shared not fixed
10269 mmap shared fixed at somewhere currently unmapped
10270 mmap shared fixed at somewhere already mapped
10271 For private mappings, we should verify that changes cannot be read()
10272 back from the file, nor mmap's back from the file at a different
10273 address. (There have been systems where private was not correctly
10274 implemented like the infamous i386 svr4.0, and systems where the
10275 VM page cache was not coherent with the file system buffer cache
10276 like early versions of FreeBSD and possibly contemporary NetBSD.)
10277 For shared mappings, we should conversely verify that changes get
10278 propagated back to all the places they're supposed to be.
10280 Grep wants private fixed already mapped.
10281 The main things grep needs to know about mmap are:
10282 * does it exist and is it safe to write into the mmap'd area
10283 * how to use it (BSD variants) */
10285 #include <fcntl.h>
10286 #include <sys/mman.h>
10288 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10289 char *malloc ();
10290 #endif
10292 /* This mess was copied from the GNU getpagesize.h. */
10293 #ifndef HAVE_GETPAGESIZE
10294 /* Assume that all systems that can run configure have sys/param.h. */
10295 # ifndef HAVE_SYS_PARAM_H
10296 # define HAVE_SYS_PARAM_H 1
10297 # endif
10299 # ifdef _SC_PAGESIZE
10300 # define getpagesize() sysconf(_SC_PAGESIZE)
10301 # else /* no _SC_PAGESIZE */
10302 # ifdef HAVE_SYS_PARAM_H
10303 # include <sys/param.h>
10304 # ifdef EXEC_PAGESIZE
10305 # define getpagesize() EXEC_PAGESIZE
10306 # else /* no EXEC_PAGESIZE */
10307 # ifdef NBPG
10308 # define getpagesize() NBPG * CLSIZE
10309 # ifndef CLSIZE
10310 # define CLSIZE 1
10311 # endif /* no CLSIZE */
10312 # else /* no NBPG */
10313 # ifdef NBPC
10314 # define getpagesize() NBPC
10315 # else /* no NBPC */
10316 # ifdef PAGESIZE
10317 # define getpagesize() PAGESIZE
10318 # endif /* PAGESIZE */
10319 # endif /* no NBPC */
10320 # endif /* no NBPG */
10321 # endif /* no EXEC_PAGESIZE */
10322 # else /* no HAVE_SYS_PARAM_H */
10323 # define getpagesize() 8192 /* punt totally */
10324 # endif /* no HAVE_SYS_PARAM_H */
10325 # endif /* no _SC_PAGESIZE */
10327 #endif /* no HAVE_GETPAGESIZE */
10330 main ()
10332 char *data, *data2, *data3;
10333 int i, pagesize;
10334 int fd;
10336 pagesize = getpagesize ();
10338 /* First, make a file with some known garbage in it. */
10339 data = (char *) malloc (pagesize);
10340 if (!data)
10341 return 1;
10342 for (i = 0; i < pagesize; ++i)
10343 *(data + i) = rand ();
10344 umask (0);
10345 fd = creat ("conftest.mmap", 0600);
10346 if (fd < 0)
10347 return 1;
10348 if (write (fd, data, pagesize) != pagesize)
10349 return 1;
10350 close (fd);
10352 /* Next, try to mmap the file at a fixed address which already has
10353 something else allocated at it. If we can, also make sure that
10354 we see the same garbage. */
10355 fd = open ("conftest.mmap", O_RDWR);
10356 if (fd < 0)
10357 return 1;
10358 data2 = (char *) malloc (2 * pagesize);
10359 if (!data2)
10360 return 1;
10361 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10362 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10363 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10364 return 1;
10365 for (i = 0; i < pagesize; ++i)
10366 if (*(data + i) != *(data2 + i))
10367 return 1;
10369 /* Finally, make sure that changes to the mapped area do not
10370 percolate back to the file as seen by read(). (This is a bug on
10371 some variants of i386 svr4.0.) */
10372 for (i = 0; i < pagesize; ++i)
10373 *(data2 + i) = *(data2 + i) + 1;
10374 data3 = (char *) malloc (pagesize);
10375 if (!data3)
10376 return 1;
10377 if (read (fd, data3, pagesize) != pagesize)
10378 return 1;
10379 for (i = 0; i < pagesize; ++i)
10380 if (*(data + i) != *(data3 + i))
10381 return 1;
10382 close (fd);
10383 return 0;
10385 _ACEOF
10386 rm -f conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10397 { (case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_try") 2>&5
10403 ac_status=$?
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
10406 ac_cv_func_mmap_fixed_mapped=yes
10407 else
10408 echo "$as_me: program exited with status $ac_status" >&5
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 ( exit $ac_status )
10413 ac_cv_func_mmap_fixed_mapped=no
10415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10420 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10421 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10422 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10424 cat >>confdefs.h <<\_ACEOF
10425 #define HAVE_MMAP 1
10426 _ACEOF
10429 rm -f conftest.mmap
10431 if test $use_mmap_for_buffers = yes; then
10432 REL_ALLOC=no
10435 LIBS="$libsrc_libs $LIBS"
10438 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10439 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10440 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 else
10443 ac_check_lib_save_LIBS=$LIBS
10444 LIBS="-ldnet $LIBS"
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10452 /* Override any GCC internal prototype to avoid an error.
10453 Use char because int might match the return type of a GCC
10454 builtin and then its argument prototype would still apply. */
10455 #ifdef __cplusplus
10456 extern "C"
10457 #endif
10458 char dnet_ntoa ();
10460 main ()
10462 return dnet_ntoa ();
10464 return 0;
10466 _ACEOF
10467 rm -f conftest.$ac_objext conftest$ac_exeext
10468 if { (ac_try="$ac_link"
10469 case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10472 esac
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_link") 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest$ac_exeext &&
10484 $as_test_x conftest$ac_exeext; then
10485 ac_cv_lib_dnet_dnet_ntoa=yes
10486 else
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ac_cv_lib_dnet_dnet_ntoa=no
10493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10497 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10498 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10499 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10500 cat >>confdefs.h <<_ACEOF
10501 #define HAVE_LIBDNET 1
10502 _ACEOF
10504 LIBS="-ldnet $LIBS"
10509 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10510 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10511 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514 ac_check_lib_save_LIBS=$LIBS
10515 LIBS="-lXbsd $LIBS"
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10525 main ()
10527 return main ();
10529 return 0;
10531 _ACEOF
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (ac_try="$ac_link"
10534 case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_link") 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest$ac_exeext &&
10549 $as_test_x conftest$ac_exeext; then
10550 ac_cv_lib_Xbsd_main=yes
10551 else
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10555 ac_cv_lib_Xbsd_main=no
10558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10562 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10563 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10564 if test $ac_cv_lib_Xbsd_main = yes; then
10565 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10570 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10571 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10572 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575 ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-lpthreads $LIBS"
10577 cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h. */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10584 /* Override any GCC internal prototype to avoid an error.
10585 Use char because int might match the return type of a GCC
10586 builtin and then its argument prototype would still apply. */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 char cma_open ();
10592 main ()
10594 return cma_open ();
10596 return 0;
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (ac_try="$ac_link"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604 esac
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_link") 2>conftest.er1
10607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && {
10613 test -z "$ac_c_werror_flag" ||
10614 test ! -s conftest.err
10615 } && test -s conftest$ac_exeext &&
10616 $as_test_x conftest$ac_exeext; then
10617 ac_cv_lib_pthreads_cma_open=yes
10618 else
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_cv_lib_pthreads_cma_open=no
10625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10626 conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10629 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10630 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10631 if test $ac_cv_lib_pthreads_cma_open = yes; then
10632 cat >>confdefs.h <<_ACEOF
10633 #define HAVE_LIBPTHREADS 1
10634 _ACEOF
10636 LIBS="-lpthreads $LIBS"
10641 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10642 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10643 if test -d /usr/X386/include; then
10644 HAVE_XFREE386=yes
10645 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10646 else
10647 HAVE_XFREE386=no
10649 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10650 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10653 case ${host_os} in
10654 aix*)
10655 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10656 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10657 if test "${gdb_cv_bigtoc+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10661 case $GCC in
10662 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10663 *) gdb_cv_bigtoc=-bbigtoc ;;
10664 esac
10666 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10667 cat >conftest.$ac_ext <<_ACEOF
10668 /* confdefs.h. */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10675 main ()
10677 int i;
10679 return 0;
10681 _ACEOF
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (ac_try="$ac_link"
10684 case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_link") 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest$ac_exeext &&
10699 $as_test_x conftest$ac_exeext; then
10701 else
10702 echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 gdb_cv_bigtoc=
10708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10709 conftest$ac_exeext conftest.$ac_ext
10712 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10713 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10715 esac
10717 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10718 # used for the tests that follow. We set them back to REAL_CFLAGS and
10719 # REAL_CPPFLAGS later on.
10721 REAL_CPPFLAGS="$CPPFLAGS"
10723 if test "${HAVE_X11}" = "yes"; then
10724 DEFS="$C_SWITCH_X_SITE $DEFS"
10725 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10726 LIBS="$LIBX $LIBS"
10727 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10728 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10730 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10731 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10732 # but it's more convenient here to set LD_RUN_PATH
10733 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10734 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10735 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10736 export LD_RUN_PATH
10739 if test "${opsys}" = "gnu-linux"; then
10740 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10741 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10750 main ()
10752 XOpenDisplay ("foo");
10754 return 0;
10756 _ACEOF
10757 rm -f conftest.$ac_objext conftest$ac_exeext
10758 if { (ac_try="$ac_link"
10759 case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_link") 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && {
10771 test -z "$ac_c_werror_flag" ||
10772 test ! -s conftest.err
10773 } && test -s conftest$ac_exeext &&
10774 $as_test_x conftest$ac_exeext; then
10775 xlinux_first_failure=no
10776 else
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 xlinux_first_failure=yes
10783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10784 conftest$ac_exeext conftest.$ac_ext
10785 if test "${xlinux_first_failure}" = "yes"; then
10786 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10787 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10788 OLD_CPPFLAGS="$CPPFLAGS"
10789 OLD_LIBS="$LIBS"
10790 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10791 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10792 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10793 LIBS="$LIBS -b i486-linuxaout"
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h. */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10802 main ()
10804 XOpenDisplay ("foo");
10806 return 0;
10808 _ACEOF
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_link") 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } && {
10823 test -z "$ac_c_werror_flag" ||
10824 test ! -s conftest.err
10825 } && test -s conftest$ac_exeext &&
10826 $as_test_x conftest$ac_exeext; then
10827 xlinux_second_failure=no
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 xlinux_second_failure=yes
10835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10836 conftest$ac_exeext conftest.$ac_ext
10837 if test "${xlinux_second_failure}" = "yes"; then
10838 # If we get the same failure with -b, there is no use adding -b.
10839 # So take it out. This plays safe.
10840 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10841 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10842 CPPFLAGS="$OLD_CPPFLAGS"
10843 LIBS="$OLD_LIBS"
10844 { echo "$as_me:$LINENO: result: no" >&5
10845 echo "${ECHO_T}no" >&6; }
10846 else
10847 { echo "$as_me:$LINENO: result: yes" >&5
10848 echo "${ECHO_T}yes" >&6; }
10850 else
10851 { echo "$as_me:$LINENO: result: no" >&5
10852 echo "${ECHO_T}no" >&6; }
10856 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10857 # header files included from there.
10858 { echo "$as_me:$LINENO: checking for Xkb" >&5
10859 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h. */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 #include <X11/Xlib.h>
10867 #include <X11/XKBlib.h>
10869 main ()
10871 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10873 return 0;
10875 _ACEOF
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_link") 2>conftest.er1
10884 ac_status=$?
10885 grep -v '^ *+' conftest.er1 >conftest.err
10886 rm -f conftest.er1
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } && {
10890 test -z "$ac_c_werror_flag" ||
10891 test ! -s conftest.err
10892 } && test -s conftest$ac_exeext &&
10893 $as_test_x conftest$ac_exeext; then
10894 emacs_xkb=yes
10895 else
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 emacs_xkb=no
10902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10903 conftest$ac_exeext conftest.$ac_ext
10904 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10905 echo "${ECHO_T}$emacs_xkb" >&6; }
10906 if test $emacs_xkb = yes; then
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_XKBGETKEYBOARD 1
10910 _ACEOF
10918 for ac_func in XrmSetDatabase XScreenResourceString \
10919 XScreenNumberOfScreen XSetWMProtocols
10921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h. */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10935 #define $ac_func innocuous_$ac_func
10937 /* System header to define __stub macros and hopefully few prototypes,
10938 which can conflict with char $ac_func (); below.
10939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10940 <limits.h> exists even on freestanding compilers. */
10942 #ifdef __STDC__
10943 # include <limits.h>
10944 #else
10945 # include <assert.h>
10946 #endif
10948 #undef $ac_func
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char $ac_func ();
10957 /* The GNU C library defines this for functions which it implements
10958 to always fail with ENOSYS. Some functions are actually named
10959 something starting with __ and the normal name is an alias. */
10960 #if defined __stub_$ac_func || defined __stub___$ac_func
10961 choke me
10962 #endif
10965 main ()
10967 return $ac_func ();
10969 return 0;
10971 _ACEOF
10972 rm -f conftest.$ac_objext conftest$ac_exeext
10973 if { (ac_try="$ac_link"
10974 case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977 esac
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_link") 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest$ac_exeext &&
10989 $as_test_x conftest$ac_exeext; then
10990 eval "$as_ac_var=yes"
10991 else
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10995 eval "$as_ac_var=no"
10998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999 conftest$ac_exeext conftest.$ac_ext
11001 ac_res=`eval echo '${'$as_ac_var'}'`
11002 { echo "$as_me:$LINENO: result: $ac_res" >&5
11003 echo "${ECHO_T}$ac_res" >&6; }
11004 if test `eval echo '${'$as_ac_var'}'` = yes; then
11005 cat >>confdefs.h <<_ACEOF
11006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11007 _ACEOF
11010 done
11014 if test "${window_system}" = "x11"; then
11015 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11016 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11017 if test "${emacs_cv_x11_version_6+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 #include <X11/Xlib.h>
11028 main ()
11030 #if XlibSpecificationRelease < 6
11031 fail;
11032 #endif
11035 return 0;
11037 _ACEOF
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (ac_try="$ac_link"
11040 case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_link") 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && {
11052 test -z "$ac_c_werror_flag" ||
11053 test ! -s conftest.err
11054 } && test -s conftest$ac_exeext &&
11055 $as_test_x conftest$ac_exeext; then
11056 emacs_cv_x11_version_6=yes
11057 else
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11061 emacs_cv_x11_version_6=no
11064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11065 conftest$ac_exeext conftest.$ac_ext
11068 if test $emacs_cv_x11_version_6 = yes; then
11069 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11070 echo "${ECHO_T}6 or newer" >&6; }
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_X11R6 1
11074 _ACEOF
11076 else
11077 { echo "$as_me:$LINENO: result: before 6" >&5
11078 echo "${ECHO_T}before 6" >&6; }
11083 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11084 HAVE_RSVG=no
11085 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11086 if test "${with_rsvg}" != "no"; then
11087 if test "X${with_pkg_config_prog}" != X; then
11088 PKG_CONFIG="${with_pkg_config_prog}"
11091 RSVG_REQUIRED=2.0.0
11092 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11095 succeeded=no
11097 if test -z "$PKG_CONFIG"; then
11098 # Extract the first word of "pkg-config", so it can be a program name with args.
11099 set dummy pkg-config; ac_word=$2
11100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11102 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 else
11105 case $PKG_CONFIG in
11106 [\\/]* | ?:[\\/]*)
11107 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111 for as_dir in $PATH
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11117 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11121 done
11122 done
11123 IFS=$as_save_IFS
11125 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11127 esac
11129 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11130 if test -n "$PKG_CONFIG"; then
11131 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11132 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11133 else
11134 { echo "$as_me:$LINENO: result: no" >&5
11135 echo "${ECHO_T}no" >&6; }
11141 if test "$PKG_CONFIG" = "no" ; then
11143 else
11144 PKG_CONFIG_MIN_VERSION=0.9.0
11145 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11146 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11147 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11149 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11150 { echo "$as_me:$LINENO: result: yes" >&5
11151 echo "${ECHO_T}yes" >&6; }
11152 succeeded=yes
11154 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11155 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11156 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11157 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11158 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11160 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11161 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11162 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11163 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11164 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11165 else
11166 { echo "$as_me:$LINENO: result: no" >&5
11167 echo "${ECHO_T}no" >&6; }
11168 RSVG_CFLAGS=""
11169 RSVG_LIBS=""
11170 ## If we have a custom action on failure, don't print errors, but
11171 ## do set a variable so people can do so.
11172 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11178 else
11179 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11180 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11184 if test $succeeded = yes; then
11186 else
11193 if test ".${RSVG_CFLAGS}" != "."; then
11194 HAVE_RSVG=yes
11196 cat >>confdefs.h <<\_ACEOF
11197 #define HAVE_RSVG 1
11198 _ACEOF
11200 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11201 LIBS="$RSVG_LIBS $LIBS"
11207 HAVE_GTK=no
11208 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11209 USE_X_TOOLKIT=none
11211 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11212 test "$USE_X_TOOLKIT" = "maybe"; then
11213 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11214 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11215 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11216 { (exit 1); exit 1; }; };
11218 GLIB_REQUIRED=2.6
11219 GTK_REQUIRED=2.6
11220 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11222 if test "X${with_pkg_config_prog}" != X; then
11223 PKG_CONFIG="${with_pkg_config_prog}"
11226 succeeded=no
11228 if test -z "$PKG_CONFIG"; then
11229 # Extract the first word of "pkg-config", so it can be a program name with args.
11230 set dummy pkg-config; ac_word=$2
11231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11233 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236 case $PKG_CONFIG in
11237 [\\/]* | ?:[\\/]*)
11238 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11244 IFS=$as_save_IFS
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
11247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11248 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11250 break 2
11252 done
11253 done
11254 IFS=$as_save_IFS
11256 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11258 esac
11260 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11261 if test -n "$PKG_CONFIG"; then
11262 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11263 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11264 else
11265 { echo "$as_me:$LINENO: result: no" >&5
11266 echo "${ECHO_T}no" >&6; }
11272 if test "$PKG_CONFIG" = "no" ; then
11273 pkg_check_gtk=no
11274 else
11275 PKG_CONFIG_MIN_VERSION=0.9.0
11276 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11277 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11278 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11280 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11281 { echo "$as_me:$LINENO: result: yes" >&5
11282 echo "${ECHO_T}yes" >&6; }
11283 succeeded=yes
11285 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11286 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11287 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11288 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11289 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11291 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11292 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11293 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11294 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11295 echo "${ECHO_T}$GTK_LIBS" >&6; }
11296 else
11297 { echo "$as_me:$LINENO: result: no" >&5
11298 echo "${ECHO_T}no" >&6; }
11299 GTK_CFLAGS=""
11300 GTK_LIBS=""
11301 ## If we have a custom action on failure, don't print errors, but
11302 ## do set a variable so people can do so.
11303 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11309 else
11310 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11311 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11315 if test $succeeded = yes; then
11316 pkg_check_gtk=yes
11317 else
11318 pkg_check_gtk=no
11321 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11322 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11323 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11324 { (exit 1); exit 1; }; }
11329 if test x"$pkg_check_gtk" = xyes; then
11333 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11334 CFLAGS="$CFLAGS $GTK_CFLAGS"
11335 LIBS="$GTK_LIBS $LIBS"
11336 GTK_COMPILES=no
11338 for ac_func in gtk_main
11340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11354 #define $ac_func innocuous_$ac_func
11356 /* System header to define __stub macros and hopefully few prototypes,
11357 which can conflict with char $ac_func (); below.
11358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11359 <limits.h> exists even on freestanding compilers. */
11361 #ifdef __STDC__
11362 # include <limits.h>
11363 #else
11364 # include <assert.h>
11365 #endif
11367 #undef $ac_func
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char $ac_func ();
11376 /* The GNU C library defines this for functions which it implements
11377 to always fail with ENOSYS. Some functions are actually named
11378 something starting with __ and the normal name is an alias. */
11379 #if defined __stub_$ac_func || defined __stub___$ac_func
11380 choke me
11381 #endif
11384 main ()
11386 return $ac_func ();
11388 return 0;
11390 _ACEOF
11391 rm -f conftest.$ac_objext conftest$ac_exeext
11392 if { (ac_try="$ac_link"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_link") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } && {
11405 test -z "$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 } && test -s conftest$ac_exeext &&
11408 $as_test_x conftest$ac_exeext; then
11409 eval "$as_ac_var=yes"
11410 else
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 eval "$as_ac_var=no"
11417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11418 conftest$ac_exeext conftest.$ac_ext
11420 ac_res=`eval echo '${'$as_ac_var'}'`
11421 { echo "$as_me:$LINENO: result: $ac_res" >&5
11422 echo "${ECHO_T}$ac_res" >&6; }
11423 if test `eval echo '${'$as_ac_var'}'` = yes; then
11424 cat >>confdefs.h <<_ACEOF
11425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11426 _ACEOF
11427 GTK_COMPILES=yes
11429 done
11431 if test "${GTK_COMPILES}" != "yes"; then
11432 if test "$USE_X_TOOLKIT" != "maybe"; then
11433 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11434 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11435 { (exit 1); exit 1; }; };
11437 else
11438 HAVE_GTK=yes
11440 cat >>confdefs.h <<\_ACEOF
11441 #define HAVE_GTK 1
11442 _ACEOF
11444 USE_X_TOOLKIT=none
11450 if test "${HAVE_GTK}" = "yes"; then
11452 if test "$with_toolkit_scroll_bars" != no; then
11453 with_toolkit_scroll_bars=yes
11456 HAVE_GTK_MULTIDISPLAY=no
11458 for ac_func in gdk_display_open
11460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h. */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11474 #define $ac_func innocuous_$ac_func
11476 /* System header to define __stub macros and hopefully few prototypes,
11477 which can conflict with char $ac_func (); below.
11478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11479 <limits.h> exists even on freestanding compilers. */
11481 #ifdef __STDC__
11482 # include <limits.h>
11483 #else
11484 # include <assert.h>
11485 #endif
11487 #undef $ac_func
11489 /* Override any GCC internal prototype to avoid an error.
11490 Use char because int might match the return type of a GCC
11491 builtin and then its argument prototype would still apply. */
11492 #ifdef __cplusplus
11493 extern "C"
11494 #endif
11495 char $ac_func ();
11496 /* The GNU C library defines this for functions which it implements
11497 to always fail with ENOSYS. Some functions are actually named
11498 something starting with __ and the normal name is an alias. */
11499 #if defined __stub_$ac_func || defined __stub___$ac_func
11500 choke me
11501 #endif
11504 main ()
11506 return $ac_func ();
11508 return 0;
11510 _ACEOF
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (ac_try="$ac_link"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_link") 2>conftest.er1
11519 ac_status=$?
11520 grep -v '^ *+' conftest.er1 >conftest.err
11521 rm -f conftest.er1
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } && {
11525 test -z "$ac_c_werror_flag" ||
11526 test ! -s conftest.err
11527 } && test -s conftest$ac_exeext &&
11528 $as_test_x conftest$ac_exeext; then
11529 eval "$as_ac_var=yes"
11530 else
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11534 eval "$as_ac_var=no"
11537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11538 conftest$ac_exeext conftest.$ac_ext
11540 ac_res=`eval echo '${'$as_ac_var'}'`
11541 { echo "$as_me:$LINENO: result: $ac_res" >&5
11542 echo "${ECHO_T}$ac_res" >&6; }
11543 if test `eval echo '${'$as_ac_var'}'` = yes; then
11544 cat >>confdefs.h <<_ACEOF
11545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11546 _ACEOF
11547 HAVE_GTK_MULTIDISPLAY=yes
11549 done
11551 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11553 cat >>confdefs.h <<\_ACEOF
11554 #define HAVE_GTK_MULTIDISPLAY 1
11555 _ACEOF
11559 HAVE_GTK_FILE_SELECTION=no
11561 for ac_func in gtk_file_selection_new
11563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h. */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11577 #define $ac_func innocuous_$ac_func
11579 /* System header to define __stub macros and hopefully few prototypes,
11580 which can conflict with char $ac_func (); below.
11581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11582 <limits.h> exists even on freestanding compilers. */
11584 #ifdef __STDC__
11585 # include <limits.h>
11586 #else
11587 # include <assert.h>
11588 #endif
11590 #undef $ac_func
11592 /* Override any GCC internal prototype to avoid an error.
11593 Use char because int might match the return type of a GCC
11594 builtin and then its argument prototype would still apply. */
11595 #ifdef __cplusplus
11596 extern "C"
11597 #endif
11598 char $ac_func ();
11599 /* The GNU C library defines this for functions which it implements
11600 to always fail with ENOSYS. Some functions are actually named
11601 something starting with __ and the normal name is an alias. */
11602 #if defined __stub_$ac_func || defined __stub___$ac_func
11603 choke me
11604 #endif
11607 main ()
11609 return $ac_func ();
11611 return 0;
11613 _ACEOF
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (ac_try="$ac_link"
11616 case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619 esac
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_link") 2>conftest.er1
11622 ac_status=$?
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } && {
11628 test -z "$ac_c_werror_flag" ||
11629 test ! -s conftest.err
11630 } && test -s conftest$ac_exeext &&
11631 $as_test_x conftest$ac_exeext; then
11632 eval "$as_ac_var=yes"
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 eval "$as_ac_var=no"
11640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11641 conftest$ac_exeext conftest.$ac_ext
11643 ac_res=`eval echo '${'$as_ac_var'}'`
11644 { echo "$as_me:$LINENO: result: $ac_res" >&5
11645 echo "${ECHO_T}$ac_res" >&6; }
11646 if test `eval echo '${'$as_ac_var'}'` = yes; then
11647 cat >>confdefs.h <<_ACEOF
11648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11649 _ACEOF
11650 HAVE_GTK_FILE_SELECTION=yes
11652 done
11655 HAVE_GTK_FILE_CHOOSER=no
11657 for ac_func in gtk_file_chooser_dialog_new
11659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665 cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h. */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11673 #define $ac_func innocuous_$ac_func
11675 /* System header to define __stub macros and hopefully few prototypes,
11676 which can conflict with char $ac_func (); below.
11677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11678 <limits.h> exists even on freestanding compilers. */
11680 #ifdef __STDC__
11681 # include <limits.h>
11682 #else
11683 # include <assert.h>
11684 #endif
11686 #undef $ac_func
11688 /* Override any GCC internal prototype to avoid an error.
11689 Use char because int might match the return type of a GCC
11690 builtin and then its argument prototype would still apply. */
11691 #ifdef __cplusplus
11692 extern "C"
11693 #endif
11694 char $ac_func ();
11695 /* The GNU C library defines this for functions which it implements
11696 to always fail with ENOSYS. Some functions are actually named
11697 something starting with __ and the normal name is an alias. */
11698 #if defined __stub_$ac_func || defined __stub___$ac_func
11699 choke me
11700 #endif
11703 main ()
11705 return $ac_func ();
11707 return 0;
11709 _ACEOF
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (ac_try="$ac_link"
11712 case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11715 esac
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_link") 2>conftest.er1
11718 ac_status=$?
11719 grep -v '^ *+' conftest.er1 >conftest.err
11720 rm -f conftest.er1
11721 cat conftest.err >&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && {
11724 test -z "$ac_c_werror_flag" ||
11725 test ! -s conftest.err
11726 } && test -s conftest$ac_exeext &&
11727 $as_test_x conftest$ac_exeext; then
11728 eval "$as_ac_var=yes"
11729 else
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 eval "$as_ac_var=no"
11736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11737 conftest$ac_exeext conftest.$ac_ext
11739 ac_res=`eval echo '${'$as_ac_var'}'`
11740 { echo "$as_me:$LINENO: result: $ac_res" >&5
11741 echo "${ECHO_T}$ac_res" >&6; }
11742 if test `eval echo '${'$as_ac_var'}'` = yes; then
11743 cat >>confdefs.h <<_ACEOF
11744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11745 _ACEOF
11746 HAVE_GTK_FILE_CHOOSER=yes
11748 done
11751 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11752 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11754 cat >>confdefs.h <<\_ACEOF
11755 #define HAVE_GTK_FILE_BOTH 1
11756 _ACEOF
11760 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11761 HAVE_GTK_AND_PTHREAD=no
11763 for ac_header in pthread.h
11765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 ac_res=`eval echo '${'$as_ac_Header'}'`
11773 { echo "$as_me:$LINENO: result: $ac_res" >&5
11774 echo "${ECHO_T}$ac_res" >&6; }
11775 else
11776 # Is the header compilable?
11777 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11779 cat >conftest.$ac_ext <<_ACEOF
11780 /* confdefs.h. */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785 $ac_includes_default
11786 #include <$ac_header>
11787 _ACEOF
11788 rm -f conftest.$ac_objext
11789 if { (ac_try="$ac_compile"
11790 case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_compile") 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } && {
11802 test -z "$ac_c_werror_flag" ||
11803 test ! -s conftest.err
11804 } && test -s conftest.$ac_objext; then
11805 ac_header_compiler=yes
11806 else
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ac_header_compiler=no
11813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11815 echo "${ECHO_T}$ac_header_compiler" >&6; }
11817 # Is the header present?
11818 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11820 cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h. */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 #include <$ac_header>
11827 _ACEOF
11828 if { (ac_try="$ac_cpp conftest.$ac_ext"
11829 case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } >/dev/null && {
11841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 }; then
11844 ac_header_preproc=yes
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_header_preproc=no
11852 rm -f conftest.err conftest.$ac_ext
11853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11854 echo "${ECHO_T}$ac_header_preproc" >&6; }
11856 # So? What about this header?
11857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11858 yes:no: )
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11863 ac_header_preproc=yes
11865 no:yes:* )
11866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11880 esac
11881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886 eval "$as_ac_Header=\$ac_header_preproc"
11888 ac_res=`eval echo '${'$as_ac_Header'}'`
11889 { echo "$as_me:$LINENO: result: $ac_res" >&5
11890 echo "${ECHO_T}$ac_res" >&6; }
11893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11894 cat >>confdefs.h <<_ACEOF
11895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11896 _ACEOF
11900 done
11902 if test "$ac_cv_header_pthread_h"; then
11903 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11904 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11905 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908 ac_check_lib_save_LIBS=$LIBS
11909 LIBS="-lpthread $LIBS"
11910 cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h. */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11917 /* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 char pthread_self ();
11925 main ()
11927 return pthread_self ();
11929 return 0;
11931 _ACEOF
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (ac_try="$ac_link"
11934 case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11937 esac
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_link") 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } && {
11946 test -z "$ac_c_werror_flag" ||
11947 test ! -s conftest.err
11948 } && test -s conftest$ac_exeext &&
11949 $as_test_x conftest$ac_exeext; then
11950 ac_cv_lib_pthread_pthread_self=yes
11951 else
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11955 ac_cv_lib_pthread_pthread_self=no
11958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11959 conftest$ac_exeext conftest.$ac_ext
11960 LIBS=$ac_check_lib_save_LIBS
11962 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11963 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11964 if test $ac_cv_lib_pthread_pthread_self = yes; then
11965 HAVE_GTK_AND_PTHREAD=yes
11969 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11970 case "${canonical}" in
11971 *-hpux*) ;;
11972 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11973 esac
11975 cat >>confdefs.h <<\_ACEOF
11976 #define HAVE_GTK_AND_PTHREAD 1
11977 _ACEOF
11983 ### Link with -lXft if available to work around a bug.
11984 HAVE_XFT=maybe
11985 if test "${HAVE_GTK}" = "yes"; then
11986 if test "X${with_pkg_config_prog}" != X; then
11987 PKG_CONFIG="${with_pkg_config_prog}"
11991 succeeded=no
11993 if test -z "$PKG_CONFIG"; then
11994 # Extract the first word of "pkg-config", so it can be a program name with args.
11995 set dummy pkg-config; ac_word=$2
11996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001 case $PKG_CONFIG in
12002 [\\/]* | ?:[\\/]*)
12003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 break 2
12017 done
12018 done
12019 IFS=$as_save_IFS
12021 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12023 esac
12025 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12026 if test -n "$PKG_CONFIG"; then
12027 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12028 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12029 else
12030 { echo "$as_me:$LINENO: result: no" >&5
12031 echo "${ECHO_T}no" >&6; }
12037 if test "$PKG_CONFIG" = "no" ; then
12038 HAVE_XFT=no
12039 else
12040 PKG_CONFIG_MIN_VERSION=0.9.0
12041 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12042 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12043 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12045 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12046 { echo "$as_me:$LINENO: result: yes" >&5
12047 echo "${ECHO_T}yes" >&6; }
12048 succeeded=yes
12050 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12051 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12052 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12053 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12054 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12056 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12057 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12058 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12059 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12060 echo "${ECHO_T}$XFT_LIBS" >&6; }
12061 else
12062 { echo "$as_me:$LINENO: result: no" >&5
12063 echo "${ECHO_T}no" >&6; }
12064 XFT_CFLAGS=""
12065 XFT_LIBS=""
12066 ## If we have a custom action on failure, don't print errors, but
12067 ## do set a variable so people can do so.
12068 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12074 else
12075 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12076 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12080 if test $succeeded = yes; then
12082 else
12083 HAVE_XFT=no
12086 if test "$HAVE_XFT" != no; then
12087 OLD_CFLAGS="$CPPFLAGS"
12088 OLD_CPPFLAGS="$CFLAGS"
12089 OLD_LIBS="$LIBS"
12090 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12091 CFLAGS="$CFLAGS $XFT_CFLAGS"
12092 LIBS="$XFT_LIBS $LIBS"
12093 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12094 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12095 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12096 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12100 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12101 else
12102 # Is the header compilable?
12103 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12104 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
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. */
12111 $ac_includes_default
12112 #include <X11/Xft/Xft.h>
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119 esac
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_compile") 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } && {
12128 test -z "$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12130 } && test -s conftest.$ac_objext; then
12131 ac_header_compiler=yes
12132 else
12133 echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12136 ac_header_compiler=no
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12141 echo "${ECHO_T}$ac_header_compiler" >&6; }
12143 # Is the header present?
12144 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12145 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h. */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 #include <X11/Xft/Xft.h>
12153 _ACEOF
12154 if { (ac_try="$ac_cpp conftest.$ac_ext"
12155 case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12158 esac
12159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12161 ac_status=$?
12162 grep -v '^ *+' conftest.er1 >conftest.err
12163 rm -f conftest.er1
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } >/dev/null && {
12167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12168 test ! -s conftest.err
12169 }; then
12170 ac_header_preproc=yes
12171 else
12172 echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12175 ac_header_preproc=no
12178 rm -f conftest.err conftest.$ac_ext
12179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12180 echo "${ECHO_T}$ac_header_preproc" >&6; }
12182 # So? What about this header?
12183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12184 yes:no: )
12185 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12186 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12188 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12189 ac_header_preproc=yes
12191 no:yes:* )
12192 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12193 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12195 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12197 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12199 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12201 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12203 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12206 esac
12207 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12208 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12209 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 else
12212 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12214 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12215 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12218 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12219 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12220 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12221 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224 ac_check_lib_save_LIBS=$LIBS
12225 LIBS="-lXft $XFT_LIBS $LIBS"
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char XftFontOpen ();
12241 main ()
12243 return XftFontOpen ();
12245 return 0;
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (ac_try="$ac_link"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253 esac
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_link") 2>conftest.er1
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } && {
12262 test -z "$ac_c_werror_flag" ||
12263 test ! -s conftest.err
12264 } && test -s conftest$ac_exeext &&
12265 $as_test_x conftest$ac_exeext; then
12266 ac_cv_lib_Xft_XftFontOpen=yes
12267 else
12268 echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12271 ac_cv_lib_Xft_XftFontOpen=no
12274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12275 conftest$ac_exeext conftest.$ac_ext
12276 LIBS=$ac_check_lib_save_LIBS
12278 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12279 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12280 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12281 HAVE_XFT=yes
12288 if test "${HAVE_XFT}" = "yes"; then
12290 cat >>confdefs.h <<\_ACEOF
12291 #define HAVE_XFT 1
12292 _ACEOF
12295 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12296 else
12297 CFLAGS="$OLD_CPPFLAGS"
12298 CFLAGS="$OLD_CFLAGS"
12299 LIBS="$OLD_LIBS"
12304 HAVE_XAW3D=no
12305 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12306 if test "$with_xaw3d" != no; then
12307 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12308 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12309 if test "${emacs_cv_xaw3d+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12319 #include <X11/Intrinsic.h>
12320 #include <X11/Xaw3d/Simple.h>
12322 main ()
12326 return 0;
12328 _ACEOF
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (ac_try="$ac_link"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_link") 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest$ac_exeext &&
12346 $as_test_x conftest$ac_exeext; then
12347 emacs_cv_xaw3d=yes
12348 else
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12352 emacs_cv_xaw3d=no
12355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12356 conftest$ac_exeext conftest.$ac_ext
12359 else
12360 emacs_cv_xaw3d=no
12362 if test $emacs_cv_xaw3d = yes; then
12363 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12364 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12365 USE_X_TOOLKIT=LUCID
12366 HAVE_XAW3D=yes
12368 cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_XAW3D 1
12370 _ACEOF
12372 else
12373 { echo "$as_me:$LINENO: result: no" >&5
12374 echo "${ECHO_T}no" >&6; }
12375 { echo "$as_me:$LINENO: checking for libXaw" >&5
12376 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12377 if test "${emacs_cv_xaw+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380 cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h. */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12387 #include <X11/Intrinsic.h>
12388 #include <X11/Xaw/Simple.h>
12390 main ()
12394 return 0;
12396 _ACEOF
12397 rm -f conftest.$ac_objext conftest$ac_exeext
12398 if { (ac_try="$ac_link"
12399 case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_link") 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && {
12411 test -z "$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 } && test -s conftest$ac_exeext &&
12414 $as_test_x conftest$ac_exeext; then
12415 emacs_cv_xaw=yes
12416 else
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 emacs_cv_xaw=no
12423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12424 conftest$ac_exeext conftest.$ac_ext
12427 if test $emacs_cv_xaw = yes; then
12428 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12429 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12430 USE_X_TOOLKIT=LUCID
12431 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12432 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12433 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12434 { (exit 1); exit 1; }; }
12435 else
12436 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12437 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12438 USE_X_TOOLKIT=none
12443 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12445 if test "${USE_X_TOOLKIT}" != "none"; then
12446 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12447 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12448 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 else
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h. */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12457 #include <X11/Intrinsic.h>
12459 main ()
12461 #if XtSpecificationRelease < 6
12462 fail;
12463 #endif
12466 return 0;
12468 _ACEOF
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (ac_try="$ac_link"
12471 case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12474 esac
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_link") 2>conftest.er1
12477 ac_status=$?
12478 grep -v '^ *+' conftest.er1 >conftest.err
12479 rm -f conftest.er1
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } && {
12483 test -z "$ac_c_werror_flag" ||
12484 test ! -s conftest.err
12485 } && test -s conftest$ac_exeext &&
12486 $as_test_x conftest$ac_exeext; then
12487 emacs_cv_x11_toolkit_version_6=yes
12488 else
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 emacs_cv_x11_toolkit_version_6=no
12495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12496 conftest$ac_exeext conftest.$ac_ext
12499 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12500 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12501 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12502 echo "${ECHO_T}6 or newer" >&6; }
12504 cat >>confdefs.h <<\_ACEOF
12505 #define HAVE_X11XTR6 1
12506 _ACEOF
12508 else
12509 { echo "$as_me:$LINENO: result: before 6" >&5
12510 echo "${ECHO_T}before 6" >&6; }
12513 OLDLIBS="$LIBS"
12514 if test x$HAVE_X11XTR6 = xyes; then
12515 LIBS="-lXt -lSM -lICE $LIBS"
12516 else
12517 LIBS="-lXt $LIBS"
12520 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12521 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525 ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-lXmu $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 char XmuConvertStandardSelection ();
12542 main ()
12544 return XmuConvertStandardSelection ();
12546 return 0;
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest$ac_exeext &&
12566 $as_test_x conftest$ac_exeext; then
12567 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12568 else
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12580 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12581 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12582 cat >>confdefs.h <<_ACEOF
12583 #define HAVE_LIBXMU 1
12584 _ACEOF
12586 LIBS="-lXmu $LIBS"
12590 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12593 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12594 if test "${HAVE_X11}" = "yes"; then
12595 if test "${USE_X_TOOLKIT}" != "none"; then
12597 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12598 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12599 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602 ac_check_lib_save_LIBS=$LIBS
12603 LIBS="-lXext $LIBS"
12604 cat >conftest.$ac_ext <<_ACEOF
12605 /* confdefs.h. */
12606 _ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12611 /* Override any GCC internal prototype to avoid an error.
12612 Use char because int might match the return type of a GCC
12613 builtin and then its argument prototype would still apply. */
12614 #ifdef __cplusplus
12615 extern "C"
12616 #endif
12617 char XShapeQueryExtension ();
12619 main ()
12621 return XShapeQueryExtension ();
12623 return 0;
12625 _ACEOF
12626 rm -f conftest.$ac_objext conftest$ac_exeext
12627 if { (ac_try="$ac_link"
12628 case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12631 esac
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_link") 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } && {
12640 test -z "$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12642 } && test -s conftest$ac_exeext &&
12643 $as_test_x conftest$ac_exeext; then
12644 ac_cv_lib_Xext_XShapeQueryExtension=yes
12645 else
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ac_cv_lib_Xext_XShapeQueryExtension=no
12652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12653 conftest$ac_exeext conftest.$ac_ext
12654 LIBS=$ac_check_lib_save_LIBS
12656 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12657 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12658 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12659 cat >>confdefs.h <<_ACEOF
12660 #define HAVE_LIBXEXT 1
12661 _ACEOF
12663 LIBS="-lXext $LIBS"
12670 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12671 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12672 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12673 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
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. */
12682 #include <Xm/Xm.h>
12684 main ()
12686 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12687 int x = 5;
12688 #else
12689 Motif version prior to 2.1.
12690 #endif
12692 return 0;
12694 _ACEOF
12695 rm -f conftest.$ac_objext
12696 if { (ac_try="$ac_compile"
12697 case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12700 esac
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_compile") 2>conftest.er1
12703 ac_status=$?
12704 grep -v '^ *+' conftest.er1 >conftest.err
12705 rm -f conftest.er1
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } && {
12709 test -z "$ac_c_werror_flag" ||
12710 test ! -s conftest.err
12711 } && test -s conftest.$ac_objext; then
12712 emacs_cv_motif_version_2_1=yes
12713 else
12714 echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12717 emacs_cv_motif_version_2_1=no
12720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12722 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12723 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12724 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12725 if test $emacs_cv_motif_version_2_1 = yes; then
12726 HAVE_LIBXP=no
12728 cat >>confdefs.h <<\_ACEOF
12729 #define HAVE_MOTIF_2_1 1
12730 _ACEOF
12732 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12733 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12734 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737 ac_check_lib_save_LIBS=$LIBS
12738 LIBS="-lXp $LIBS"
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h. */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 char XpCreateContext ();
12754 main ()
12756 return XpCreateContext ();
12758 return 0;
12760 _ACEOF
12761 rm -f conftest.$ac_objext conftest$ac_exeext
12762 if { (ac_try="$ac_link"
12763 case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766 esac
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_link") 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } && {
12775 test -z "$ac_c_werror_flag" ||
12776 test ! -s conftest.err
12777 } && test -s conftest$ac_exeext &&
12778 $as_test_x conftest$ac_exeext; then
12779 ac_cv_lib_Xp_XpCreateContext=yes
12780 else
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12784 ac_cv_lib_Xp_XpCreateContext=no
12787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12788 conftest$ac_exeext conftest.$ac_ext
12789 LIBS=$ac_check_lib_save_LIBS
12791 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12792 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12793 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12794 HAVE_LIBXP=yes
12797 if test ${HAVE_LIBXP} = yes; then
12799 cat >>confdefs.h <<\_ACEOF
12800 #define HAVE_LIBXP 1
12801 _ACEOF
12804 else
12805 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12806 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12807 if test "${emacs_cv_lesstif+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810 # We put this in CFLAGS temporarily to precede other -I options
12811 # that might be in CFLAGS temporarily.
12812 # We put this in CPPFLAGS where it precedes the other -I options.
12813 OLD_CPPFLAGS=$CPPFLAGS
12814 OLD_CFLAGS=$CFLAGS
12815 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12816 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12825 main ()
12827 int x = 5;
12829 return 0;
12831 _ACEOF
12832 rm -f conftest.$ac_objext
12833 if { (ac_try="$ac_compile"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_compile") 2>conftest.er1
12840 ac_status=$?
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } && {
12846 test -z "$ac_c_werror_flag" ||
12847 test ! -s conftest.err
12848 } && test -s conftest.$ac_objext; then
12849 emacs_cv_lesstif=yes
12850 else
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 emacs_cv_lesstif=no
12857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12860 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12861 if test $emacs_cv_lesstif = yes; then
12862 # Make sure this -I option remains in CPPFLAGS after it is set
12863 # back to REAL_CPPFLAGS.
12864 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12865 # have those other -I options anyway. Ultimately, having this
12866 # directory ultimately in CPPFLAGS will be enough.
12867 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12868 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12869 else
12870 CFLAGS=$OLD_CFLAGS
12871 CPPFLAGS=$OLD_CPPFLAGS
12878 USE_TOOLKIT_SCROLL_BARS=no
12879 if test "${with_toolkit_scroll_bars}" != "no"; then
12880 if test "${USE_X_TOOLKIT}" != "none"; then
12881 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12882 cat >>confdefs.h <<\_ACEOF
12883 #define USE_TOOLKIT_SCROLL_BARS 1
12884 _ACEOF
12886 HAVE_XAW3D=no
12887 USE_TOOLKIT_SCROLL_BARS=yes
12888 elif test "${HAVE_XAW3D}" = "yes"; then
12889 cat >>confdefs.h <<\_ACEOF
12890 #define USE_TOOLKIT_SCROLL_BARS 1
12891 _ACEOF
12893 USE_TOOLKIT_SCROLL_BARS=yes
12895 elif test "${HAVE_GTK}" = "yes"; then
12896 cat >>confdefs.h <<\_ACEOF
12897 #define USE_TOOLKIT_SCROLL_BARS 1
12898 _ACEOF
12900 USE_TOOLKIT_SCROLL_BARS=yes
12901 elif test "${HAVE_CARBON}" = "yes"; then
12902 cat >>confdefs.h <<\_ACEOF
12903 #define USE_TOOLKIT_SCROLL_BARS 1
12904 _ACEOF
12906 USE_TOOLKIT_SCROLL_BARS=yes
12910 cat >conftest.$ac_ext <<_ACEOF
12911 /* confdefs.h. */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12917 #include <X11/Xlib.h>
12918 #include <X11/Xresource.h>
12920 main ()
12922 XIMProc callback;
12924 return 0;
12926 _ACEOF
12927 rm -f conftest.$ac_objext
12928 if { (ac_try="$ac_compile"
12929 case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_compile") 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } && {
12941 test -z "$ac_c_werror_flag" ||
12942 test ! -s conftest.err
12943 } && test -s conftest.$ac_objext; then
12944 HAVE_XIM=yes
12946 cat >>confdefs.h <<\_ACEOF
12947 #define HAVE_XIM 1
12948 _ACEOF
12950 else
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12954 HAVE_XIM=no
12957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960 if test "${with_xim}" != "no"; then
12962 cat >>confdefs.h <<\_ACEOF
12963 #define USE_XIM 1
12964 _ACEOF
12969 if test "${HAVE_XIM}" != "no"; then
12970 late_CFLAGS=$CFLAGS
12971 if test "$GCC" = yes; then
12972 CFLAGS="$CFLAGS --pedantic-errors"
12974 cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h. */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12981 #include <X11/Xlib.h>
12982 #include <X11/Xresource.h>
12984 main ()
12986 Display *display;
12987 XrmDatabase db;
12988 char *res_name;
12989 char *res_class;
12990 XIMProc callback;
12991 XPointer *client_data;
12992 #ifndef __GNUC__
12993 /* If we're not using GCC, it's probably not XFree86, and this is
12994 probably right, but we can't use something like --pedantic-errors. */
12995 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12996 char*, XIMProc, XPointer*);
12997 #endif
12998 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12999 client_data);
13001 return 0;
13003 _ACEOF
13004 rm -f conftest.$ac_objext
13005 if { (ac_try="$ac_compile"
13006 case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13009 esac
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_compile") 2>conftest.er1
13012 ac_status=$?
13013 grep -v '^ *+' conftest.er1 >conftest.err
13014 rm -f conftest.er1
13015 cat conftest.err >&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } && {
13018 test -z "$ac_c_werror_flag" ||
13019 test ! -s conftest.err
13020 } && test -s conftest.$ac_objext; then
13021 emacs_cv_arg6_star=yes
13022 else
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13031 if test "$emacs_cv_arg6_star" = yes; then
13032 cat >>confdefs.h <<\_ACEOF
13033 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13034 _ACEOF
13036 else
13037 cat >>confdefs.h <<\_ACEOF
13038 #define XRegisterIMInstantiateCallback_arg6 XPointer
13039 _ACEOF
13042 CFLAGS=$late_CFLAGS
13045 ### Use -lXpm if available, unless `--with-xpm=no'.
13046 HAVE_XPM=no
13047 if test "${HAVE_X11}" = "yes"; then
13048 if test "${with_xpm}" != "no"; then
13049 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13050 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13051 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13052 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13055 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13056 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13057 else
13058 # Is the header compilable?
13059 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13060 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13061 cat >conftest.$ac_ext <<_ACEOF
13062 /* confdefs.h. */
13063 _ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h. */
13067 $ac_includes_default
13068 #include <X11/xpm.h>
13069 _ACEOF
13070 rm -f conftest.$ac_objext
13071 if { (ac_try="$ac_compile"
13072 case "(($ac_try" in
13073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13074 *) ac_try_echo=$ac_try;;
13075 esac
13076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13077 (eval "$ac_compile") 2>conftest.er1
13078 ac_status=$?
13079 grep -v '^ *+' conftest.er1 >conftest.err
13080 rm -f conftest.er1
13081 cat conftest.err >&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); } && {
13084 test -z "$ac_c_werror_flag" ||
13085 test ! -s conftest.err
13086 } && test -s conftest.$ac_objext; then
13087 ac_header_compiler=yes
13088 else
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13092 ac_header_compiler=no
13095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13097 echo "${ECHO_T}$ac_header_compiler" >&6; }
13099 # Is the header present?
13100 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13101 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13102 cat >conftest.$ac_ext <<_ACEOF
13103 /* confdefs.h. */
13104 _ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h. */
13108 #include <X11/xpm.h>
13109 _ACEOF
13110 if { (ac_try="$ac_cpp conftest.$ac_ext"
13111 case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13114 esac
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } >/dev/null && {
13123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 }; then
13126 ac_header_preproc=yes
13127 else
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 ac_header_preproc=no
13134 rm -f conftest.err conftest.$ac_ext
13135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13136 echo "${ECHO_T}$ac_header_preproc" >&6; }
13138 # So? What about this header?
13139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13140 yes:no: )
13141 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13142 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13144 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13145 ac_header_preproc=yes
13147 no:yes:* )
13148 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13149 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13151 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13153 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13155 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13157 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13159 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13162 esac
13163 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13164 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13165 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 else
13168 ac_cv_header_X11_xpm_h=$ac_header_preproc
13170 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13171 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13174 if test $ac_cv_header_X11_xpm_h = yes; then
13175 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13176 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13177 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 else
13180 ac_check_lib_save_LIBS=$LIBS
13181 LIBS="-lXpm -lX11 $LIBS"
13182 cat >conftest.$ac_ext <<_ACEOF
13183 /* confdefs.h. */
13184 _ACEOF
13185 cat confdefs.h >>conftest.$ac_ext
13186 cat >>conftest.$ac_ext <<_ACEOF
13187 /* end confdefs.h. */
13189 /* Override any GCC internal prototype to avoid an error.
13190 Use char because int might match the return type of a GCC
13191 builtin and then its argument prototype would still apply. */
13192 #ifdef __cplusplus
13193 extern "C"
13194 #endif
13195 char XpmReadFileToPixmap ();
13197 main ()
13199 return XpmReadFileToPixmap ();
13201 return 0;
13203 _ACEOF
13204 rm -f conftest.$ac_objext conftest$ac_exeext
13205 if { (ac_try="$ac_link"
13206 case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13209 esac
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_link") 2>conftest.er1
13212 ac_status=$?
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } && {
13218 test -z "$ac_c_werror_flag" ||
13219 test ! -s conftest.err
13220 } && test -s conftest$ac_exeext &&
13221 $as_test_x conftest$ac_exeext; then
13222 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13223 else
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13227 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13231 conftest$ac_exeext conftest.$ac_ext
13232 LIBS=$ac_check_lib_save_LIBS
13234 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13235 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13236 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13237 HAVE_XPM=yes
13243 if test "${HAVE_XPM}" = "yes"; then
13244 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13245 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13246 cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h. */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13252 #include "X11/xpm.h"
13253 #ifndef XpmReturnAllocPixels
13254 no_return_alloc_pixels
13255 #endif
13257 _ACEOF
13258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13259 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13260 HAVE_XPM=no
13261 else
13262 HAVE_XPM=yes
13264 rm -f conftest*
13267 if test "${HAVE_XPM}" = "yes"; then
13268 { echo "$as_me:$LINENO: result: yes" >&5
13269 echo "${ECHO_T}yes" >&6; }
13270 else
13271 { echo "$as_me:$LINENO: result: no" >&5
13272 echo "${ECHO_T}no" >&6; }
13277 if test "${HAVE_XPM}" = "yes"; then
13279 cat >>confdefs.h <<\_ACEOF
13280 #define HAVE_XPM 1
13281 _ACEOF
13286 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13287 HAVE_JPEG=no
13288 if test "${HAVE_X11}" = "yes"; then
13289 if test "${with_jpeg}" != "no"; then
13290 if test "${ac_cv_header_jerror_h+set}" = set; then
13291 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13292 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13293 if test "${ac_cv_header_jerror_h+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13297 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13298 else
13299 # Is the header compilable?
13300 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13301 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13302 cat >conftest.$ac_ext <<_ACEOF
13303 /* confdefs.h. */
13304 _ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h. */
13308 $ac_includes_default
13309 #include <jerror.h>
13310 _ACEOF
13311 rm -f conftest.$ac_objext
13312 if { (ac_try="$ac_compile"
13313 case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13316 esac
13317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318 (eval "$ac_compile") 2>conftest.er1
13319 ac_status=$?
13320 grep -v '^ *+' conftest.er1 >conftest.err
13321 rm -f conftest.er1
13322 cat conftest.err >&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } && {
13325 test -z "$ac_c_werror_flag" ||
13326 test ! -s conftest.err
13327 } && test -s conftest.$ac_objext; then
13328 ac_header_compiler=yes
13329 else
13330 echo "$as_me: failed program was:" >&5
13331 sed 's/^/| /' conftest.$ac_ext >&5
13333 ac_header_compiler=no
13336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13338 echo "${ECHO_T}$ac_header_compiler" >&6; }
13340 # Is the header present?
13341 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13342 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13343 cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h. */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 #include <jerror.h>
13350 _ACEOF
13351 if { (ac_try="$ac_cpp conftest.$ac_ext"
13352 case "(($ac_try" in
13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354 *) ac_try_echo=$ac_try;;
13355 esac
13356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13358 ac_status=$?
13359 grep -v '^ *+' conftest.er1 >conftest.err
13360 rm -f conftest.er1
13361 cat conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } >/dev/null && {
13364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13365 test ! -s conftest.err
13366 }; then
13367 ac_header_preproc=yes
13368 else
13369 echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13372 ac_header_preproc=no
13375 rm -f conftest.err conftest.$ac_ext
13376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13377 echo "${ECHO_T}$ac_header_preproc" >&6; }
13379 # So? What about this header?
13380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13381 yes:no: )
13382 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13383 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13384 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13385 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13386 ac_header_preproc=yes
13388 no:yes:* )
13389 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13390 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13391 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13392 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13393 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13394 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13395 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13396 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13397 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13398 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13399 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13400 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13403 esac
13404 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13405 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13406 if test "${ac_cv_header_jerror_h+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 else
13409 ac_cv_header_jerror_h=$ac_header_preproc
13411 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13412 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13415 if test $ac_cv_header_jerror_h = yes; then
13416 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13417 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13418 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421 ac_check_lib_save_LIBS=$LIBS
13422 LIBS="-ljpeg $LIBS"
13423 cat >conftest.$ac_ext <<_ACEOF
13424 /* confdefs.h. */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 char jpeg_destroy_compress ();
13438 main ()
13440 return jpeg_destroy_compress ();
13442 return 0;
13444 _ACEOF
13445 rm -f conftest.$ac_objext conftest$ac_exeext
13446 if { (ac_try="$ac_link"
13447 case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_link") 2>conftest.er1
13453 ac_status=$?
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } && {
13459 test -z "$ac_c_werror_flag" ||
13460 test ! -s conftest.err
13461 } && test -s conftest$ac_exeext &&
13462 $as_test_x conftest$ac_exeext; then
13463 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13464 else
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13472 conftest$ac_exeext conftest.$ac_ext
13473 LIBS=$ac_check_lib_save_LIBS
13475 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13476 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13477 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13478 HAVE_JPEG=yes
13487 if test "${HAVE_JPEG}" = "yes"; then
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_JPEG 1
13490 _ACEOF
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h. */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 #include <jpeglib.h>
13499 version=JPEG_LIB_VERSION
13501 _ACEOF
13502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13503 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13504 cat >>confdefs.h <<\_ACEOF
13505 #define HAVE_JPEG 1
13506 _ACEOF
13508 else
13509 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13510 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13511 HAVE_JPEG=no
13513 rm -f conftest*
13518 ### Use -lpng if available, unless `--with-png=no'.
13519 HAVE_PNG=no
13520 if test "${HAVE_X11}" = "yes"; then
13521 if test "${with_png}" != "no"; then
13522 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13523 # in /usr/include/libpng.
13526 for ac_header in png.h libpng/png.h
13528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 ac_res=`eval echo '${'$as_ac_Header'}'`
13536 { echo "$as_me:$LINENO: result: $ac_res" >&5
13537 echo "${ECHO_T}$ac_res" >&6; }
13538 else
13539 # Is the header compilable?
13540 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13542 cat >conftest.$ac_ext <<_ACEOF
13543 /* confdefs.h. */
13544 _ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h. */
13548 $ac_includes_default
13549 #include <$ac_header>
13550 _ACEOF
13551 rm -f conftest.$ac_objext
13552 if { (ac_try="$ac_compile"
13553 case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13556 esac
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558 (eval "$ac_compile") 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } && {
13565 test -z "$ac_c_werror_flag" ||
13566 test ! -s conftest.err
13567 } && test -s conftest.$ac_objext; then
13568 ac_header_compiler=yes
13569 else
13570 echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13573 ac_header_compiler=no
13576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13578 echo "${ECHO_T}$ac_header_compiler" >&6; }
13580 # Is the header present?
13581 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13583 cat >conftest.$ac_ext <<_ACEOF
13584 /* confdefs.h. */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13589 #include <$ac_header>
13590 _ACEOF
13591 if { (ac_try="$ac_cpp conftest.$ac_ext"
13592 case "(($ac_try" in
13593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594 *) ac_try_echo=$ac_try;;
13595 esac
13596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13598 ac_status=$?
13599 grep -v '^ *+' conftest.er1 >conftest.err
13600 rm -f conftest.er1
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } >/dev/null && {
13604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13605 test ! -s conftest.err
13606 }; then
13607 ac_header_preproc=yes
13608 else
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13612 ac_header_preproc=no
13615 rm -f conftest.err conftest.$ac_ext
13616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13617 echo "${ECHO_T}$ac_header_preproc" >&6; }
13619 # So? What about this header?
13620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13621 yes:no: )
13622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13626 ac_header_preproc=yes
13628 no:yes:* )
13629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13643 esac
13644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649 eval "$as_ac_Header=\$ac_header_preproc"
13651 ac_res=`eval echo '${'$as_ac_Header'}'`
13652 { echo "$as_me:$LINENO: result: $ac_res" >&5
13653 echo "${ECHO_T}$ac_res" >&6; }
13656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13657 cat >>confdefs.h <<_ACEOF
13658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13659 _ACEOF
13663 done
13665 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13666 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13667 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13668 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 else
13671 ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-lpng -lz -lm $LIBS"
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. */
13680 /* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13683 #ifdef __cplusplus
13684 extern "C"
13685 #endif
13686 char png_get_channels ();
13688 main ()
13690 return png_get_channels ();
13692 return 0;
13694 _ACEOF
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (ac_try="$ac_link"
13697 case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13700 esac
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && {
13709 test -z "$ac_c_werror_flag" ||
13710 test ! -s conftest.err
13711 } && test -s conftest$ac_exeext &&
13712 $as_test_x conftest$ac_exeext; then
13713 ac_cv_lib_png_png_get_channels=yes
13714 else
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 ac_cv_lib_png_png_get_channels=no
13721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13722 conftest$ac_exeext conftest.$ac_ext
13723 LIBS=$ac_check_lib_save_LIBS
13725 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13726 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13727 if test $ac_cv_lib_png_png_get_channels = yes; then
13728 HAVE_PNG=yes
13734 if test "${HAVE_PNG}" = "yes"; then
13736 cat >>confdefs.h <<\_ACEOF
13737 #define HAVE_PNG 1
13738 _ACEOF
13743 ### Use -ltiff if available, unless `--with-tiff=no'.
13744 HAVE_TIFF=no
13745 if test "${HAVE_X11}" = "yes"; then
13746 if test "${with_tiff}" != "no"; then
13747 if test "${ac_cv_header_tiffio_h+set}" = set; then
13748 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13749 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13750 if test "${ac_cv_header_tiffio_h+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13754 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13755 else
13756 # Is the header compilable?
13757 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13758 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h. */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 $ac_includes_default
13766 #include <tiffio.h>
13767 _ACEOF
13768 rm -f conftest.$ac_objext
13769 if { (ac_try="$ac_compile"
13770 case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773 esac
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_compile") 2>conftest.er1
13776 ac_status=$?
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } && {
13782 test -z "$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13784 } && test -s conftest.$ac_objext; then
13785 ac_header_compiler=yes
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 ac_header_compiler=no
13793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13795 echo "${ECHO_T}$ac_header_compiler" >&6; }
13797 # Is the header present?
13798 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13799 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h. */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 #include <tiffio.h>
13807 _ACEOF
13808 if { (ac_try="$ac_cpp conftest.$ac_ext"
13809 case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812 esac
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13815 ac_status=$?
13816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } >/dev/null && {
13821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13822 test ! -s conftest.err
13823 }; then
13824 ac_header_preproc=yes
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_header_preproc=no
13832 rm -f conftest.err conftest.$ac_ext
13833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13834 echo "${ECHO_T}$ac_header_preproc" >&6; }
13836 # So? What about this header?
13837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13838 yes:no: )
13839 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13840 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13842 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13843 ac_header_preproc=yes
13845 no:yes:* )
13846 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13847 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13849 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13851 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13853 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13855 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13856 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13857 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13860 esac
13861 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13862 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13863 if test "${ac_cv_header_tiffio_h+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866 ac_cv_header_tiffio_h=$ac_header_preproc
13868 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13869 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13872 if test $ac_cv_header_tiffio_h = yes; then
13873 tifflibs="-lz -lm"
13874 # At least one tiff package requires the jpeg library.
13875 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13876 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13877 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13878 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881 ac_check_lib_save_LIBS=$LIBS
13882 LIBS="-ltiff $tifflibs $LIBS"
13883 cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h. */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13893 #ifdef __cplusplus
13894 extern "C"
13895 #endif
13896 char TIFFGetVersion ();
13898 main ()
13900 return TIFFGetVersion ();
13902 return 0;
13904 _ACEOF
13905 rm -f conftest.$ac_objext conftest$ac_exeext
13906 if { (ac_try="$ac_link"
13907 case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13910 esac
13911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_link") 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && {
13919 test -z "$ac_c_werror_flag" ||
13920 test ! -s conftest.err
13921 } && test -s conftest$ac_exeext &&
13922 $as_test_x conftest$ac_exeext; then
13923 ac_cv_lib_tiff_TIFFGetVersion=yes
13924 else
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13928 ac_cv_lib_tiff_TIFFGetVersion=no
13931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13932 conftest$ac_exeext conftest.$ac_ext
13933 LIBS=$ac_check_lib_save_LIBS
13935 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13936 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13937 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13938 HAVE_TIFF=yes
13946 if test "${HAVE_TIFF}" = "yes"; then
13948 cat >>confdefs.h <<\_ACEOF
13949 #define HAVE_TIFF 1
13950 _ACEOF
13955 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13956 HAVE_GIF=no
13957 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13958 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13959 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13960 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13961 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13965 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13966 else
13967 # Is the header compilable?
13968 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13969 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13970 cat >conftest.$ac_ext <<_ACEOF
13971 /* confdefs.h. */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976 $ac_includes_default
13977 #include <gif_lib.h>
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_compile") 2>conftest.er1
13987 ac_status=$?
13988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } && {
13993 test -z "$ac_c_werror_flag" ||
13994 test ! -s conftest.err
13995 } && test -s conftest.$ac_objext; then
13996 ac_header_compiler=yes
13997 else
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14001 ac_header_compiler=no
14004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14006 echo "${ECHO_T}$ac_header_compiler" >&6; }
14008 # Is the header present?
14009 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14010 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14011 cat >conftest.$ac_ext <<_ACEOF
14012 /* confdefs.h. */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14017 #include <gif_lib.h>
14018 _ACEOF
14019 if { (ac_try="$ac_cpp conftest.$ac_ext"
14020 case "(($ac_try" in
14021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14023 esac
14024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14026 ac_status=$?
14027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } >/dev/null && {
14032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14033 test ! -s conftest.err
14034 }; then
14035 ac_header_preproc=yes
14036 else
14037 echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14040 ac_header_preproc=no
14043 rm -f conftest.err conftest.$ac_ext
14044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14045 echo "${ECHO_T}$ac_header_preproc" >&6; }
14047 # So? What about this header?
14048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14049 yes:no: )
14050 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14051 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14052 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14053 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14054 ac_header_preproc=yes
14056 no:yes:* )
14057 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14058 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14060 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14061 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14062 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14063 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14064 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14065 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14066 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14068 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14071 esac
14072 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14073 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14074 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077 ac_cv_header_gif_lib_h=$ac_header_preproc
14079 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14080 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14083 if test $ac_cv_header_gif_lib_h = yes; then
14084 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14085 # Earlier versions can crash Emacs.
14086 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14087 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14088 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091 ac_check_lib_save_LIBS=$LIBS
14092 LIBS="-lgif $LIBS"
14093 cat >conftest.$ac_ext <<_ACEOF
14094 /* confdefs.h. */
14095 _ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14100 /* Override any GCC internal prototype to avoid an error.
14101 Use char because int might match the return type of a GCC
14102 builtin and then its argument prototype would still apply. */
14103 #ifdef __cplusplus
14104 extern "C"
14105 #endif
14106 char EGifPutExtensionLast ();
14108 main ()
14110 return EGifPutExtensionLast ();
14112 return 0;
14114 _ACEOF
14115 rm -f conftest.$ac_objext conftest$ac_exeext
14116 if { (ac_try="$ac_link"
14117 case "(($ac_try" in
14118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119 *) ac_try_echo=$ac_try;;
14120 esac
14121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_link") 2>conftest.er1
14123 ac_status=$?
14124 grep -v '^ *+' conftest.er1 >conftest.err
14125 rm -f conftest.er1
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } && {
14129 test -z "$ac_c_werror_flag" ||
14130 test ! -s conftest.err
14131 } && test -s conftest$ac_exeext &&
14132 $as_test_x conftest$ac_exeext; then
14133 ac_cv_lib_gif_EGifPutExtensionLast=yes
14134 else
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14138 ac_cv_lib_gif_EGifPutExtensionLast=no
14141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14142 conftest$ac_exeext conftest.$ac_ext
14143 LIBS=$ac_check_lib_save_LIBS
14145 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14146 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14147 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14148 HAVE_GIF=yes
14149 else
14150 try_libungif=yes
14157 if test "$HAVE_GIF" = yes; then
14158 ac_gif_lib_name="-lgif"
14161 # If gif_lib.h but no libgif, try libungif.
14162 if test x"$try_libungif" = xyes; then
14163 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14164 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14165 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168 ac_check_lib_save_LIBS=$LIBS
14169 LIBS="-lungif $LIBS"
14170 cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h. */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char EGifPutExtensionLast ();
14185 main ()
14187 return EGifPutExtensionLast ();
14189 return 0;
14191 _ACEOF
14192 rm -f conftest.$ac_objext conftest$ac_exeext
14193 if { (ac_try="$ac_link"
14194 case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_link") 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && {
14206 test -z "$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 } && test -s conftest$ac_exeext &&
14209 $as_test_x conftest$ac_exeext; then
14210 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14211 else
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14215 ac_cv_lib_ungif_EGifPutExtensionLast=no
14218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14219 conftest$ac_exeext conftest.$ac_ext
14220 LIBS=$ac_check_lib_save_LIBS
14222 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14223 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14224 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14225 HAVE_GIF=yes
14229 if test "$HAVE_GIF" = yes; then
14231 cat >>confdefs.h <<\_ACEOF
14232 #define LIBGIF -lungif
14233 _ACEOF
14235 ac_gif_lib_name="-lungif"
14239 if test "${HAVE_GIF}" = "yes"; then
14241 cat >>confdefs.h <<\_ACEOF
14242 #define HAVE_GIF 1
14243 _ACEOF
14248 if test "${HAVE_X11}" = "yes"; then
14249 MISSING=""
14250 WITH_NO=""
14251 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14252 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14253 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14254 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14255 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14256 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14257 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14258 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14259 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14260 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14262 if test "X${MISSING}" != X; then
14263 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14264 $MISSING
14265 Maybe some development libraries/packages are missing?
14266 If you don't want to link with them give
14267 $WITH_NO
14268 as options to configure" >&5
14269 echo "$as_me: error: The following required libraries were not found:
14270 $MISSING
14271 Maybe some development libraries/packages are missing?
14272 If you don't want to link with them give
14273 $WITH_NO
14274 as options to configure" >&2;}
14275 { (exit 1); exit 1; }; }
14279 ### Use -lgpm if available, unless `--with-gpm=no'.
14280 HAVE_GPM=no
14281 if test "${with_gpm}" != "no"; then
14282 if test "${ac_cv_header_gpm_h+set}" = set; then
14283 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14284 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14285 if test "${ac_cv_header_gpm_h+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14289 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14290 else
14291 # Is the header compilable?
14292 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14293 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h. */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 $ac_includes_default
14301 #include <gpm.h>
14302 _ACEOF
14303 rm -f conftest.$ac_objext
14304 if { (ac_try="$ac_compile"
14305 case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14308 esac
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_compile") 2>conftest.er1
14311 ac_status=$?
14312 grep -v '^ *+' conftest.er1 >conftest.err
14313 rm -f conftest.er1
14314 cat conftest.err >&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } && {
14317 test -z "$ac_c_werror_flag" ||
14318 test ! -s conftest.err
14319 } && test -s conftest.$ac_objext; then
14320 ac_header_compiler=yes
14321 else
14322 echo "$as_me: failed program was:" >&5
14323 sed 's/^/| /' conftest.$ac_ext >&5
14325 ac_header_compiler=no
14328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14330 echo "${ECHO_T}$ac_header_compiler" >&6; }
14332 # Is the header present?
14333 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14334 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14335 cat >conftest.$ac_ext <<_ACEOF
14336 /* confdefs.h. */
14337 _ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h. */
14341 #include <gpm.h>
14342 _ACEOF
14343 if { (ac_try="$ac_cpp conftest.$ac_ext"
14344 case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14347 esac
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14350 ac_status=$?
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } >/dev/null && {
14356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14357 test ! -s conftest.err
14358 }; then
14359 ac_header_preproc=yes
14360 else
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 ac_header_preproc=no
14367 rm -f conftest.err conftest.$ac_ext
14368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14369 echo "${ECHO_T}$ac_header_preproc" >&6; }
14371 # So? What about this header?
14372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14373 yes:no: )
14374 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14375 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14376 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14377 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14378 ac_header_preproc=yes
14380 no:yes:* )
14381 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14382 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14383 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14384 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14385 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14386 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14387 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14388 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14390 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14391 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14392 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14395 esac
14396 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14397 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14398 if test "${ac_cv_header_gpm_h+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401 ac_cv_header_gpm_h=$ac_header_preproc
14403 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14404 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14407 if test $ac_cv_header_gpm_h = yes; then
14408 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14409 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14410 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413 ac_check_lib_save_LIBS=$LIBS
14414 LIBS="-lgpm $LIBS"
14415 cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h. */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14422 /* Override any GCC internal prototype to avoid an error.
14423 Use char because int might match the return type of a GCC
14424 builtin and then its argument prototype would still apply. */
14425 #ifdef __cplusplus
14426 extern "C"
14427 #endif
14428 char Gpm_Open ();
14430 main ()
14432 return Gpm_Open ();
14434 return 0;
14436 _ACEOF
14437 rm -f conftest.$ac_objext conftest$ac_exeext
14438 if { (ac_try="$ac_link"
14439 case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14442 esac
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444 (eval "$ac_link") 2>conftest.er1
14445 ac_status=$?
14446 grep -v '^ *+' conftest.er1 >conftest.err
14447 rm -f conftest.er1
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } && {
14451 test -z "$ac_c_werror_flag" ||
14452 test ! -s conftest.err
14453 } && test -s conftest$ac_exeext &&
14454 $as_test_x conftest$ac_exeext; then
14455 ac_cv_lib_gpm_Gpm_Open=yes
14456 else
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 ac_cv_lib_gpm_Gpm_Open=no
14463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14464 conftest$ac_exeext conftest.$ac_ext
14465 LIBS=$ac_check_lib_save_LIBS
14467 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14468 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14469 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14470 HAVE_GPM=yes
14478 if test "${HAVE_GPM}" = "yes"; then
14480 cat >>confdefs.h <<\_ACEOF
14481 #define HAVE_GPM 1
14482 _ACEOF
14486 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14487 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14488 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14489 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14493 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14494 else
14495 # Is the header compilable?
14496 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14497 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h. */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 $ac_includes_default
14505 #include <malloc/malloc.h>
14506 _ACEOF
14507 rm -f conftest.$ac_objext
14508 if { (ac_try="$ac_compile"
14509 case "(($ac_try" in
14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511 *) ac_try_echo=$ac_try;;
14512 esac
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514 (eval "$ac_compile") 2>conftest.er1
14515 ac_status=$?
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } && {
14521 test -z "$ac_c_werror_flag" ||
14522 test ! -s conftest.err
14523 } && test -s conftest.$ac_objext; then
14524 ac_header_compiler=yes
14525 else
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14529 ac_header_compiler=no
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14534 echo "${ECHO_T}$ac_header_compiler" >&6; }
14536 # Is the header present?
14537 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14538 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14539 cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h. */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 #include <malloc/malloc.h>
14546 _ACEOF
14547 if { (ac_try="$ac_cpp conftest.$ac_ext"
14548 case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14551 esac
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } >/dev/null && {
14560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14561 test ! -s conftest.err
14562 }; then
14563 ac_header_preproc=yes
14564 else
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 ac_header_preproc=no
14571 rm -f conftest.err conftest.$ac_ext
14572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14573 echo "${ECHO_T}$ac_header_preproc" >&6; }
14575 # So? What about this header?
14576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14577 yes:no: )
14578 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14579 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14581 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14582 ac_header_preproc=yes
14584 no:yes:* )
14585 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14586 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14587 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14588 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14589 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14590 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14591 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14592 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14594 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14596 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14599 esac
14600 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14601 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14602 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14607 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14608 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14611 if test $ac_cv_header_malloc_malloc_h = yes; then
14613 cat >>confdefs.h <<\_ACEOF
14614 #define HAVE_MALLOC_MALLOC_H 1
14615 _ACEOF
14621 ### Use Mac OS X Carbon API to implement GUI.
14622 if test "${HAVE_CARBON}" = "yes"; then
14624 cat >>confdefs.h <<\_ACEOF
14625 #define HAVE_CARBON 1
14626 _ACEOF
14628 ## Specify the install directory
14629 carbon_appdir=
14630 if test "${carbon_appdir_x}" != ""; then
14631 case ${carbon_appdir_x} in
14632 y | ye | yes) carbon_appdir=/Applications ;;
14633 * ) carbon_appdir=${carbon_appdir_x} ;;
14634 esac
14636 # We also have mouse menus.
14637 HAVE_MENUS=yes
14640 ### Use session management (-lSM -lICE) if available
14641 HAVE_X_SM=no
14642 if test "${HAVE_X11}" = "yes"; then
14643 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14644 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14645 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14646 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14650 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14651 else
14652 # Is the header compilable?
14653 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14654 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14655 cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h. */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14661 $ac_includes_default
14662 #include <X11/SM/SMlib.h>
14663 _ACEOF
14664 rm -f conftest.$ac_objext
14665 if { (ac_try="$ac_compile"
14666 case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14669 esac
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_compile") 2>conftest.er1
14672 ac_status=$?
14673 grep -v '^ *+' conftest.er1 >conftest.err
14674 rm -f conftest.er1
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } && {
14678 test -z "$ac_c_werror_flag" ||
14679 test ! -s conftest.err
14680 } && test -s conftest.$ac_objext; then
14681 ac_header_compiler=yes
14682 else
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14686 ac_header_compiler=no
14689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14691 echo "${ECHO_T}$ac_header_compiler" >&6; }
14693 # Is the header present?
14694 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14695 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14696 cat >conftest.$ac_ext <<_ACEOF
14697 /* confdefs.h. */
14698 _ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h. */
14702 #include <X11/SM/SMlib.h>
14703 _ACEOF
14704 if { (ac_try="$ac_cpp conftest.$ac_ext"
14705 case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14708 esac
14709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14711 ac_status=$?
14712 grep -v '^ *+' conftest.er1 >conftest.err
14713 rm -f conftest.er1
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } >/dev/null && {
14717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14718 test ! -s conftest.err
14719 }; then
14720 ac_header_preproc=yes
14721 else
14722 echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14725 ac_header_preproc=no
14728 rm -f conftest.err conftest.$ac_ext
14729 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14730 echo "${ECHO_T}$ac_header_preproc" >&6; }
14732 # So? What about this header?
14733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14734 yes:no: )
14735 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14736 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14737 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14738 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14739 ac_header_preproc=yes
14741 no:yes:* )
14742 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14743 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14745 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14747 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14749 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14751 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14753 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14756 esac
14757 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14758 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14759 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14764 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14765 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14768 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14769 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14770 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14771 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774 ac_check_lib_save_LIBS=$LIBS
14775 LIBS="-lSM -lICE $LIBS"
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h. */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14783 /* Override any GCC internal prototype to avoid an error.
14784 Use char because int might match the return type of a GCC
14785 builtin and then its argument prototype would still apply. */
14786 #ifdef __cplusplus
14787 extern "C"
14788 #endif
14789 char SmcOpenConnection ();
14791 main ()
14793 return SmcOpenConnection ();
14795 return 0;
14797 _ACEOF
14798 rm -f conftest.$ac_objext conftest$ac_exeext
14799 if { (ac_try="$ac_link"
14800 case "(($ac_try" in
14801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802 *) ac_try_echo=$ac_try;;
14803 esac
14804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805 (eval "$ac_link") 2>conftest.er1
14806 ac_status=$?
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } && {
14812 test -z "$ac_c_werror_flag" ||
14813 test ! -s conftest.err
14814 } && test -s conftest$ac_exeext &&
14815 $as_test_x conftest$ac_exeext; then
14816 ac_cv_lib_SM_SmcOpenConnection=yes
14817 else
14818 echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14821 ac_cv_lib_SM_SmcOpenConnection=no
14824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14825 conftest$ac_exeext conftest.$ac_ext
14826 LIBS=$ac_check_lib_save_LIBS
14828 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14829 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14830 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14831 HAVE_X_SM=yes
14838 if test "${HAVE_X_SM}" = "yes"; then
14840 cat >>confdefs.h <<\_ACEOF
14841 #define HAVE_X_SM 1
14842 _ACEOF
14844 case "$LIBS" in
14845 *-lSM*) ;;
14846 *) LIBS="-lSM -lICE $LIBS" ;;
14847 esac
14851 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14852 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14853 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14854 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857 cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h. */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14863 #include <netdb.h>
14865 main ()
14867 return h_errno;
14869 return 0;
14871 _ACEOF
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (ac_try="$ac_link"
14874 case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14877 esac
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_link") 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } && {
14886 test -z "$ac_c_werror_flag" ||
14887 test ! -s conftest.err
14888 } && test -s conftest$ac_exeext &&
14889 $as_test_x conftest$ac_exeext; then
14890 emacs_cv_netdb_declares_h_errno=yes
14891 else
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14895 emacs_cv_netdb_declares_h_errno=no
14898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14899 conftest$ac_exeext conftest.$ac_ext
14901 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14902 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14903 if test $emacs_cv_netdb_declares_h_errno = yes; then
14905 cat >>confdefs.h <<\_ACEOF
14906 #define HAVE_H_ERRNO 1
14907 _ACEOF
14911 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14912 # for constant arguments. Useless!
14913 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14914 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14915 if test "${ac_cv_working_alloca_h+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918 cat >conftest.$ac_ext <<_ACEOF
14919 /* confdefs.h. */
14920 _ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924 #include <alloca.h>
14926 main ()
14928 char *p = (char *) alloca (2 * sizeof (int));
14929 if (p) return 0;
14931 return 0;
14933 _ACEOF
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (ac_try="$ac_link"
14936 case "(($ac_try" in
14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14939 esac
14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941 (eval "$ac_link") 2>conftest.er1
14942 ac_status=$?
14943 grep -v '^ *+' conftest.er1 >conftest.err
14944 rm -f conftest.er1
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } && {
14948 test -z "$ac_c_werror_flag" ||
14949 test ! -s conftest.err
14950 } && test -s conftest$ac_exeext &&
14951 $as_test_x conftest$ac_exeext; then
14952 ac_cv_working_alloca_h=yes
14953 else
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14957 ac_cv_working_alloca_h=no
14960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14961 conftest$ac_exeext conftest.$ac_ext
14963 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14964 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14965 if test $ac_cv_working_alloca_h = yes; then
14967 cat >>confdefs.h <<\_ACEOF
14968 #define HAVE_ALLOCA_H 1
14969 _ACEOF
14973 { echo "$as_me:$LINENO: checking for alloca" >&5
14974 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14975 if test "${ac_cv_func_alloca_works+set}" = set; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 else
14978 cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h. */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 #ifdef __GNUC__
14985 # define alloca __builtin_alloca
14986 #else
14987 # ifdef _MSC_VER
14988 # include <malloc.h>
14989 # define alloca _alloca
14990 # else
14991 # ifdef HAVE_ALLOCA_H
14992 # include <alloca.h>
14993 # else
14994 # ifdef _AIX
14995 #pragma alloca
14996 # else
14997 # ifndef alloca /* predefined by HP cc +Olibcalls */
14998 char *alloca ();
14999 # endif
15000 # endif
15001 # endif
15002 # endif
15003 #endif
15006 main ()
15008 char *p = (char *) alloca (1);
15009 if (p) return 0;
15011 return 0;
15013 _ACEOF
15014 rm -f conftest.$ac_objext conftest$ac_exeext
15015 if { (ac_try="$ac_link"
15016 case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15019 esac
15020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_link") 2>conftest.er1
15022 ac_status=$?
15023 grep -v '^ *+' conftest.er1 >conftest.err
15024 rm -f conftest.er1
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } && {
15028 test -z "$ac_c_werror_flag" ||
15029 test ! -s conftest.err
15030 } && test -s conftest$ac_exeext &&
15031 $as_test_x conftest$ac_exeext; then
15032 ac_cv_func_alloca_works=yes
15033 else
15034 echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15037 ac_cv_func_alloca_works=no
15040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15041 conftest$ac_exeext conftest.$ac_ext
15043 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15044 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15046 if test $ac_cv_func_alloca_works = yes; then
15048 cat >>confdefs.h <<\_ACEOF
15049 #define HAVE_ALLOCA 1
15050 _ACEOF
15052 else
15053 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15054 # that cause trouble. Some versions do not even contain alloca or
15055 # contain a buggy version. If you still want to use their alloca,
15056 # use ar to extract alloca.o from them instead of compiling alloca.c.
15058 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15060 cat >>confdefs.h <<\_ACEOF
15061 #define C_ALLOCA 1
15062 _ACEOF
15065 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15066 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15067 if test "${ac_cv_os_cray+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070 cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h. */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #if defined CRAY && ! defined CRAY2
15077 webecray
15078 #else
15079 wenotbecray
15080 #endif
15082 _ACEOF
15083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15084 $EGREP "webecray" >/dev/null 2>&1; then
15085 ac_cv_os_cray=yes
15086 else
15087 ac_cv_os_cray=no
15089 rm -f conftest*
15092 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15093 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15094 if test $ac_cv_os_cray = yes; then
15095 for ac_func in _getb67 GETB67 getb67; do
15096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102 cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h. */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15110 #define $ac_func innocuous_$ac_func
15112 /* System header to define __stub macros and hopefully few prototypes,
15113 which can conflict with char $ac_func (); below.
15114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15115 <limits.h> exists even on freestanding compilers. */
15117 #ifdef __STDC__
15118 # include <limits.h>
15119 #else
15120 # include <assert.h>
15121 #endif
15123 #undef $ac_func
15125 /* Override any GCC internal prototype to avoid an error.
15126 Use char because int might match the return type of a GCC
15127 builtin and then its argument prototype would still apply. */
15128 #ifdef __cplusplus
15129 extern "C"
15130 #endif
15131 char $ac_func ();
15132 /* The GNU C library defines this for functions which it implements
15133 to always fail with ENOSYS. Some functions are actually named
15134 something starting with __ and the normal name is an alias. */
15135 #if defined __stub_$ac_func || defined __stub___$ac_func
15136 choke me
15137 #endif
15140 main ()
15142 return $ac_func ();
15144 return 0;
15146 _ACEOF
15147 rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (ac_try="$ac_link"
15149 case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15152 esac
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_link") 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && {
15161 test -z "$ac_c_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest$ac_exeext &&
15164 $as_test_x conftest$ac_exeext; then
15165 eval "$as_ac_var=yes"
15166 else
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 eval "$as_ac_var=no"
15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174 conftest$ac_exeext conftest.$ac_ext
15176 ac_res=`eval echo '${'$as_ac_var'}'`
15177 { echo "$as_me:$LINENO: result: $ac_res" >&5
15178 echo "${ECHO_T}$ac_res" >&6; }
15179 if test `eval echo '${'$as_ac_var'}'` = yes; then
15181 cat >>confdefs.h <<_ACEOF
15182 #define CRAY_STACKSEG_END $ac_func
15183 _ACEOF
15185 break
15188 done
15191 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15192 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15193 if test "${ac_cv_c_stack_direction+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196 if test "$cross_compiling" = yes; then
15197 ac_cv_c_stack_direction=0
15198 else
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h. */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15205 $ac_includes_default
15207 find_stack_direction ()
15209 static char *addr = 0;
15210 auto char dummy;
15211 if (addr == 0)
15213 addr = &dummy;
15214 return find_stack_direction ();
15216 else
15217 return (&dummy > addr) ? 1 : -1;
15221 main ()
15223 return find_stack_direction () < 0;
15225 _ACEOF
15226 rm -f conftest$ac_exeext
15227 if { (ac_try="$ac_link"
15228 case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15231 esac
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_link") 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15237 { (case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15240 esac
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_try") 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_cv_c_stack_direction=1
15247 else
15248 echo "$as_me: program exited with status $ac_status" >&5
15249 echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15252 ( exit $ac_status )
15253 ac_cv_c_stack_direction=-1
15255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15260 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15261 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15263 cat >>confdefs.h <<_ACEOF
15264 #define STACK_DIRECTION $ac_cv_c_stack_direction
15265 _ACEOF
15271 if test x"$ac_cv_func_alloca_works" != xyes; then
15272 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15273 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15274 { (exit 1); exit 1; }; }
15277 # fmod, logb, and frexp are found in -lm on most systems.
15278 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15280 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15281 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15282 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 else
15285 ac_check_lib_save_LIBS=$LIBS
15286 LIBS="-lm $LIBS"
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h. */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15294 /* Override any GCC internal prototype to avoid an error.
15295 Use char because int might match the return type of a GCC
15296 builtin and then its argument prototype would still apply. */
15297 #ifdef __cplusplus
15298 extern "C"
15299 #endif
15300 char sqrt ();
15302 main ()
15304 return sqrt ();
15306 return 0;
15308 _ACEOF
15309 rm -f conftest.$ac_objext conftest$ac_exeext
15310 if { (ac_try="$ac_link"
15311 case "(($ac_try" in
15312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313 *) ac_try_echo=$ac_try;;
15314 esac
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316 (eval "$ac_link") 2>conftest.er1
15317 ac_status=$?
15318 grep -v '^ *+' conftest.er1 >conftest.err
15319 rm -f conftest.er1
15320 cat conftest.err >&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && {
15323 test -z "$ac_c_werror_flag" ||
15324 test ! -s conftest.err
15325 } && test -s conftest$ac_exeext &&
15326 $as_test_x conftest$ac_exeext; then
15327 ac_cv_lib_m_sqrt=yes
15328 else
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_cv_lib_m_sqrt=no
15335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15336 conftest$ac_exeext conftest.$ac_ext
15337 LIBS=$ac_check_lib_save_LIBS
15339 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15340 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15341 if test $ac_cv_lib_m_sqrt = yes; then
15342 cat >>confdefs.h <<_ACEOF
15343 #define HAVE_LIBM 1
15344 _ACEOF
15346 LIBS="-lm $LIBS"
15351 # Check for mail-locking functions in a "mail" library. Probably this should
15352 # have the same check as for liblockfile below.
15354 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15355 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15356 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359 ac_check_lib_save_LIBS=$LIBS
15360 LIBS="-lmail $LIBS"
15361 cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h. */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15368 /* Override any GCC internal prototype to avoid an error.
15369 Use char because int might match the return type of a GCC
15370 builtin and then its argument prototype would still apply. */
15371 #ifdef __cplusplus
15372 extern "C"
15373 #endif
15374 char maillock ();
15376 main ()
15378 return maillock ();
15380 return 0;
15382 _ACEOF
15383 rm -f conftest.$ac_objext conftest$ac_exeext
15384 if { (ac_try="$ac_link"
15385 case "(($ac_try" in
15386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15387 *) ac_try_echo=$ac_try;;
15388 esac
15389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15390 (eval "$ac_link") 2>conftest.er1
15391 ac_status=$?
15392 grep -v '^ *+' conftest.er1 >conftest.err
15393 rm -f conftest.er1
15394 cat conftest.err >&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); } && {
15397 test -z "$ac_c_werror_flag" ||
15398 test ! -s conftest.err
15399 } && test -s conftest$ac_exeext &&
15400 $as_test_x conftest$ac_exeext; then
15401 ac_cv_lib_mail_maillock=yes
15402 else
15403 echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15406 ac_cv_lib_mail_maillock=no
15409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15410 conftest$ac_exeext conftest.$ac_ext
15411 LIBS=$ac_check_lib_save_LIBS
15413 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15414 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15415 if test $ac_cv_lib_mail_maillock = yes; then
15416 cat >>confdefs.h <<_ACEOF
15417 #define HAVE_LIBMAIL 1
15418 _ACEOF
15420 LIBS="-lmail $LIBS"
15425 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15426 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15427 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430 ac_check_lib_save_LIBS=$LIBS
15431 LIBS="-llockfile $LIBS"
15432 cat >conftest.$ac_ext <<_ACEOF
15433 /* confdefs.h. */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15439 /* Override any GCC internal prototype to avoid an error.
15440 Use char because int might match the return type of a GCC
15441 builtin and then its argument prototype would still apply. */
15442 #ifdef __cplusplus
15443 extern "C"
15444 #endif
15445 char maillock ();
15447 main ()
15449 return maillock ();
15451 return 0;
15453 _ACEOF
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (ac_try="$ac_link"
15456 case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15459 esac
15460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_link") 2>conftest.er1
15462 ac_status=$?
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } && {
15468 test -z "$ac_c_werror_flag" ||
15469 test ! -s conftest.err
15470 } && test -s conftest$ac_exeext &&
15471 $as_test_x conftest$ac_exeext; then
15472 ac_cv_lib_lockfile_maillock=yes
15473 else
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 ac_cv_lib_lockfile_maillock=no
15480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15481 conftest$ac_exeext conftest.$ac_ext
15482 LIBS=$ac_check_lib_save_LIBS
15484 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15485 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15486 if test $ac_cv_lib_lockfile_maillock = yes; then
15487 cat >>confdefs.h <<_ACEOF
15488 #define HAVE_LIBLOCKFILE 1
15489 _ACEOF
15491 LIBS="-llockfile $LIBS"
15495 # If we have the shared liblockfile, assume we must use it for mail
15496 # locking (e.g. Debian). If we couldn't link against liblockfile
15497 # (no liblockfile.a installed), ensure that we don't need to.
15498 if test "$ac_cv_lib_lockfile_maillock" = no; then
15499 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15500 set dummy liblockfile.so; ac_word=$2
15501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15503 if test "${ac_cv_prog_liblockfile+set}" = set; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506 if test -n "$liblockfile"; then
15507 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15508 else
15509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15510 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15511 for as_dir in $as_dummy
15513 IFS=$as_save_IFS
15514 test -z "$as_dir" && as_dir=.
15515 for ac_exec_ext in '' $ac_executable_extensions; do
15516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15517 ac_cv_prog_liblockfile="yes"
15518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15519 break 2
15521 done
15522 done
15523 IFS=$as_save_IFS
15525 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15528 liblockfile=$ac_cv_prog_liblockfile
15529 if test -n "$liblockfile"; then
15530 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15531 echo "${ECHO_T}$liblockfile" >&6; }
15532 else
15533 { echo "$as_me:$LINENO: result: no" >&5
15534 echo "${ECHO_T}no" >&6; }
15538 if test $ac_cv_prog_liblockfile = yes; then
15539 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15540 This probably means that movemail could lose mail.
15541 There may be a \`development' package to install containing liblockfile." >&5
15542 echo "$as_me: error: Shared liblockfile found but can't link against it.
15543 This probably means that movemail could lose mail.
15544 There may be a \`development' package to install containing liblockfile." >&2;}
15545 { (exit 1); exit 1; }; }
15546 else :
15550 for ac_func in touchlock
15552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15557 else
15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h. */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15566 #define $ac_func innocuous_$ac_func
15568 /* System header to define __stub macros and hopefully few prototypes,
15569 which can conflict with char $ac_func (); below.
15570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15571 <limits.h> exists even on freestanding compilers. */
15573 #ifdef __STDC__
15574 # include <limits.h>
15575 #else
15576 # include <assert.h>
15577 #endif
15579 #undef $ac_func
15581 /* Override any GCC internal prototype to avoid an error.
15582 Use char because int might match the return type of a GCC
15583 builtin and then its argument prototype would still apply. */
15584 #ifdef __cplusplus
15585 extern "C"
15586 #endif
15587 char $ac_func ();
15588 /* The GNU C library defines this for functions which it implements
15589 to always fail with ENOSYS. Some functions are actually named
15590 something starting with __ and the normal name is an alias. */
15591 #if defined __stub_$ac_func || defined __stub___$ac_func
15592 choke me
15593 #endif
15596 main ()
15598 return $ac_func ();
15600 return 0;
15602 _ACEOF
15603 rm -f conftest.$ac_objext conftest$ac_exeext
15604 if { (ac_try="$ac_link"
15605 case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15608 esac
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_link") 2>conftest.er1
15611 ac_status=$?
15612 grep -v '^ *+' conftest.er1 >conftest.err
15613 rm -f conftest.er1
15614 cat conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } && {
15617 test -z "$ac_c_werror_flag" ||
15618 test ! -s conftest.err
15619 } && test -s conftest$ac_exeext &&
15620 $as_test_x conftest$ac_exeext; then
15621 eval "$as_ac_var=yes"
15622 else
15623 echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15626 eval "$as_ac_var=no"
15629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15630 conftest$ac_exeext conftest.$ac_ext
15632 ac_res=`eval echo '${'$as_ac_var'}'`
15633 { echo "$as_me:$LINENO: result: $ac_res" >&5
15634 echo "${ECHO_T}$ac_res" >&6; }
15635 if test `eval echo '${'$as_ac_var'}'` = yes; then
15636 cat >>confdefs.h <<_ACEOF
15637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15638 _ACEOF
15641 done
15644 for ac_header in maillock.h
15646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 ac_res=`eval echo '${'$as_ac_Header'}'`
15654 { echo "$as_me:$LINENO: result: $ac_res" >&5
15655 echo "${ECHO_T}$ac_res" >&6; }
15656 else
15657 # Is the header compilable?
15658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15660 cat >conftest.$ac_ext <<_ACEOF
15661 /* confdefs.h. */
15662 _ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 $ac_includes_default
15667 #include <$ac_header>
15668 _ACEOF
15669 rm -f conftest.$ac_objext
15670 if { (ac_try="$ac_compile"
15671 case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15674 esac
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_compile") 2>conftest.er1
15677 ac_status=$?
15678 grep -v '^ *+' conftest.er1 >conftest.err
15679 rm -f conftest.er1
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } && {
15683 test -z "$ac_c_werror_flag" ||
15684 test ! -s conftest.err
15685 } && test -s conftest.$ac_objext; then
15686 ac_header_compiler=yes
15687 else
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15691 ac_header_compiler=no
15694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15696 echo "${ECHO_T}$ac_header_compiler" >&6; }
15698 # Is the header present?
15699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15701 cat >conftest.$ac_ext <<_ACEOF
15702 /* confdefs.h. */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15707 #include <$ac_header>
15708 _ACEOF
15709 if { (ac_try="$ac_cpp conftest.$ac_ext"
15710 case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15713 esac
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15716 ac_status=$?
15717 grep -v '^ *+' conftest.er1 >conftest.err
15718 rm -f conftest.er1
15719 cat conftest.err >&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } >/dev/null && {
15722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15723 test ! -s conftest.err
15724 }; then
15725 ac_header_preproc=yes
15726 else
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15730 ac_header_preproc=no
15733 rm -f conftest.err conftest.$ac_ext
15734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15735 echo "${ECHO_T}$ac_header_preproc" >&6; }
15737 # So? What about this header?
15738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15739 yes:no: )
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15744 ac_header_preproc=yes
15746 no:yes:* )
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15761 esac
15762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 else
15767 eval "$as_ac_Header=\$ac_header_preproc"
15769 ac_res=`eval echo '${'$as_ac_Header'}'`
15770 { echo "$as_me:$LINENO: result: $ac_res" >&5
15771 echo "${ECHO_T}$ac_res" >&6; }
15774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15775 cat >>confdefs.h <<_ACEOF
15776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15777 _ACEOF
15781 done
15852 for ac_func in gethostname getdomainname dup2 \
15853 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15854 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15855 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15856 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15857 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15858 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15859 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15860 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 else
15868 cat >conftest.$ac_ext <<_ACEOF
15869 /* confdefs.h. */
15870 _ACEOF
15871 cat confdefs.h >>conftest.$ac_ext
15872 cat >>conftest.$ac_ext <<_ACEOF
15873 /* end confdefs.h. */
15874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15876 #define $ac_func innocuous_$ac_func
15878 /* System header to define __stub macros and hopefully few prototypes,
15879 which can conflict with char $ac_func (); below.
15880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15881 <limits.h> exists even on freestanding compilers. */
15883 #ifdef __STDC__
15884 # include <limits.h>
15885 #else
15886 # include <assert.h>
15887 #endif
15889 #undef $ac_func
15891 /* Override any GCC internal prototype to avoid an error.
15892 Use char because int might match the return type of a GCC
15893 builtin and then its argument prototype would still apply. */
15894 #ifdef __cplusplus
15895 extern "C"
15896 #endif
15897 char $ac_func ();
15898 /* The GNU C library defines this for functions which it implements
15899 to always fail with ENOSYS. Some functions are actually named
15900 something starting with __ and the normal name is an alias. */
15901 #if defined __stub_$ac_func || defined __stub___$ac_func
15902 choke me
15903 #endif
15906 main ()
15908 return $ac_func ();
15910 return 0;
15912 _ACEOF
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (ac_try="$ac_link"
15915 case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_link") 2>conftest.er1
15921 ac_status=$?
15922 grep -v '^ *+' conftest.er1 >conftest.err
15923 rm -f conftest.er1
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } && {
15927 test -z "$ac_c_werror_flag" ||
15928 test ! -s conftest.err
15929 } && test -s conftest$ac_exeext &&
15930 $as_test_x conftest$ac_exeext; then
15931 eval "$as_ac_var=yes"
15932 else
15933 echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15936 eval "$as_ac_var=no"
15939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15940 conftest$ac_exeext conftest.$ac_ext
15942 ac_res=`eval echo '${'$as_ac_var'}'`
15943 { echo "$as_me:$LINENO: result: $ac_res" >&5
15944 echo "${ECHO_T}$ac_res" >&6; }
15945 if test `eval echo '${'$as_ac_var'}'` = yes; then
15946 cat >>confdefs.h <<_ACEOF
15947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15948 _ACEOF
15951 done
15955 for ac_header in sys/un.h
15957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 ac_res=`eval echo '${'$as_ac_Header'}'`
15965 { echo "$as_me:$LINENO: result: $ac_res" >&5
15966 echo "${ECHO_T}$ac_res" >&6; }
15967 else
15968 # Is the header compilable?
15969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15971 cat >conftest.$ac_ext <<_ACEOF
15972 /* confdefs.h. */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15977 $ac_includes_default
15978 #include <$ac_header>
15979 _ACEOF
15980 rm -f conftest.$ac_objext
15981 if { (ac_try="$ac_compile"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_compile") 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest.$ac_objext; then
15997 ac_header_compiler=yes
15998 else
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_header_compiler=no
16005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16007 echo "${ECHO_T}$ac_header_compiler" >&6; }
16009 # Is the header present?
16010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h. */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 #include <$ac_header>
16019 _ACEOF
16020 if { (ac_try="$ac_cpp conftest.$ac_ext"
16021 case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16024 esac
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16027 ac_status=$?
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } >/dev/null && {
16033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16034 test ! -s conftest.err
16035 }; then
16036 ac_header_preproc=yes
16037 else
16038 echo "$as_me: failed program was:" >&5
16039 sed 's/^/| /' conftest.$ac_ext >&5
16041 ac_header_preproc=no
16044 rm -f conftest.err conftest.$ac_ext
16045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16046 echo "${ECHO_T}$ac_header_preproc" >&6; }
16048 # So? What about this header?
16049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16050 yes:no: )
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16055 ac_header_preproc=yes
16057 no:yes:* )
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16072 esac
16073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078 eval "$as_ac_Header=\$ac_header_preproc"
16080 ac_res=`eval echo '${'$as_ac_Header'}'`
16081 { echo "$as_me:$LINENO: result: $ac_res" >&5
16082 echo "${ECHO_T}$ac_res" >&6; }
16085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16086 cat >>confdefs.h <<_ACEOF
16087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16088 _ACEOF
16092 done
16099 for ac_header in $ac_header_list
16101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 ac_res=`eval echo '${'$as_ac_Header'}'`
16109 { echo "$as_me:$LINENO: result: $ac_res" >&5
16110 echo "${ECHO_T}$ac_res" >&6; }
16111 else
16112 # Is the header compilable?
16113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16115 cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h. */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 $ac_includes_default
16122 #include <$ac_header>
16123 _ACEOF
16124 rm -f conftest.$ac_objext
16125 if { (ac_try="$ac_compile"
16126 case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16129 esac
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_compile") 2>conftest.er1
16132 ac_status=$?
16133 grep -v '^ *+' conftest.er1 >conftest.err
16134 rm -f conftest.er1
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } && {
16138 test -z "$ac_c_werror_flag" ||
16139 test ! -s conftest.err
16140 } && test -s conftest.$ac_objext; then
16141 ac_header_compiler=yes
16142 else
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 ac_header_compiler=no
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151 echo "${ECHO_T}$ac_header_compiler" >&6; }
16153 # Is the header present?
16154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16156 cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h. */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 #include <$ac_header>
16163 _ACEOF
16164 if { (ac_try="$ac_cpp conftest.$ac_ext"
16165 case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16168 esac
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171 ac_status=$?
16172 grep -v '^ *+' conftest.er1 >conftest.err
16173 rm -f conftest.er1
16174 cat conftest.err >&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } >/dev/null && {
16177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16178 test ! -s conftest.err
16179 }; then
16180 ac_header_preproc=yes
16181 else
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 ac_header_preproc=no
16188 rm -f conftest.err conftest.$ac_ext
16189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16190 echo "${ECHO_T}$ac_header_preproc" >&6; }
16192 # So? What about this header?
16193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16194 yes:no: )
16195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16199 ac_header_preproc=yes
16201 no:yes:* )
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16216 esac
16217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222 eval "$as_ac_Header=\$ac_header_preproc"
16224 ac_res=`eval echo '${'$as_ac_Header'}'`
16225 { echo "$as_me:$LINENO: result: $ac_res" >&5
16226 echo "${ECHO_T}$ac_res" >&6; }
16229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16230 cat >>confdefs.h <<_ACEOF
16231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16232 _ACEOF
16236 done
16246 for ac_func in $ac_func_list
16248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16252 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 else
16254 cat >conftest.$ac_ext <<_ACEOF
16255 /* confdefs.h. */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h. */
16260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16262 #define $ac_func innocuous_$ac_func
16264 /* System header to define __stub macros and hopefully few prototypes,
16265 which can conflict with char $ac_func (); below.
16266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16267 <limits.h> exists even on freestanding compilers. */
16269 #ifdef __STDC__
16270 # include <limits.h>
16271 #else
16272 # include <assert.h>
16273 #endif
16275 #undef $ac_func
16277 /* Override any GCC internal prototype to avoid an error.
16278 Use char because int might match the return type of a GCC
16279 builtin and then its argument prototype would still apply. */
16280 #ifdef __cplusplus
16281 extern "C"
16282 #endif
16283 char $ac_func ();
16284 /* The GNU C library defines this for functions which it implements
16285 to always fail with ENOSYS. Some functions are actually named
16286 something starting with __ and the normal name is an alias. */
16287 #if defined __stub_$ac_func || defined __stub___$ac_func
16288 choke me
16289 #endif
16292 main ()
16294 return $ac_func ();
16296 return 0;
16298 _ACEOF
16299 rm -f conftest.$ac_objext conftest$ac_exeext
16300 if { (ac_try="$ac_link"
16301 case "(($ac_try" in
16302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303 *) ac_try_echo=$ac_try;;
16304 esac
16305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16306 (eval "$ac_link") 2>conftest.er1
16307 ac_status=$?
16308 grep -v '^ *+' conftest.er1 >conftest.err
16309 rm -f conftest.er1
16310 cat conftest.err >&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } && {
16313 test -z "$ac_c_werror_flag" ||
16314 test ! -s conftest.err
16315 } && test -s conftest$ac_exeext &&
16316 $as_test_x conftest$ac_exeext; then
16317 eval "$as_ac_var=yes"
16318 else
16319 echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16322 eval "$as_ac_var=no"
16325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16326 conftest$ac_exeext conftest.$ac_ext
16328 ac_res=`eval echo '${'$as_ac_var'}'`
16329 { echo "$as_me:$LINENO: result: $ac_res" >&5
16330 echo "${ECHO_T}$ac_res" >&6; }
16331 if test `eval echo '${'$as_ac_var'}'` = yes; then
16332 cat >>confdefs.h <<_ACEOF
16333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16334 _ACEOF
16337 done
16355 { echo "$as_me:$LINENO: checking for working mktime" >&5
16356 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16357 if test "${ac_cv_func_working_mktime+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360 if test "$cross_compiling" = yes; then
16361 ac_cv_func_working_mktime=no
16362 else
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 /* Test program from Paul Eggert and Tony Leneis. */
16370 #ifdef TIME_WITH_SYS_TIME
16371 # include <sys/time.h>
16372 # include <time.h>
16373 #else
16374 # ifdef HAVE_SYS_TIME_H
16375 # include <sys/time.h>
16376 # else
16377 # include <time.h>
16378 # endif
16379 #endif
16381 #include <stdlib.h>
16383 #ifdef HAVE_UNISTD_H
16384 # include <unistd.h>
16385 #endif
16387 #ifndef HAVE_ALARM
16388 # define alarm(X) /* empty */
16389 #endif
16391 /* Work around redefinition to rpl_putenv by other config tests. */
16392 #undef putenv
16394 static time_t time_t_max;
16395 static time_t time_t_min;
16397 /* Values we'll use to set the TZ environment variable. */
16398 static char *tz_strings[] = {
16399 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16400 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16402 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16404 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16405 Based on a problem report from Andreas Jaeger. */
16406 static int
16407 spring_forward_gap ()
16409 /* glibc (up to about 1998-10-07) failed this test. */
16410 struct tm tm;
16412 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16413 instead of "TZ=America/Vancouver" in order to detect the bug even
16414 on systems that don't support the Olson extension, or don't have the
16415 full zoneinfo tables installed. */
16416 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16418 tm.tm_year = 98;
16419 tm.tm_mon = 3;
16420 tm.tm_mday = 5;
16421 tm.tm_hour = 2;
16422 tm.tm_min = 0;
16423 tm.tm_sec = 0;
16424 tm.tm_isdst = -1;
16425 return mktime (&tm) != (time_t) -1;
16428 static int
16429 mktime_test1 (now)
16430 time_t now;
16432 struct tm *lt;
16433 return ! (lt = localtime (&now)) || mktime (lt) == now;
16436 static int
16437 mktime_test (now)
16438 time_t now;
16440 return (mktime_test1 (now)
16441 && mktime_test1 ((time_t) (time_t_max - now))
16442 && mktime_test1 ((time_t) (time_t_min + now)));
16445 static int
16446 irix_6_4_bug ()
16448 /* Based on code from Ariel Faigon. */
16449 struct tm tm;
16450 tm.tm_year = 96;
16451 tm.tm_mon = 3;
16452 tm.tm_mday = 0;
16453 tm.tm_hour = 0;
16454 tm.tm_min = 0;
16455 tm.tm_sec = 0;
16456 tm.tm_isdst = -1;
16457 mktime (&tm);
16458 return tm.tm_mon == 2 && tm.tm_mday == 31;
16461 static int
16462 bigtime_test (j)
16463 int j;
16465 struct tm tm;
16466 time_t now;
16467 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16468 now = mktime (&tm);
16469 if (now != (time_t) -1)
16471 struct tm *lt = localtime (&now);
16472 if (! (lt
16473 && lt->tm_year == tm.tm_year
16474 && lt->tm_mon == tm.tm_mon
16475 && lt->tm_mday == tm.tm_mday
16476 && lt->tm_hour == tm.tm_hour
16477 && lt->tm_min == tm.tm_min
16478 && lt->tm_sec == tm.tm_sec
16479 && lt->tm_yday == tm.tm_yday
16480 && lt->tm_wday == tm.tm_wday
16481 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16482 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16483 return 0;
16485 return 1;
16488 static int
16489 year_2050_test ()
16491 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16492 ignoring leap seconds. */
16493 unsigned long int answer = 2527315200UL;
16495 struct tm tm;
16496 time_t t;
16497 tm.tm_year = 2050 - 1900;
16498 tm.tm_mon = 2 - 1;
16499 tm.tm_mday = 1;
16500 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16501 tm.tm_isdst = -1;
16503 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16504 instead of "TZ=America/Vancouver" in order to detect the bug even
16505 on systems that don't support the Olson extension, or don't have the
16506 full zoneinfo tables installed. */
16507 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16509 t = mktime (&tm);
16511 /* Check that the result is either a failure, or close enough
16512 to the correct answer that we can assume the discrepancy is
16513 due to leap seconds. */
16514 return (t == (time_t) -1
16515 || (0 < t && answer - 120 <= t && t <= answer + 120));
16519 main ()
16521 time_t t, delta;
16522 int i, j;
16524 /* This test makes some buggy mktime implementations loop.
16525 Give up after 60 seconds; a mktime slower than that
16526 isn't worth using anyway. */
16527 alarm (60);
16529 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16530 continue;
16531 time_t_max--;
16532 if ((time_t) -1 < 0)
16533 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16534 continue;
16535 delta = time_t_max / 997; /* a suitable prime number */
16536 for (i = 0; i < N_STRINGS; i++)
16538 if (tz_strings[i])
16539 putenv (tz_strings[i]);
16541 for (t = 0; t <= time_t_max - delta; t += delta)
16542 if (! mktime_test (t))
16543 return 1;
16544 if (! (mktime_test ((time_t) 1)
16545 && mktime_test ((time_t) (60 * 60))
16546 && mktime_test ((time_t) (60 * 60 * 24))))
16547 return 1;
16549 for (j = 1; 0 < j; j *= 2)
16550 if (! bigtime_test (j))
16551 return 1;
16552 if (! bigtime_test (j - 1))
16553 return 1;
16555 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16557 _ACEOF
16558 rm -f conftest$ac_exeext
16559 if { (ac_try="$ac_link"
16560 case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16563 esac
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_link") 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16569 { (case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16572 esac
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_try") 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_cv_func_working_mktime=yes
16579 else
16580 echo "$as_me: program exited with status $ac_status" >&5
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 ( exit $ac_status )
16585 ac_cv_func_working_mktime=no
16587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16592 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16593 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16594 if test $ac_cv_func_working_mktime = no; then
16595 case " $LIBOBJS " in
16596 *" mktime.$ac_objext "* ) ;;
16597 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16599 esac
16603 if test "$ac_cv_func_working_mktime" = no; then
16605 cat >>confdefs.h <<\_ACEOF
16606 #define BROKEN_MKTIME 1
16607 _ACEOF
16611 ac_have_func=no # yes means we've found a way to get the load average.
16613 # Make sure getloadavg.c is where it belongs, at configure-time.
16614 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16615 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16616 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16617 { (exit 1); exit 1; }; }
16619 ac_save_LIBS=$LIBS
16621 # Check for getloadavg, but be sure not to touch the cache variable.
16622 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16623 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16624 if test "${ac_cv_func_getloadavg+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 else
16627 cat >conftest.$ac_ext <<_ACEOF
16628 /* confdefs.h. */
16629 _ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16633 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16635 #define getloadavg innocuous_getloadavg
16637 /* System header to define __stub macros and hopefully few prototypes,
16638 which can conflict with char getloadavg (); below.
16639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16640 <limits.h> exists even on freestanding compilers. */
16642 #ifdef __STDC__
16643 # include <limits.h>
16644 #else
16645 # include <assert.h>
16646 #endif
16648 #undef getloadavg
16650 /* Override any GCC internal prototype to avoid an error.
16651 Use char because int might match the return type of a GCC
16652 builtin and then its argument prototype would still apply. */
16653 #ifdef __cplusplus
16654 extern "C"
16655 #endif
16656 char getloadavg ();
16657 /* The GNU C library defines this for functions which it implements
16658 to always fail with ENOSYS. Some functions are actually named
16659 something starting with __ and the normal name is an alias. */
16660 #if defined __stub_getloadavg || defined __stub___getloadavg
16661 choke me
16662 #endif
16665 main ()
16667 return getloadavg ();
16669 return 0;
16671 _ACEOF
16672 rm -f conftest.$ac_objext conftest$ac_exeext
16673 if { (ac_try="$ac_link"
16674 case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_link") 2>conftest.er1
16680 ac_status=$?
16681 grep -v '^ *+' conftest.er1 >conftest.err
16682 rm -f conftest.er1
16683 cat conftest.err >&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } && {
16686 test -z "$ac_c_werror_flag" ||
16687 test ! -s conftest.err
16688 } && test -s conftest$ac_exeext &&
16689 $as_test_x conftest$ac_exeext; then
16690 ac_cv_func_getloadavg=yes
16691 else
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ac_cv_func_getloadavg=no
16698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16699 conftest$ac_exeext conftest.$ac_ext
16701 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16702 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16703 if test $ac_cv_func_getloadavg = yes; then
16704 exit 0
16705 else
16706 exit 1
16708 ) && ac_have_func=yes
16710 # On HPUX9, an unprivileged user can get load averages through this function.
16712 for ac_func in pstat_getdynamic
16714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16719 else
16720 cat >conftest.$ac_ext <<_ACEOF
16721 /* confdefs.h. */
16722 _ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h. */
16726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16728 #define $ac_func innocuous_$ac_func
16730 /* System header to define __stub macros and hopefully few prototypes,
16731 which can conflict with char $ac_func (); below.
16732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16733 <limits.h> exists even on freestanding compilers. */
16735 #ifdef __STDC__
16736 # include <limits.h>
16737 #else
16738 # include <assert.h>
16739 #endif
16741 #undef $ac_func
16743 /* Override any GCC internal prototype to avoid an error.
16744 Use char because int might match the return type of a GCC
16745 builtin and then its argument prototype would still apply. */
16746 #ifdef __cplusplus
16747 extern "C"
16748 #endif
16749 char $ac_func ();
16750 /* The GNU C library defines this for functions which it implements
16751 to always fail with ENOSYS. Some functions are actually named
16752 something starting with __ and the normal name is an alias. */
16753 #if defined __stub_$ac_func || defined __stub___$ac_func
16754 choke me
16755 #endif
16758 main ()
16760 return $ac_func ();
16762 return 0;
16764 _ACEOF
16765 rm -f conftest.$ac_objext conftest$ac_exeext
16766 if { (ac_try="$ac_link"
16767 case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770 esac
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_link") 2>conftest.er1
16773 ac_status=$?
16774 grep -v '^ *+' conftest.er1 >conftest.err
16775 rm -f conftest.er1
16776 cat conftest.err >&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } && {
16779 test -z "$ac_c_werror_flag" ||
16780 test ! -s conftest.err
16781 } && test -s conftest$ac_exeext &&
16782 $as_test_x conftest$ac_exeext; then
16783 eval "$as_ac_var=yes"
16784 else
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16788 eval "$as_ac_var=no"
16791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16792 conftest$ac_exeext conftest.$ac_ext
16794 ac_res=`eval echo '${'$as_ac_var'}'`
16795 { echo "$as_me:$LINENO: result: $ac_res" >&5
16796 echo "${ECHO_T}$ac_res" >&6; }
16797 if test `eval echo '${'$as_ac_var'}'` = yes; then
16798 cat >>confdefs.h <<_ACEOF
16799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16800 _ACEOF
16803 done
16806 # Solaris has libkstat which does not require root.
16808 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16809 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16810 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 else
16813 ac_check_lib_save_LIBS=$LIBS
16814 LIBS="-lkstat $LIBS"
16815 cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h. */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16822 /* Override any GCC internal prototype to avoid an error.
16823 Use char because int might match the return type of a GCC
16824 builtin and then its argument prototype would still apply. */
16825 #ifdef __cplusplus
16826 extern "C"
16827 #endif
16828 char kstat_open ();
16830 main ()
16832 return kstat_open ();
16834 return 0;
16836 _ACEOF
16837 rm -f conftest.$ac_objext conftest$ac_exeext
16838 if { (ac_try="$ac_link"
16839 case "(($ac_try" in
16840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841 *) ac_try_echo=$ac_try;;
16842 esac
16843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844 (eval "$ac_link") 2>conftest.er1
16845 ac_status=$?
16846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } && {
16851 test -z "$ac_c_werror_flag" ||
16852 test ! -s conftest.err
16853 } && test -s conftest$ac_exeext &&
16854 $as_test_x conftest$ac_exeext; then
16855 ac_cv_lib_kstat_kstat_open=yes
16856 else
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ac_cv_lib_kstat_kstat_open=no
16863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16864 conftest$ac_exeext conftest.$ac_ext
16865 LIBS=$ac_check_lib_save_LIBS
16867 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16868 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16869 if test $ac_cv_lib_kstat_kstat_open = yes; then
16870 cat >>confdefs.h <<_ACEOF
16871 #define HAVE_LIBKSTAT 1
16872 _ACEOF
16874 LIBS="-lkstat $LIBS"
16878 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16880 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16881 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16882 # to get the right answer into the cache.
16883 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16884 if test $ac_have_func = no; then
16885 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16886 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16887 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890 ac_check_lib_save_LIBS=$LIBS
16891 LIBS="-lelf $LIBS"
16892 cat >conftest.$ac_ext <<_ACEOF
16893 /* confdefs.h. */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16899 /* Override any GCC internal prototype to avoid an error.
16900 Use char because int might match the return type of a GCC
16901 builtin and then its argument prototype would still apply. */
16902 #ifdef __cplusplus
16903 extern "C"
16904 #endif
16905 char elf_begin ();
16907 main ()
16909 return elf_begin ();
16911 return 0;
16913 _ACEOF
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (ac_try="$ac_link"
16916 case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919 esac
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_link") 2>conftest.er1
16922 ac_status=$?
16923 grep -v '^ *+' conftest.er1 >conftest.err
16924 rm -f conftest.er1
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } && {
16928 test -z "$ac_c_werror_flag" ||
16929 test ! -s conftest.err
16930 } && test -s conftest$ac_exeext &&
16931 $as_test_x conftest$ac_exeext; then
16932 ac_cv_lib_elf_elf_begin=yes
16933 else
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_cv_lib_elf_elf_begin=no
16940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16941 conftest$ac_exeext conftest.$ac_ext
16942 LIBS=$ac_check_lib_save_LIBS
16944 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16945 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16946 if test $ac_cv_lib_elf_elf_begin = yes; then
16947 LIBS="-lelf $LIBS"
16951 if test $ac_have_func = no; then
16952 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16953 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16954 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956 else
16957 ac_check_lib_save_LIBS=$LIBS
16958 LIBS="-lkvm $LIBS"
16959 cat >conftest.$ac_ext <<_ACEOF
16960 /* confdefs.h. */
16961 _ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16966 /* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16969 #ifdef __cplusplus
16970 extern "C"
16971 #endif
16972 char kvm_open ();
16974 main ()
16976 return kvm_open ();
16978 return 0;
16980 _ACEOF
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (ac_try="$ac_link"
16983 case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986 esac
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>conftest.er1
16989 ac_status=$?
16990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } && {
16995 test -z "$ac_c_werror_flag" ||
16996 test ! -s conftest.err
16997 } && test -s conftest$ac_exeext &&
16998 $as_test_x conftest$ac_exeext; then
16999 ac_cv_lib_kvm_kvm_open=yes
17000 else
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ac_cv_lib_kvm_kvm_open=no
17007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17008 conftest$ac_exeext conftest.$ac_ext
17009 LIBS=$ac_check_lib_save_LIBS
17011 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17012 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17013 if test $ac_cv_lib_kvm_kvm_open = yes; then
17014 LIBS="-lkvm $LIBS"
17017 # Check for the 4.4BSD definition of getloadavg.
17018 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17019 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17020 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 else
17023 ac_check_lib_save_LIBS=$LIBS
17024 LIBS="-lutil $LIBS"
17025 cat >conftest.$ac_ext <<_ACEOF
17026 /* confdefs.h. */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17032 /* Override any GCC internal prototype to avoid an error.
17033 Use char because int might match the return type of a GCC
17034 builtin and then its argument prototype would still apply. */
17035 #ifdef __cplusplus
17036 extern "C"
17037 #endif
17038 char getloadavg ();
17040 main ()
17042 return getloadavg ();
17044 return 0;
17046 _ACEOF
17047 rm -f conftest.$ac_objext conftest$ac_exeext
17048 if { (ac_try="$ac_link"
17049 case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_link") 2>conftest.er1
17055 ac_status=$?
17056 grep -v '^ *+' conftest.er1 >conftest.err
17057 rm -f conftest.er1
17058 cat conftest.err >&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); } && {
17061 test -z "$ac_c_werror_flag" ||
17062 test ! -s conftest.err
17063 } && test -s conftest$ac_exeext &&
17064 $as_test_x conftest$ac_exeext; then
17065 ac_cv_lib_util_getloadavg=yes
17066 else
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17070 ac_cv_lib_util_getloadavg=no
17073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17074 conftest$ac_exeext conftest.$ac_ext
17075 LIBS=$ac_check_lib_save_LIBS
17077 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17078 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17079 if test $ac_cv_lib_util_getloadavg = yes; then
17080 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17085 if test $ac_have_func = no; then
17086 # There is a commonly available library for RS/6000 AIX.
17087 # Since it is not a standard part of AIX, it might be installed locally.
17088 ac_getloadavg_LIBS=$LIBS
17089 LIBS="-L/usr/local/lib $LIBS"
17090 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17091 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17092 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17094 else
17095 ac_check_lib_save_LIBS=$LIBS
17096 LIBS="-lgetloadavg $LIBS"
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. */
17104 /* Override any GCC internal prototype to avoid an error.
17105 Use char because int might match the return type of a GCC
17106 builtin and then its argument prototype would still apply. */
17107 #ifdef __cplusplus
17108 extern "C"
17109 #endif
17110 char getloadavg ();
17112 main ()
17114 return getloadavg ();
17116 return 0;
17118 _ACEOF
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (ac_try="$ac_link"
17121 case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17124 esac
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_link") 2>conftest.er1
17127 ac_status=$?
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } && {
17133 test -z "$ac_c_werror_flag" ||
17134 test ! -s conftest.err
17135 } && test -s conftest$ac_exeext &&
17136 $as_test_x conftest$ac_exeext; then
17137 ac_cv_lib_getloadavg_getloadavg=yes
17138 else
17139 echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17142 ac_cv_lib_getloadavg_getloadavg=no
17145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17146 conftest$ac_exeext conftest.$ac_ext
17147 LIBS=$ac_check_lib_save_LIBS
17149 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17150 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17151 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17152 LIBS="-lgetloadavg $LIBS"
17153 else
17154 LIBS=$ac_getloadavg_LIBS
17159 # Make sure it is really in the library, if we think we found it,
17160 # otherwise set up the replacement function.
17162 for ac_func in getloadavg
17164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170 cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h. */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17178 #define $ac_func innocuous_$ac_func
17180 /* System header to define __stub macros and hopefully few prototypes,
17181 which can conflict with char $ac_func (); below.
17182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17183 <limits.h> exists even on freestanding compilers. */
17185 #ifdef __STDC__
17186 # include <limits.h>
17187 #else
17188 # include <assert.h>
17189 #endif
17191 #undef $ac_func
17193 /* Override any GCC internal prototype to avoid an error.
17194 Use char because int might match the return type of a GCC
17195 builtin and then its argument prototype would still apply. */
17196 #ifdef __cplusplus
17197 extern "C"
17198 #endif
17199 char $ac_func ();
17200 /* The GNU C library defines this for functions which it implements
17201 to always fail with ENOSYS. Some functions are actually named
17202 something starting with __ and the normal name is an alias. */
17203 #if defined __stub_$ac_func || defined __stub___$ac_func
17204 choke me
17205 #endif
17208 main ()
17210 return $ac_func ();
17212 return 0;
17214 _ACEOF
17215 rm -f conftest.$ac_objext conftest$ac_exeext
17216 if { (ac_try="$ac_link"
17217 case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17220 esac
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_link") 2>conftest.er1
17223 ac_status=$?
17224 grep -v '^ *+' conftest.er1 >conftest.err
17225 rm -f conftest.er1
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } && {
17229 test -z "$ac_c_werror_flag" ||
17230 test ! -s conftest.err
17231 } && test -s conftest$ac_exeext &&
17232 $as_test_x conftest$ac_exeext; then
17233 eval "$as_ac_var=yes"
17234 else
17235 echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17238 eval "$as_ac_var=no"
17241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17242 conftest$ac_exeext conftest.$ac_ext
17244 ac_res=`eval echo '${'$as_ac_var'}'`
17245 { echo "$as_me:$LINENO: result: $ac_res" >&5
17246 echo "${ECHO_T}$ac_res" >&6; }
17247 if test `eval echo '${'$as_ac_var'}'` = yes; then
17248 cat >>confdefs.h <<_ACEOF
17249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17250 _ACEOF
17252 else
17253 case " $LIBOBJS " in
17254 *" getloadavg.$ac_objext "* ) ;;
17255 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17257 esac
17260 cat >>confdefs.h <<\_ACEOF
17261 #define C_GETLOADAVG 1
17262 _ACEOF
17264 # Figure out what our getloadavg.c needs.
17265 ac_have_func=no
17266 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17267 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17268 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17269 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17273 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17274 else
17275 # Is the header compilable?
17276 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17277 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17278 cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h. */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17284 $ac_includes_default
17285 #include <sys/dg_sys_info.h>
17286 _ACEOF
17287 rm -f conftest.$ac_objext
17288 if { (ac_try="$ac_compile"
17289 case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_compile") 2>conftest.er1
17295 ac_status=$?
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest.$ac_objext; then
17304 ac_header_compiler=yes
17305 else
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 ac_header_compiler=no
17312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17314 echo "${ECHO_T}$ac_header_compiler" >&6; }
17316 # Is the header present?
17317 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17318 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17319 cat >conftest.$ac_ext <<_ACEOF
17320 /* confdefs.h. */
17321 _ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325 #include <sys/dg_sys_info.h>
17326 _ACEOF
17327 if { (ac_try="$ac_cpp conftest.$ac_ext"
17328 case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17331 esac
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17334 ac_status=$?
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } >/dev/null && {
17340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 }; then
17343 ac_header_preproc=yes
17344 else
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 ac_header_preproc=no
17351 rm -f conftest.err conftest.$ac_ext
17352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17353 echo "${ECHO_T}$ac_header_preproc" >&6; }
17355 # So? What about this header?
17356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17357 yes:no: )
17358 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17359 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17361 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17362 ac_header_preproc=yes
17364 no:yes:* )
17365 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17366 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17367 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17368 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17369 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17370 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17371 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17372 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17373 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17374 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17375 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17376 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17379 esac
17380 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17381 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17382 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17387 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17388 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17391 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17392 ac_have_func=yes
17394 cat >>confdefs.h <<\_ACEOF
17395 #define DGUX 1
17396 _ACEOF
17399 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17400 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17401 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 else
17404 ac_check_lib_save_LIBS=$LIBS
17405 LIBS="-ldgc $LIBS"
17406 cat >conftest.$ac_ext <<_ACEOF
17407 /* confdefs.h. */
17408 _ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17413 /* Override any GCC internal prototype to avoid an error.
17414 Use char because int might match the return type of a GCC
17415 builtin and then its argument prototype would still apply. */
17416 #ifdef __cplusplus
17417 extern "C"
17418 #endif
17419 char dg_sys_info ();
17421 main ()
17423 return dg_sys_info ();
17425 return 0;
17427 _ACEOF
17428 rm -f conftest.$ac_objext conftest$ac_exeext
17429 if { (ac_try="$ac_link"
17430 case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17433 esac
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435 (eval "$ac_link") 2>conftest.er1
17436 ac_status=$?
17437 grep -v '^ *+' conftest.er1 >conftest.err
17438 rm -f conftest.er1
17439 cat conftest.err >&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } && {
17442 test -z "$ac_c_werror_flag" ||
17443 test ! -s conftest.err
17444 } && test -s conftest$ac_exeext &&
17445 $as_test_x conftest$ac_exeext; then
17446 ac_cv_lib_dgc_dg_sys_info=yes
17447 else
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 ac_cv_lib_dgc_dg_sys_info=no
17454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17455 conftest$ac_exeext conftest.$ac_ext
17456 LIBS=$ac_check_lib_save_LIBS
17458 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17459 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17460 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17461 cat >>confdefs.h <<_ACEOF
17462 #define HAVE_LIBDGC 1
17463 _ACEOF
17465 LIBS="-ldgc $LIBS"
17473 if test "${ac_cv_header_locale_h+set}" = set; then
17474 { echo "$as_me:$LINENO: checking for locale.h" >&5
17475 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17476 if test "${ac_cv_header_locale_h+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17479 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17480 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17481 else
17482 # Is the header compilable?
17483 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17484 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17485 cat >conftest.$ac_ext <<_ACEOF
17486 /* confdefs.h. */
17487 _ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h. */
17491 $ac_includes_default
17492 #include <locale.h>
17493 _ACEOF
17494 rm -f conftest.$ac_objext
17495 if { (ac_try="$ac_compile"
17496 case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17499 esac
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_compile") 2>conftest.er1
17502 ac_status=$?
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } && {
17508 test -z "$ac_c_werror_flag" ||
17509 test ! -s conftest.err
17510 } && test -s conftest.$ac_objext; then
17511 ac_header_compiler=yes
17512 else
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17516 ac_header_compiler=no
17519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17521 echo "${ECHO_T}$ac_header_compiler" >&6; }
17523 # Is the header present?
17524 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17525 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17526 cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h. */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 #include <locale.h>
17533 _ACEOF
17534 if { (ac_try="$ac_cpp conftest.$ac_ext"
17535 case "(($ac_try" in
17536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537 *) ac_try_echo=$ac_try;;
17538 esac
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17541 ac_status=$?
17542 grep -v '^ *+' conftest.er1 >conftest.err
17543 rm -f conftest.er1
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } >/dev/null && {
17547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17548 test ! -s conftest.err
17549 }; then
17550 ac_header_preproc=yes
17551 else
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 ac_header_preproc=no
17558 rm -f conftest.err conftest.$ac_ext
17559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17560 echo "${ECHO_T}$ac_header_preproc" >&6; }
17562 # So? What about this header?
17563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17564 yes:no: )
17565 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17566 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17567 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17568 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17569 ac_header_preproc=yes
17571 no:yes:* )
17572 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17573 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17574 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17575 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17576 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17577 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17578 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17579 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17580 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17581 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17582 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17583 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17586 esac
17587 { echo "$as_me:$LINENO: checking for locale.h" >&5
17588 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17589 if test "${ac_cv_header_locale_h+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 else
17592 ac_cv_header_locale_h=$ac_header_preproc
17594 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17595 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17601 for ac_func in setlocale
17603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17607 echo $ECHO_N "(cached) $ECHO_C" >&6
17608 else
17609 cat >conftest.$ac_ext <<_ACEOF
17610 /* confdefs.h. */
17611 _ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17617 #define $ac_func innocuous_$ac_func
17619 /* System header to define __stub macros and hopefully few prototypes,
17620 which can conflict with char $ac_func (); below.
17621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17622 <limits.h> exists even on freestanding compilers. */
17624 #ifdef __STDC__
17625 # include <limits.h>
17626 #else
17627 # include <assert.h>
17628 #endif
17630 #undef $ac_func
17632 /* Override any GCC internal prototype to avoid an error.
17633 Use char because int might match the return type of a GCC
17634 builtin and then its argument prototype would still apply. */
17635 #ifdef __cplusplus
17636 extern "C"
17637 #endif
17638 char $ac_func ();
17639 /* The GNU C library defines this for functions which it implements
17640 to always fail with ENOSYS. Some functions are actually named
17641 something starting with __ and the normal name is an alias. */
17642 #if defined __stub_$ac_func || defined __stub___$ac_func
17643 choke me
17644 #endif
17647 main ()
17649 return $ac_func ();
17651 return 0;
17653 _ACEOF
17654 rm -f conftest.$ac_objext conftest$ac_exeext
17655 if { (ac_try="$ac_link"
17656 case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659 esac
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_link") 2>conftest.er1
17662 ac_status=$?
17663 grep -v '^ *+' conftest.er1 >conftest.err
17664 rm -f conftest.er1
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } && {
17668 test -z "$ac_c_werror_flag" ||
17669 test ! -s conftest.err
17670 } && test -s conftest$ac_exeext &&
17671 $as_test_x conftest$ac_exeext; then
17672 eval "$as_ac_var=yes"
17673 else
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17677 eval "$as_ac_var=no"
17680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17681 conftest$ac_exeext conftest.$ac_ext
17683 ac_res=`eval echo '${'$as_ac_var'}'`
17684 { echo "$as_me:$LINENO: result: $ac_res" >&5
17685 echo "${ECHO_T}$ac_res" >&6; }
17686 if test `eval echo '${'$as_ac_var'}'` = yes; then
17687 cat >>confdefs.h <<_ACEOF
17688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17689 _ACEOF
17692 done
17695 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17696 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17697 # Irix 4.0.5F has the header but not the library.
17698 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17699 ac_have_func=yes
17701 cat >>confdefs.h <<\_ACEOF
17702 #define SVR4 1
17703 _ACEOF
17707 if test $ac_have_func = no; then
17708 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17709 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17710 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17711 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17715 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17716 else
17717 # Is the header compilable?
17718 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17719 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17720 cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h. */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 $ac_includes_default
17727 #include <inq_stats/cpustats.h>
17728 _ACEOF
17729 rm -f conftest.$ac_objext
17730 if { (ac_try="$ac_compile"
17731 case "(($ac_try" in
17732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733 *) ac_try_echo=$ac_try;;
17734 esac
17735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17736 (eval "$ac_compile") 2>conftest.er1
17737 ac_status=$?
17738 grep -v '^ *+' conftest.er1 >conftest.err
17739 rm -f conftest.er1
17740 cat conftest.err >&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } && {
17743 test -z "$ac_c_werror_flag" ||
17744 test ! -s conftest.err
17745 } && test -s conftest.$ac_objext; then
17746 ac_header_compiler=yes
17747 else
17748 echo "$as_me: failed program was:" >&5
17749 sed 's/^/| /' conftest.$ac_ext >&5
17751 ac_header_compiler=no
17754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17756 echo "${ECHO_T}$ac_header_compiler" >&6; }
17758 # Is the header present?
17759 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17760 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17761 cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h. */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17767 #include <inq_stats/cpustats.h>
17768 _ACEOF
17769 if { (ac_try="$ac_cpp conftest.$ac_ext"
17770 case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17776 ac_status=$?
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } >/dev/null && {
17782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17783 test ! -s conftest.err
17784 }; then
17785 ac_header_preproc=yes
17786 else
17787 echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17790 ac_header_preproc=no
17793 rm -f conftest.err conftest.$ac_ext
17794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17795 echo "${ECHO_T}$ac_header_preproc" >&6; }
17797 # So? What about this header?
17798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17799 yes:no: )
17800 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17801 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17802 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17803 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17804 ac_header_preproc=yes
17806 no:yes:* )
17807 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17808 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17809 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17810 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17811 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17812 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17813 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17814 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17815 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17816 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17817 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17818 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17821 esac
17822 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17823 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17824 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17825 echo $ECHO_N "(cached) $ECHO_C" >&6
17826 else
17827 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17829 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17830 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17833 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17834 ac_have_func=yes
17836 cat >>confdefs.h <<\_ACEOF
17837 #define UMAX 1
17838 _ACEOF
17841 cat >>confdefs.h <<\_ACEOF
17842 #define UMAX4_3 1
17843 _ACEOF
17850 if test $ac_have_func = no; then
17851 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17852 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17853 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17854 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17857 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17858 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17859 else
17860 # Is the header compilable?
17861 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17862 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17863 cat >conftest.$ac_ext <<_ACEOF
17864 /* confdefs.h. */
17865 _ACEOF
17866 cat confdefs.h >>conftest.$ac_ext
17867 cat >>conftest.$ac_ext <<_ACEOF
17868 /* end confdefs.h. */
17869 $ac_includes_default
17870 #include <sys/cpustats.h>
17871 _ACEOF
17872 rm -f conftest.$ac_objext
17873 if { (ac_try="$ac_compile"
17874 case "(($ac_try" in
17875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876 *) ac_try_echo=$ac_try;;
17877 esac
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879 (eval "$ac_compile") 2>conftest.er1
17880 ac_status=$?
17881 grep -v '^ *+' conftest.er1 >conftest.err
17882 rm -f conftest.er1
17883 cat conftest.err >&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } && {
17886 test -z "$ac_c_werror_flag" ||
17887 test ! -s conftest.err
17888 } && test -s conftest.$ac_objext; then
17889 ac_header_compiler=yes
17890 else
17891 echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17894 ac_header_compiler=no
17897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17899 echo "${ECHO_T}$ac_header_compiler" >&6; }
17901 # Is the header present?
17902 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17903 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17904 cat >conftest.$ac_ext <<_ACEOF
17905 /* confdefs.h. */
17906 _ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910 #include <sys/cpustats.h>
17911 _ACEOF
17912 if { (ac_try="$ac_cpp conftest.$ac_ext"
17913 case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17916 esac
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17919 ac_status=$?
17920 grep -v '^ *+' conftest.er1 >conftest.err
17921 rm -f conftest.er1
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } >/dev/null && {
17925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17926 test ! -s conftest.err
17927 }; then
17928 ac_header_preproc=yes
17929 else
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 ac_header_preproc=no
17936 rm -f conftest.err conftest.$ac_ext
17937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17938 echo "${ECHO_T}$ac_header_preproc" >&6; }
17940 # So? What about this header?
17941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17942 yes:no: )
17943 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17944 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17945 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17946 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17947 ac_header_preproc=yes
17949 no:yes:* )
17950 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17951 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17952 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17953 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17954 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17955 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17956 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17957 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17958 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17959 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17960 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17961 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17964 esac
17965 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17966 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17967 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17972 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17973 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17976 if test $ac_cv_header_sys_cpustats_h = yes; then
17977 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17978 #define UMAX 1
17979 _ACEOF
17986 if test $ac_have_func = no; then
17988 for ac_header in mach/mach.h
17990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 ac_res=`eval echo '${'$as_ac_Header'}'`
17998 { echo "$as_me:$LINENO: result: $ac_res" >&5
17999 echo "${ECHO_T}$ac_res" >&6; }
18000 else
18001 # Is the header compilable?
18002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18004 cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h. */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 $ac_includes_default
18011 #include <$ac_header>
18012 _ACEOF
18013 rm -f conftest.$ac_objext
18014 if { (ac_try="$ac_compile"
18015 case "(($ac_try" in
18016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017 *) ac_try_echo=$ac_try;;
18018 esac
18019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18020 (eval "$ac_compile") 2>conftest.er1
18021 ac_status=$?
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } && {
18027 test -z "$ac_c_werror_flag" ||
18028 test ! -s conftest.err
18029 } && test -s conftest.$ac_objext; then
18030 ac_header_compiler=yes
18031 else
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 ac_header_compiler=no
18038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18040 echo "${ECHO_T}$ac_header_compiler" >&6; }
18042 # Is the header present?
18043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18045 cat >conftest.$ac_ext <<_ACEOF
18046 /* confdefs.h. */
18047 _ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h. */
18051 #include <$ac_header>
18052 _ACEOF
18053 if { (ac_try="$ac_cpp conftest.$ac_ext"
18054 case "(($ac_try" in
18055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056 *) ac_try_echo=$ac_try;;
18057 esac
18058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18060 ac_status=$?
18061 grep -v '^ *+' conftest.er1 >conftest.err
18062 rm -f conftest.er1
18063 cat conftest.err >&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } >/dev/null && {
18066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18067 test ! -s conftest.err
18068 }; then
18069 ac_header_preproc=yes
18070 else
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 ac_header_preproc=no
18077 rm -f conftest.err conftest.$ac_ext
18078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18079 echo "${ECHO_T}$ac_header_preproc" >&6; }
18081 # So? What about this header?
18082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18083 yes:no: )
18084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18088 ac_header_preproc=yes
18090 no:yes:* )
18091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18105 esac
18106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 else
18111 eval "$as_ac_Header=\$ac_header_preproc"
18113 ac_res=`eval echo '${'$as_ac_Header'}'`
18114 { echo "$as_me:$LINENO: result: $ac_res" >&5
18115 echo "${ECHO_T}$ac_res" >&6; }
18118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18119 cat >>confdefs.h <<_ACEOF
18120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18121 _ACEOF
18125 done
18130 for ac_header in nlist.h
18132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18139 ac_res=`eval echo '${'$as_ac_Header'}'`
18140 { echo "$as_me:$LINENO: result: $ac_res" >&5
18141 echo "${ECHO_T}$ac_res" >&6; }
18142 else
18143 # Is the header compilable?
18144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18146 cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h. */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18152 $ac_includes_default
18153 #include <$ac_header>
18154 _ACEOF
18155 rm -f conftest.$ac_objext
18156 if { (ac_try="$ac_compile"
18157 case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_compile") 2>conftest.er1
18163 ac_status=$?
18164 grep -v '^ *+' conftest.er1 >conftest.err
18165 rm -f conftest.er1
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } && {
18169 test -z "$ac_c_werror_flag" ||
18170 test ! -s conftest.err
18171 } && test -s conftest.$ac_objext; then
18172 ac_header_compiler=yes
18173 else
18174 echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18177 ac_header_compiler=no
18180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18182 echo "${ECHO_T}$ac_header_compiler" >&6; }
18184 # Is the header present?
18185 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18187 cat >conftest.$ac_ext <<_ACEOF
18188 /* confdefs.h. */
18189 _ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18193 #include <$ac_header>
18194 _ACEOF
18195 if { (ac_try="$ac_cpp conftest.$ac_ext"
18196 case "(($ac_try" in
18197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198 *) ac_try_echo=$ac_try;;
18199 esac
18200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18202 ac_status=$?
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } >/dev/null && {
18208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18209 test ! -s conftest.err
18210 }; then
18211 ac_header_preproc=yes
18212 else
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 ac_header_preproc=no
18219 rm -f conftest.err conftest.$ac_ext
18220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18221 echo "${ECHO_T}$ac_header_preproc" >&6; }
18223 # So? What about this header?
18224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18225 yes:no: )
18226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18230 ac_header_preproc=yes
18232 no:yes:* )
18233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18247 esac
18248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 else
18253 eval "$as_ac_Header=\$ac_header_preproc"
18255 ac_res=`eval echo '${'$as_ac_Header'}'`
18256 { echo "$as_me:$LINENO: result: $ac_res" >&5
18257 echo "${ECHO_T}$ac_res" >&6; }
18260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18261 cat >>confdefs.h <<_ACEOF
18262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18263 _ACEOF
18264 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18265 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18266 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18268 else
18269 cat >conftest.$ac_ext <<_ACEOF
18270 /* confdefs.h. */
18271 _ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18275 #include <nlist.h>
18278 main ()
18280 static struct nlist ac_aggr;
18281 if (ac_aggr.n_un.n_name)
18282 return 0;
18284 return 0;
18286 _ACEOF
18287 rm -f conftest.$ac_objext
18288 if { (ac_try="$ac_compile"
18289 case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18292 esac
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294 (eval "$ac_compile") 2>conftest.er1
18295 ac_status=$?
18296 grep -v '^ *+' conftest.er1 >conftest.err
18297 rm -f conftest.er1
18298 cat conftest.err >&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } && {
18301 test -z "$ac_c_werror_flag" ||
18302 test ! -s conftest.err
18303 } && test -s conftest.$ac_objext; then
18304 ac_cv_member_struct_nlist_n_un_n_name=yes
18305 else
18306 echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h. */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18315 #include <nlist.h>
18318 main ()
18320 static struct nlist ac_aggr;
18321 if (sizeof ac_aggr.n_un.n_name)
18322 return 0;
18324 return 0;
18326 _ACEOF
18327 rm -f conftest.$ac_objext
18328 if { (ac_try="$ac_compile"
18329 case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18332 esac
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_compile") 2>conftest.er1
18335 ac_status=$?
18336 grep -v '^ *+' conftest.er1 >conftest.err
18337 rm -f conftest.er1
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } && {
18341 test -z "$ac_c_werror_flag" ||
18342 test ! -s conftest.err
18343 } && test -s conftest.$ac_objext; then
18344 ac_cv_member_struct_nlist_n_un_n_name=yes
18345 else
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18349 ac_cv_member_struct_nlist_n_un_n_name=no
18352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18357 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18358 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18359 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18361 cat >>confdefs.h <<_ACEOF
18362 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18363 _ACEOF
18366 cat >>confdefs.h <<\_ACEOF
18367 #define NLIST_NAME_UNION 1
18368 _ACEOF
18375 done
18378 done
18381 # Some definitions of getloadavg require that the program be installed setgid.
18382 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18383 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18384 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18386 else
18387 cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h. */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18393 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18394 #ifdef LDAV_PRIVILEGED
18395 Yowza Am I SETGID yet
18396 #endif
18397 _ACEOF
18398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18399 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18400 ac_cv_func_getloadavg_setgid=yes
18401 else
18402 ac_cv_func_getloadavg_setgid=no
18404 rm -f conftest*
18407 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18408 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18409 if test $ac_cv_func_getloadavg_setgid = yes; then
18410 NEED_SETGID=true
18412 cat >>confdefs.h <<\_ACEOF
18413 #define GETLOADAVG_PRIVILEGED 1
18414 _ACEOF
18416 else
18417 NEED_SETGID=false
18420 if test $ac_cv_func_getloadavg_setgid = yes; then
18421 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18422 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18423 if test "${ac_cv_group_kmem+set}" = set; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18427 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18428 # If we got an error (system does not support symlinks), try without -L.
18429 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18430 ac_cv_group_kmem=`echo $ac_ls_output \
18431 | sed -ne 's/[ ][ ]*/ /g;
18432 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18433 / /s/.* //;p;'`
18436 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18437 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18438 KMEM_GROUP=$ac_cv_group_kmem
18440 if test "x$ac_save_LIBS" = x; then
18441 GETLOADAVG_LIBS=$LIBS
18442 else
18443 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18445 LIBS=$ac_save_LIBS
18449 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18450 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18451 if test "${ac_cv_sys_largefile_source+set}" = set; then
18452 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 else
18454 while :; do
18455 cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h. */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18461 #include <stdio.h>
18463 main ()
18465 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18467 return 0;
18469 _ACEOF
18470 rm -f conftest.$ac_objext conftest$ac_exeext
18471 if { (ac_try="$ac_link"
18472 case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18475 esac
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_link") 2>conftest.er1
18478 ac_status=$?
18479 grep -v '^ *+' conftest.er1 >conftest.err
18480 rm -f conftest.er1
18481 cat conftest.err >&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } && {
18484 test -z "$ac_c_werror_flag" ||
18485 test ! -s conftest.err
18486 } && test -s conftest$ac_exeext &&
18487 $as_test_x conftest$ac_exeext; then
18488 ac_cv_sys_largefile_source=no; break
18489 else
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18497 conftest$ac_exeext conftest.$ac_ext
18498 cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h. */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18504 #define _LARGEFILE_SOURCE 1
18505 #include <stdio.h>
18507 main ()
18509 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18511 return 0;
18513 _ACEOF
18514 rm -f conftest.$ac_objext conftest$ac_exeext
18515 if { (ac_try="$ac_link"
18516 case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18519 esac
18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521 (eval "$ac_link") 2>conftest.er1
18522 ac_status=$?
18523 grep -v '^ *+' conftest.er1 >conftest.err
18524 rm -f conftest.er1
18525 cat conftest.err >&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } && {
18528 test -z "$ac_c_werror_flag" ||
18529 test ! -s conftest.err
18530 } && test -s conftest$ac_exeext &&
18531 $as_test_x conftest$ac_exeext; then
18532 ac_cv_sys_largefile_source=1; break
18533 else
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18541 conftest$ac_exeext conftest.$ac_ext
18542 ac_cv_sys_largefile_source=unknown
18543 break
18544 done
18546 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18547 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18548 case $ac_cv_sys_largefile_source in #(
18549 no | unknown) ;;
18551 cat >>confdefs.h <<_ACEOF
18552 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18553 _ACEOF
18555 esac
18556 rm -f conftest*
18558 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18559 # in glibc 2.1.3, but that breaks too many other things.
18560 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18561 if test $ac_cv_sys_largefile_source != unknown; then
18563 cat >>confdefs.h <<\_ACEOF
18564 #define HAVE_FSEEKO 1
18565 _ACEOF
18570 # Configure getopt.
18571 # getopt.m4 serial 10
18573 # The getopt module assume you want GNU getopt, with getopt_long etc,
18574 # rather than vanilla POSIX getopt. This means your your code should
18575 # always include <getopt.h> for the getopt prototypes.
18587 # Prerequisites of lib/getopt*.
18592 GETOPT_H=
18594 for ac_header in getopt.h
18596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 ac_res=`eval echo '${'$as_ac_Header'}'`
18604 { echo "$as_me:$LINENO: result: $ac_res" >&5
18605 echo "${ECHO_T}$ac_res" >&6; }
18606 else
18607 # Is the header compilable?
18608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18610 cat >conftest.$ac_ext <<_ACEOF
18611 /* confdefs.h. */
18612 _ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h. */
18616 $ac_includes_default
18617 #include <$ac_header>
18618 _ACEOF
18619 rm -f conftest.$ac_objext
18620 if { (ac_try="$ac_compile"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18624 esac
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_compile") 2>conftest.er1
18627 ac_status=$?
18628 grep -v '^ *+' conftest.er1 >conftest.err
18629 rm -f conftest.er1
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } && {
18633 test -z "$ac_c_werror_flag" ||
18634 test ! -s conftest.err
18635 } && test -s conftest.$ac_objext; then
18636 ac_header_compiler=yes
18637 else
18638 echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18641 ac_header_compiler=no
18644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18646 echo "${ECHO_T}$ac_header_compiler" >&6; }
18648 # Is the header present?
18649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18651 cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h. */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 #include <$ac_header>
18658 _ACEOF
18659 if { (ac_try="$ac_cpp conftest.$ac_ext"
18660 case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18663 esac
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18666 ac_status=$?
18667 grep -v '^ *+' conftest.er1 >conftest.err
18668 rm -f conftest.er1
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } >/dev/null && {
18672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18673 test ! -s conftest.err
18674 }; then
18675 ac_header_preproc=yes
18676 else
18677 echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 ac_header_preproc=no
18683 rm -f conftest.err conftest.$ac_ext
18684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18685 echo "${ECHO_T}$ac_header_preproc" >&6; }
18687 # So? What about this header?
18688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18689 yes:no: )
18690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18694 ac_header_preproc=yes
18696 no:yes:* )
18697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18711 esac
18712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18716 else
18717 eval "$as_ac_Header=\$ac_header_preproc"
18719 ac_res=`eval echo '${'$as_ac_Header'}'`
18720 { echo "$as_me:$LINENO: result: $ac_res" >&5
18721 echo "${ECHO_T}$ac_res" >&6; }
18724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18725 cat >>confdefs.h <<_ACEOF
18726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18727 _ACEOF
18729 else
18730 GETOPT_H=getopt.h
18733 done
18735 if test -z "$GETOPT_H"; then
18737 for ac_func in getopt_long_only
18739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18745 cat >conftest.$ac_ext <<_ACEOF
18746 /* confdefs.h. */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18753 #define $ac_func innocuous_$ac_func
18755 /* System header to define __stub macros and hopefully few prototypes,
18756 which can conflict with char $ac_func (); below.
18757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18758 <limits.h> exists even on freestanding compilers. */
18760 #ifdef __STDC__
18761 # include <limits.h>
18762 #else
18763 # include <assert.h>
18764 #endif
18766 #undef $ac_func
18768 /* Override any GCC internal prototype to avoid an error.
18769 Use char because int might match the return type of a GCC
18770 builtin and then its argument prototype would still apply. */
18771 #ifdef __cplusplus
18772 extern "C"
18773 #endif
18774 char $ac_func ();
18775 /* The GNU C library defines this for functions which it implements
18776 to always fail with ENOSYS. Some functions are actually named
18777 something starting with __ and the normal name is an alias. */
18778 #if defined __stub_$ac_func || defined __stub___$ac_func
18779 choke me
18780 #endif
18783 main ()
18785 return $ac_func ();
18787 return 0;
18789 _ACEOF
18790 rm -f conftest.$ac_objext conftest$ac_exeext
18791 if { (ac_try="$ac_link"
18792 case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18795 esac
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_link") 2>conftest.er1
18798 ac_status=$?
18799 grep -v '^ *+' conftest.er1 >conftest.err
18800 rm -f conftest.er1
18801 cat conftest.err >&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } && {
18804 test -z "$ac_c_werror_flag" ||
18805 test ! -s conftest.err
18806 } && test -s conftest$ac_exeext &&
18807 $as_test_x conftest$ac_exeext; then
18808 eval "$as_ac_var=yes"
18809 else
18810 echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.$ac_ext >&5
18813 eval "$as_ac_var=no"
18816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18817 conftest$ac_exeext conftest.$ac_ext
18819 ac_res=`eval echo '${'$as_ac_var'}'`
18820 { echo "$as_me:$LINENO: result: $ac_res" >&5
18821 echo "${ECHO_T}$ac_res" >&6; }
18822 if test `eval echo '${'$as_ac_var'}'` = yes; then
18823 cat >>confdefs.h <<_ACEOF
18824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18825 _ACEOF
18827 else
18828 GETOPT_H=getopt.h
18830 done
18834 if test -z "$GETOPT_H"; then
18835 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18836 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18837 if test "${ac_cv_have_decl_optreset+set}" = set; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 else
18840 cat >conftest.$ac_ext <<_ACEOF
18841 /* confdefs.h. */
18842 _ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 #include <getopt.h>
18849 main ()
18851 #ifndef optreset
18852 (void) optreset;
18853 #endif
18856 return 0;
18858 _ACEOF
18859 rm -f conftest.$ac_objext
18860 if { (ac_try="$ac_compile"
18861 case "(($ac_try" in
18862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863 *) ac_try_echo=$ac_try;;
18864 esac
18865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866 (eval "$ac_compile") 2>conftest.er1
18867 ac_status=$?
18868 grep -v '^ *+' conftest.er1 >conftest.err
18869 rm -f conftest.er1
18870 cat conftest.err >&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } && {
18873 test -z "$ac_c_werror_flag" ||
18874 test ! -s conftest.err
18875 } && test -s conftest.$ac_objext; then
18876 ac_cv_have_decl_optreset=yes
18877 else
18878 echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18881 ac_cv_have_decl_optreset=no
18884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18886 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18887 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18888 if test $ac_cv_have_decl_optreset = yes; then
18889 GETOPT_H=getopt.h
18894 if test -z "$GETOPT_H"; then
18895 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18896 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18897 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18899 else
18900 if test "$cross_compiling" = yes; then
18901 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18902 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18903 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906 cat >conftest.$ac_ext <<_ACEOF
18907 /* confdefs.h. */
18908 _ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h. */
18912 #include <getopt.h>
18915 main ()
18917 #ifndef getopt_clip
18918 (void) getopt_clip;
18919 #endif
18922 return 0;
18924 _ACEOF
18925 rm -f conftest.$ac_objext
18926 if { (ac_try="$ac_compile"
18927 case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18930 esac
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_compile") 2>conftest.er1
18933 ac_status=$?
18934 grep -v '^ *+' conftest.er1 >conftest.err
18935 rm -f conftest.er1
18936 cat conftest.err >&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); } && {
18939 test -z "$ac_c_werror_flag" ||
18940 test ! -s conftest.err
18941 } && test -s conftest.$ac_objext; then
18942 ac_cv_have_decl_getopt_clip=yes
18943 else
18944 echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18947 ac_cv_have_decl_getopt_clip=no
18950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18953 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18954 if test $ac_cv_have_decl_getopt_clip = yes; then
18955 gl_cv_func_gnu_getopt=no
18956 else
18957 gl_cv_func_gnu_getopt=yes
18960 else
18961 cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h. */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967 #include <getopt.h>
18969 main ()
18972 char *myargv[3];
18973 myargv[0] = "conftest";
18974 myargv[1] = "-+";
18975 myargv[2] = 0;
18976 return getopt (2, myargv, "+a") != '?';
18979 return 0;
18981 _ACEOF
18982 rm -f conftest$ac_exeext
18983 if { (ac_try="$ac_link"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_link") 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18993 { (case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18996 esac
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_try") 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 gl_cv_func_gnu_getopt=yes
19003 else
19004 echo "$as_me: program exited with status $ac_status" >&5
19005 echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19008 ( exit $ac_status )
19009 gl_cv_func_gnu_getopt=no
19011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19016 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19017 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19018 if test "$gl_cv_func_gnu_getopt" = "no"; then
19019 GETOPT_H=getopt.h
19025 if test -n "$GETOPT_H"; then
19028 GETOPT_H=getopt.h
19030 cat >>confdefs.h <<\_ACEOF
19031 #define __GETOPT_PREFIX rpl_
19032 _ACEOF
19037 GETOPTOBJS='getopt.o getopt1.o'
19044 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19045 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19046 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049 # Use it with a single arg.
19050 cat >conftest.$ac_ext <<_ACEOF
19051 /* confdefs.h. */
19052 _ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19056 $ac_includes_default
19058 main ()
19060 getpgrp (0);
19062 return 0;
19064 _ACEOF
19065 rm -f conftest.$ac_objext
19066 if { (ac_try="$ac_compile"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19070 esac
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_compile") 2>conftest.er1
19073 ac_status=$?
19074 grep -v '^ *+' conftest.er1 >conftest.err
19075 rm -f conftest.er1
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } && {
19079 test -z "$ac_c_werror_flag" ||
19080 test ! -s conftest.err
19081 } && test -s conftest.$ac_objext; then
19082 ac_cv_func_getpgrp_void=no
19083 else
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_cv_func_getpgrp_void=yes
19090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19093 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19094 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19095 if test $ac_cv_func_getpgrp_void = yes; then
19097 cat >>confdefs.h <<\_ACEOF
19098 #define GETPGRP_VOID 1
19099 _ACEOF
19105 for ac_func in strftime
19107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19111 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 else
19113 cat >conftest.$ac_ext <<_ACEOF
19114 /* confdefs.h. */
19115 _ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19121 #define $ac_func innocuous_$ac_func
19123 /* System header to define __stub macros and hopefully few prototypes,
19124 which can conflict with char $ac_func (); below.
19125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19126 <limits.h> exists even on freestanding compilers. */
19128 #ifdef __STDC__
19129 # include <limits.h>
19130 #else
19131 # include <assert.h>
19132 #endif
19134 #undef $ac_func
19136 /* Override any GCC internal prototype to avoid an error.
19137 Use char because int might match the return type of a GCC
19138 builtin and then its argument prototype would still apply. */
19139 #ifdef __cplusplus
19140 extern "C"
19141 #endif
19142 char $ac_func ();
19143 /* The GNU C library defines this for functions which it implements
19144 to always fail with ENOSYS. Some functions are actually named
19145 something starting with __ and the normal name is an alias. */
19146 #if defined __stub_$ac_func || defined __stub___$ac_func
19147 choke me
19148 #endif
19151 main ()
19153 return $ac_func ();
19155 return 0;
19157 _ACEOF
19158 rm -f conftest.$ac_objext conftest$ac_exeext
19159 if { (ac_try="$ac_link"
19160 case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_link") 2>conftest.er1
19166 ac_status=$?
19167 grep -v '^ *+' conftest.er1 >conftest.err
19168 rm -f conftest.er1
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } && {
19172 test -z "$ac_c_werror_flag" ||
19173 test ! -s conftest.err
19174 } && test -s conftest$ac_exeext &&
19175 $as_test_x conftest$ac_exeext; then
19176 eval "$as_ac_var=yes"
19177 else
19178 echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19181 eval "$as_ac_var=no"
19184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19185 conftest$ac_exeext conftest.$ac_ext
19187 ac_res=`eval echo '${'$as_ac_var'}'`
19188 { echo "$as_me:$LINENO: result: $ac_res" >&5
19189 echo "${ECHO_T}$ac_res" >&6; }
19190 if test `eval echo '${'$as_ac_var'}'` = yes; then
19191 cat >>confdefs.h <<_ACEOF
19192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19193 _ACEOF
19195 else
19196 # strftime is in -lintl on SCO UNIX.
19197 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19198 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19199 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19201 else
19202 ac_check_lib_save_LIBS=$LIBS
19203 LIBS="-lintl $LIBS"
19204 cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h. */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19211 /* Override any GCC internal prototype to avoid an error.
19212 Use char because int might match the return type of a GCC
19213 builtin and then its argument prototype would still apply. */
19214 #ifdef __cplusplus
19215 extern "C"
19216 #endif
19217 char strftime ();
19219 main ()
19221 return strftime ();
19223 return 0;
19225 _ACEOF
19226 rm -f conftest.$ac_objext conftest$ac_exeext
19227 if { (ac_try="$ac_link"
19228 case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19231 esac
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_link") 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest$ac_exeext &&
19243 $as_test_x conftest$ac_exeext; then
19244 ac_cv_lib_intl_strftime=yes
19245 else
19246 echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19249 ac_cv_lib_intl_strftime=no
19252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19253 conftest$ac_exeext conftest.$ac_ext
19254 LIBS=$ac_check_lib_save_LIBS
19256 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19257 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19258 if test $ac_cv_lib_intl_strftime = yes; then
19259 cat >>confdefs.h <<\_ACEOF
19260 #define HAVE_STRFTIME 1
19261 _ACEOF
19263 LIBS="-lintl $LIBS"
19267 done
19270 # UNIX98 PTYs.
19272 for ac_func in grantpt
19274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19279 else
19280 cat >conftest.$ac_ext <<_ACEOF
19281 /* confdefs.h. */
19282 _ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h. */
19286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19288 #define $ac_func innocuous_$ac_func
19290 /* System header to define __stub macros and hopefully few prototypes,
19291 which can conflict with char $ac_func (); below.
19292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19293 <limits.h> exists even on freestanding compilers. */
19295 #ifdef __STDC__
19296 # include <limits.h>
19297 #else
19298 # include <assert.h>
19299 #endif
19301 #undef $ac_func
19303 /* Override any GCC internal prototype to avoid an error.
19304 Use char because int might match the return type of a GCC
19305 builtin and then its argument prototype would still apply. */
19306 #ifdef __cplusplus
19307 extern "C"
19308 #endif
19309 char $ac_func ();
19310 /* The GNU C library defines this for functions which it implements
19311 to always fail with ENOSYS. Some functions are actually named
19312 something starting with __ and the normal name is an alias. */
19313 #if defined __stub_$ac_func || defined __stub___$ac_func
19314 choke me
19315 #endif
19318 main ()
19320 return $ac_func ();
19322 return 0;
19324 _ACEOF
19325 rm -f conftest.$ac_objext conftest$ac_exeext
19326 if { (ac_try="$ac_link"
19327 case "(($ac_try" in
19328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329 *) ac_try_echo=$ac_try;;
19330 esac
19331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332 (eval "$ac_link") 2>conftest.er1
19333 ac_status=$?
19334 grep -v '^ *+' conftest.er1 >conftest.err
19335 rm -f conftest.er1
19336 cat conftest.err >&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); } && {
19339 test -z "$ac_c_werror_flag" ||
19340 test ! -s conftest.err
19341 } && test -s conftest$ac_exeext &&
19342 $as_test_x conftest$ac_exeext; then
19343 eval "$as_ac_var=yes"
19344 else
19345 echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19348 eval "$as_ac_var=no"
19351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19352 conftest$ac_exeext conftest.$ac_ext
19354 ac_res=`eval echo '${'$as_ac_var'}'`
19355 { echo "$as_me:$LINENO: result: $ac_res" >&5
19356 echo "${ECHO_T}$ac_res" >&6; }
19357 if test `eval echo '${'$as_ac_var'}'` = yes; then
19358 cat >>confdefs.h <<_ACEOF
19359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19360 _ACEOF
19363 done
19366 # PTY-related GNU extensions.
19368 for ac_func in getpt
19370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h. */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19384 #define $ac_func innocuous_$ac_func
19386 /* System header to define __stub macros and hopefully few prototypes,
19387 which can conflict with char $ac_func (); below.
19388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19389 <limits.h> exists even on freestanding compilers. */
19391 #ifdef __STDC__
19392 # include <limits.h>
19393 #else
19394 # include <assert.h>
19395 #endif
19397 #undef $ac_func
19399 /* Override any GCC internal prototype to avoid an error.
19400 Use char because int might match the return type of a GCC
19401 builtin and then its argument prototype would still apply. */
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 char $ac_func ();
19406 /* The GNU C library defines this for functions which it implements
19407 to always fail with ENOSYS. Some functions are actually named
19408 something starting with __ and the normal name is an alias. */
19409 #if defined __stub_$ac_func || defined __stub___$ac_func
19410 choke me
19411 #endif
19414 main ()
19416 return $ac_func ();
19418 return 0;
19420 _ACEOF
19421 rm -f conftest.$ac_objext conftest$ac_exeext
19422 if { (ac_try="$ac_link"
19423 case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_link") 2>conftest.er1
19429 ac_status=$?
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } && {
19435 test -z "$ac_c_werror_flag" ||
19436 test ! -s conftest.err
19437 } && test -s conftest$ac_exeext &&
19438 $as_test_x conftest$ac_exeext; then
19439 eval "$as_ac_var=yes"
19440 else
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19444 eval "$as_ac_var=no"
19447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19448 conftest$ac_exeext conftest.$ac_ext
19450 ac_res=`eval echo '${'$as_ac_var'}'`
19451 { echo "$as_me:$LINENO: result: $ac_res" >&5
19452 echo "${ECHO_T}$ac_res" >&6; }
19453 if test `eval echo '${'$as_ac_var'}'` = yes; then
19454 cat >>confdefs.h <<_ACEOF
19455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19456 _ACEOF
19459 done
19462 # Check this now, so that we will NOT find the above functions in ncurses.
19463 # That is because we have not set up to link ncurses in lib-src.
19464 # It's better to believe a function is not available
19465 # than to expect to find it in ncurses.
19467 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19468 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19469 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 else
19472 ac_check_lib_save_LIBS=$LIBS
19473 LIBS="-lncurses $LIBS"
19474 cat >conftest.$ac_ext <<_ACEOF
19475 /* confdefs.h. */
19476 _ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19481 /* Override any GCC internal prototype to avoid an error.
19482 Use char because int might match the return type of a GCC
19483 builtin and then its argument prototype would still apply. */
19484 #ifdef __cplusplus
19485 extern "C"
19486 #endif
19487 char tparm ();
19489 main ()
19491 return tparm ();
19493 return 0;
19495 _ACEOF
19496 rm -f conftest.$ac_objext conftest$ac_exeext
19497 if { (ac_try="$ac_link"
19498 case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19501 esac
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_link") 2>conftest.er1
19504 ac_status=$?
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } && {
19510 test -z "$ac_c_werror_flag" ||
19511 test ! -s conftest.err
19512 } && test -s conftest$ac_exeext &&
19513 $as_test_x conftest$ac_exeext; then
19514 ac_cv_lib_ncurses_tparm=yes
19515 else
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19519 ac_cv_lib_ncurses_tparm=no
19522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19523 conftest$ac_exeext conftest.$ac_ext
19524 LIBS=$ac_check_lib_save_LIBS
19526 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19527 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19528 if test $ac_cv_lib_ncurses_tparm = yes; then
19529 cat >>confdefs.h <<_ACEOF
19530 #define HAVE_LIBNCURSES 1
19531 _ACEOF
19533 LIBS="-lncurses $LIBS"
19538 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19540 resolv=no
19541 cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h. */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547 #include <netinet/in.h>
19548 #include <arpa/nameser.h>
19549 #include <resolv.h>
19551 main ()
19553 return res_init();
19555 return 0;
19557 _ACEOF
19558 rm -f conftest.$ac_objext conftest$ac_exeext
19559 if { (ac_try="$ac_link"
19560 case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19563 esac
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_link") 2>conftest.er1
19566 ac_status=$?
19567 grep -v '^ *+' conftest.er1 >conftest.err
19568 rm -f conftest.er1
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } && {
19572 test -z "$ac_c_werror_flag" ||
19573 test ! -s conftest.err
19574 } && test -s conftest$ac_exeext &&
19575 $as_test_x conftest$ac_exeext; then
19576 have_res_init=yes
19577 else
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19581 have_res_init=no
19584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19585 conftest$ac_exeext conftest.$ac_ext
19586 if test "$have_res_init" = no; then
19587 OLIBS="$LIBS"
19588 LIBS="$LIBS -lresolv"
19589 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19590 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19591 cat >conftest.$ac_ext <<_ACEOF
19592 /* confdefs.h. */
19593 _ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h. */
19597 #include <netinet/in.h>
19598 #include <arpa/nameser.h>
19599 #include <resolv.h>
19601 main ()
19603 return res_init();
19605 return 0;
19607 _ACEOF
19608 rm -f conftest.$ac_objext conftest$ac_exeext
19609 if { (ac_try="$ac_link"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613 esac
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_link") 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } && {
19622 test -z "$ac_c_werror_flag" ||
19623 test ! -s conftest.err
19624 } && test -s conftest$ac_exeext &&
19625 $as_test_x conftest$ac_exeext; then
19626 have_res_init=yes
19627 else
19628 echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19631 have_res_init=no
19634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19635 conftest$ac_exeext conftest.$ac_ext
19636 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19637 echo "${ECHO_T}$have_res_init" >&6; }
19638 if test "$have_res_init" = yes ; then
19639 resolv=yes
19641 LIBS="$OLIBS"
19644 if test "$have_res_init" = yes; then
19646 cat >>confdefs.h <<\_ACEOF
19647 #define HAVE_RES_INIT 1
19648 _ACEOF
19652 # Do we need the Hesiod library to provide the support routines?
19653 if test "$with_hesiod" = yes ; then
19654 # Don't set $LIBS here -- see comments above.
19655 { echo "$as_me:$LINENO: checking for res_send" >&5
19656 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19657 if test "${ac_cv_func_res_send+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660 cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h. */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19666 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19668 #define res_send innocuous_res_send
19670 /* System header to define __stub macros and hopefully few prototypes,
19671 which can conflict with char res_send (); below.
19672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19673 <limits.h> exists even on freestanding compilers. */
19675 #ifdef __STDC__
19676 # include <limits.h>
19677 #else
19678 # include <assert.h>
19679 #endif
19681 #undef res_send
19683 /* Override any GCC internal prototype to avoid an error.
19684 Use char because int might match the return type of a GCC
19685 builtin and then its argument prototype would still apply. */
19686 #ifdef __cplusplus
19687 extern "C"
19688 #endif
19689 char res_send ();
19690 /* The GNU C library defines this for functions which it implements
19691 to always fail with ENOSYS. Some functions are actually named
19692 something starting with __ and the normal name is an alias. */
19693 #if defined __stub_res_send || defined __stub___res_send
19694 choke me
19695 #endif
19698 main ()
19700 return res_send ();
19702 return 0;
19704 _ACEOF
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (ac_try="$ac_link"
19707 case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19710 esac
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_link") 2>conftest.er1
19713 ac_status=$?
19714 grep -v '^ *+' conftest.er1 >conftest.err
19715 rm -f conftest.er1
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } && {
19719 test -z "$ac_c_werror_flag" ||
19720 test ! -s conftest.err
19721 } && test -s conftest$ac_exeext &&
19722 $as_test_x conftest$ac_exeext; then
19723 ac_cv_func_res_send=yes
19724 else
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 ac_cv_func_res_send=no
19731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19732 conftest$ac_exeext conftest.$ac_ext
19734 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19735 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19736 if test $ac_cv_func_res_send = yes; then
19738 else
19739 { echo "$as_me:$LINENO: checking for __res_send" >&5
19740 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19741 if test "${ac_cv_func___res_send+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 else
19744 cat >conftest.$ac_ext <<_ACEOF
19745 /* confdefs.h. */
19746 _ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19750 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19752 #define __res_send innocuous___res_send
19754 /* System header to define __stub macros and hopefully few prototypes,
19755 which can conflict with char __res_send (); below.
19756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19757 <limits.h> exists even on freestanding compilers. */
19759 #ifdef __STDC__
19760 # include <limits.h>
19761 #else
19762 # include <assert.h>
19763 #endif
19765 #undef __res_send
19767 /* Override any GCC internal prototype to avoid an error.
19768 Use char because int might match the return type of a GCC
19769 builtin and then its argument prototype would still apply. */
19770 #ifdef __cplusplus
19771 extern "C"
19772 #endif
19773 char __res_send ();
19774 /* The GNU C library defines this for functions which it implements
19775 to always fail with ENOSYS. Some functions are actually named
19776 something starting with __ and the normal name is an alias. */
19777 #if defined __stub___res_send || defined __stub_____res_send
19778 choke me
19779 #endif
19782 main ()
19784 return __res_send ();
19786 return 0;
19788 _ACEOF
19789 rm -f conftest.$ac_objext conftest$ac_exeext
19790 if { (ac_try="$ac_link"
19791 case "(($ac_try" in
19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19794 esac
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796 (eval "$ac_link") 2>conftest.er1
19797 ac_status=$?
19798 grep -v '^ *+' conftest.er1 >conftest.err
19799 rm -f conftest.er1
19800 cat conftest.err >&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } && {
19803 test -z "$ac_c_werror_flag" ||
19804 test ! -s conftest.err
19805 } && test -s conftest$ac_exeext &&
19806 $as_test_x conftest$ac_exeext; then
19807 ac_cv_func___res_send=yes
19808 else
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19812 ac_cv_func___res_send=no
19815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19816 conftest$ac_exeext conftest.$ac_ext
19818 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19819 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19820 if test $ac_cv_func___res_send = yes; then
19822 else
19823 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19824 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19825 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828 ac_check_lib_save_LIBS=$LIBS
19829 LIBS="-lresolv $LIBS"
19830 cat >conftest.$ac_ext <<_ACEOF
19831 /* confdefs.h. */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19837 /* Override any GCC internal prototype to avoid an error.
19838 Use char because int might match the return type of a GCC
19839 builtin and then its argument prototype would still apply. */
19840 #ifdef __cplusplus
19841 extern "C"
19842 #endif
19843 char res_send ();
19845 main ()
19847 return res_send ();
19849 return 0;
19851 _ACEOF
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (ac_try="$ac_link"
19854 case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19857 esac
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_link") 2>conftest.er1
19860 ac_status=$?
19861 grep -v '^ *+' conftest.er1 >conftest.err
19862 rm -f conftest.er1
19863 cat conftest.err >&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } && {
19866 test -z "$ac_c_werror_flag" ||
19867 test ! -s conftest.err
19868 } && test -s conftest$ac_exeext &&
19869 $as_test_x conftest$ac_exeext; then
19870 ac_cv_lib_resolv_res_send=yes
19871 else
19872 echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19875 ac_cv_lib_resolv_res_send=no
19878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19879 conftest$ac_exeext conftest.$ac_ext
19880 LIBS=$ac_check_lib_save_LIBS
19882 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19883 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19884 if test $ac_cv_lib_resolv_res_send = yes; then
19885 resolv=yes
19886 else
19887 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19888 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19889 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 else
19892 ac_check_lib_save_LIBS=$LIBS
19893 LIBS="-lresolv $LIBS"
19894 cat >conftest.$ac_ext <<_ACEOF
19895 /* confdefs.h. */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19901 /* Override any GCC internal prototype to avoid an error.
19902 Use char because int might match the return type of a GCC
19903 builtin and then its argument prototype would still apply. */
19904 #ifdef __cplusplus
19905 extern "C"
19906 #endif
19907 char __res_send ();
19909 main ()
19911 return __res_send ();
19913 return 0;
19915 _ACEOF
19916 rm -f conftest.$ac_objext conftest$ac_exeext
19917 if { (ac_try="$ac_link"
19918 case "(($ac_try" in
19919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920 *) ac_try_echo=$ac_try;;
19921 esac
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923 (eval "$ac_link") 2>conftest.er1
19924 ac_status=$?
19925 grep -v '^ *+' conftest.er1 >conftest.err
19926 rm -f conftest.er1
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } && {
19930 test -z "$ac_c_werror_flag" ||
19931 test ! -s conftest.err
19932 } && test -s conftest$ac_exeext &&
19933 $as_test_x conftest$ac_exeext; then
19934 ac_cv_lib_resolv___res_send=yes
19935 else
19936 echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19939 ac_cv_lib_resolv___res_send=no
19942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19943 conftest$ac_exeext conftest.$ac_ext
19944 LIBS=$ac_check_lib_save_LIBS
19946 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19947 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19948 if test $ac_cv_lib_resolv___res_send = yes; then
19949 resolv=yes
19958 if test "$resolv" = yes ; then
19959 RESOLVLIB=-lresolv
19960 else
19961 RESOLVLIB=
19963 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19964 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19965 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 else
19968 cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h. */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19976 #define hes_getmailhost innocuous_hes_getmailhost
19978 /* System header to define __stub macros and hopefully few prototypes,
19979 which can conflict with char hes_getmailhost (); below.
19980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19981 <limits.h> exists even on freestanding compilers. */
19983 #ifdef __STDC__
19984 # include <limits.h>
19985 #else
19986 # include <assert.h>
19987 #endif
19989 #undef hes_getmailhost
19991 /* Override any GCC internal prototype to avoid an error.
19992 Use char because int might match the return type of a GCC
19993 builtin and then its argument prototype would still apply. */
19994 #ifdef __cplusplus
19995 extern "C"
19996 #endif
19997 char hes_getmailhost ();
19998 /* The GNU C library defines this for functions which it implements
19999 to always fail with ENOSYS. Some functions are actually named
20000 something starting with __ and the normal name is an alias. */
20001 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20002 choke me
20003 #endif
20006 main ()
20008 return hes_getmailhost ();
20010 return 0;
20012 _ACEOF
20013 rm -f conftest.$ac_objext conftest$ac_exeext
20014 if { (ac_try="$ac_link"
20015 case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20018 esac
20019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20020 (eval "$ac_link") 2>conftest.er1
20021 ac_status=$?
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } && {
20027 test -z "$ac_c_werror_flag" ||
20028 test ! -s conftest.err
20029 } && test -s conftest$ac_exeext &&
20030 $as_test_x conftest$ac_exeext; then
20031 ac_cv_func_hes_getmailhost=yes
20032 else
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20036 ac_cv_func_hes_getmailhost=no
20039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20040 conftest$ac_exeext conftest.$ac_ext
20042 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20043 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20044 if test $ac_cv_func_hes_getmailhost = yes; then
20046 else
20047 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20048 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20049 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052 ac_check_lib_save_LIBS=$LIBS
20053 LIBS="-lhesiod $RESOLVLIB $LIBS"
20054 cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h. */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20061 /* Override any GCC internal prototype to avoid an error.
20062 Use char because int might match the return type of a GCC
20063 builtin and then its argument prototype would still apply. */
20064 #ifdef __cplusplus
20065 extern "C"
20066 #endif
20067 char hes_getmailhost ();
20069 main ()
20071 return hes_getmailhost ();
20073 return 0;
20075 _ACEOF
20076 rm -f conftest.$ac_objext conftest$ac_exeext
20077 if { (ac_try="$ac_link"
20078 case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20081 esac
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083 (eval "$ac_link") 2>conftest.er1
20084 ac_status=$?
20085 grep -v '^ *+' conftest.er1 >conftest.err
20086 rm -f conftest.er1
20087 cat conftest.err >&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } && {
20090 test -z "$ac_c_werror_flag" ||
20091 test ! -s conftest.err
20092 } && test -s conftest$ac_exeext &&
20093 $as_test_x conftest$ac_exeext; then
20094 ac_cv_lib_hesiod_hes_getmailhost=yes
20095 else
20096 echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20099 ac_cv_lib_hesiod_hes_getmailhost=no
20102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20103 conftest$ac_exeext conftest.$ac_ext
20104 LIBS=$ac_check_lib_save_LIBS
20106 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20107 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20108 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20110 cat >>confdefs.h <<\_ACEOF
20111 #define HAVE_LIBHESIOD 1
20112 _ACEOF
20114 else
20122 # Do we need libresolv (due to res_init or Hesiod)?
20123 if test "$resolv" = yes ; then
20125 cat >>confdefs.h <<\_ACEOF
20126 #define HAVE_LIBRESOLV 1
20127 _ACEOF
20131 # These tell us which Kerberos-related libraries to use.
20132 if test "${with_kerberos+set}" = set; then
20134 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20135 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20136 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139 ac_check_lib_save_LIBS=$LIBS
20140 LIBS="-lcom_err $LIBS"
20141 cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h. */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20148 /* Override any GCC internal prototype to avoid an error.
20149 Use char because int might match the return type of a GCC
20150 builtin and then its argument prototype would still apply. */
20151 #ifdef __cplusplus
20152 extern "C"
20153 #endif
20154 char com_err ();
20156 main ()
20158 return com_err ();
20160 return 0;
20162 _ACEOF
20163 rm -f conftest.$ac_objext conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_link") 2>conftest.er1
20171 ac_status=$?
20172 grep -v '^ *+' conftest.er1 >conftest.err
20173 rm -f conftest.er1
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } && {
20177 test -z "$ac_c_werror_flag" ||
20178 test ! -s conftest.err
20179 } && test -s conftest$ac_exeext &&
20180 $as_test_x conftest$ac_exeext; then
20181 ac_cv_lib_com_err_com_err=yes
20182 else
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20186 ac_cv_lib_com_err_com_err=no
20189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20190 conftest$ac_exeext conftest.$ac_ext
20191 LIBS=$ac_check_lib_save_LIBS
20193 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20194 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20195 if test $ac_cv_lib_com_err_com_err = yes; then
20196 cat >>confdefs.h <<_ACEOF
20197 #define HAVE_LIBCOM_ERR 1
20198 _ACEOF
20200 LIBS="-lcom_err $LIBS"
20205 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20206 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20207 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 else
20210 ac_check_lib_save_LIBS=$LIBS
20211 LIBS="-lk5crypto $LIBS"
20212 cat >conftest.$ac_ext <<_ACEOF
20213 /* confdefs.h. */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20219 /* Override any GCC internal prototype to avoid an error.
20220 Use char because int might match the return type of a GCC
20221 builtin and then its argument prototype would still apply. */
20222 #ifdef __cplusplus
20223 extern "C"
20224 #endif
20225 char mit_des_cbc_encrypt ();
20227 main ()
20229 return mit_des_cbc_encrypt ();
20231 return 0;
20233 _ACEOF
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (ac_try="$ac_link"
20236 case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_link") 2>conftest.er1
20242 ac_status=$?
20243 grep -v '^ *+' conftest.er1 >conftest.err
20244 rm -f conftest.er1
20245 cat conftest.err >&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } && {
20248 test -z "$ac_c_werror_flag" ||
20249 test ! -s conftest.err
20250 } && test -s conftest$ac_exeext &&
20251 $as_test_x conftest$ac_exeext; then
20252 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20253 else
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20257 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20261 conftest$ac_exeext conftest.$ac_ext
20262 LIBS=$ac_check_lib_save_LIBS
20264 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20265 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20266 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20267 cat >>confdefs.h <<_ACEOF
20268 #define HAVE_LIBK5CRYPTO 1
20269 _ACEOF
20271 LIBS="-lk5crypto $LIBS"
20276 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20277 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20278 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 else
20281 ac_check_lib_save_LIBS=$LIBS
20282 LIBS="-lcrypto $LIBS"
20283 cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h. */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20290 /* Override any GCC internal prototype to avoid an error.
20291 Use char because int might match the return type of a GCC
20292 builtin and then its argument prototype would still apply. */
20293 #ifdef __cplusplus
20294 extern "C"
20295 #endif
20296 char mit_des_cbc_encrypt ();
20298 main ()
20300 return mit_des_cbc_encrypt ();
20302 return 0;
20304 _ACEOF
20305 rm -f conftest.$ac_objext conftest$ac_exeext
20306 if { (ac_try="$ac_link"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310 esac
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_link") 2>conftest.er1
20313 ac_status=$?
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } && {
20319 test -z "$ac_c_werror_flag" ||
20320 test ! -s conftest.err
20321 } && test -s conftest$ac_exeext &&
20322 $as_test_x conftest$ac_exeext; then
20323 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20324 else
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20328 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20332 conftest$ac_exeext conftest.$ac_ext
20333 LIBS=$ac_check_lib_save_LIBS
20335 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20336 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20337 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20338 cat >>confdefs.h <<_ACEOF
20339 #define HAVE_LIBCRYPTO 1
20340 _ACEOF
20342 LIBS="-lcrypto $LIBS"
20347 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20348 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20349 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 else
20352 ac_check_lib_save_LIBS=$LIBS
20353 LIBS="-lkrb5 $LIBS"
20354 cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h. */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20361 /* Override any GCC internal prototype to avoid an error.
20362 Use char because int might match the return type of a GCC
20363 builtin and then its argument prototype would still apply. */
20364 #ifdef __cplusplus
20365 extern "C"
20366 #endif
20367 char krb5_init_context ();
20369 main ()
20371 return krb5_init_context ();
20373 return 0;
20375 _ACEOF
20376 rm -f conftest.$ac_objext conftest$ac_exeext
20377 if { (ac_try="$ac_link"
20378 case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20381 esac
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_link") 2>conftest.er1
20384 ac_status=$?
20385 grep -v '^ *+' conftest.er1 >conftest.err
20386 rm -f conftest.er1
20387 cat conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } && {
20390 test -z "$ac_c_werror_flag" ||
20391 test ! -s conftest.err
20392 } && test -s conftest$ac_exeext &&
20393 $as_test_x conftest$ac_exeext; then
20394 ac_cv_lib_krb5_krb5_init_context=yes
20395 else
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20399 ac_cv_lib_krb5_krb5_init_context=no
20402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20403 conftest$ac_exeext conftest.$ac_ext
20404 LIBS=$ac_check_lib_save_LIBS
20406 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20407 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20408 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20409 cat >>confdefs.h <<_ACEOF
20410 #define HAVE_LIBKRB5 1
20411 _ACEOF
20413 LIBS="-lkrb5 $LIBS"
20417 if test "${with_kerberos5+set}" != set; then
20419 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20420 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20421 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20423 else
20424 ac_check_lib_save_LIBS=$LIBS
20425 LIBS="-ldes425 $LIBS"
20426 cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h. */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20433 /* Override any GCC internal prototype to avoid an error.
20434 Use char because int might match the return type of a GCC
20435 builtin and then its argument prototype would still apply. */
20436 #ifdef __cplusplus
20437 extern "C"
20438 #endif
20439 char des_cbc_encrypt ();
20441 main ()
20443 return des_cbc_encrypt ();
20445 return 0;
20447 _ACEOF
20448 rm -f conftest.$ac_objext conftest$ac_exeext
20449 if { (ac_try="$ac_link"
20450 case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20453 esac
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_link") 2>conftest.er1
20456 ac_status=$?
20457 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1
20459 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest$ac_exeext &&
20465 $as_test_x conftest$ac_exeext; then
20466 ac_cv_lib_des425_des_cbc_encrypt=yes
20467 else
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 ac_cv_lib_des425_des_cbc_encrypt=no
20474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20475 conftest$ac_exeext conftest.$ac_ext
20476 LIBS=$ac_check_lib_save_LIBS
20478 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20479 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20480 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20481 cat >>confdefs.h <<_ACEOF
20482 #define HAVE_LIBDES425 1
20483 _ACEOF
20485 LIBS="-ldes425 $LIBS"
20487 else
20489 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20490 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20491 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20492 echo $ECHO_N "(cached) $ECHO_C" >&6
20493 else
20494 ac_check_lib_save_LIBS=$LIBS
20495 LIBS="-ldes $LIBS"
20496 cat >conftest.$ac_ext <<_ACEOF
20497 /* confdefs.h. */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20503 /* Override any GCC internal prototype to avoid an error.
20504 Use char because int might match the return type of a GCC
20505 builtin and then its argument prototype would still apply. */
20506 #ifdef __cplusplus
20507 extern "C"
20508 #endif
20509 char des_cbc_encrypt ();
20511 main ()
20513 return des_cbc_encrypt ();
20515 return 0;
20517 _ACEOF
20518 rm -f conftest.$ac_objext conftest$ac_exeext
20519 if { (ac_try="$ac_link"
20520 case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20523 esac
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_link") 2>conftest.er1
20526 ac_status=$?
20527 grep -v '^ *+' conftest.er1 >conftest.err
20528 rm -f conftest.er1
20529 cat conftest.err >&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } && {
20532 test -z "$ac_c_werror_flag" ||
20533 test ! -s conftest.err
20534 } && test -s conftest$ac_exeext &&
20535 $as_test_x conftest$ac_exeext; then
20536 ac_cv_lib_des_des_cbc_encrypt=yes
20537 else
20538 echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20541 ac_cv_lib_des_des_cbc_encrypt=no
20544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20545 conftest$ac_exeext conftest.$ac_ext
20546 LIBS=$ac_check_lib_save_LIBS
20548 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20549 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20550 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20551 cat >>confdefs.h <<_ACEOF
20552 #define HAVE_LIBDES 1
20553 _ACEOF
20555 LIBS="-ldes $LIBS"
20562 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20563 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20564 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20565 echo $ECHO_N "(cached) $ECHO_C" >&6
20566 else
20567 ac_check_lib_save_LIBS=$LIBS
20568 LIBS="-lkrb4 $LIBS"
20569 cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h. */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20576 /* Override any GCC internal prototype to avoid an error.
20577 Use char because int might match the return type of a GCC
20578 builtin and then its argument prototype would still apply. */
20579 #ifdef __cplusplus
20580 extern "C"
20581 #endif
20582 char krb_get_cred ();
20584 main ()
20586 return krb_get_cred ();
20588 return 0;
20590 _ACEOF
20591 rm -f conftest.$ac_objext conftest$ac_exeext
20592 if { (ac_try="$ac_link"
20593 case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20596 esac
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_link") 2>conftest.er1
20599 ac_status=$?
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest$ac_exeext &&
20608 $as_test_x conftest$ac_exeext; then
20609 ac_cv_lib_krb4_krb_get_cred=yes
20610 else
20611 echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20614 ac_cv_lib_krb4_krb_get_cred=no
20617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20618 conftest$ac_exeext conftest.$ac_ext
20619 LIBS=$ac_check_lib_save_LIBS
20621 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20622 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20623 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20624 cat >>confdefs.h <<_ACEOF
20625 #define HAVE_LIBKRB4 1
20626 _ACEOF
20628 LIBS="-lkrb4 $LIBS"
20630 else
20632 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20633 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20634 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20636 else
20637 ac_check_lib_save_LIBS=$LIBS
20638 LIBS="-lkrb $LIBS"
20639 cat >conftest.$ac_ext <<_ACEOF
20640 /* confdefs.h. */
20641 _ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20646 /* Override any GCC internal prototype to avoid an error.
20647 Use char because int might match the return type of a GCC
20648 builtin and then its argument prototype would still apply. */
20649 #ifdef __cplusplus
20650 extern "C"
20651 #endif
20652 char krb_get_cred ();
20654 main ()
20656 return krb_get_cred ();
20658 return 0;
20660 _ACEOF
20661 rm -f conftest.$ac_objext conftest$ac_exeext
20662 if { (ac_try="$ac_link"
20663 case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_link") 2>conftest.er1
20669 ac_status=$?
20670 grep -v '^ *+' conftest.er1 >conftest.err
20671 rm -f conftest.er1
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } && {
20675 test -z "$ac_c_werror_flag" ||
20676 test ! -s conftest.err
20677 } && test -s conftest$ac_exeext &&
20678 $as_test_x conftest$ac_exeext; then
20679 ac_cv_lib_krb_krb_get_cred=yes
20680 else
20681 echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20684 ac_cv_lib_krb_krb_get_cred=no
20687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20688 conftest$ac_exeext conftest.$ac_ext
20689 LIBS=$ac_check_lib_save_LIBS
20691 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20692 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20693 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20694 cat >>confdefs.h <<_ACEOF
20695 #define HAVE_LIBKRB 1
20696 _ACEOF
20698 LIBS="-lkrb $LIBS"
20706 if test "${with_kerberos5+set}" = set; then
20708 for ac_header in krb5.h
20710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 ac_res=`eval echo '${'$as_ac_Header'}'`
20718 { echo "$as_me:$LINENO: result: $ac_res" >&5
20719 echo "${ECHO_T}$ac_res" >&6; }
20720 else
20721 # Is the header compilable?
20722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h. */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 $ac_includes_default
20731 #include <$ac_header>
20732 _ACEOF
20733 rm -f conftest.$ac_objext
20734 if { (ac_try="$ac_compile"
20735 case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20738 esac
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_compile") 2>conftest.er1
20741 ac_status=$?
20742 grep -v '^ *+' conftest.er1 >conftest.err
20743 rm -f conftest.er1
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } && {
20747 test -z "$ac_c_werror_flag" ||
20748 test ! -s conftest.err
20749 } && test -s conftest.$ac_objext; then
20750 ac_header_compiler=yes
20751 else
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ac_header_compiler=no
20758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20760 echo "${ECHO_T}$ac_header_compiler" >&6; }
20762 # Is the header present?
20763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20765 cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h. */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 #include <$ac_header>
20772 _ACEOF
20773 if { (ac_try="$ac_cpp conftest.$ac_ext"
20774 case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20780 ac_status=$?
20781 grep -v '^ *+' conftest.er1 >conftest.err
20782 rm -f conftest.er1
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } >/dev/null && {
20786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20787 test ! -s conftest.err
20788 }; then
20789 ac_header_preproc=yes
20790 else
20791 echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20794 ac_header_preproc=no
20797 rm -f conftest.err conftest.$ac_ext
20798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20799 echo "${ECHO_T}$ac_header_preproc" >&6; }
20801 # So? What about this header?
20802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20803 yes:no: )
20804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20808 ac_header_preproc=yes
20810 no:yes:* )
20811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20825 esac
20826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20830 else
20831 eval "$as_ac_Header=\$ac_header_preproc"
20833 ac_res=`eval echo '${'$as_ac_Header'}'`
20834 { echo "$as_me:$LINENO: result: $ac_res" >&5
20835 echo "${ECHO_T}$ac_res" >&6; }
20838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20839 cat >>confdefs.h <<_ACEOF
20840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20841 _ACEOF
20845 done
20847 else
20849 for ac_header in des.h
20851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20858 ac_res=`eval echo '${'$as_ac_Header'}'`
20859 { echo "$as_me:$LINENO: result: $ac_res" >&5
20860 echo "${ECHO_T}$ac_res" >&6; }
20861 else
20862 # Is the header compilable?
20863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20865 cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h. */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20871 $ac_includes_default
20872 #include <$ac_header>
20873 _ACEOF
20874 rm -f conftest.$ac_objext
20875 if { (ac_try="$ac_compile"
20876 case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_compile") 2>conftest.er1
20882 ac_status=$?
20883 grep -v '^ *+' conftest.er1 >conftest.err
20884 rm -f conftest.er1
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } && {
20888 test -z "$ac_c_werror_flag" ||
20889 test ! -s conftest.err
20890 } && test -s conftest.$ac_objext; then
20891 ac_header_compiler=yes
20892 else
20893 echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20896 ac_header_compiler=no
20899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20901 echo "${ECHO_T}$ac_header_compiler" >&6; }
20903 # Is the header present?
20904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20906 cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h. */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 #include <$ac_header>
20913 _ACEOF
20914 if { (ac_try="$ac_cpp conftest.$ac_ext"
20915 case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20918 esac
20919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20921 ac_status=$?
20922 grep -v '^ *+' conftest.er1 >conftest.err
20923 rm -f conftest.er1
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } >/dev/null && {
20927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20928 test ! -s conftest.err
20929 }; then
20930 ac_header_preproc=yes
20931 else
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 ac_header_preproc=no
20938 rm -f conftest.err conftest.$ac_ext
20939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20940 echo "${ECHO_T}$ac_header_preproc" >&6; }
20942 # So? What about this header?
20943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20944 yes:no: )
20945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20949 ac_header_preproc=yes
20951 no:yes:* )
20952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20966 esac
20967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20971 else
20972 eval "$as_ac_Header=\$ac_header_preproc"
20974 ac_res=`eval echo '${'$as_ac_Header'}'`
20975 { echo "$as_me:$LINENO: result: $ac_res" >&5
20976 echo "${ECHO_T}$ac_res" >&6; }
20979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20980 cat >>confdefs.h <<_ACEOF
20981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20982 _ACEOF
20984 else
20986 for ac_header in kerberosIV/des.h
20988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20995 ac_res=`eval echo '${'$as_ac_Header'}'`
20996 { echo "$as_me:$LINENO: result: $ac_res" >&5
20997 echo "${ECHO_T}$ac_res" >&6; }
20998 else
20999 # Is the header compilable?
21000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21002 cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h. */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 $ac_includes_default
21009 #include <$ac_header>
21010 _ACEOF
21011 rm -f conftest.$ac_objext
21012 if { (ac_try="$ac_compile"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21016 esac
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_compile") 2>conftest.er1
21019 ac_status=$?
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } && {
21025 test -z "$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21027 } && test -s conftest.$ac_objext; then
21028 ac_header_compiler=yes
21029 else
21030 echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21033 ac_header_compiler=no
21036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21038 echo "${ECHO_T}$ac_header_compiler" >&6; }
21040 # Is the header present?
21041 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21043 cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h. */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 #include <$ac_header>
21050 _ACEOF
21051 if { (ac_try="$ac_cpp conftest.$ac_ext"
21052 case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21055 esac
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21058 ac_status=$?
21059 grep -v '^ *+' conftest.er1 >conftest.err
21060 rm -f conftest.er1
21061 cat conftest.err >&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } >/dev/null && {
21064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21065 test ! -s conftest.err
21066 }; then
21067 ac_header_preproc=yes
21068 else
21069 echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21072 ac_header_preproc=no
21075 rm -f conftest.err conftest.$ac_ext
21076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21077 echo "${ECHO_T}$ac_header_preproc" >&6; }
21079 # So? What about this header?
21080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21081 yes:no: )
21082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21086 ac_header_preproc=yes
21088 no:yes:* )
21089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21103 esac
21104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 else
21109 eval "$as_ac_Header=\$ac_header_preproc"
21111 ac_res=`eval echo '${'$as_ac_Header'}'`
21112 { echo "$as_me:$LINENO: result: $ac_res" >&5
21113 echo "${ECHO_T}$ac_res" >&6; }
21116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21117 cat >>confdefs.h <<_ACEOF
21118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21119 _ACEOF
21121 else
21123 for ac_header in kerberos/des.h
21125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21132 ac_res=`eval echo '${'$as_ac_Header'}'`
21133 { echo "$as_me:$LINENO: result: $ac_res" >&5
21134 echo "${ECHO_T}$ac_res" >&6; }
21135 else
21136 # Is the header compilable?
21137 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21139 cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h. */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21145 $ac_includes_default
21146 #include <$ac_header>
21147 _ACEOF
21148 rm -f conftest.$ac_objext
21149 if { (ac_try="$ac_compile"
21150 case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_compile") 2>conftest.er1
21156 ac_status=$?
21157 grep -v '^ *+' conftest.er1 >conftest.err
21158 rm -f conftest.er1
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } && {
21162 test -z "$ac_c_werror_flag" ||
21163 test ! -s conftest.err
21164 } && test -s conftest.$ac_objext; then
21165 ac_header_compiler=yes
21166 else
21167 echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21170 ac_header_compiler=no
21173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21175 echo "${ECHO_T}$ac_header_compiler" >&6; }
21177 # Is the header present?
21178 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21180 cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h. */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 #include <$ac_header>
21187 _ACEOF
21188 if { (ac_try="$ac_cpp conftest.$ac_ext"
21189 case "(($ac_try" in
21190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191 *) ac_try_echo=$ac_try;;
21192 esac
21193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21195 ac_status=$?
21196 grep -v '^ *+' conftest.er1 >conftest.err
21197 rm -f conftest.er1
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } >/dev/null && {
21201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21202 test ! -s conftest.err
21203 }; then
21204 ac_header_preproc=yes
21205 else
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21209 ac_header_preproc=no
21212 rm -f conftest.err conftest.$ac_ext
21213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21214 echo "${ECHO_T}$ac_header_preproc" >&6; }
21216 # So? What about this header?
21217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21218 yes:no: )
21219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21223 ac_header_preproc=yes
21225 no:yes:* )
21226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21240 esac
21241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21245 else
21246 eval "$as_ac_Header=\$ac_header_preproc"
21248 ac_res=`eval echo '${'$as_ac_Header'}'`
21249 { echo "$as_me:$LINENO: result: $ac_res" >&5
21250 echo "${ECHO_T}$ac_res" >&6; }
21253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21254 cat >>confdefs.h <<_ACEOF
21255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21256 _ACEOF
21260 done
21264 done
21268 done
21271 for ac_header in krb.h
21273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21278 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 ac_res=`eval echo '${'$as_ac_Header'}'`
21281 { echo "$as_me:$LINENO: result: $ac_res" >&5
21282 echo "${ECHO_T}$ac_res" >&6; }
21283 else
21284 # Is the header compilable?
21285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h. */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 $ac_includes_default
21294 #include <$ac_header>
21295 _ACEOF
21296 rm -f conftest.$ac_objext
21297 if { (ac_try="$ac_compile"
21298 case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_compile") 2>conftest.er1
21304 ac_status=$?
21305 grep -v '^ *+' conftest.er1 >conftest.err
21306 rm -f conftest.er1
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } && {
21310 test -z "$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21312 } && test -s conftest.$ac_objext; then
21313 ac_header_compiler=yes
21314 else
21315 echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ac_header_compiler=no
21321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21323 echo "${ECHO_T}$ac_header_compiler" >&6; }
21325 # Is the header present?
21326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21328 cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h. */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 #include <$ac_header>
21335 _ACEOF
21336 if { (ac_try="$ac_cpp conftest.$ac_ext"
21337 case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21340 esac
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21343 ac_status=$?
21344 grep -v '^ *+' conftest.er1 >conftest.err
21345 rm -f conftest.er1
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } >/dev/null && {
21349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21350 test ! -s conftest.err
21351 }; then
21352 ac_header_preproc=yes
21353 else
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21357 ac_header_preproc=no
21360 rm -f conftest.err conftest.$ac_ext
21361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21362 echo "${ECHO_T}$ac_header_preproc" >&6; }
21364 # So? What about this header?
21365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21366 yes:no: )
21367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21371 ac_header_preproc=yes
21373 no:yes:* )
21374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21388 esac
21389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21393 else
21394 eval "$as_ac_Header=\$ac_header_preproc"
21396 ac_res=`eval echo '${'$as_ac_Header'}'`
21397 { echo "$as_me:$LINENO: result: $ac_res" >&5
21398 echo "${ECHO_T}$ac_res" >&6; }
21401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21402 cat >>confdefs.h <<_ACEOF
21403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21404 _ACEOF
21406 else
21408 for ac_header in kerberosIV/krb.h
21410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21415 echo $ECHO_N "(cached) $ECHO_C" >&6
21417 ac_res=`eval echo '${'$as_ac_Header'}'`
21418 { echo "$as_me:$LINENO: result: $ac_res" >&5
21419 echo "${ECHO_T}$ac_res" >&6; }
21420 else
21421 # Is the header compilable?
21422 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21424 cat >conftest.$ac_ext <<_ACEOF
21425 /* confdefs.h. */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21430 $ac_includes_default
21431 #include <$ac_header>
21432 _ACEOF
21433 rm -f conftest.$ac_objext
21434 if { (ac_try="$ac_compile"
21435 case "(($ac_try" in
21436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437 *) ac_try_echo=$ac_try;;
21438 esac
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440 (eval "$ac_compile") 2>conftest.er1
21441 ac_status=$?
21442 grep -v '^ *+' conftest.er1 >conftest.err
21443 rm -f conftest.er1
21444 cat conftest.err >&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } && {
21447 test -z "$ac_c_werror_flag" ||
21448 test ! -s conftest.err
21449 } && test -s conftest.$ac_objext; then
21450 ac_header_compiler=yes
21451 else
21452 echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21455 ac_header_compiler=no
21458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21460 echo "${ECHO_T}$ac_header_compiler" >&6; }
21462 # Is the header present?
21463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21465 cat >conftest.$ac_ext <<_ACEOF
21466 /* confdefs.h. */
21467 _ACEOF
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h. */
21471 #include <$ac_header>
21472 _ACEOF
21473 if { (ac_try="$ac_cpp conftest.$ac_ext"
21474 case "(($ac_try" in
21475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476 *) ac_try_echo=$ac_try;;
21477 esac
21478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21480 ac_status=$?
21481 grep -v '^ *+' conftest.er1 >conftest.err
21482 rm -f conftest.er1
21483 cat conftest.err >&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } >/dev/null && {
21486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21487 test ! -s conftest.err
21488 }; then
21489 ac_header_preproc=yes
21490 else
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21494 ac_header_preproc=no
21497 rm -f conftest.err conftest.$ac_ext
21498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21499 echo "${ECHO_T}$ac_header_preproc" >&6; }
21501 # So? What about this header?
21502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21503 yes:no: )
21504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21508 ac_header_preproc=yes
21510 no:yes:* )
21511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21525 esac
21526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21530 else
21531 eval "$as_ac_Header=\$ac_header_preproc"
21533 ac_res=`eval echo '${'$as_ac_Header'}'`
21534 { echo "$as_me:$LINENO: result: $ac_res" >&5
21535 echo "${ECHO_T}$ac_res" >&6; }
21538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21539 cat >>confdefs.h <<_ACEOF
21540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21541 _ACEOF
21543 else
21545 for ac_header in kerberos/krb.h
21547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21554 ac_res=`eval echo '${'$as_ac_Header'}'`
21555 { echo "$as_me:$LINENO: result: $ac_res" >&5
21556 echo "${ECHO_T}$ac_res" >&6; }
21557 else
21558 # Is the header compilable?
21559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21561 cat >conftest.$ac_ext <<_ACEOF
21562 /* confdefs.h. */
21563 _ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h. */
21567 $ac_includes_default
21568 #include <$ac_header>
21569 _ACEOF
21570 rm -f conftest.$ac_objext
21571 if { (ac_try="$ac_compile"
21572 case "(($ac_try" in
21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574 *) ac_try_echo=$ac_try;;
21575 esac
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577 (eval "$ac_compile") 2>conftest.er1
21578 ac_status=$?
21579 grep -v '^ *+' conftest.er1 >conftest.err
21580 rm -f conftest.er1
21581 cat conftest.err >&5
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } && {
21584 test -z "$ac_c_werror_flag" ||
21585 test ! -s conftest.err
21586 } && test -s conftest.$ac_objext; then
21587 ac_header_compiler=yes
21588 else
21589 echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 ac_header_compiler=no
21595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21597 echo "${ECHO_T}$ac_header_compiler" >&6; }
21599 # Is the header present?
21600 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21602 cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h. */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21608 #include <$ac_header>
21609 _ACEOF
21610 if { (ac_try="$ac_cpp conftest.$ac_ext"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21617 ac_status=$?
21618 grep -v '^ *+' conftest.er1 >conftest.err
21619 rm -f conftest.er1
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } >/dev/null && {
21623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 }; then
21626 ac_header_preproc=yes
21627 else
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21631 ac_header_preproc=no
21634 rm -f conftest.err conftest.$ac_ext
21635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21636 echo "${ECHO_T}$ac_header_preproc" >&6; }
21638 # So? What about this header?
21639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21640 yes:no: )
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21645 ac_header_preproc=yes
21647 no:yes:* )
21648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21655 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21662 esac
21663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21666 echo $ECHO_N "(cached) $ECHO_C" >&6
21667 else
21668 eval "$as_ac_Header=\$ac_header_preproc"
21670 ac_res=`eval echo '${'$as_ac_Header'}'`
21671 { echo "$as_me:$LINENO: result: $ac_res" >&5
21672 echo "${ECHO_T}$ac_res" >&6; }
21675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21676 cat >>confdefs.h <<_ACEOF
21677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21678 _ACEOF
21682 done
21686 done
21690 done
21694 for ac_header in com_err.h
21696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21701 echo $ECHO_N "(cached) $ECHO_C" >&6
21703 ac_res=`eval echo '${'$as_ac_Header'}'`
21704 { echo "$as_me:$LINENO: result: $ac_res" >&5
21705 echo "${ECHO_T}$ac_res" >&6; }
21706 else
21707 # Is the header compilable?
21708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21710 cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h. */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21716 $ac_includes_default
21717 #include <$ac_header>
21718 _ACEOF
21719 rm -f conftest.$ac_objext
21720 if { (ac_try="$ac_compile"
21721 case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21724 esac
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_compile") 2>conftest.er1
21727 ac_status=$?
21728 grep -v '^ *+' conftest.er1 >conftest.err
21729 rm -f conftest.er1
21730 cat conftest.err >&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); } && {
21733 test -z "$ac_c_werror_flag" ||
21734 test ! -s conftest.err
21735 } && test -s conftest.$ac_objext; then
21736 ac_header_compiler=yes
21737 else
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21741 ac_header_compiler=no
21744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21746 echo "${ECHO_T}$ac_header_compiler" >&6; }
21748 # Is the header present?
21749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21751 cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h. */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 #include <$ac_header>
21758 _ACEOF
21759 if { (ac_try="$ac_cpp conftest.$ac_ext"
21760 case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21766 ac_status=$?
21767 grep -v '^ *+' conftest.er1 >conftest.err
21768 rm -f conftest.er1
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } >/dev/null && {
21772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21773 test ! -s conftest.err
21774 }; then
21775 ac_header_preproc=yes
21776 else
21777 echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21780 ac_header_preproc=no
21783 rm -f conftest.err conftest.$ac_ext
21784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21785 echo "${ECHO_T}$ac_header_preproc" >&6; }
21787 # So? What about this header?
21788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21789 yes:no: )
21790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21794 ac_header_preproc=yes
21796 no:yes:* )
21797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21811 esac
21812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21816 else
21817 eval "$as_ac_Header=\$ac_header_preproc"
21819 ac_res=`eval echo '${'$as_ac_Header'}'`
21820 { echo "$as_me:$LINENO: result: $ac_res" >&5
21821 echo "${ECHO_T}$ac_res" >&6; }
21824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21825 cat >>confdefs.h <<_ACEOF
21826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21827 _ACEOF
21831 done
21835 # Solaris requires -lintl if you want strerror (which calls dgettext)
21836 # to return localized messages.
21838 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21839 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21840 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 else
21843 ac_check_lib_save_LIBS=$LIBS
21844 LIBS="-lintl $LIBS"
21845 cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h. */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21852 /* Override any GCC internal prototype to avoid an error.
21853 Use char because int might match the return type of a GCC
21854 builtin and then its argument prototype would still apply. */
21855 #ifdef __cplusplus
21856 extern "C"
21857 #endif
21858 char dgettext ();
21860 main ()
21862 return dgettext ();
21864 return 0;
21866 _ACEOF
21867 rm -f conftest.$ac_objext conftest$ac_exeext
21868 if { (ac_try="$ac_link"
21869 case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21872 esac
21873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_link") 2>conftest.er1
21875 ac_status=$?
21876 grep -v '^ *+' conftest.er1 >conftest.err
21877 rm -f conftest.er1
21878 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } && {
21881 test -z "$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21883 } && test -s conftest$ac_exeext &&
21884 $as_test_x conftest$ac_exeext; then
21885 ac_cv_lib_intl_dgettext=yes
21886 else
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 ac_cv_lib_intl_dgettext=no
21893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21894 conftest$ac_exeext conftest.$ac_ext
21895 LIBS=$ac_check_lib_save_LIBS
21897 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21898 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21899 if test $ac_cv_lib_intl_dgettext = yes; then
21900 cat >>confdefs.h <<_ACEOF
21901 #define HAVE_LIBINTL 1
21902 _ACEOF
21904 LIBS="-lintl $LIBS"
21909 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21910 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21911 if test "${emacs_cv_localtime_cache+set}" = set; then
21912 echo $ECHO_N "(cached) $ECHO_C" >&6
21913 else
21914 if test x$ac_cv_func_tzset = xyes; then
21915 if test "$cross_compiling" = yes; then
21916 # If we have tzset, assume the worst when cross-compiling.
21917 emacs_cv_localtime_cache=yes
21918 else
21919 cat >conftest.$ac_ext <<_ACEOF
21920 /* confdefs.h. */
21921 _ACEOF
21922 cat confdefs.h >>conftest.$ac_ext
21923 cat >>conftest.$ac_ext <<_ACEOF
21924 /* end confdefs.h. */
21925 #include <time.h>
21926 extern char **environ;
21927 unset_TZ ()
21929 char **from, **to;
21930 for (to = from = environ; (*to = *from); from++)
21931 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21932 to++;
21934 char TZ_GMT0[] = "TZ=GMT0";
21935 char TZ_PST8[] = "TZ=PST8";
21936 main()
21938 time_t now = time ((time_t *) 0);
21939 int hour_GMT0, hour_unset;
21940 if (putenv (TZ_GMT0) != 0)
21941 exit (1);
21942 hour_GMT0 = localtime (&now)->tm_hour;
21943 unset_TZ ();
21944 hour_unset = localtime (&now)->tm_hour;
21945 if (putenv (TZ_PST8) != 0)
21946 exit (1);
21947 if (localtime (&now)->tm_hour == hour_GMT0)
21948 exit (1);
21949 unset_TZ ();
21950 if (localtime (&now)->tm_hour != hour_unset)
21951 exit (1);
21952 exit (0);
21954 _ACEOF
21955 rm -f conftest$ac_exeext
21956 if { (ac_try="$ac_link"
21957 case "(($ac_try" in
21958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21959 *) ac_try_echo=$ac_try;;
21960 esac
21961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21962 (eval "$ac_link") 2>&5
21963 ac_status=$?
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21966 { (case "(($ac_try" in
21967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968 *) ac_try_echo=$ac_try;;
21969 esac
21970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971 (eval "$ac_try") 2>&5
21972 ac_status=$?
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); }; }; then
21975 emacs_cv_localtime_cache=no
21976 else
21977 echo "$as_me: program exited with status $ac_status" >&5
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 ( exit $ac_status )
21982 emacs_cv_localtime_cache=yes
21984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21988 else
21989 # If we lack tzset, report that localtime does not cache TZ,
21990 # since we can't invalidate the cache if we don't have tzset.
21991 emacs_cv_localtime_cache=no
21994 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21995 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21996 if test $emacs_cv_localtime_cache = yes; then
21998 cat >>confdefs.h <<\_ACEOF
21999 #define LOCALTIME_CACHE 1
22000 _ACEOF
22004 if test "x$HAVE_TIMEVAL" = xyes; then
22006 for ac_func in gettimeofday
22008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22009 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22011 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22012 echo $ECHO_N "(cached) $ECHO_C" >&6
22013 else
22014 cat >conftest.$ac_ext <<_ACEOF
22015 /* confdefs.h. */
22016 _ACEOF
22017 cat confdefs.h >>conftest.$ac_ext
22018 cat >>conftest.$ac_ext <<_ACEOF
22019 /* end confdefs.h. */
22020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22022 #define $ac_func innocuous_$ac_func
22024 /* System header to define __stub macros and hopefully few prototypes,
22025 which can conflict with char $ac_func (); below.
22026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22027 <limits.h> exists even on freestanding compilers. */
22029 #ifdef __STDC__
22030 # include <limits.h>
22031 #else
22032 # include <assert.h>
22033 #endif
22035 #undef $ac_func
22037 /* Override any GCC internal prototype to avoid an error.
22038 Use char because int might match the return type of a GCC
22039 builtin and then its argument prototype would still apply. */
22040 #ifdef __cplusplus
22041 extern "C"
22042 #endif
22043 char $ac_func ();
22044 /* The GNU C library defines this for functions which it implements
22045 to always fail with ENOSYS. Some functions are actually named
22046 something starting with __ and the normal name is an alias. */
22047 #if defined __stub_$ac_func || defined __stub___$ac_func
22048 choke me
22049 #endif
22052 main ()
22054 return $ac_func ();
22056 return 0;
22058 _ACEOF
22059 rm -f conftest.$ac_objext conftest$ac_exeext
22060 if { (ac_try="$ac_link"
22061 case "(($ac_try" in
22062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063 *) ac_try_echo=$ac_try;;
22064 esac
22065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22066 (eval "$ac_link") 2>conftest.er1
22067 ac_status=$?
22068 grep -v '^ *+' conftest.er1 >conftest.err
22069 rm -f conftest.er1
22070 cat conftest.err >&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); } && {
22073 test -z "$ac_c_werror_flag" ||
22074 test ! -s conftest.err
22075 } && test -s conftest$ac_exeext &&
22076 $as_test_x conftest$ac_exeext; then
22077 eval "$as_ac_var=yes"
22078 else
22079 echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22082 eval "$as_ac_var=no"
22085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22086 conftest$ac_exeext conftest.$ac_ext
22088 ac_res=`eval echo '${'$as_ac_var'}'`
22089 { echo "$as_me:$LINENO: result: $ac_res" >&5
22090 echo "${ECHO_T}$ac_res" >&6; }
22091 if test `eval echo '${'$as_ac_var'}'` = yes; then
22092 cat >>confdefs.h <<_ACEOF
22093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22094 _ACEOF
22097 done
22099 if test $ac_cv_func_gettimeofday = yes; then
22100 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22101 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22102 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22104 else
22105 cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h. */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22112 #ifdef TIME_WITH_SYS_TIME
22113 #include <sys/time.h>
22114 #include <time.h>
22115 #else
22116 #ifdef HAVE_SYS_TIME_H
22117 #include <sys/time.h>
22118 #else
22119 #include <time.h>
22120 #endif
22121 #endif
22123 main ()
22125 struct timeval time;
22126 gettimeofday (&time, 0);
22128 return 0;
22130 _ACEOF
22131 rm -f conftest.$ac_objext
22132 if { (ac_try="$ac_compile"
22133 case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136 esac
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_compile") 2>conftest.er1
22139 ac_status=$?
22140 grep -v '^ *+' conftest.er1 >conftest.err
22141 rm -f conftest.er1
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } && {
22145 test -z "$ac_c_werror_flag" ||
22146 test ! -s conftest.err
22147 } && test -s conftest.$ac_objext; then
22148 emacs_cv_gettimeofday_two_arguments=yes
22149 else
22150 echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22153 emacs_cv_gettimeofday_two_arguments=no
22156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22158 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22159 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22160 if test $emacs_cv_gettimeofday_two_arguments = no; then
22162 cat >>confdefs.h <<\_ACEOF
22163 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22164 _ACEOF
22170 ok_so_far=yes
22171 { echo "$as_me:$LINENO: checking for socket" >&5
22172 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22173 if test "${ac_cv_func_socket+set}" = set; then
22174 echo $ECHO_N "(cached) $ECHO_C" >&6
22175 else
22176 cat >conftest.$ac_ext <<_ACEOF
22177 /* confdefs.h. */
22178 _ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22184 #define socket innocuous_socket
22186 /* System header to define __stub macros and hopefully few prototypes,
22187 which can conflict with char socket (); below.
22188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22189 <limits.h> exists even on freestanding compilers. */
22191 #ifdef __STDC__
22192 # include <limits.h>
22193 #else
22194 # include <assert.h>
22195 #endif
22197 #undef socket
22199 /* Override any GCC internal prototype to avoid an error.
22200 Use char because int might match the return type of a GCC
22201 builtin and then its argument prototype would still apply. */
22202 #ifdef __cplusplus
22203 extern "C"
22204 #endif
22205 char socket ();
22206 /* The GNU C library defines this for functions which it implements
22207 to always fail with ENOSYS. Some functions are actually named
22208 something starting with __ and the normal name is an alias. */
22209 #if defined __stub_socket || defined __stub___socket
22210 choke me
22211 #endif
22214 main ()
22216 return socket ();
22218 return 0;
22220 _ACEOF
22221 rm -f conftest.$ac_objext conftest$ac_exeext
22222 if { (ac_try="$ac_link"
22223 case "(($ac_try" in
22224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22225 *) ac_try_echo=$ac_try;;
22226 esac
22227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22228 (eval "$ac_link") 2>conftest.er1
22229 ac_status=$?
22230 grep -v '^ *+' conftest.er1 >conftest.err
22231 rm -f conftest.er1
22232 cat conftest.err >&5
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest$ac_exeext &&
22238 $as_test_x conftest$ac_exeext; then
22239 ac_cv_func_socket=yes
22240 else
22241 echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22244 ac_cv_func_socket=no
22247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22248 conftest$ac_exeext conftest.$ac_ext
22250 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22251 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22252 if test $ac_cv_func_socket = yes; then
22254 else
22255 ok_so_far=no
22258 if test $ok_so_far = yes; then
22259 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22260 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22261 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22262 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22263 echo $ECHO_N "(cached) $ECHO_C" >&6
22265 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22266 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22267 else
22268 # Is the header compilable?
22269 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22270 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22271 cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h. */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22277 $ac_includes_default
22278 #include <netinet/in.h>
22279 _ACEOF
22280 rm -f conftest.$ac_objext
22281 if { (ac_try="$ac_compile"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_compile") 2>conftest.er1
22288 ac_status=$?
22289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } && {
22294 test -z "$ac_c_werror_flag" ||
22295 test ! -s conftest.err
22296 } && test -s conftest.$ac_objext; then
22297 ac_header_compiler=yes
22298 else
22299 echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22302 ac_header_compiler=no
22305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22307 echo "${ECHO_T}$ac_header_compiler" >&6; }
22309 # Is the header present?
22310 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22311 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22312 cat >conftest.$ac_ext <<_ACEOF
22313 /* confdefs.h. */
22314 _ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22318 #include <netinet/in.h>
22319 _ACEOF
22320 if { (ac_try="$ac_cpp conftest.$ac_ext"
22321 case "(($ac_try" in
22322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323 *) ac_try_echo=$ac_try;;
22324 esac
22325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22327 ac_status=$?
22328 grep -v '^ *+' conftest.er1 >conftest.err
22329 rm -f conftest.er1
22330 cat conftest.err >&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } >/dev/null && {
22333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22334 test ! -s conftest.err
22335 }; then
22336 ac_header_preproc=yes
22337 else
22338 echo "$as_me: failed program was:" >&5
22339 sed 's/^/| /' conftest.$ac_ext >&5
22341 ac_header_preproc=no
22344 rm -f conftest.err conftest.$ac_ext
22345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22346 echo "${ECHO_T}$ac_header_preproc" >&6; }
22348 # So? What about this header?
22349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22350 yes:no: )
22351 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22352 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22353 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22354 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22355 ac_header_preproc=yes
22357 no:yes:* )
22358 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22359 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22360 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22361 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22363 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22364 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22365 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22366 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22367 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22368 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22369 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22372 esac
22373 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22374 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22375 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22376 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378 ac_cv_header_netinet_in_h=$ac_header_preproc
22380 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22381 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22384 if test $ac_cv_header_netinet_in_h = yes; then
22386 else
22387 ok_so_far=no
22392 if test $ok_so_far = yes; then
22393 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22394 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22395 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22396 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
22399 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22400 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22401 else
22402 # Is the header compilable?
22403 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22404 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22405 cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h. */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 $ac_includes_default
22412 #include <arpa/inet.h>
22413 _ACEOF
22414 rm -f conftest.$ac_objext
22415 if { (ac_try="$ac_compile"
22416 case "(($ac_try" in
22417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418 *) ac_try_echo=$ac_try;;
22419 esac
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421 (eval "$ac_compile") 2>conftest.er1
22422 ac_status=$?
22423 grep -v '^ *+' conftest.er1 >conftest.err
22424 rm -f conftest.er1
22425 cat conftest.err >&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); } && {
22428 test -z "$ac_c_werror_flag" ||
22429 test ! -s conftest.err
22430 } && test -s conftest.$ac_objext; then
22431 ac_header_compiler=yes
22432 else
22433 echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22436 ac_header_compiler=no
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22441 echo "${ECHO_T}$ac_header_compiler" >&6; }
22443 # Is the header present?
22444 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22445 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22446 cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h. */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22452 #include <arpa/inet.h>
22453 _ACEOF
22454 if { (ac_try="$ac_cpp conftest.$ac_ext"
22455 case "(($ac_try" in
22456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457 *) ac_try_echo=$ac_try;;
22458 esac
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22461 ac_status=$?
22462 grep -v '^ *+' conftest.er1 >conftest.err
22463 rm -f conftest.er1
22464 cat conftest.err >&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } >/dev/null && {
22467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22468 test ! -s conftest.err
22469 }; then
22470 ac_header_preproc=yes
22471 else
22472 echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22475 ac_header_preproc=no
22478 rm -f conftest.err conftest.$ac_ext
22479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22480 echo "${ECHO_T}$ac_header_preproc" >&6; }
22482 # So? What about this header?
22483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22484 yes:no: )
22485 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22486 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22487 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22488 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22489 ac_header_preproc=yes
22491 no:yes:* )
22492 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22493 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22494 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22495 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22496 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22497 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22498 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22499 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22500 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22501 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22502 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22503 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22506 esac
22507 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22508 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22509 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22510 echo $ECHO_N "(cached) $ECHO_C" >&6
22511 else
22512 ac_cv_header_arpa_inet_h=$ac_header_preproc
22514 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22515 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22518 if test $ac_cv_header_arpa_inet_h = yes; then
22520 else
22521 ok_so_far=no
22526 if test $ok_so_far = yes; then
22528 cat >>confdefs.h <<\_ACEOF
22529 #define HAVE_INET_SOCKETS 1
22530 _ACEOF
22535 for ac_header in sys/ioctl.h
22537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22542 echo $ECHO_N "(cached) $ECHO_C" >&6
22544 ac_res=`eval echo '${'$as_ac_Header'}'`
22545 { echo "$as_me:$LINENO: result: $ac_res" >&5
22546 echo "${ECHO_T}$ac_res" >&6; }
22547 else
22548 # Is the header compilable?
22549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22551 cat >conftest.$ac_ext <<_ACEOF
22552 /* confdefs.h. */
22553 _ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h. */
22557 $ac_includes_default
22558 #include <$ac_header>
22559 _ACEOF
22560 rm -f conftest.$ac_objext
22561 if { (ac_try="$ac_compile"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22565 esac
22566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22567 (eval "$ac_compile") 2>conftest.er1
22568 ac_status=$?
22569 grep -v '^ *+' conftest.er1 >conftest.err
22570 rm -f conftest.er1
22571 cat conftest.err >&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); } && {
22574 test -z "$ac_c_werror_flag" ||
22575 test ! -s conftest.err
22576 } && test -s conftest.$ac_objext; then
22577 ac_header_compiler=yes
22578 else
22579 echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22582 ac_header_compiler=no
22585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22587 echo "${ECHO_T}$ac_header_compiler" >&6; }
22589 # Is the header present?
22590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22592 cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h. */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22598 #include <$ac_header>
22599 _ACEOF
22600 if { (ac_try="$ac_cpp conftest.$ac_ext"
22601 case "(($ac_try" in
22602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22603 *) ac_try_echo=$ac_try;;
22604 esac
22605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22607 ac_status=$?
22608 grep -v '^ *+' conftest.er1 >conftest.err
22609 rm -f conftest.er1
22610 cat conftest.err >&5
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } >/dev/null && {
22613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22614 test ! -s conftest.err
22615 }; then
22616 ac_header_preproc=yes
22617 else
22618 echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22621 ac_header_preproc=no
22624 rm -f conftest.err conftest.$ac_ext
22625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22626 echo "${ECHO_T}$ac_header_preproc" >&6; }
22628 # So? What about this header?
22629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22630 yes:no: )
22631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22635 ac_header_preproc=yes
22637 no:yes:* )
22638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22652 esac
22653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 else
22658 eval "$as_ac_Header=\$ac_header_preproc"
22660 ac_res=`eval echo '${'$as_ac_Header'}'`
22661 { echo "$as_me:$LINENO: result: $ac_res" >&5
22662 echo "${ECHO_T}$ac_res" >&6; }
22665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22666 cat >>confdefs.h <<_ACEOF
22667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22668 _ACEOF
22672 done
22675 if test -f /usr/lpp/X11/bin/smt.exp; then
22677 cat >>confdefs.h <<\_ACEOF
22678 #define HAVE_AIX_SMT_EXP 1
22679 _ACEOF
22683 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22684 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22685 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22686 { echo "$as_me:$LINENO: result: yes" >&5
22687 echo "${ECHO_T}yes" >&6; }
22689 cat >>confdefs.h <<\_ACEOF
22690 #define HAVE_DEV_PTMX 1
22691 _ACEOF
22693 else
22694 { echo "$as_me:$LINENO: result: no" >&5
22695 echo "${ECHO_T}no" >&6; }
22698 { echo "$as_me:$LINENO: checking for pid_t" >&5
22699 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22700 if test "${ac_cv_type_pid_t+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22702 else
22703 cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h. */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h. */
22709 $ac_includes_default
22710 typedef pid_t ac__type_new_;
22712 main ()
22714 if ((ac__type_new_ *) 0)
22715 return 0;
22716 if (sizeof (ac__type_new_))
22717 return 0;
22719 return 0;
22721 _ACEOF
22722 rm -f conftest.$ac_objext
22723 if { (ac_try="$ac_compile"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22727 esac
22728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22729 (eval "$ac_compile") 2>conftest.er1
22730 ac_status=$?
22731 grep -v '^ *+' conftest.er1 >conftest.err
22732 rm -f conftest.er1
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } && {
22736 test -z "$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22738 } && test -s conftest.$ac_objext; then
22739 ac_cv_type_pid_t=yes
22740 else
22741 echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22744 ac_cv_type_pid_t=no
22747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22749 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22750 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22751 if test $ac_cv_type_pid_t = yes; then
22753 else
22755 cat >>confdefs.h <<_ACEOF
22756 #define pid_t int
22757 _ACEOF
22762 for ac_header in vfork.h
22764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22769 echo $ECHO_N "(cached) $ECHO_C" >&6
22771 ac_res=`eval echo '${'$as_ac_Header'}'`
22772 { echo "$as_me:$LINENO: result: $ac_res" >&5
22773 echo "${ECHO_T}$ac_res" >&6; }
22774 else
22775 # Is the header compilable?
22776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22778 cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h. */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 $ac_includes_default
22785 #include <$ac_header>
22786 _ACEOF
22787 rm -f conftest.$ac_objext
22788 if { (ac_try="$ac_compile"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22792 esac
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_compile") 2>conftest.er1
22795 ac_status=$?
22796 grep -v '^ *+' conftest.er1 >conftest.err
22797 rm -f conftest.er1
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } && {
22801 test -z "$ac_c_werror_flag" ||
22802 test ! -s conftest.err
22803 } && test -s conftest.$ac_objext; then
22804 ac_header_compiler=yes
22805 else
22806 echo "$as_me: failed program was:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22809 ac_header_compiler=no
22812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22814 echo "${ECHO_T}$ac_header_compiler" >&6; }
22816 # Is the header present?
22817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22819 cat >conftest.$ac_ext <<_ACEOF
22820 /* confdefs.h. */
22821 _ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22825 #include <$ac_header>
22826 _ACEOF
22827 if { (ac_try="$ac_cpp conftest.$ac_ext"
22828 case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22831 esac
22832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22834 ac_status=$?
22835 grep -v '^ *+' conftest.er1 >conftest.err
22836 rm -f conftest.er1
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } >/dev/null && {
22840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22841 test ! -s conftest.err
22842 }; then
22843 ac_header_preproc=yes
22844 else
22845 echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22848 ac_header_preproc=no
22851 rm -f conftest.err conftest.$ac_ext
22852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22853 echo "${ECHO_T}$ac_header_preproc" >&6; }
22855 # So? What about this header?
22856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22857 yes:no: )
22858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22862 ac_header_preproc=yes
22864 no:yes:* )
22865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22879 esac
22880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22884 else
22885 eval "$as_ac_Header=\$ac_header_preproc"
22887 ac_res=`eval echo '${'$as_ac_Header'}'`
22888 { echo "$as_me:$LINENO: result: $ac_res" >&5
22889 echo "${ECHO_T}$ac_res" >&6; }
22892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22893 cat >>confdefs.h <<_ACEOF
22894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22895 _ACEOF
22899 done
22903 for ac_func in fork vfork
22905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22910 else
22911 cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h. */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22919 #define $ac_func innocuous_$ac_func
22921 /* System header to define __stub macros and hopefully few prototypes,
22922 which can conflict with char $ac_func (); below.
22923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22924 <limits.h> exists even on freestanding compilers. */
22926 #ifdef __STDC__
22927 # include <limits.h>
22928 #else
22929 # include <assert.h>
22930 #endif
22932 #undef $ac_func
22934 /* Override any GCC internal prototype to avoid an error.
22935 Use char because int might match the return type of a GCC
22936 builtin and then its argument prototype would still apply. */
22937 #ifdef __cplusplus
22938 extern "C"
22939 #endif
22940 char $ac_func ();
22941 /* The GNU C library defines this for functions which it implements
22942 to always fail with ENOSYS. Some functions are actually named
22943 something starting with __ and the normal name is an alias. */
22944 #if defined __stub_$ac_func || defined __stub___$ac_func
22945 choke me
22946 #endif
22949 main ()
22951 return $ac_func ();
22953 return 0;
22955 _ACEOF
22956 rm -f conftest.$ac_objext conftest$ac_exeext
22957 if { (ac_try="$ac_link"
22958 case "(($ac_try" in
22959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22960 *) ac_try_echo=$ac_try;;
22961 esac
22962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22963 (eval "$ac_link") 2>conftest.er1
22964 ac_status=$?
22965 grep -v '^ *+' conftest.er1 >conftest.err
22966 rm -f conftest.er1
22967 cat conftest.err >&5
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } && {
22970 test -z "$ac_c_werror_flag" ||
22971 test ! -s conftest.err
22972 } && test -s conftest$ac_exeext &&
22973 $as_test_x conftest$ac_exeext; then
22974 eval "$as_ac_var=yes"
22975 else
22976 echo "$as_me: failed program was:" >&5
22977 sed 's/^/| /' conftest.$ac_ext >&5
22979 eval "$as_ac_var=no"
22982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22983 conftest$ac_exeext conftest.$ac_ext
22985 ac_res=`eval echo '${'$as_ac_var'}'`
22986 { echo "$as_me:$LINENO: result: $ac_res" >&5
22987 echo "${ECHO_T}$ac_res" >&6; }
22988 if test `eval echo '${'$as_ac_var'}'` = yes; then
22989 cat >>confdefs.h <<_ACEOF
22990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22991 _ACEOF
22994 done
22996 if test "x$ac_cv_func_fork" = xyes; then
22997 { echo "$as_me:$LINENO: checking for working fork" >&5
22998 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22999 if test "${ac_cv_func_fork_works+set}" = set; then
23000 echo $ECHO_N "(cached) $ECHO_C" >&6
23001 else
23002 if test "$cross_compiling" = yes; then
23003 ac_cv_func_fork_works=cross
23004 else
23005 cat >conftest.$ac_ext <<_ACEOF
23006 /* confdefs.h. */
23007 _ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h. */
23011 $ac_includes_default
23013 main ()
23016 /* By Ruediger Kuhlmann. */
23017 return fork () < 0;
23020 return 0;
23022 _ACEOF
23023 rm -f conftest$ac_exeext
23024 if { (ac_try="$ac_link"
23025 case "(($ac_try" in
23026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027 *) ac_try_echo=$ac_try;;
23028 esac
23029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23030 (eval "$ac_link") 2>&5
23031 ac_status=$?
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23034 { (case "(($ac_try" in
23035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036 *) ac_try_echo=$ac_try;;
23037 esac
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039 (eval "$ac_try") 2>&5
23040 ac_status=$?
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); }; }; then
23043 ac_cv_func_fork_works=yes
23044 else
23045 echo "$as_me: program exited with status $ac_status" >&5
23046 echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23049 ( exit $ac_status )
23050 ac_cv_func_fork_works=no
23052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23057 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23058 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23060 else
23061 ac_cv_func_fork_works=$ac_cv_func_fork
23063 if test "x$ac_cv_func_fork_works" = xcross; then
23064 case $host in
23065 *-*-amigaos* | *-*-msdosdjgpp*)
23066 # Override, as these systems have only a dummy fork() stub
23067 ac_cv_func_fork_works=no
23070 ac_cv_func_fork_works=yes
23072 esac
23073 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23074 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23076 ac_cv_func_vfork_works=$ac_cv_func_vfork
23077 if test "x$ac_cv_func_vfork" = xyes; then
23078 { echo "$as_me:$LINENO: checking for working vfork" >&5
23079 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23080 if test "${ac_cv_func_vfork_works+set}" = set; then
23081 echo $ECHO_N "(cached) $ECHO_C" >&6
23082 else
23083 if test "$cross_compiling" = yes; then
23084 ac_cv_func_vfork_works=cross
23085 else
23086 cat >conftest.$ac_ext <<_ACEOF
23087 /* confdefs.h. */
23088 _ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23092 /* Thanks to Paul Eggert for this test. */
23093 $ac_includes_default
23094 #include <sys/wait.h>
23095 #ifdef HAVE_VFORK_H
23096 # include <vfork.h>
23097 #endif
23098 /* On some sparc systems, changes by the child to local and incoming
23099 argument registers are propagated back to the parent. The compiler
23100 is told about this with #include <vfork.h>, but some compilers
23101 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23102 static variable whose address is put into a register that is
23103 clobbered by the vfork. */
23104 static void
23105 #ifdef __cplusplus
23106 sparc_address_test (int arg)
23107 # else
23108 sparc_address_test (arg) int arg;
23109 #endif
23111 static pid_t child;
23112 if (!child) {
23113 child = vfork ();
23114 if (child < 0) {
23115 perror ("vfork");
23116 _exit(2);
23118 if (!child) {
23119 arg = getpid();
23120 write(-1, "", 0);
23121 _exit (arg);
23127 main ()
23129 pid_t parent = getpid ();
23130 pid_t child;
23132 sparc_address_test (0);
23134 child = vfork ();
23136 if (child == 0) {
23137 /* Here is another test for sparc vfork register problems. This
23138 test uses lots of local variables, at least as many local
23139 variables as main has allocated so far including compiler
23140 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23141 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23142 reuse the register of parent for one of the local variables,
23143 since it will think that parent can't possibly be used any more
23144 in this routine. Assigning to the local variable will thus
23145 munge parent in the parent process. */
23146 pid_t
23147 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23148 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23149 /* Convince the compiler that p..p7 are live; otherwise, it might
23150 use the same hardware register for all 8 local variables. */
23151 if (p != p1 || p != p2 || p != p3 || p != p4
23152 || p != p5 || p != p6 || p != p7)
23153 _exit(1);
23155 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23156 from child file descriptors. If the child closes a descriptor
23157 before it execs or exits, this munges the parent's descriptor
23158 as well. Test for this by closing stdout in the child. */
23159 _exit(close(fileno(stdout)) != 0);
23160 } else {
23161 int status;
23162 struct stat st;
23164 while (wait(&status) != child)
23166 return (
23167 /* Was there some problem with vforking? */
23168 child < 0
23170 /* Did the child fail? (This shouldn't happen.) */
23171 || status
23173 /* Did the vfork/compiler bug occur? */
23174 || parent != getpid()
23176 /* Did the file descriptor bug occur? */
23177 || fstat(fileno(stdout), &st) != 0
23181 _ACEOF
23182 rm -f conftest$ac_exeext
23183 if { (ac_try="$ac_link"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23187 esac
23188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_link") 2>&5
23190 ac_status=$?
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23193 { (case "(($ac_try" in
23194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23195 *) ac_try_echo=$ac_try;;
23196 esac
23197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23198 (eval "$ac_try") 2>&5
23199 ac_status=$?
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); }; }; then
23202 ac_cv_func_vfork_works=yes
23203 else
23204 echo "$as_me: program exited with status $ac_status" >&5
23205 echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23208 ( exit $ac_status )
23209 ac_cv_func_vfork_works=no
23211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23216 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23217 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23220 if test "x$ac_cv_func_fork_works" = xcross; then
23221 ac_cv_func_vfork_works=$ac_cv_func_vfork
23222 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23223 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23226 if test "x$ac_cv_func_vfork_works" = xyes; then
23228 cat >>confdefs.h <<\_ACEOF
23229 #define HAVE_WORKING_VFORK 1
23230 _ACEOF
23232 else
23234 cat >>confdefs.h <<\_ACEOF
23235 #define vfork fork
23236 _ACEOF
23239 if test "x$ac_cv_func_fork_works" = xyes; then
23241 cat >>confdefs.h <<\_ACEOF
23242 #define HAVE_WORKING_FORK 1
23243 _ACEOF
23248 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23249 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23250 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23252 else
23253 cat >conftest.$ac_ext <<_ACEOF
23254 /* confdefs.h. */
23255 _ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h. */
23259 #include <langinfo.h>
23261 main ()
23263 char* cs = nl_langinfo(CODESET);
23265 return 0;
23267 _ACEOF
23268 rm -f conftest.$ac_objext conftest$ac_exeext
23269 if { (ac_try="$ac_link"
23270 case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23273 esac
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275 (eval "$ac_link") 2>conftest.er1
23276 ac_status=$?
23277 grep -v '^ *+' conftest.er1 >conftest.err
23278 rm -f conftest.er1
23279 cat conftest.err >&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } && {
23282 test -z "$ac_c_werror_flag" ||
23283 test ! -s conftest.err
23284 } && test -s conftest$ac_exeext &&
23285 $as_test_x conftest$ac_exeext; then
23286 emacs_cv_langinfo_codeset=yes
23287 else
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23291 emacs_cv_langinfo_codeset=no
23294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23295 conftest$ac_exeext conftest.$ac_ext
23298 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23299 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23300 if test $emacs_cv_langinfo_codeset = yes; then
23302 cat >>confdefs.h <<\_ACEOF
23303 #define HAVE_LANGINFO_CODESET 1
23304 _ACEOF
23308 { echo "$as_me:$LINENO: checking for size_t" >&5
23309 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23310 if test "${ac_cv_type_size_t+set}" = set; then
23311 echo $ECHO_N "(cached) $ECHO_C" >&6
23312 else
23313 cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h. */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23319 $ac_includes_default
23320 typedef size_t ac__type_new_;
23322 main ()
23324 if ((ac__type_new_ *) 0)
23325 return 0;
23326 if (sizeof (ac__type_new_))
23327 return 0;
23329 return 0;
23331 _ACEOF
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23337 esac
23338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23339 (eval "$ac_compile") 2>conftest.er1
23340 ac_status=$?
23341 grep -v '^ *+' conftest.er1 >conftest.err
23342 rm -f conftest.er1
23343 cat conftest.err >&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } && {
23346 test -z "$ac_c_werror_flag" ||
23347 test ! -s conftest.err
23348 } && test -s conftest.$ac_objext; then
23349 ac_cv_type_size_t=yes
23350 else
23351 echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23354 ac_cv_type_size_t=no
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23360 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23361 if test $ac_cv_type_size_t = yes; then
23363 cat >>confdefs.h <<_ACEOF
23364 #define HAVE_SIZE_T 1
23365 _ACEOF
23371 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23372 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23373 if test "${ac_cv_type_mbstate_t+set}" = set; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23375 else
23376 cat >conftest.$ac_ext <<_ACEOF
23377 /* confdefs.h. */
23378 _ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h. */
23382 $ac_includes_default
23383 # include <wchar.h>
23385 main ()
23387 mbstate_t x; return sizeof x;
23389 return 0;
23391 _ACEOF
23392 rm -f conftest.$ac_objext
23393 if { (ac_try="$ac_compile"
23394 case "(($ac_try" in
23395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396 *) ac_try_echo=$ac_try;;
23397 esac
23398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23399 (eval "$ac_compile") 2>conftest.er1
23400 ac_status=$?
23401 grep -v '^ *+' conftest.er1 >conftest.err
23402 rm -f conftest.er1
23403 cat conftest.err >&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } && {
23406 test -z "$ac_c_werror_flag" ||
23407 test ! -s conftest.err
23408 } && test -s conftest.$ac_objext; then
23409 ac_cv_type_mbstate_t=yes
23410 else
23411 echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23414 ac_cv_type_mbstate_t=no
23417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23420 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23421 if test $ac_cv_type_mbstate_t = yes; then
23423 cat >>confdefs.h <<\_ACEOF
23424 #define HAVE_MBSTATE_T 1
23425 _ACEOF
23427 else
23429 cat >>confdefs.h <<\_ACEOF
23430 #define mbstate_t int
23431 _ACEOF
23435 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23436 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23437 if test "${emacs_cv_c_restrict+set}" = set; then
23438 echo $ECHO_N "(cached) $ECHO_C" >&6
23439 else
23440 cat >conftest.$ac_ext <<_ACEOF
23441 /* confdefs.h. */
23442 _ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23446 void fred (int *restrict x);
23448 main ()
23452 return 0;
23454 _ACEOF
23455 rm -f conftest.$ac_objext
23456 if { (ac_try="$ac_compile"
23457 case "(($ac_try" in
23458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23459 *) ac_try_echo=$ac_try;;
23460 esac
23461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23462 (eval "$ac_compile") 2>conftest.er1
23463 ac_status=$?
23464 grep -v '^ *+' conftest.er1 >conftest.err
23465 rm -f conftest.er1
23466 cat conftest.err >&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } && {
23469 test -z "$ac_c_werror_flag" ||
23470 test ! -s conftest.err
23471 } && test -s conftest.$ac_objext; then
23472 emacs_cv_c_restrict=yes
23473 else
23474 echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23477 cat >conftest.$ac_ext <<_ACEOF
23478 /* confdefs.h. */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h. */
23483 void fred (int *__restrict x);
23485 main ()
23489 return 0;
23491 _ACEOF
23492 rm -f conftest.$ac_objext
23493 if { (ac_try="$ac_compile"
23494 case "(($ac_try" in
23495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496 *) ac_try_echo=$ac_try;;
23497 esac
23498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23499 (eval "$ac_compile") 2>conftest.er1
23500 ac_status=$?
23501 grep -v '^ *+' conftest.er1 >conftest.err
23502 rm -f conftest.er1
23503 cat conftest.err >&5
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); } && {
23506 test -z "$ac_c_werror_flag" ||
23507 test ! -s conftest.err
23508 } && test -s conftest.$ac_objext; then
23509 emacs_cv_c_restrict=__restrict
23510 else
23511 echo "$as_me: failed program was:" >&5
23512 sed 's/^/| /' conftest.$ac_ext >&5
23514 emacs_cv_c_restrict=no
23517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23523 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23524 case "$emacs_cv_c_restrict" in
23525 yes) emacs_restrict=restrict;;
23526 no) emacs_restrict="";;
23527 *) emacs_restrict="$emacs_cv_c_restrict";;
23528 esac
23529 if test "$emacs_restrict" != __restrict; then
23531 cat >>confdefs.h <<_ACEOF
23532 #define __restrict $emacs_restrict
23533 _ACEOF
23537 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23538 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23539 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23540 echo $ECHO_N "(cached) $ECHO_C" >&6
23541 else
23542 cat >conftest.$ac_ext <<_ACEOF
23543 /* confdefs.h. */
23544 _ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23548 void fred (int x[__restrict]);
23550 main ()
23554 return 0;
23556 _ACEOF
23557 rm -f conftest.$ac_objext
23558 if { (ac_try="$ac_compile"
23559 case "(($ac_try" in
23560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23561 *) ac_try_echo=$ac_try;;
23562 esac
23563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23564 (eval "$ac_compile") 2>conftest.er1
23565 ac_status=$?
23566 grep -v '^ *+' conftest.er1 >conftest.err
23567 rm -f conftest.er1
23568 cat conftest.err >&5
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } && {
23571 test -z "$ac_c_werror_flag" ||
23572 test ! -s conftest.err
23573 } && test -s conftest.$ac_objext; then
23574 emacs_cv_c_restrict_arr=yes
23575 else
23576 echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 emacs_cv_c_restrict_arr=no
23582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23584 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23585 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23586 if test "$emacs_cv_c_restrict_arr" = yes; then
23588 cat >>confdefs.h <<\_ACEOF
23589 #define __restrict_arr __restrict
23590 _ACEOF
23596 # Set up the CFLAGS for real compilation, so we can substitute it.
23597 CFLAGS="$REAL_CFLAGS"
23598 CPPFLAGS="$REAL_CPPFLAGS"
23600 #### Find out which version of Emacs this is.
23601 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23602 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23603 if test x"${version}" = x; then
23604 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23605 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23606 { (exit 1); exit 1; }; }
23609 ### Specify what sort of things we'll be editing into Makefile and config.h.
23610 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23646 cat >>confdefs.h <<_ACEOF
23647 #define EMACS_CONFIGURATION "${canonical}"
23648 _ACEOF
23651 cat >>confdefs.h <<_ACEOF
23652 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23653 _ACEOF
23656 cat >>confdefs.h <<_ACEOF
23657 #define config_machfile "${machfile}"
23658 _ACEOF
23661 cat >>confdefs.h <<_ACEOF
23662 #define config_opsysfile "${opsysfile}"
23663 _ACEOF
23666 cat >>confdefs.h <<_ACEOF
23667 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23668 _ACEOF
23671 cat >>confdefs.h <<_ACEOF
23672 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23673 _ACEOF
23676 cat >>confdefs.h <<_ACEOF
23677 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23678 _ACEOF
23681 cat >>confdefs.h <<_ACEOF
23682 #define UNEXEC_SRC ${UNEXEC_SRC}
23683 _ACEOF
23686 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23688 cat >>confdefs.h <<\_ACEOF
23689 #define HAVE_X_WINDOWS 1
23690 _ACEOF
23693 if test "${USE_X_TOOLKIT}" != "none" ; then
23695 cat >>confdefs.h <<\_ACEOF
23696 #define USE_X_TOOLKIT 1
23697 _ACEOF
23700 if test "${HAVE_X11}" = "yes" ; then
23702 cat >>confdefs.h <<\_ACEOF
23703 #define HAVE_X11 1
23704 _ACEOF
23707 if test "${HAVE_XFREE386}" = "yes" ; then
23709 cat >>confdefs.h <<\_ACEOF
23710 #define HAVE_XFREE386 1
23711 _ACEOF
23714 if test "${HAVE_MENUS}" = "yes" ; then
23716 cat >>confdefs.h <<\_ACEOF
23717 #define HAVE_MENUS 1
23718 _ACEOF
23721 if test "${GNU_MALLOC}" = "yes" ; then
23723 cat >>confdefs.h <<\_ACEOF
23724 #define GNU_MALLOC 1
23725 _ACEOF
23728 if test "${REL_ALLOC}" = "yes" ; then
23730 cat >>confdefs.h <<\_ACEOF
23731 #define REL_ALLOC 1
23732 _ACEOF
23741 #### Report on what we decided to do.
23742 #### Report GTK as a toolkit, even if it doesn't use Xt.
23743 #### It makes printing result more understandable as using GTK sets
23744 #### toolkit_scroll_bars to yes by default.
23745 if test "${HAVE_GTK}" = "yes"; then
23746 USE_X_TOOLKIT=GTK
23749 echo "
23750 Configured for \`${canonical}'.
23752 Where should the build process find the source code? ${srcdir}
23753 What operating system and machine description files should Emacs use?
23754 \`${opsysfile}' and \`${machfile}'
23755 What compiler should emacs be built with? ${CC} ${CFLAGS}
23756 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23757 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23758 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23759 What window system should Emacs use? ${window_system}
23760 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23762 if test -n "${x_includes}"; then
23763 echo " Where do we find X Windows header files? ${x_includes}"
23764 else
23765 echo " Where do we find X Windows header files? Standard dirs"
23767 if test -n "${x_libraries}"; then
23768 echo " Where do we find X Windows libraries? ${x_libraries}"
23769 else
23770 echo " Where do we find X Windows libraries? Standard dirs"
23773 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23774 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23775 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23776 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23777 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23778 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23779 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23780 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23781 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23782 echo
23784 if test $USE_XASSERTS = yes; then
23785 echo " Compiling with asserts turned on."
23786 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23787 echo
23790 if test "$USE_X_TOOLKIT" = GTK; then
23791 case "$canonical" in
23792 *cygwin*)
23793 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23794 will probably get a crash on startup. If this happens, please use another
23795 toolkit for Emacs. See etc/PROBLEMS for more information."
23797 esac
23801 if test "$HAVE_CARBON" = "yes"; then
23802 echo
23803 echo "Warning: The Mac Carbon port is currently unsupported and has
23804 known problems. It is not recommended for use by non-developers.
23805 Read the emacs-devel archives for more information."
23806 echo
23810 # Remove any trailing slashes in these variables.
23811 test "${prefix}" != NONE &&
23812 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23813 test "${exec_prefix}" != NONE &&
23814 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23816 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23817 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23818 ## from Makefile.c can correctly provide the arg `-traditional' to the
23819 ## C preprocessor.
23821 cat >conftest.$ac_ext <<_ACEOF
23822 /* confdefs.h. */
23823 _ACEOF
23824 cat confdefs.h >>conftest.$ac_ext
23825 cat >>conftest.$ac_ext <<_ACEOF
23826 /* end confdefs.h. */
23827 yes..yes
23828 _ACEOF
23829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23830 $EGREP "yes..yes" >/dev/null 2>&1; then
23831 CPP_NEED_TRADITIONAL=no
23832 else
23833 CPP_NEED_TRADITIONAL=yes
23835 rm -f conftest*
23838 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
23840 ac_config_commands="$ac_config_commands default"
23842 cat >confcache <<\_ACEOF
23843 # This file is a shell script that caches the results of configure
23844 # tests run on this system so they can be shared between configure
23845 # scripts and configure runs, see configure's option --config-cache.
23846 # It is not useful on other systems. If it contains results you don't
23847 # want to keep, you may remove or edit it.
23849 # config.status only pays attention to the cache file if you give it
23850 # the --recheck option to rerun configure.
23852 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23853 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23854 # following values.
23856 _ACEOF
23858 # The following way of writing the cache mishandles newlines in values,
23859 # but we know of no workaround that is simple, portable, and efficient.
23860 # So, we kill variables containing newlines.
23861 # Ultrix sh set writes to stderr and can't be redirected directly,
23862 # and sets the high bit in the cache file unless we assign to the vars.
23864 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23865 eval ac_val=\$$ac_var
23866 case $ac_val in #(
23867 *${as_nl}*)
23868 case $ac_var in #(
23869 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23870 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23871 esac
23872 case $ac_var in #(
23873 _ | IFS | as_nl) ;; #(
23874 *) $as_unset $ac_var ;;
23875 esac ;;
23876 esac
23877 done
23879 (set) 2>&1 |
23880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23881 *${as_nl}ac_space=\ *)
23882 # `set' does not quote correctly, so add quotes (double-quote
23883 # substitution turns \\\\ into \\, and sed turns \\ into \).
23884 sed -n \
23885 "s/'/'\\\\''/g;
23886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23887 ;; #(
23889 # `set' quotes correctly as required by POSIX, so do not add quotes.
23890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23892 esac |
23893 sort
23895 sed '
23896 /^ac_cv_env_/b end
23897 t clear
23898 :clear
23899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23900 t end
23901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23902 :end' >>confcache
23903 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23904 if test -w "$cache_file"; then
23905 test "x$cache_file" != "x/dev/null" &&
23906 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23907 echo "$as_me: updating cache $cache_file" >&6;}
23908 cat confcache >$cache_file
23909 else
23910 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23911 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23914 rm -f confcache
23916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23917 # Let make expand exec_prefix.
23918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23920 DEFS=-DHAVE_CONFIG_H
23922 ac_libobjs=
23923 ac_ltlibobjs=
23924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23925 # 1. Remove the extension, and $U if already installed.
23926 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23927 ac_i=`echo "$ac_i" | sed "$ac_script"`
23928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23929 # will be set to the directory where LIBOBJS objects are built.
23930 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23931 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23932 done
23933 LIBOBJS=$ac_libobjs
23935 LTLIBOBJS=$ac_ltlibobjs
23939 : ${CONFIG_STATUS=./config.status}
23940 ac_clean_files_save=$ac_clean_files
23941 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23942 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23943 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23944 cat >$CONFIG_STATUS <<_ACEOF
23945 #! $SHELL
23946 # Generated by $as_me.
23947 # Run this file to recreate the current configuration.
23948 # Compiler output produced by configure, useful for debugging
23949 # configure, is in config.log if it exists.
23951 debug=false
23952 ac_cs_recheck=false
23953 ac_cs_silent=false
23954 SHELL=\${CONFIG_SHELL-$SHELL}
23955 _ACEOF
23957 cat >>$CONFIG_STATUS <<\_ACEOF
23958 ## --------------------- ##
23959 ## M4sh Initialization. ##
23960 ## --------------------- ##
23962 # Be more Bourne compatible
23963 DUALCASE=1; export DUALCASE # for MKS sh
23964 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23965 emulate sh
23966 NULLCMD=:
23967 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23968 # is contrary to our usage. Disable this feature.
23969 alias -g '${1+"$@"}'='"$@"'
23970 setopt NO_GLOB_SUBST
23971 else
23972 case `(set -o) 2>/dev/null` in
23973 *posix*) set -o posix ;;
23974 esac
23981 # PATH needs CR
23982 # Avoid depending upon Character Ranges.
23983 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23984 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23985 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23986 as_cr_digits='0123456789'
23987 as_cr_alnum=$as_cr_Letters$as_cr_digits
23989 # The user is always right.
23990 if test "${PATH_SEPARATOR+set}" != set; then
23991 echo "#! /bin/sh" >conf$$.sh
23992 echo "exit 0" >>conf$$.sh
23993 chmod +x conf$$.sh
23994 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23995 PATH_SEPARATOR=';'
23996 else
23997 PATH_SEPARATOR=:
23999 rm -f conf$$.sh
24002 # Support unset when possible.
24003 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24004 as_unset=unset
24005 else
24006 as_unset=false
24010 # IFS
24011 # We need space, tab and new line, in precisely that order. Quoting is
24012 # there to prevent editors from complaining about space-tab.
24013 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24014 # splitting by setting IFS to empty value.)
24015 as_nl='
24017 IFS=" "" $as_nl"
24019 # Find who we are. Look in the path if we contain no directory separator.
24020 case $0 in
24021 *[\\/]* ) as_myself=$0 ;;
24022 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24023 for as_dir in $PATH
24025 IFS=$as_save_IFS
24026 test -z "$as_dir" && as_dir=.
24027 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24028 done
24029 IFS=$as_save_IFS
24032 esac
24033 # We did not find ourselves, most probably we were run as `sh COMMAND'
24034 # in which case we are not to be found in the path.
24035 if test "x$as_myself" = x; then
24036 as_myself=$0
24038 if test ! -f "$as_myself"; then
24039 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24040 { (exit 1); exit 1; }
24043 # Work around bugs in pre-3.0 UWIN ksh.
24044 for as_var in ENV MAIL MAILPATH
24045 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24046 done
24047 PS1='$ '
24048 PS2='> '
24049 PS4='+ '
24051 # NLS nuisances.
24052 for as_var in \
24053 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24054 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24055 LC_TELEPHONE LC_TIME
24057 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24058 eval $as_var=C; export $as_var
24059 else
24060 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24062 done
24064 # Required to use basename.
24065 if expr a : '\(a\)' >/dev/null 2>&1 &&
24066 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24067 as_expr=expr
24068 else
24069 as_expr=false
24072 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24073 as_basename=basename
24074 else
24075 as_basename=false
24079 # Name of the executable.
24080 as_me=`$as_basename -- "$0" ||
24081 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24082 X"$0" : 'X\(//\)$' \| \
24083 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24084 echo X/"$0" |
24085 sed '/^.*\/\([^/][^/]*\)\/*$/{
24086 s//\1/
24089 /^X\/\(\/\/\)$/{
24090 s//\1/
24093 /^X\/\(\/\).*/{
24094 s//\1/
24097 s/.*/./; q'`
24099 # CDPATH.
24100 $as_unset CDPATH
24104 as_lineno_1=$LINENO
24105 as_lineno_2=$LINENO
24106 test "x$as_lineno_1" != "x$as_lineno_2" &&
24107 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24109 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24110 # uniformly replaced by the line number. The first 'sed' inserts a
24111 # line-number line after each line using $LINENO; the second 'sed'
24112 # does the real work. The second script uses 'N' to pair each
24113 # line-number line with the line containing $LINENO, and appends
24114 # trailing '-' during substitution so that $LINENO is not a special
24115 # case at line end.
24116 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24117 # scripts with optimization help from Paolo Bonzini. Blame Lee
24118 # E. McMahon (1931-1989) for sed's syntax. :-)
24119 sed -n '
24121 /[$]LINENO/=
24122 ' <$as_myself |
24123 sed '
24124 s/[$]LINENO.*/&-/
24125 t lineno
24127 :lineno
24129 :loop
24130 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24131 t loop
24132 s/-\n.*//
24133 ' >$as_me.lineno &&
24134 chmod +x "$as_me.lineno" ||
24135 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24136 { (exit 1); exit 1; }; }
24138 # Don't try to exec as it changes $[0], causing all sort of problems
24139 # (the dirname of $[0] is not the place where we might find the
24140 # original and so on. Autoconf is especially sensitive to this).
24141 . "./$as_me.lineno"
24142 # Exit status is that of the last command.
24143 exit
24147 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24148 as_dirname=dirname
24149 else
24150 as_dirname=false
24153 ECHO_C= ECHO_N= ECHO_T=
24154 case `echo -n x` in
24155 -n*)
24156 case `echo 'x\c'` in
24157 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24158 *) ECHO_C='\c';;
24159 esac;;
24161 ECHO_N='-n';;
24162 esac
24164 if expr a : '\(a\)' >/dev/null 2>&1 &&
24165 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24166 as_expr=expr
24167 else
24168 as_expr=false
24171 rm -f conf$$ conf$$.exe conf$$.file
24172 if test -d conf$$.dir; then
24173 rm -f conf$$.dir/conf$$.file
24174 else
24175 rm -f conf$$.dir
24176 mkdir conf$$.dir
24178 echo >conf$$.file
24179 if ln -s conf$$.file conf$$ 2>/dev/null; then
24180 as_ln_s='ln -s'
24181 # ... but there are two gotchas:
24182 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24183 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24184 # In both cases, we have to default to `cp -p'.
24185 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24186 as_ln_s='cp -p'
24187 elif ln conf$$.file conf$$ 2>/dev/null; then
24188 as_ln_s=ln
24189 else
24190 as_ln_s='cp -p'
24192 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24193 rmdir conf$$.dir 2>/dev/null
24195 if mkdir -p . 2>/dev/null; then
24196 as_mkdir_p=:
24197 else
24198 test -d ./-p && rmdir ./-p
24199 as_mkdir_p=false
24202 if test -x / >/dev/null 2>&1; then
24203 as_test_x='test -x'
24204 else
24205 if ls -dL / >/dev/null 2>&1; then
24206 as_ls_L_option=L
24207 else
24208 as_ls_L_option=
24210 as_test_x='
24211 eval sh -c '\''
24212 if test -d "$1"; then
24213 test -d "$1/.";
24214 else
24215 case $1 in
24216 -*)set "./$1";;
24217 esac;
24218 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24219 ???[sx]*):;;*)false;;esac;fi
24220 '\'' sh
24223 as_executable_p=$as_test_x
24225 # Sed expression to map a string onto a valid CPP name.
24226 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24228 # Sed expression to map a string onto a valid variable name.
24229 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24232 exec 6>&1
24234 # Save the log message, to keep $[0] and so on meaningful, and to
24235 # report actual input values of CONFIG_FILES etc. instead of their
24236 # values after options handling.
24237 ac_log="
24238 This file was extended by $as_me, which was
24239 generated by GNU Autoconf 2.61. Invocation command line was
24241 CONFIG_FILES = $CONFIG_FILES
24242 CONFIG_HEADERS = $CONFIG_HEADERS
24243 CONFIG_LINKS = $CONFIG_LINKS
24244 CONFIG_COMMANDS = $CONFIG_COMMANDS
24245 $ $0 $@
24247 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24250 _ACEOF
24252 cat >>$CONFIG_STATUS <<_ACEOF
24253 # Files that config.status was made for.
24254 config_files="$ac_config_files"
24255 config_headers="$ac_config_headers"
24256 config_commands="$ac_config_commands"
24258 _ACEOF
24260 cat >>$CONFIG_STATUS <<\_ACEOF
24261 ac_cs_usage="\
24262 \`$as_me' instantiates files from templates according to the
24263 current configuration.
24265 Usage: $0 [OPTIONS] [FILE]...
24267 -h, --help print this help, then exit
24268 -V, --version print version number and configuration settings, then exit
24269 -q, --quiet do not print progress messages
24270 -d, --debug don't remove temporary files
24271 --recheck update $as_me by reconfiguring in the same conditions
24272 --file=FILE[:TEMPLATE]
24273 instantiate the configuration file FILE
24274 --header=FILE[:TEMPLATE]
24275 instantiate the configuration header FILE
24277 Configuration files:
24278 $config_files
24280 Configuration headers:
24281 $config_headers
24283 Configuration commands:
24284 $config_commands
24286 Report bugs to <bug-autoconf@gnu.org>."
24288 _ACEOF
24289 cat >>$CONFIG_STATUS <<_ACEOF
24290 ac_cs_version="\\
24291 config.status
24292 configured by $0, generated by GNU Autoconf 2.61,
24293 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24295 Copyright (C) 2006 Free Software Foundation, Inc.
24296 This config.status script is free software; the Free Software Foundation
24297 gives unlimited permission to copy, distribute and modify it."
24299 ac_pwd='$ac_pwd'
24300 srcdir='$srcdir'
24301 INSTALL='$INSTALL'
24302 _ACEOF
24304 cat >>$CONFIG_STATUS <<\_ACEOF
24305 # If no file are specified by the user, then we need to provide default
24306 # value. By we need to know if files were specified by the user.
24307 ac_need_defaults=:
24308 while test $# != 0
24310 case $1 in
24311 --*=*)
24312 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24313 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24314 ac_shift=:
24317 ac_option=$1
24318 ac_optarg=$2
24319 ac_shift=shift
24321 esac
24323 case $ac_option in
24324 # Handling of the options.
24325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24326 ac_cs_recheck=: ;;
24327 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24328 echo "$ac_cs_version"; exit ;;
24329 --debug | --debu | --deb | --de | --d | -d )
24330 debug=: ;;
24331 --file | --fil | --fi | --f )
24332 $ac_shift
24333 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24334 ac_need_defaults=false;;
24335 --header | --heade | --head | --hea )
24336 $ac_shift
24337 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24338 ac_need_defaults=false;;
24339 --he | --h)
24340 # Conflict between --help and --header
24341 { echo "$as_me: error: ambiguous option: $1
24342 Try \`$0 --help' for more information." >&2
24343 { (exit 1); exit 1; }; };;
24344 --help | --hel | -h )
24345 echo "$ac_cs_usage"; exit ;;
24346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24347 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24348 ac_cs_silent=: ;;
24350 # This is an error.
24351 -*) { echo "$as_me: error: unrecognized option: $1
24352 Try \`$0 --help' for more information." >&2
24353 { (exit 1); exit 1; }; } ;;
24355 *) ac_config_targets="$ac_config_targets $1"
24356 ac_need_defaults=false ;;
24358 esac
24359 shift
24360 done
24362 ac_configure_extra_args=
24364 if $ac_cs_silent; then
24365 exec 6>/dev/null
24366 ac_configure_extra_args="$ac_configure_extra_args --silent"
24369 _ACEOF
24370 cat >>$CONFIG_STATUS <<_ACEOF
24371 if \$ac_cs_recheck; then
24372 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24373 CONFIG_SHELL=$SHELL
24374 export CONFIG_SHELL
24375 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24378 _ACEOF
24379 cat >>$CONFIG_STATUS <<\_ACEOF
24380 exec 5>>config.log
24382 echo
24383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24384 ## Running $as_me. ##
24385 _ASBOX
24386 echo "$ac_log"
24387 } >&5
24389 _ACEOF
24390 cat >>$CONFIG_STATUS <<_ACEOF
24392 # INIT-COMMANDS
24394 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24396 _ACEOF
24398 cat >>$CONFIG_STATUS <<\_ACEOF
24400 # Handling of arguments.
24401 for ac_config_target in $ac_config_targets
24403 case $ac_config_target in
24404 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24405 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24406 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24407 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24408 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24409 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24410 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24411 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24412 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24413 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24414 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24415 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24416 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24418 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24419 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24420 { (exit 1); exit 1; }; };;
24421 esac
24422 done
24425 # If the user did not use the arguments to specify the items to instantiate,
24426 # then the envvar interface is used. Set only those that are not.
24427 # We use the long form for the default assignment because of an extremely
24428 # bizarre bug on SunOS 4.1.3.
24429 if $ac_need_defaults; then
24430 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24431 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24432 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24435 # Have a temporary directory for convenience. Make it in the build tree
24436 # simply because there is no reason against having it here, and in addition,
24437 # creating and moving files from /tmp can sometimes cause problems.
24438 # Hook for its removal unless debugging.
24439 # Note that there is a small window in which the directory will not be cleaned:
24440 # after its creation but before its name has been assigned to `$tmp'.
24441 $debug ||
24443 tmp=
24444 trap 'exit_status=$?
24445 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24447 trap '{ (exit 1); exit 1; }' 1 2 13 15
24449 # Create a (secure) tmp directory for tmp files.
24452 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24453 test -n "$tmp" && test -d "$tmp"
24454 } ||
24456 tmp=./conf$$-$RANDOM
24457 (umask 077 && mkdir "$tmp")
24458 } ||
24460 echo "$me: cannot create a temporary directory in ." >&2
24461 { (exit 1); exit 1; }
24465 # Set up the sed scripts for CONFIG_FILES section.
24468 # No need to generate the scripts if there are no CONFIG_FILES.
24469 # This happens for instance when ./config.status config.h
24470 if test -n "$CONFIG_FILES"; then
24472 _ACEOF
24476 ac_delim='%!_!# '
24477 for ac_last_try in false false false false false :; do
24478 cat >conf$$subs.sed <<_ACEOF
24479 SHELL!$SHELL$ac_delim
24480 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24481 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24482 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24483 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24484 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24485 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24486 exec_prefix!$exec_prefix$ac_delim
24487 prefix!$prefix$ac_delim
24488 program_transform_name!$program_transform_name$ac_delim
24489 bindir!$bindir$ac_delim
24490 sbindir!$sbindir$ac_delim
24491 libexecdir!$libexecdir$ac_delim
24492 datarootdir!$datarootdir$ac_delim
24493 datadir!$datadir$ac_delim
24494 sysconfdir!$sysconfdir$ac_delim
24495 sharedstatedir!$sharedstatedir$ac_delim
24496 localstatedir!$localstatedir$ac_delim
24497 includedir!$includedir$ac_delim
24498 oldincludedir!$oldincludedir$ac_delim
24499 docdir!$docdir$ac_delim
24500 infodir!$infodir$ac_delim
24501 htmldir!$htmldir$ac_delim
24502 dvidir!$dvidir$ac_delim
24503 pdfdir!$pdfdir$ac_delim
24504 psdir!$psdir$ac_delim
24505 libdir!$libdir$ac_delim
24506 localedir!$localedir$ac_delim
24507 mandir!$mandir$ac_delim
24508 DEFS!$DEFS$ac_delim
24509 ECHO_C!$ECHO_C$ac_delim
24510 ECHO_N!$ECHO_N$ac_delim
24511 ECHO_T!$ECHO_T$ac_delim
24512 LIBS!$LIBS$ac_delim
24513 build_alias!$build_alias$ac_delim
24514 host_alias!$host_alias$ac_delim
24515 target_alias!$target_alias$ac_delim
24516 MAINT!$MAINT$ac_delim
24517 build!$build$ac_delim
24518 build_cpu!$build_cpu$ac_delim
24519 build_vendor!$build_vendor$ac_delim
24520 build_os!$build_os$ac_delim
24521 host!$host$ac_delim
24522 host_cpu!$host_cpu$ac_delim
24523 host_vendor!$host_vendor$ac_delim
24524 host_os!$host_os$ac_delim
24525 CC!$CC$ac_delim
24526 CFLAGS!$CFLAGS$ac_delim
24527 LDFLAGS!$LDFLAGS$ac_delim
24528 CPPFLAGS!$CPPFLAGS$ac_delim
24529 ac_ct_CC!$ac_ct_CC$ac_delim
24530 EXEEXT!$EXEEXT$ac_delim
24531 OBJEXT!$OBJEXT$ac_delim
24532 CPP!$CPP$ac_delim
24533 GREP!$GREP$ac_delim
24534 EGREP!$EGREP$ac_delim
24535 LN_S!$LN_S$ac_delim
24536 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24537 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24538 INSTALL_DATA!$INSTALL_DATA$ac_delim
24539 RANLIB!$RANLIB$ac_delim
24540 INSTALL_INFO!$INSTALL_INFO$ac_delim
24541 GZIP_PROG!$GZIP_PROG$ac_delim
24542 MAKEINFO!$MAKEINFO$ac_delim
24543 LIBSOUND!$LIBSOUND$ac_delim
24544 PKG_CONFIG!$PKG_CONFIG$ac_delim
24545 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24546 ALSA_LIBS!$ALSA_LIBS$ac_delim
24547 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24548 SET_MAKE!$SET_MAKE$ac_delim
24549 XMKMF!$XMKMF$ac_delim
24550 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24551 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24552 RSVG_LIBS!$RSVG_LIBS$ac_delim
24553 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24554 GTK_LIBS!$GTK_LIBS$ac_delim
24555 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24556 XFT_LIBS!$XFT_LIBS$ac_delim
24557 ALLOCA!$ALLOCA$ac_delim
24558 liblockfile!$liblockfile$ac_delim
24559 LIBOBJS!$LIBOBJS$ac_delim
24560 NEED_SETGID!$NEED_SETGID$ac_delim
24561 KMEM_GROUP!$KMEM_GROUP$ac_delim
24562 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24563 GETOPT_H!$GETOPT_H$ac_delim
24564 GETOPTOBJS!$GETOPTOBJS$ac_delim
24565 version!$version$ac_delim
24566 configuration!$configuration$ac_delim
24567 canonical!$canonical$ac_delim
24568 srcdir!$srcdir$ac_delim
24569 lispdir!$lispdir$ac_delim
24570 locallisppath!$locallisppath$ac_delim
24571 lisppath!$lisppath$ac_delim
24572 x_default_search_path!$x_default_search_path$ac_delim
24573 etcdir!$etcdir$ac_delim
24574 archlibdir!$archlibdir$ac_delim
24575 bitmapdir!$bitmapdir$ac_delim
24576 _ACEOF
24578 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24579 break
24580 elif $ac_last_try; then
24581 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24582 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24583 { (exit 1); exit 1; }; }
24584 else
24585 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24587 done
24589 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24590 if test -n "$ac_eof"; then
24591 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24592 ac_eof=`expr $ac_eof + 1`
24595 cat >>$CONFIG_STATUS <<_ACEOF
24596 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24598 _ACEOF
24599 sed '
24600 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24601 s/^/s,@/; s/!/@,|#_!!_#|/
24604 s/'"$ac_delim"'$/,g/; t
24605 s/$/\\/; p
24606 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24607 ' >>$CONFIG_STATUS <conf$$subs.sed
24608 rm -f conf$$subs.sed
24609 cat >>$CONFIG_STATUS <<_ACEOF
24610 CEOF$ac_eof
24611 _ACEOF
24614 ac_delim='%!_!# '
24615 for ac_last_try in false false false false false :; do
24616 cat >conf$$subs.sed <<_ACEOF
24617 gamedir!$gamedir$ac_delim
24618 gameuser!$gameuser$ac_delim
24619 c_switch_system!$c_switch_system$ac_delim
24620 c_switch_machine!$c_switch_machine$ac_delim
24621 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24622 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24623 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24624 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24625 machfile!$machfile$ac_delim
24626 opsysfile!$opsysfile$ac_delim
24627 carbon_appdir!$carbon_appdir$ac_delim
24628 LTLIBOBJS!$LTLIBOBJS$ac_delim
24629 _ACEOF
24631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
24632 break
24633 elif $ac_last_try; then
24634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24635 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24636 { (exit 1); exit 1; }; }
24637 else
24638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24640 done
24642 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24643 if test -n "$ac_eof"; then
24644 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24645 ac_eof=`expr $ac_eof + 1`
24648 cat >>$CONFIG_STATUS <<_ACEOF
24649 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24651 _ACEOF
24652 sed '
24653 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24654 s/^/s,@/; s/!/@,|#_!!_#|/
24657 s/'"$ac_delim"'$/,g/; t
24658 s/$/\\/; p
24659 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24660 ' >>$CONFIG_STATUS <conf$$subs.sed
24661 rm -f conf$$subs.sed
24662 cat >>$CONFIG_STATUS <<_ACEOF
24663 :end
24664 s/|#_!!_#|//g
24665 CEOF$ac_eof
24666 _ACEOF
24669 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24670 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24671 # trailing colons and then remove the whole line if VPATH becomes empty
24672 # (actually we leave an empty line to preserve line numbers).
24673 if test "x$srcdir" = x.; then
24674 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24675 s/:*\$(srcdir):*/:/
24676 s/:*\${srcdir}:*/:/
24677 s/:*@srcdir@:*/:/
24678 s/^\([^=]*=[ ]*\):*/\1/
24679 s/:*$//
24680 s/^[^=]*=[ ]*$//
24684 cat >>$CONFIG_STATUS <<\_ACEOF
24685 fi # test -n "$CONFIG_FILES"
24688 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24690 case $ac_tag in
24691 :[FHLC]) ac_mode=$ac_tag; continue;;
24692 esac
24693 case $ac_mode$ac_tag in
24694 :[FHL]*:*);;
24695 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24696 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24697 { (exit 1); exit 1; }; };;
24698 :[FH]-) ac_tag=-:-;;
24699 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24700 esac
24701 ac_save_IFS=$IFS
24702 IFS=:
24703 set x $ac_tag
24704 IFS=$ac_save_IFS
24705 shift
24706 ac_file=$1
24707 shift
24709 case $ac_mode in
24710 :L) ac_source=$1;;
24711 :[FH])
24712 ac_file_inputs=
24713 for ac_f
24715 case $ac_f in
24716 -) ac_f="$tmp/stdin";;
24717 *) # Look for the file first in the build tree, then in the source tree
24718 # (if the path is not absolute). The absolute path cannot be DOS-style,
24719 # because $ac_f cannot contain `:'.
24720 test -f "$ac_f" ||
24721 case $ac_f in
24722 [\\/$]*) false;;
24723 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24724 esac ||
24725 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24726 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24727 { (exit 1); exit 1; }; };;
24728 esac
24729 ac_file_inputs="$ac_file_inputs $ac_f"
24730 done
24732 # Let's still pretend it is `configure' which instantiates (i.e., don't
24733 # use $as_me), people would be surprised to read:
24734 # /* config.h. Generated by config.status. */
24735 configure_input="Generated from "`IFS=:
24736 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24737 if test x"$ac_file" != x-; then
24738 configure_input="$ac_file. $configure_input"
24739 { echo "$as_me:$LINENO: creating $ac_file" >&5
24740 echo "$as_me: creating $ac_file" >&6;}
24743 case $ac_tag in
24744 *:-:* | *:-) cat >"$tmp/stdin";;
24745 esac
24747 esac
24749 ac_dir=`$as_dirname -- "$ac_file" ||
24750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24751 X"$ac_file" : 'X\(//\)[^/]' \| \
24752 X"$ac_file" : 'X\(//\)$' \| \
24753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24754 echo X"$ac_file" |
24755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24756 s//\1/
24759 /^X\(\/\/\)[^/].*/{
24760 s//\1/
24763 /^X\(\/\/\)$/{
24764 s//\1/
24767 /^X\(\/\).*/{
24768 s//\1/
24771 s/.*/./; q'`
24772 { as_dir="$ac_dir"
24773 case $as_dir in #(
24774 -*) as_dir=./$as_dir;;
24775 esac
24776 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24777 as_dirs=
24778 while :; do
24779 case $as_dir in #(
24780 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24781 *) as_qdir=$as_dir;;
24782 esac
24783 as_dirs="'$as_qdir' $as_dirs"
24784 as_dir=`$as_dirname -- "$as_dir" ||
24785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24786 X"$as_dir" : 'X\(//\)[^/]' \| \
24787 X"$as_dir" : 'X\(//\)$' \| \
24788 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24789 echo X"$as_dir" |
24790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24791 s//\1/
24794 /^X\(\/\/\)[^/].*/{
24795 s//\1/
24798 /^X\(\/\/\)$/{
24799 s//\1/
24802 /^X\(\/\).*/{
24803 s//\1/
24806 s/.*/./; q'`
24807 test -d "$as_dir" && break
24808 done
24809 test -z "$as_dirs" || eval "mkdir $as_dirs"
24810 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24811 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24812 { (exit 1); exit 1; }; }; }
24813 ac_builddir=.
24815 case "$ac_dir" in
24816 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24818 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24819 # A ".." for each directory in $ac_dir_suffix.
24820 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24821 case $ac_top_builddir_sub in
24822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24824 esac ;;
24825 esac
24826 ac_abs_top_builddir=$ac_pwd
24827 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24828 # for backward compatibility:
24829 ac_top_builddir=$ac_top_build_prefix
24831 case $srcdir in
24832 .) # We are building in place.
24833 ac_srcdir=.
24834 ac_top_srcdir=$ac_top_builddir_sub
24835 ac_abs_top_srcdir=$ac_pwd ;;
24836 [\\/]* | ?:[\\/]* ) # Absolute name.
24837 ac_srcdir=$srcdir$ac_dir_suffix;
24838 ac_top_srcdir=$srcdir
24839 ac_abs_top_srcdir=$srcdir ;;
24840 *) # Relative name.
24841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24842 ac_top_srcdir=$ac_top_build_prefix$srcdir
24843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24844 esac
24845 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24848 case $ac_mode in
24851 # CONFIG_FILE
24854 case $INSTALL in
24855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24857 esac
24858 _ACEOF
24860 cat >>$CONFIG_STATUS <<\_ACEOF
24861 # If the template does not know about datarootdir, expand it.
24862 # FIXME: This hack should be removed a few years after 2.60.
24863 ac_datarootdir_hack=; ac_datarootdir_seen=
24865 case `sed -n '/datarootdir/ {
24869 /@datadir@/p
24870 /@docdir@/p
24871 /@infodir@/p
24872 /@localedir@/p
24873 /@mandir@/p
24874 ' $ac_file_inputs` in
24875 *datarootdir*) ac_datarootdir_seen=yes;;
24876 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24877 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24878 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24879 _ACEOF
24880 cat >>$CONFIG_STATUS <<_ACEOF
24881 ac_datarootdir_hack='
24882 s&@datadir@&$datadir&g
24883 s&@docdir@&$docdir&g
24884 s&@infodir@&$infodir&g
24885 s&@localedir@&$localedir&g
24886 s&@mandir@&$mandir&g
24887 s&\\\${datarootdir}&$datarootdir&g' ;;
24888 esac
24889 _ACEOF
24891 # Neutralize VPATH when `$srcdir' = `.'.
24892 # Shell code in configure.ac might set extrasub.
24893 # FIXME: do we really want to maintain this feature?
24894 cat >>$CONFIG_STATUS <<_ACEOF
24895 sed "$ac_vpsub
24896 $extrasub
24897 _ACEOF
24898 cat >>$CONFIG_STATUS <<\_ACEOF
24900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24901 s&@configure_input@&$configure_input&;t t
24902 s&@top_builddir@&$ac_top_builddir_sub&;t t
24903 s&@srcdir@&$ac_srcdir&;t t
24904 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24905 s&@top_srcdir@&$ac_top_srcdir&;t t
24906 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24907 s&@builddir@&$ac_builddir&;t t
24908 s&@abs_builddir@&$ac_abs_builddir&;t t
24909 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24910 s&@INSTALL@&$ac_INSTALL&;t t
24911 $ac_datarootdir_hack
24912 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24914 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24915 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24916 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24917 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24918 which seems to be undefined. Please make sure it is defined." >&5
24919 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24920 which seems to be undefined. Please make sure it is defined." >&2;}
24922 rm -f "$tmp/stdin"
24923 case $ac_file in
24924 -) cat "$tmp/out"; rm -f "$tmp/out";;
24925 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24926 esac
24930 # CONFIG_HEADER
24932 _ACEOF
24934 # Transform confdefs.h into a sed script `conftest.defines', that
24935 # substitutes the proper values into config.h.in to produce config.h.
24936 rm -f conftest.defines conftest.tail
24937 # First, append a space to every undef/define line, to ease matching.
24938 echo 's/$/ /' >conftest.defines
24939 # Then, protect against being on the right side of a sed subst, or in
24940 # an unquoted here document, in config.status. If some macros were
24941 # called several times there might be several #defines for the same
24942 # symbol, which is useless. But do not sort them, since the last
24943 # AC_DEFINE must be honored.
24944 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24945 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24946 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24947 # PARAMS is the parameter list in the macro definition--in most cases, it's
24948 # just an empty string.
24949 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24950 ac_dB='\\)[ (].*,\\1define\\2'
24951 ac_dC=' '
24952 ac_dD=' ,'
24954 uniq confdefs.h |
24955 sed -n '
24956 t rset
24957 :rset
24958 s/^[ ]*#[ ]*define[ ][ ]*//
24959 t ok
24962 s/[\\&,]/\\&/g
24963 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24964 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24965 ' >>conftest.defines
24967 # Remove the space that was appended to ease matching.
24968 # Then replace #undef with comments. This is necessary, for
24969 # example, in the case of _POSIX_SOURCE, which is predefined and required
24970 # on some systems where configure will not decide to define it.
24971 # (The regexp can be short, since the line contains either #define or #undef.)
24972 echo 's/ $//
24973 s,^[ #]*u.*,/* & */,' >>conftest.defines
24975 # Break up conftest.defines:
24976 ac_max_sed_lines=50
24978 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24979 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24980 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24981 # et cetera.
24982 ac_in='$ac_file_inputs'
24983 ac_out='"$tmp/out1"'
24984 ac_nxt='"$tmp/out2"'
24986 while :
24988 # Write a here document:
24989 cat >>$CONFIG_STATUS <<_ACEOF
24990 # First, check the format of the line:
24991 cat >"\$tmp/defines.sed" <<\\CEOF
24992 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24993 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24995 :def
24996 _ACEOF
24997 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24998 echo 'CEOF
24999 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25000 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25001 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25002 grep . conftest.tail >/dev/null || break
25003 rm -f conftest.defines
25004 mv conftest.tail conftest.defines
25005 done
25006 rm -f conftest.defines conftest.tail
25008 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25009 cat >>$CONFIG_STATUS <<\_ACEOF
25010 if test x"$ac_file" != x-; then
25011 echo "/* $configure_input */" >"$tmp/config.h"
25012 cat "$ac_result" >>"$tmp/config.h"
25013 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25014 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25015 echo "$as_me: $ac_file is unchanged" >&6;}
25016 else
25017 rm -f $ac_file
25018 mv "$tmp/config.h" $ac_file
25020 else
25021 echo "/* $configure_input */"
25022 cat "$ac_result"
25024 rm -f "$tmp/out12"
25027 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25028 echo "$as_me: executing $ac_file commands" >&6;}
25030 esac
25033 case $ac_file$ac_mode in
25034 "default":C)
25036 ### Make the necessary directories, if they don't exist.
25037 for dir in etc lisp ; do
25038 test -d ${dir} || mkdir ${dir}
25039 done
25041 # Build src/Makefile from ${srcdir}/src/Makefile.c
25042 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25043 # This must be done after src/config.h is built, since we rely on that file.
25045 # Now get this: Some word that is part of the ${srcdir} directory name
25046 # or the ${configuration} value might, just might, happen to be an
25047 # identifier like `sun4' or `i386' or something, and be predefined by
25048 # the C preprocessor to some helpful value like 1, or maybe the empty
25049 # string. Needless to say consequent macro substitutions are less
25050 # than conducive to the makefile finding the correct directory.
25051 undefs="`echo $top_srcdir $configuration $canonical |
25052 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25053 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25056 echo creating src/epaths.h
25057 ${MAKE-make} epaths-force
25059 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25060 # `..' to `. .' unless invoked with -traditional
25062 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25063 CPPFLAGS="$CPPFLAGS -traditional"
25066 echo creating lib-src/Makefile
25067 ( cd lib-src
25068 rm -f junk.c junk1.c junk2.c
25069 sed -e '/start of cpp stuff/q' \
25070 < Makefile.c > junk1.c
25071 sed -e '1,/start of cpp stuff/d'\
25072 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25073 < Makefile.c > junk.c
25074 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25075 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25076 cat junk1.c junk2.c > Makefile.new
25077 rm -f junk.c junk1.c junk2.c
25078 chmod 444 Makefile.new
25079 mv -f Makefile.new Makefile
25082 echo creating src/Makefile
25083 ( cd src
25084 rm -f junk.c junk1.c junk2.c
25085 sed -e '/start of cpp stuff/q' \
25086 < Makefile.c > junk1.c
25087 sed -e '1,/start of cpp stuff/d'\
25088 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25089 < Makefile.c > junk.c
25090 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25091 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25092 cat junk1.c junk2.c > Makefile.new
25093 rm -f junk.c junk1.c junk2.c
25094 chmod 444 Makefile.new
25095 mv -f Makefile.new Makefile
25098 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25099 echo creating src/.gdbinit
25100 echo source $srcdir/src/.gdbinit > src/.gdbinit
25103 # This is how we know whether to re-run configure in certain cases.
25104 touch src/config.stamp
25108 esac
25109 done # for ac_tag
25112 { (exit 0); exit 0; }
25113 _ACEOF
25114 chmod +x $CONFIG_STATUS
25115 ac_clean_files=$ac_clean_files_save
25118 # configure is writing to config.log, and then calls config.status.
25119 # config.status does its own redirection, appending to config.log.
25120 # Unfortunately, on DOS this fails, as config.log is still kept open
25121 # by configure, so config.status won't be able to write to it; its
25122 # output is simply discarded. So we exec the FD to /dev/null,
25123 # effectively closing config.log, so it can be properly (re)opened and
25124 # appended to by config.status. When coming back to configure, we
25125 # need to make the FD available again.
25126 if test "$no_create" != yes; then
25127 ac_cs_success=:
25128 ac_config_status_args=
25129 test "$silent" = yes &&
25130 ac_config_status_args="$ac_config_status_args --quiet"
25131 exec 5>/dev/null
25132 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25133 exec 5>>config.log
25134 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25135 # would make configure fail if this is the last instruction.
25136 $ac_cs_success || { (exit 1); exit 1; }