* lisp/saveplace.el (save-place-alist-to-file): Use `utf-8' coding system
[emacs.git] / configure
blob64ee12f83f757a02cbf8a0ccffdc43f7919d0749
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 DBUS_CFLAGS
696 DBUS_LIBS
697 DBUS_INFO
698 XFT_CFLAGS
699 XFT_LIBS
700 ALLOCA
701 liblockfile
702 LIBOBJS
703 NEED_SETGID
704 KMEM_GROUP
705 GETLOADAVG_LIBS
706 GETOPT_H
707 GETOPTOBJS
708 version
709 configuration
710 canonical
711 srcdir
712 lispdir
713 locallisppath
714 lisppath
715 x_default_search_path
716 etcdir
717 archlibdir
718 bitmapdir
719 gamedir
720 gameuser
721 c_switch_system
722 c_switch_machine
723 LD_SWITCH_X_SITE
724 LD_SWITCH_X_SITE_AUX
725 C_SWITCH_X_SITE
726 X_TOOLKIT_TYPE
727 machfile
728 opsysfile
729 carbon_appdir
730 LTLIBOBJS'
731 ac_subst_files=''
732 ac_precious_vars='build_alias
733 host_alias
734 target_alias
736 CFLAGS
737 LDFLAGS
738 LIBS
739 CPPFLAGS
741 XMKMF'
744 # Initialize some variables set by options.
745 ac_init_help=
746 ac_init_version=false
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
749 cache_file=/dev/null
750 exec_prefix=NONE
751 no_create=
752 no_recursion=
753 prefix=NONE
754 program_prefix=NONE
755 program_suffix=NONE
756 program_transform_name=s,x,x,
757 silent=
758 site=
759 srcdir=
760 verbose=
761 x_includes=NONE
762 x_libraries=NONE
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir='${exec_prefix}/bin'
771 sbindir='${exec_prefix}/sbin'
772 libexecdir='${exec_prefix}/libexec'
773 datarootdir='${prefix}/share'
774 datadir='${datarootdir}'
775 sysconfdir='${prefix}/etc'
776 sharedstatedir='${prefix}/com'
777 localstatedir='${prefix}/var'
778 includedir='${prefix}/include'
779 oldincludedir='/usr/include'
780 docdir='${datarootdir}/doc/${PACKAGE}'
781 infodir='${datarootdir}/info'
782 htmldir='${docdir}'
783 dvidir='${docdir}'
784 pdfdir='${docdir}'
785 psdir='${docdir}'
786 libdir='${exec_prefix}/lib'
787 localedir='${datarootdir}/locale'
788 mandir='${datarootdir}/man'
790 ac_prev=
791 ac_dashdash=
792 for ac_option
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\$ac_option
797 ac_prev=
798 continue
801 case $ac_option in
802 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 *) ac_optarg=yes ;;
804 esac
806 # Accept the important Cygnus configure options, so we can diagnose typos.
808 case $ac_dashdash$ac_option in
810 ac_dashdash=yes ;;
812 -bindir | --bindir | --bindi | --bind | --bin | --bi)
813 ac_prev=bindir ;;
814 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815 bindir=$ac_optarg ;;
817 -build | --build | --buil | --bui | --bu)
818 ac_prev=build_alias ;;
819 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820 build_alias=$ac_optarg ;;
822 -cache-file | --cache-file | --cache-fil | --cache-fi \
823 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824 ac_prev=cache_file ;;
825 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827 cache_file=$ac_optarg ;;
829 --config-cache | -C)
830 cache_file=config.cache ;;
832 -datadir | --datadir | --datadi | --datad)
833 ac_prev=datadir ;;
834 -datadir=* | --datadir=* | --datadi=* | --datad=*)
835 datadir=$ac_optarg ;;
837 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838 | --dataroo | --dataro | --datar)
839 ac_prev=datarootdir ;;
840 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842 datarootdir=$ac_optarg ;;
844 -disable-* | --disable-*)
845 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
850 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_$ac_feature=no ;;
853 -docdir | --docdir | --docdi | --doc | --do)
854 ac_prev=docdir ;;
855 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
856 docdir=$ac_optarg ;;
858 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
859 ac_prev=dvidir ;;
860 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
861 dvidir=$ac_optarg ;;
863 -enable-* | --enable-*)
864 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
867 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868 { (exit 1); exit 1; }; }
869 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
870 eval enable_$ac_feature=\$ac_optarg ;;
872 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
873 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
874 | --exec | --exe | --ex)
875 ac_prev=exec_prefix ;;
876 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
877 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
878 | --exec=* | --exe=* | --ex=*)
879 exec_prefix=$ac_optarg ;;
881 -gas | --gas | --ga | --g)
882 # Obsolete; use --with-gas.
883 with_gas=yes ;;
885 -help | --help | --hel | --he | -h)
886 ac_init_help=long ;;
887 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
888 ac_init_help=recursive ;;
889 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
890 ac_init_help=short ;;
892 -host | --host | --hos | --ho)
893 ac_prev=host_alias ;;
894 -host=* | --host=* | --hos=* | --ho=*)
895 host_alias=$ac_optarg ;;
897 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
898 ac_prev=htmldir ;;
899 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
900 | --ht=*)
901 htmldir=$ac_optarg ;;
903 -includedir | --includedir | --includedi | --included | --include \
904 | --includ | --inclu | --incl | --inc)
905 ac_prev=includedir ;;
906 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
907 | --includ=* | --inclu=* | --incl=* | --inc=*)
908 includedir=$ac_optarg ;;
910 -infodir | --infodir | --infodi | --infod | --info | --inf)
911 ac_prev=infodir ;;
912 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
913 infodir=$ac_optarg ;;
915 -libdir | --libdir | --libdi | --libd)
916 ac_prev=libdir ;;
917 -libdir=* | --libdir=* | --libdi=* | --libd=*)
918 libdir=$ac_optarg ;;
920 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
921 | --libexe | --libex | --libe)
922 ac_prev=libexecdir ;;
923 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
924 | --libexe=* | --libex=* | --libe=*)
925 libexecdir=$ac_optarg ;;
927 -localedir | --localedir | --localedi | --localed | --locale)
928 ac_prev=localedir ;;
929 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
930 localedir=$ac_optarg ;;
932 -localstatedir | --localstatedir | --localstatedi | --localstated \
933 | --localstate | --localstat | --localsta | --localst | --locals)
934 ac_prev=localstatedir ;;
935 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
936 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
937 localstatedir=$ac_optarg ;;
939 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
940 ac_prev=mandir ;;
941 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
942 mandir=$ac_optarg ;;
944 -nfp | --nfp | --nf)
945 # Obsolete; use --without-fp.
946 with_fp=no ;;
948 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949 | --no-cr | --no-c | -n)
950 no_create=yes ;;
952 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
953 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
954 no_recursion=yes ;;
956 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
957 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
958 | --oldin | --oldi | --old | --ol | --o)
959 ac_prev=oldincludedir ;;
960 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
961 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
962 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
963 oldincludedir=$ac_optarg ;;
965 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
966 ac_prev=prefix ;;
967 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
968 prefix=$ac_optarg ;;
970 -program-prefix | --program-prefix | --program-prefi | --program-pref \
971 | --program-pre | --program-pr | --program-p)
972 ac_prev=program_prefix ;;
973 -program-prefix=* | --program-prefix=* | --program-prefi=* \
974 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
975 program_prefix=$ac_optarg ;;
977 -program-suffix | --program-suffix | --program-suffi | --program-suff \
978 | --program-suf | --program-su | --program-s)
979 ac_prev=program_suffix ;;
980 -program-suffix=* | --program-suffix=* | --program-suffi=* \
981 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
982 program_suffix=$ac_optarg ;;
984 -program-transform-name | --program-transform-name \
985 | --program-transform-nam | --program-transform-na \
986 | --program-transform-n | --program-transform- \
987 | --program-transform | --program-transfor \
988 | --program-transfo | --program-transf \
989 | --program-trans | --program-tran \
990 | --progr-tra | --program-tr | --program-t)
991 ac_prev=program_transform_name ;;
992 -program-transform-name=* | --program-transform-name=* \
993 | --program-transform-nam=* | --program-transform-na=* \
994 | --program-transform-n=* | --program-transform-=* \
995 | --program-transform=* | --program-transfor=* \
996 | --program-transfo=* | --program-transf=* \
997 | --program-trans=* | --program-tran=* \
998 | --progr-tra=* | --program-tr=* | --program-t=*)
999 program_transform_name=$ac_optarg ;;
1001 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1002 ac_prev=pdfdir ;;
1003 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1004 pdfdir=$ac_optarg ;;
1006 -psdir | --psdir | --psdi | --psd | --ps)
1007 ac_prev=psdir ;;
1008 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1009 psdir=$ac_optarg ;;
1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1013 silent=yes ;;
1015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1016 ac_prev=sbindir ;;
1017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1018 | --sbi=* | --sb=*)
1019 sbindir=$ac_optarg ;;
1021 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1023 | --sharedst | --shareds | --shared | --share | --shar \
1024 | --sha | --sh)
1025 ac_prev=sharedstatedir ;;
1026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1029 | --sha=* | --sh=*)
1030 sharedstatedir=$ac_optarg ;;
1032 -site | --site | --sit)
1033 ac_prev=site ;;
1034 -site=* | --site=* | --sit=*)
1035 site=$ac_optarg ;;
1037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1038 ac_prev=srcdir ;;
1039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1040 srcdir=$ac_optarg ;;
1042 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1043 | --syscon | --sysco | --sysc | --sys | --sy)
1044 ac_prev=sysconfdir ;;
1045 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1046 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1047 sysconfdir=$ac_optarg ;;
1049 -target | --target | --targe | --targ | --tar | --ta | --t)
1050 ac_prev=target_alias ;;
1051 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1052 target_alias=$ac_optarg ;;
1054 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1055 verbose=yes ;;
1057 -version | --version | --versio | --versi | --vers | -V)
1058 ac_init_version=: ;;
1060 -with-* | --with-*)
1061 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_$ac_package=\$ac_optarg ;;
1069 -without-* | --without-*)
1070 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_$ac_package=no ;;
1078 --x)
1079 # Obsolete; use --with-x.
1080 with_x=yes ;;
1082 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1083 | --x-incl | --x-inc | --x-in | --x-i)
1084 ac_prev=x_includes ;;
1085 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1086 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1087 x_includes=$ac_optarg ;;
1089 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1090 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1091 ac_prev=x_libraries ;;
1092 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1093 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1094 x_libraries=$ac_optarg ;;
1096 -*) { echo "$as_me: error: unrecognized option: $ac_option
1097 Try \`$0 --help' for more information." >&2
1098 { (exit 1); exit 1; }; }
1101 *=*)
1102 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1106 { (exit 1); exit 1; }; }
1107 eval $ac_envvar=\$ac_optarg
1108 export $ac_envvar ;;
1111 # FIXME: should be removed in autoconf 3.0.
1112 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1118 esac
1119 done
1121 if test -n "$ac_prev"; then
1122 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1123 { echo "$as_me: error: missing argument to $ac_option" >&2
1124 { (exit 1); exit 1; }; }
1127 # Be sure to have absolute directory names.
1128 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1129 datadir sysconfdir sharedstatedir localstatedir includedir \
1130 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1131 libdir localedir mandir
1133 eval ac_val=\$$ac_var
1134 case $ac_val in
1135 [\\/$]* | ?:[\\/]* ) continue;;
1136 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1137 esac
1138 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1139 { (exit 1); exit 1; }; }
1140 done
1142 # There might be people who depend on the old broken behavior: `$host'
1143 # used to hold the argument of --host etc.
1144 # FIXME: To remove some day.
1145 build=$build_alias
1146 host=$host_alias
1147 target=$target_alias
1149 # FIXME: To remove some day.
1150 if test "x$host_alias" != x; then
1151 if test "x$build_alias" = x; then
1152 cross_compiling=maybe
1153 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1154 If a cross compiler is detected then cross compile mode will be used." >&2
1155 elif test "x$build_alias" != "x$host_alias"; then
1156 cross_compiling=yes
1160 ac_tool_prefix=
1161 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163 test "$silent" = yes && exec 6>/dev/null
1166 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1167 ac_ls_di=`ls -di .` &&
1168 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1169 { echo "$as_me: error: Working directory cannot be determined" >&2
1170 { (exit 1); exit 1; }; }
1171 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172 { echo "$as_me: error: pwd does not report name of working directory" >&2
1173 { (exit 1); exit 1; }; }
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$0" ||
1181 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$0" : 'X\(//\)[^/]' \| \
1183 X"$0" : 'X\(//\)$' \| \
1184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1185 echo X"$0" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1194 /^X\(\/\/\)$/{
1195 s//\1/
1198 /^X\(\/\).*/{
1199 s//\1/
1202 s/.*/./; q'`
1203 srcdir=$ac_confdir
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 srcdir=..
1207 else
1208 ac_srcdir_defaulted=no
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1213 { (exit 1); exit 1; }; }
1215 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1216 ac_abs_confdir=`(
1217 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1218 { (exit 1); exit 1; }; }
1219 pwd)`
1220 # When building in place, set srcdir=.
1221 if test "$ac_abs_confdir" = "$ac_pwd"; then
1222 srcdir=.
1224 # Remove unnecessary trailing slashes from srcdir.
1225 # Double slashes in file names in object file debugging info
1226 # mess up M-x gdb in Emacs.
1227 case $srcdir in
1228 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229 esac
1230 for ac_var in $ac_precious_vars; do
1231 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_env_${ac_var}_value=\$${ac_var}
1233 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1234 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1235 done
1238 # Report the --help message.
1240 if test "$ac_init_help" = "long"; then
1241 # Omit some internal or obsolete options to make the list less imposing.
1242 # This message is too long to be a string in the A/UX 3.1 sh.
1243 cat <<_ACEOF
1244 \`configure' configures this package to adapt to many kinds of systems.
1246 Usage: $0 [OPTION]... [VAR=VALUE]...
1248 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1249 VAR=VALUE. See below for descriptions of some of the useful variables.
1251 Defaults for the options are specified in brackets.
1253 Configuration:
1254 -h, --help display this help and exit
1255 --help=short display options specific to this package
1256 --help=recursive display the short help of all the included packages
1257 -V, --version display version information and exit
1258 -q, --quiet, --silent do not print \`checking...' messages
1259 --cache-file=FILE cache test results in FILE [disabled]
1260 -C, --config-cache alias for \`--cache-file=config.cache'
1261 -n, --no-create do not create output files
1262 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264 Installation directories:
1265 --prefix=PREFIX install architecture-independent files in PREFIX
1266 [$ac_default_prefix]
1267 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1268 [PREFIX]
1270 By default, \`make install' will install all the files in
1271 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1272 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1273 for instance \`--prefix=\$HOME'.
1275 For better control, use the options below.
1277 Fine tuning of the installation directories:
1278 --bindir=DIR user executables [EPREFIX/bin]
1279 --sbindir=DIR system admin executables [EPREFIX/sbin]
1280 --libexecdir=DIR program executables [EPREFIX/libexec]
1281 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1282 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1283 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1284 --libdir=DIR object code libraries [EPREFIX/lib]
1285 --includedir=DIR C header files [PREFIX/include]
1286 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1287 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1288 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1289 --infodir=DIR info documentation [DATAROOTDIR/info]
1290 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1291 --mandir=DIR man documentation [DATAROOTDIR/man]
1292 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1293 --htmldir=DIR html documentation [DOCDIR]
1294 --dvidir=DIR dvi documentation [DOCDIR]
1295 --pdfdir=DIR pdf documentation [DOCDIR]
1296 --psdir=DIR ps documentation [DOCDIR]
1297 _ACEOF
1299 cat <<\_ACEOF
1301 Program names:
1302 --program-prefix=PREFIX prepend PREFIX to installed program names
1303 --program-suffix=SUFFIX append SUFFIX to installed program names
1304 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1306 X features:
1307 --x-includes=DIR X include files are in DIR
1308 --x-libraries=DIR X library files are in DIR
1310 System types:
1311 --build=BUILD configure for building on BUILD [guessed]
1312 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1313 _ACEOF
1316 if test -n "$ac_init_help"; then
1318 cat <<\_ACEOF
1320 Optional Features:
1321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1323 --enable-carbon-app[=DIR]
1324 specify install directory for Emacs.app on Mac OS X
1325 [DIR=/Application]
1326 --enable-asserts compile code with asserts enabled
1327 --enable-maintainer-mode
1328 enable make rules and dependencies not useful (and
1329 sometimes confusing) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search for lisp files
1332 specific to this site
1333 --disable-largefile omit support for large files
1335 Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --without-gcc don't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version 5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server host
1343 --without-sound don't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1345 motif, gtk, no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lgif (or -lungif) for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1352 --with-rsvg use -lrsvg-2 for displaying SVG images
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xaw3d don't use Xaw3d
1358 --without-xim don't use X11 XIM
1359 --without-carbon don't use Carbon GUI on Mac OS X
1360 --without-dbus don't use D-Bus
1361 --with-x use the X Window System
1363 Some influential environment variables:
1364 CC C compiler command
1365 CFLAGS C compiler flags
1366 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1367 nonstandard directory <lib dir>
1368 LIBS libraries to pass to the linker, e.g. -l<library>
1369 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1370 you have headers in a nonstandard directory <include dir>
1371 CPP C preprocessor
1372 XMKMF Path to xmkmf, Makefile generator for X Window System
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1377 _ACEOF
1378 ac_status=$?
1381 if test "$ac_init_help" = "recursive"; then
1382 # If there are subdirs, report their specific --help.
1383 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1384 test -d "$ac_dir" || continue
1385 ac_builddir=.
1387 case "$ac_dir" in
1388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1391 # A ".." for each directory in $ac_dir_suffix.
1392 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1393 case $ac_top_builddir_sub in
1394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 esac ;;
1397 esac
1398 ac_abs_top_builddir=$ac_pwd
1399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1400 # for backward compatibility:
1401 ac_top_builddir=$ac_top_build_prefix
1403 case $srcdir in
1404 .) # We are building in place.
1405 ac_srcdir=.
1406 ac_top_srcdir=$ac_top_builddir_sub
1407 ac_abs_top_srcdir=$ac_pwd ;;
1408 [\\/]* | ?:[\\/]* ) # Absolute name.
1409 ac_srcdir=$srcdir$ac_dir_suffix;
1410 ac_top_srcdir=$srcdir
1411 ac_abs_top_srcdir=$srcdir ;;
1412 *) # Relative name.
1413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1414 ac_top_srcdir=$ac_top_build_prefix$srcdir
1415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1416 esac
1417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1419 cd "$ac_dir" || { ac_status=$?; continue; }
1420 # Check for guested configure.
1421 if test -f "$ac_srcdir/configure.gnu"; then
1422 echo &&
1423 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1424 elif test -f "$ac_srcdir/configure"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure" --help=recursive
1427 else
1428 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429 fi || ac_status=$?
1430 cd "$ac_pwd" || { ac_status=$?; break; }
1431 done
1434 test -n "$ac_init_help" && exit $ac_status
1435 if $ac_init_version; then
1436 cat <<\_ACEOF
1437 configure
1438 generated by GNU Autoconf 2.61
1440 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1441 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1442 This configure script is free software; the Free Software Foundation
1443 gives unlimited permission to copy, distribute and modify it.
1444 _ACEOF
1445 exit
1447 cat >config.log <<_ACEOF
1448 This file contains any messages produced by compilers while
1449 running configure, to aid debugging if configure makes a mistake.
1451 It was created by $as_me, which was
1452 generated by GNU Autoconf 2.61. Invocation command line was
1454 $ $0 $@
1456 _ACEOF
1457 exec 5>>config.log
1459 cat <<_ASUNAME
1460 ## --------- ##
1461 ## Platform. ##
1462 ## --------- ##
1464 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1465 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1466 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1467 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1468 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1470 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1471 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1473 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1474 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1475 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1476 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1477 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1478 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1479 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1481 _ASUNAME
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 echo "PATH: $as_dir"
1489 done
1490 IFS=$as_save_IFS
1492 } >&5
1494 cat >&5 <<_ACEOF
1497 ## ----------- ##
1498 ## Core tests. ##
1499 ## ----------- ##
1501 _ACEOF
1504 # Keep a trace of the command line.
1505 # Strip out --no-create and --no-recursion so they do not pile up.
1506 # Strip out --silent because we don't want to record it for future runs.
1507 # Also quote any args containing shell meta-characters.
1508 # Make two passes to allow for proper duplicate-argument suppression.
1509 ac_configure_args=
1510 ac_configure_args0=
1511 ac_configure_args1=
1512 ac_must_keep_next=false
1513 for ac_pass in 1 2
1515 for ac_arg
1517 case $ac_arg in
1518 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1520 | -silent | --silent | --silen | --sile | --sil)
1521 continue ;;
1522 *\'*)
1523 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1524 esac
1525 case $ac_pass in
1526 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1528 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1529 if test $ac_must_keep_next = true; then
1530 ac_must_keep_next=false # Got value, back to normal.
1531 else
1532 case $ac_arg in
1533 *=* | --config-cache | -C | -disable-* | --disable-* \
1534 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1535 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1536 | -with-* | --with-* | -without-* | --without-* | --x)
1537 case "$ac_configure_args0 " in
1538 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1539 esac
1541 -* ) ac_must_keep_next=true ;;
1542 esac
1544 ac_configure_args="$ac_configure_args '$ac_arg'"
1546 esac
1547 done
1548 done
1549 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1550 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1552 # When interrupted or exit'd, cleanup temporary files, and complete
1553 # config.log. We remove comments because anyway the quotes in there
1554 # would cause problems or look ugly.
1555 # WARNING: Use '\'' to represent an apostrophe within the trap.
1556 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1557 trap 'exit_status=$?
1558 # Save into config.log some information that might help in debugging.
1560 echo
1562 cat <<\_ASBOX
1563 ## ---------------- ##
1564 ## Cache variables. ##
1565 ## ---------------- ##
1566 _ASBOX
1567 echo
1568 # The following way of writing the cache mishandles newlines in values,
1570 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1571 eval ac_val=\$$ac_var
1572 case $ac_val in #(
1573 *${as_nl}*)
1574 case $ac_var in #(
1575 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1576 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1577 esac
1578 case $ac_var in #(
1579 _ | IFS | as_nl) ;; #(
1580 *) $as_unset $ac_var ;;
1581 esac ;;
1582 esac
1583 done
1584 (set) 2>&1 |
1585 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1586 *${as_nl}ac_space=\ *)
1587 sed -n \
1588 "s/'\''/'\''\\\\'\'''\''/g;
1589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1590 ;; #(
1592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1594 esac |
1595 sort
1597 echo
1599 cat <<\_ASBOX
1600 ## ----------------- ##
1601 ## Output variables. ##
1602 ## ----------------- ##
1603 _ASBOX
1604 echo
1605 for ac_var in $ac_subst_vars
1607 eval ac_val=\$$ac_var
1608 case $ac_val in
1609 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1610 esac
1611 echo "$ac_var='\''$ac_val'\''"
1612 done | sort
1613 echo
1615 if test -n "$ac_subst_files"; then
1616 cat <<\_ASBOX
1617 ## ------------------- ##
1618 ## File substitutions. ##
1619 ## ------------------- ##
1620 _ASBOX
1621 echo
1622 for ac_var in $ac_subst_files
1624 eval ac_val=\$$ac_var
1625 case $ac_val in
1626 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 esac
1628 echo "$ac_var='\''$ac_val'\''"
1629 done | sort
1630 echo
1633 if test -s confdefs.h; then
1634 cat <<\_ASBOX
1635 ## ----------- ##
1636 ## confdefs.h. ##
1637 ## ----------- ##
1638 _ASBOX
1639 echo
1640 cat confdefs.h
1641 echo
1643 test "$ac_signal" != 0 &&
1644 echo "$as_me: caught signal $ac_signal"
1645 echo "$as_me: exit $exit_status"
1646 } >&5
1647 rm -f core *.core core.conftest.* &&
1648 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1649 exit $exit_status
1651 for ac_signal in 1 2 13 15; do
1652 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1653 done
1654 ac_signal=0
1656 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1657 rm -f -r conftest* confdefs.h
1659 # Predefined preprocessor variables.
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_NAME "$PACKAGE_NAME"
1663 _ACEOF
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1668 _ACEOF
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1673 _ACEOF
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_STRING "$PACKAGE_STRING"
1678 _ACEOF
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1683 _ACEOF
1686 # Let the site file select an alternate cache file if it wants to.
1687 # Prefer explicitly selected file to automatically selected ones.
1688 if test -n "$CONFIG_SITE"; then
1689 set x "$CONFIG_SITE"
1690 elif test "x$prefix" != xNONE; then
1691 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1692 else
1693 set x "$ac_default_prefix/share/config.site" \
1694 "$ac_default_prefix/etc/config.site"
1696 shift
1697 for ac_site_file
1699 if test -r "$ac_site_file"; then
1700 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1701 echo "$as_me: loading site script $ac_site_file" >&6;}
1702 sed 's/^/| /' "$ac_site_file" >&5
1703 . "$ac_site_file"
1705 done
1707 if test -r "$cache_file"; then
1708 # Some versions of bash will fail to source /dev/null (special
1709 # files actually), so we avoid doing that.
1710 if test -f "$cache_file"; then
1711 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1712 echo "$as_me: loading cache $cache_file" >&6;}
1713 case $cache_file in
1714 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1715 *) . "./$cache_file";;
1716 esac
1718 else
1719 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1720 echo "$as_me: creating cache $cache_file" >&6;}
1721 >$cache_file
1724 ac_header_list="$ac_header_list sys/time.h"
1725 ac_header_list="$ac_header_list unistd.h"
1726 ac_func_list="$ac_func_list alarm"
1727 # Check that the precious variables saved in the cache have kept the same
1728 # value.
1729 ac_cache_corrupted=false
1730 for ac_var in $ac_precious_vars; do
1731 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1732 eval ac_new_set=\$ac_env_${ac_var}_set
1733 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1734 eval ac_new_val=\$ac_env_${ac_var}_value
1735 case $ac_old_set,$ac_new_set in
1736 set,)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1738 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,set)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1742 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,);;
1746 if test "x$ac_old_val" != "x$ac_new_val"; then
1747 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1750 echo "$as_me: former value: $ac_old_val" >&2;}
1751 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1752 echo "$as_me: current value: $ac_new_val" >&2;}
1753 ac_cache_corrupted=:
1754 fi;;
1755 esac
1756 # Pass precious variables to config.status.
1757 if test "$ac_new_set" = set; then
1758 case $ac_new_val in
1759 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1760 *) ac_arg=$ac_var=$ac_new_val ;;
1761 esac
1762 case " $ac_configure_args " in
1763 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1764 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1765 esac
1767 done
1768 if $ac_cache_corrupted; then
1769 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1770 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1771 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1772 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1773 { (exit 1); exit 1; }; }
1792 ac_ext=c
1793 ac_cpp='$CPP $CPPFLAGS'
1794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1799 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1802 test "$program_prefix" != NONE &&
1803 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1804 # Use a double $ so make ignores it.
1805 test "$program_suffix" != NONE &&
1806 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1807 # Double any \ or $. echo might interpret backslashes.
1808 # By default was `s,x,x', remove it if useless.
1809 cat <<\_ACEOF >conftest.sed
1810 s/[\\$]/&&/g;s/;s,x,x,$//
1811 _ACEOF
1812 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1813 rm -f conftest.sed
1816 lispdir='${datadir}/emacs/${version}/lisp'
1817 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1818 '${datadir}/emacs/site-lisp'
1819 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1820 etcdir='${datadir}/emacs/${version}/etc'
1821 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1822 docdir='${datadir}/emacs/${version}/etc'
1823 gamedir='${localstatedir}/games/emacs'
1825 gameuser=games
1829 # Check whether --with-gcc was given.
1830 if test "${with_gcc+set}" = set; then
1831 withval=$with_gcc;
1836 # Check whether --with-pop was given.
1837 if test "${with_pop+set}" = set; then
1838 withval=$with_pop; if test "$withval" = yes; then
1839 cat >>confdefs.h <<\_ACEOF
1840 #define MAIL_USE_POP 1
1841 _ACEOF
1843 else :
1845 else
1846 cat >>confdefs.h <<\_ACEOF
1847 #define MAIL_USE_POP 1
1848 _ACEOF
1855 # Check whether --with-kerberos was given.
1856 if test "${with_kerberos+set}" = set; then
1857 withval=$with_kerberos; if test "$withval" = yes; then
1858 cat >>confdefs.h <<\_ACEOF
1859 #define KERBEROS 1
1860 _ACEOF
1868 # Check whether --with-kerberos5 was given.
1869 if test "${with_kerberos5+set}" = set; then
1870 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1871 if test "${with_kerberos+set}" != set; then
1872 with_kerberos=yes
1873 cat >>confdefs.h <<\_ACEOF
1874 #define KERBEROS 1
1875 _ACEOF
1879 cat >>confdefs.h <<\_ACEOF
1880 #define KERBEROS5 1
1881 _ACEOF
1888 # Check whether --with-hesiod was given.
1889 if test "${with_hesiod+set}" = set; then
1890 withval=$with_hesiod; if test "$withval" = yes; then
1892 cat >>confdefs.h <<\_ACEOF
1893 #define HESIOD 1
1894 _ACEOF
1901 # Check whether --with-sound was given.
1902 if test "${with_sound+set}" = set; then
1903 withval=$with_sound;
1908 # Check whether --with-x-toolkit was given.
1909 if test "${with_x_toolkit+set}" = set; then
1910 withval=$with_x_toolkit; case "${withval}" in
1911 y | ye | yes ) val=gtk ;;
1912 n | no ) val=no ;;
1913 l | lu | luc | luci | lucid ) val=lucid ;;
1914 a | at | ath | athe | athen | athena ) val=athena ;;
1915 m | mo | mot | moti | motif ) val=motif ;;
1916 g | gt | gtk ) val=gtk ;;
1918 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1919 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1920 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1921 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1922 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1923 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1924 { (exit 1); exit 1; }; }
1926 esac
1927 with_x_toolkit=$val
1933 # Check whether --with-xpm was given.
1934 if test "${with_xpm+set}" = set; then
1935 withval=$with_xpm;
1939 # Check whether --with-jpeg was given.
1940 if test "${with_jpeg+set}" = set; then
1941 withval=$with_jpeg;
1945 # Check whether --with-tiff was given.
1946 if test "${with_tiff+set}" = set; then
1947 withval=$with_tiff;
1951 # Check whether --with-gif was given.
1952 if test "${with_gif+set}" = set; then
1953 withval=$with_gif;
1957 # Check whether --with-png was given.
1958 if test "${with_png+set}" = set; then
1959 withval=$with_png;
1963 # Check whether --with-gpm was given.
1964 if test "${with_gpm+set}" = set; then
1965 withval=$with_gpm;
1969 # Check whether --with-rsvg was given.
1970 if test "${with_rsvg+set}" = set; then
1971 withval=$with_rsvg;
1975 # Check whether --with-gtk was given.
1976 if test "${with_gtk+set}" = set; then
1977 withval=$with_gtk;
1981 # Check whether --with-pkg-config-prog was given.
1982 if test "${with_pkg_config_prog+set}" = set; then
1983 withval=$with_pkg_config_prog;
1987 # Check whether --with-toolkit-scroll-bars was given.
1988 if test "${with_toolkit_scroll_bars+set}" = set; then
1989 withval=$with_toolkit_scroll_bars;
1993 # Check whether --with-xaw3d was given.
1994 if test "${with_xaw3d+set}" = set; then
1995 withval=$with_xaw3d;
1999 # Check whether --with-xim was given.
2000 if test "${with_xim+set}" = set; then
2001 withval=$with_xim;
2005 # Check whether --with-carbon was given.
2006 if test "${with_carbon+set}" = set; then
2007 withval=$with_carbon;
2011 # Check whether --with-dbus was given.
2012 if test "${with_dbus+set}" = set; then
2013 withval=$with_dbus;
2017 # Check whether --enable-carbon-app was given.
2018 if test "${enable_carbon_app+set}" = set; then
2019 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2023 # Check whether --enable-asserts was given.
2024 if test "${enable_asserts+set}" = set; then
2025 enableval=$enable_asserts; USE_XASSERTS=$enableval
2026 else
2027 USE_XASSERTS=no
2031 # Check whether --enable-maintainer-mode was given.
2032 if test "${enable_maintainer_mode+set}" = set; then
2033 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2034 else
2035 USE_MAINTAINER_MODE=no
2038 if test $USE_MAINTAINER_MODE = yes; then
2039 MAINT=
2040 else
2041 MAINT=#
2045 # Check whether --enable-locallisppath was given.
2046 if test "${enable_locallisppath+set}" = set; then
2047 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2048 locallisppath=
2049 elif test "${enableval}" != "yes"; then
2050 locallisppath=${enableval}
2055 #### Make srcdir absolute, if it isn't already. It's important to
2056 #### avoid running the path through pwd unnecessarily, since pwd can
2057 #### give you automounter prefixes, which can go away. We do all this
2058 #### so Emacs can find its files when run uninstalled.
2059 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2060 unset CDPATH
2061 case "${srcdir}" in
2062 /* ) ;;
2064 ## We may be able to use the $PWD environment variable to make this
2065 ## absolute. But sometimes PWD is inaccurate.
2066 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2067 ## but that tested only for a well-formed and valid PWD,
2068 ## it did not object when PWD was well-formed and valid but just wrong.
2069 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2070 then
2071 srcdir="$PWD"
2072 else
2073 srcdir="`(cd ${srcdir}; pwd)`"
2076 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2077 esac
2079 #### Check if the source directory already has a configured system in it.
2080 if test `pwd` != `(cd ${srcdir} && pwd)` \
2081 && test -f "${srcdir}/src/config.h" ; then
2082 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2083 as a build directory right now; it has been configured in its own
2084 right. To configure in another directory as well, you MUST
2085 use GNU make. If you do not have GNU make, then you must
2086 now do \`make distclean' in ${srcdir},
2087 and then run $0 again." >&5
2088 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2089 as a build directory right now; it has been configured in its own
2090 right. To configure in another directory as well, you MUST
2091 use GNU make. If you do not have GNU make, then you must
2092 now do \`make distclean' in ${srcdir},
2093 and then run $0 again." >&2;}
2096 #### Given the configuration name, set machfile and opsysfile to the
2097 #### names of the m/*.h and s/*.h files we should use.
2099 ### Canonicalize the configuration name.
2101 ac_aux_dir=
2102 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2103 if test -f "$ac_dir/install-sh"; then
2104 ac_aux_dir=$ac_dir
2105 ac_install_sh="$ac_aux_dir/install-sh -c"
2106 break
2107 elif test -f "$ac_dir/install.sh"; then
2108 ac_aux_dir=$ac_dir
2109 ac_install_sh="$ac_aux_dir/install.sh -c"
2110 break
2111 elif test -f "$ac_dir/shtool"; then
2112 ac_aux_dir=$ac_dir
2113 ac_install_sh="$ac_aux_dir/shtool install -c"
2114 break
2116 done
2117 if test -z "$ac_aux_dir"; then
2118 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2119 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2120 { (exit 1); exit 1; }; }
2123 # These three variables are undocumented and unsupported,
2124 # and are intended to be withdrawn in a future Autoconf release.
2125 # They can cause serious problems if a builder's source tree is in a directory
2126 # whose full name contains unusual characters.
2127 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2128 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2129 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2132 # Make sure we can run config.sub.
2133 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2134 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2135 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2136 { (exit 1); exit 1; }; }
2138 { echo "$as_me:$LINENO: checking build system type" >&5
2139 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2140 if test "${ac_cv_build+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 ac_build_alias=$build_alias
2144 test "x$ac_build_alias" = x &&
2145 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2146 test "x$ac_build_alias" = x &&
2147 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2148 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2149 { (exit 1); exit 1; }; }
2150 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2156 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2157 echo "${ECHO_T}$ac_cv_build" >&6; }
2158 case $ac_cv_build in
2159 *-*-*) ;;
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2161 echo "$as_me: error: invalid value of canonical build" >&2;}
2162 { (exit 1); exit 1; }; };;
2163 esac
2164 build=$ac_cv_build
2165 ac_save_IFS=$IFS; IFS='-'
2166 set x $ac_cv_build
2167 shift
2168 build_cpu=$1
2169 build_vendor=$2
2170 shift; shift
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2173 build_os=$*
2174 IFS=$ac_save_IFS
2175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2178 { echo "$as_me:$LINENO: checking host system type" >&5
2179 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2180 if test "${ac_cv_host+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183 if test "x$host_alias" = x; then
2184 ac_cv_host=$ac_cv_build
2185 else
2186 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2187 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2188 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2189 { (exit 1); exit 1; }; }
2193 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2194 echo "${ECHO_T}$ac_cv_host" >&6; }
2195 case $ac_cv_host in
2196 *-*-*) ;;
2197 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2198 echo "$as_me: error: invalid value of canonical host" >&2;}
2199 { (exit 1); exit 1; }; };;
2200 esac
2201 host=$ac_cv_host
2202 ac_save_IFS=$IFS; IFS='-'
2203 set x $ac_cv_host
2204 shift
2205 host_cpu=$1
2206 host_vendor=$2
2207 shift; shift
2208 # Remember, the first character of IFS is used to create $*,
2209 # except with old shells:
2210 host_os=$*
2211 IFS=$ac_save_IFS
2212 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2215 canonical=$host
2216 configuration=${host_alias-${build_alias-$host}}
2220 ### If you add support for a new configuration, add code to this
2221 ### switch statement to recognize your configuration name and select
2222 ### the appropriate operating system and machine description files.
2224 ### You would hope that you could choose an m/*.h file pretty much
2225 ### based on the machine portion of the configuration name, and an s-
2226 ### file based on the operating system portion. However, it turns out
2227 ### that each m/*.h file is pretty manufacturer-specific - for
2228 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2229 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2230 ### machines. So we basically have to have a special case for each
2231 ### configuration name.
2233 ### As far as handling version numbers on operating systems is
2234 ### concerned, make sure things will fail in a fixable way. If
2235 ### /etc/MACHINES doesn't say anything about version numbers, be
2236 ### prepared to handle anything reasonably. If version numbers
2237 ### matter, be sure /etc/MACHINES says something about it.
2239 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2240 ### "System V Release 4"; he writes, "The old convention encouraged
2241 ### confusion between `system' and `release' levels'."
2243 machine='' opsys='' unported=no
2244 case "${canonical}" in
2246 ## FreeBSD ports
2247 *-*-freebsd* )
2248 opsys=freebsd
2249 case "${canonical}" in
2250 alpha*-*-freebsd*) machine=alpha ;;
2251 ia64-*-freebsd*) machine=ia64 ;;
2252 sparc64-*-freebsd*) machine=sparc ;;
2253 powerpc-*-freebsd*) machine=macppc ;;
2254 i[3456]86-*-freebsd*) machine=intel386 ;;
2255 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2256 esac
2259 ## FreeBSD kernel + glibc based userland
2260 *-*-kfreebsd*gnu* )
2261 opsys=gnu-kfreebsd
2262 case "${canonical}" in
2263 alpha*-*-kfreebsd*) machine=alpha ;;
2264 ia64-*-kfreebsd*) machine=ia64 ;;
2265 sparc64-*-kfreebsd*) machine=sparc ;;
2266 powerpc-*-kfreebsd*) machine=macppc ;;
2267 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2268 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2269 esac
2272 ## NetBSD ports
2273 *-*-netbsd* )
2274 opsys=netbsd
2275 if test -f /usr/lib/crti.o; then
2277 cat >>confdefs.h <<\_ACEOF
2278 #define HAVE_CRTIN
2279 _ACEOF
2283 case "${canonical}" in
2284 alpha*-*-netbsd*) machine=alpha ;;
2285 i[3456]86-*-netbsd*) machine=intel386 ;;
2286 m68k-*-netbsd*)
2287 # This is somewhat bogus.
2288 machine=hp9000s300 ;;
2289 mips-*-netbsd*) machine=pmax ;;
2290 mipsel-*-netbsd*) machine=pmax ;;
2291 mipseb-*-netbsd*) machine=pmax ;;
2292 ns32k-*-netbsd*) machine=ns32000 ;;
2293 powerpc-*-netbsd*) machine=macppc ;;
2294 sparc*-*-netbsd*) machine=sparc ;;
2295 vax-*-netbsd*) machine=vax ;;
2296 arm-*-netbsd*) machine=arm ;;
2297 x86_64-*-netbsd*) machine=amdx86-64 ;;
2298 hppa-*-netbsd*) machine=hp800 ;;
2299 shle-*-netbsd*) machine=sh3el ;;
2300 esac
2303 ## OpenBSD ports
2304 *-*-openbsd* )
2305 opsys=openbsd
2306 case "${canonical}" in
2307 alpha*-*-openbsd*) machine=alpha ;;
2308 arm-*-openbsd*) machine=arm ;;
2309 hppa-*-openbsd*) machine=hp9000s300 ;;
2310 i386-*-openbsd*) machine=intel386 ;;
2311 m68k-*-openbsd*) machine=hp9000s300 ;;
2312 m88k-*-openbsd*) machine=aviion ;;
2313 mips64-*-openbsd*) machine=mips64 ;;
2314 powerpc-*-openbsd*) machine=macppc ;;
2315 sh-*-openbsd*) machine=sh3el ;;
2316 sparc*-*-openbsd*) machine=sparc ;;
2317 vax-*-openbsd*) machine=vax ;;
2318 x86_64-*-openbsd*) machine=amdx86-64 ;;
2319 esac
2322 ## LynxOS ports
2323 *-*-lynxos* )
2324 opsys=lynxos
2325 case "${canonical}" in
2326 i[3456]86-*-lynxos*) machine=intel386 ;;
2327 powerpc-*-lynxos*) machine=powerpc ;;
2328 esac
2331 ## Acorn RISCiX:
2332 arm-acorn-riscix1.1* )
2333 machine=acorn opsys=riscix1-1
2335 arm-acorn-riscix1.2* | arm-acorn-riscix )
2336 ## This name is riscix12 instead of riscix1.2
2337 ## to avoid a file name conflict on MSDOS.
2338 machine=acorn opsys=riscix12
2341 ## BSDI ports
2342 *-*-bsdi* )
2343 opsys=bsdi
2344 case "${canonical}" in
2345 i[345]86-*-bsdi*) machine=intel386 ;;
2346 sparc-*-bsdi*) machine=sparc ;;
2347 powerpc-*-bsdi*) machine=macppc ;;
2348 esac
2349 case "${canonical}" in
2350 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2351 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2352 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2353 *-*-bsdi3* ) opsys=bsdos3 ;;
2354 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2355 esac
2358 ## Alliant machines
2359 ## Strictly speaking, we need the version of the alliant operating
2360 ## system to choose the right machine file, but currently the
2361 ## configuration name doesn't tell us enough to choose the right
2362 ## one; we need to give alliants their own operating system name to
2363 ## do this right. When someone cares, they can help us.
2364 fx80-alliant-* )
2365 machine=alliant4 opsys=bsd4-2
2367 i860-alliant-* )
2368 machine=alliant-2800 opsys=bsd4-3
2371 ## Alpha (DEC) machines.
2372 alpha*-dec-osf* )
2373 machine=alpha opsys=osf1
2374 # This is needed to find X11R6.1 libraries for certain tests.
2375 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2376 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2377 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2378 # due to non-traditional preprocessing with the current compiler
2379 # defaults. OSF 4 can also have that compiler version, and there
2380 # seems always to have been a usable /usr/bin/cpp.
2381 NON_GNU_CPP=/usr/bin/cpp
2382 case "${canonical}" in
2383 alpha*-dec-osf[5-9]*)
2384 opsys=osf5-0 ;;
2385 esac
2388 alpha*-*-linux-gnu* )
2389 machine=alpha opsys=gnu-linux
2392 arm*-*-linux-gnu* )
2393 machine=arm opsys=gnu-linux
2396 ## Altos 3068
2397 m68*-altos-sysv* )
2398 machine=altos opsys=usg5-2
2401 ## Amdahl UTS
2402 580-amdahl-sysv* )
2403 machine=amdahl opsys=usg5-2-2
2406 ## Apollo, Domain/OS
2407 m68*-apollo-* )
2408 machine=apollo opsys=bsd4-3
2411 ## Apple Darwin / Mac OS X
2412 *-apple-darwin* )
2413 case "${canonical}" in
2414 i[3456]86-* ) machine=intel386 ;;
2415 powerpc-* ) machine=powermac ;;
2416 * ) unported=yes ;;
2417 esac
2418 opsys=darwin
2419 # Define CPP as follows to make autoconf work correctly.
2420 CPP="${CC-cc} -E -no-cpp-precomp"
2421 # Use fink packages if available.
2422 if test -d /sw/include && test -d /sw/lib; then
2423 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2424 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2425 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2429 ## AT&T 3b2, 3b5, 3b15, 3b20
2430 we32k-att-sysv* )
2431 machine=att3b opsys=usg5-2-2
2434 ## AT&T 3b1 - The Mighty Unix PC!
2435 m68*-att-sysv* )
2436 machine=7300 opsys=usg5-2-2
2439 ## Bull dpx20
2440 rs6000-bull-bosx* )
2441 machine=ibmrs6000 opsys=aix3-2
2444 ## Bull dpx2
2445 m68*-bull-sysv3* )
2446 machine=dpx2 opsys=usg5-3
2449 ## Bull sps7
2450 m68*-bull-sysv2* )
2451 machine=sps7 opsys=usg5-2
2454 ## CCI 5/32, 6/32 -- see "Tahoe".
2456 ## Celerity
2457 ## I don't know what configuration name to use for this; config.sub
2458 ## doesn't seem to know anything about it. Hey, Celerity users, get
2459 ## in touch with us!
2460 celerity-celerity-bsd* )
2461 machine=celerity opsys=bsd4-2
2464 ## Clipper
2465 ## What operating systems does this chip run that Emacs has been
2466 ## tested on?
2467 clipper-* )
2468 machine=clipper
2469 ## We'll use the catch-all code at the bottom to guess the
2470 ## operating system.
2473 ## Compaq Nonstop
2474 mips-compaq-nonstopux* )
2475 machine=nonstopux opsys=nonstopux
2478 ## Convex
2479 *-convex-bsd* | *-convex-convexos* )
2480 machine=convex opsys=bsd4-3
2481 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2482 NON_GNU_CPP="cc -E -P"
2485 ## Cubix QBx/386
2486 i[3456]86-cubix-sysv* )
2487 machine=intel386 opsys=usg5-3
2490 ## Cydra 5
2491 cydra*-cydrome-sysv* )
2492 machine=cydra5 opsys=usg5-3
2495 ## Data General AViiON Machines
2496 ## DG changed naming conventions with the release of 5.4.4.10, they
2497 ## dropped the initial 5.4 but left the intervening R. Because of the
2498 ## R this shouldn't conflict with older versions of the OS (which I
2499 ## think were named like dgux4.*). In addition, DG new AViiONs series
2500 ## uses either Motorola M88k or Intel Pentium CPUs.
2501 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2502 machine=aviion opsys=dgux4
2504 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2505 ## This name is dgux5-4-3 instead of dgux5-4r3
2506 ## to avoid a file name conflict on MSDOS.
2507 machine=aviion opsys=dgux5-4-3
2509 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2510 machine=aviion opsys=dgux5-4r2
2512 m88k-dg-dgux* )
2513 machine=aviion opsys=dgux
2516 ## Data General AViiON Intel (x86) Machines
2517 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2518 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2519 i[345]86-dg-dguxR4* )
2520 machine=aviion-intel opsys=dgux4
2523 ## DECstations
2524 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2525 machine=pmax opsys=bsd4-2
2527 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2528 machine=pmax opsys=bsd4-3
2530 mips-dec-ultrix* )
2531 machine=pmax opsys=ultrix4-3
2533 mips-dec-osf* )
2534 machine=pmax opsys=osf1
2536 mips-dec-mach_bsd4.3* )
2537 machine=pmax opsys=mach-bsd4-3
2540 ## Motorola Delta machines
2541 m68k-motorola-sysv* | m68000-motorola-sysv* )
2542 machine=delta opsys=usg5-3
2543 if test -z "`type gnucc | grep 'not found'`"
2544 then
2545 if test -s /etc/167config
2546 then CC="gnucc -m68040"
2547 else CC="gnucc -m68881"
2549 else
2550 if test -z "`type gcc | grep 'not found'`"
2551 then CC=gcc
2552 else CC=cc
2556 m88k-motorola-sysv4* )
2557 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2558 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2559 # I hope there are not other 4.0 versions for this machine
2560 # which really need usg5-4 instead.
2561 machine=delta88k opsys=usg5-4-2
2563 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2564 machine=delta88k opsys=usg5-3
2567 ## Dual machines
2568 m68*-dual-sysv* )
2569 machine=dual opsys=usg5-2
2571 m68*-dual-uniplus* )
2572 machine=dual opsys=unipl5-2
2575 ## Elxsi 6400
2576 elxsi-elxsi-sysv* )
2577 machine=elxsi opsys=usg5-2
2580 ## Encore machines
2581 ns16k-encore-bsd* )
2582 machine=ns16000 opsys=umax
2585 ## The GEC 63 - apparently, this port isn't really finished yet.
2586 # I'm sure we finished off the last of the machines, though. -- fx
2588 ## Gould Power Node and NP1
2589 pn-gould-bsd4.2* )
2590 machine=gould opsys=bsd4-2
2592 pn-gould-bsd4.3* )
2593 machine=gould opsys=bsd4-3
2595 np1-gould-bsd* )
2596 machine=gould-np1 opsys=bsd4-3
2599 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2600 ## as far as Emacs is concerned).
2601 m88k-harris-cxux* )
2602 # Build needs to be different on 7.0 and later releases
2603 case "`uname -r`" in
2604 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2605 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2606 esac
2607 NON_GNU_CPP="/lib/cpp"
2609 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2610 m68k-harris-cxux* )
2611 machine=nh3000 opsys=cxux
2613 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2614 powerpc-harris-powerunix )
2615 machine=nh6000 opsys=powerunix
2616 NON_GNU_CPP="cc -Xo -E -P"
2618 ## SR2001/SR2201 running HI-UX/MPP
2619 hppa1.1-hitachi-hiuxmpp* )
2620 machine=sr2k opsys=hiuxmpp
2622 hppa1.1-hitachi-hiuxwe2* )
2623 machine=sr2k opsys=hiuxwe2
2625 ## Honeywell XPS100
2626 xps*-honeywell-sysv* )
2627 machine=xps100 opsys=usg5-2
2630 ## HP 9000 series 200 or 300
2631 m68*-hp-bsd* )
2632 machine=hp9000s300 opsys=bsd4-3
2634 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2635 m68*-hp-hpux* )
2636 case "`uname -r`" in
2637 ## Someone's system reports A.B8.05 for this.
2638 ## I wonder what other possibilities there are.
2639 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2640 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2641 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2642 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2643 *) machine=hp9000s300 opsys=hpux ;;
2644 esac
2647 ## HP 9000 series 700 and 800, running HP/UX
2648 hppa*-hp-hpux7* )
2649 machine=hp800 opsys=hpux
2651 hppa*-hp-hpux8* )
2652 machine=hp800 opsys=hpux8
2654 hppa*-hp-hpux9shr* )
2655 machine=hp800 opsys=hpux9shr
2657 hppa*-hp-hpux9* )
2658 machine=hp800 opsys=hpux9
2660 hppa*-hp-hpux10.2* )
2661 machine=hp800 opsys=hpux10-20
2663 hppa*-hp-hpux10* )
2664 machine=hp800 opsys=hpux10
2666 hppa*-hp-hpux1[1-9]* )
2667 machine=hp800 opsys=hpux11
2668 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2671 hppa*-*-linux-gnu* )
2672 machine=hp800 opsys=gnu-linux
2675 ## HP 9000 series 700 and 800, running HP/UX
2676 hppa*-hp-hpux* )
2677 ## Cross-compilation? Nah!
2678 case "`uname -r`" in
2679 ## Someone's system reports A.B8.05 for this.
2680 ## I wonder what other possibilities there are.
2681 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2682 *.08.* ) machine=hp800 opsys=hpux8 ;;
2683 *.09.* ) machine=hp800 opsys=hpux9 ;;
2684 *) machine=hp800 opsys=hpux10 ;;
2685 esac
2687 hppa*-*-nextstep* )
2688 machine=hp800 opsys=nextstep
2691 ## Orion machines
2692 orion-orion-bsd* )
2693 machine=orion opsys=bsd4-2
2695 clipper-orion-bsd* )
2696 machine=orion105 opsys=bsd4-2
2699 ## IBM machines
2700 i[3456]86-ibm-aix1.1* )
2701 machine=ibmps2-aix opsys=usg5-2-2
2703 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2704 machine=ibmps2-aix opsys=usg5-3
2706 i370-ibm-aix*)
2707 machine=ibm370aix opsys=usg5-3
2709 s390-*-linux-gnu* )
2710 machine=ibms390 opsys=gnu-linux
2712 s390x-*-linux-gnu* )
2713 machine=ibms390x opsys=gnu-linux
2715 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2716 machine=ibmrs6000 opsys=aix3-1
2718 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2719 machine=ibmrs6000 opsys=aix3-2-5
2721 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2722 machine=ibmrs6000 opsys=aix4-1
2724 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2725 machine=ibmrs6000 opsys=aix4-2
2727 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2728 machine=ibmrs6000 opsys=aix4-2
2730 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2731 machine=ibmrs6000 opsys=aix4-2
2733 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2734 machine=ibmrs6000 opsys=aix4
2736 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2737 machine=ibmrs6000 opsys=aix4-1
2739 rs6000-ibm-aix* | powerpc-ibm-aix* )
2740 machine=ibmrs6000 opsys=aix3-2
2742 romp-ibm-bsd4.3* )
2743 machine=ibmrt opsys=bsd4-3
2745 romp-ibm-bsd4.2* )
2746 machine=ibmrt opsys=bsd4-2
2748 romp-ibm-aos4.3* )
2749 machine=ibmrt opsys=bsd4-3
2751 romp-ibm-aos4.2* )
2752 machine=ibmrt opsys=bsd4-2
2754 romp-ibm-aos* )
2755 machine=ibmrt opsys=bsd4-3
2757 romp-ibm-bsd* )
2758 machine=ibmrt opsys=bsd4-3
2760 romp-ibm-aix* )
2761 machine=ibmrt-aix opsys=usg5-2-2
2764 ## Integrated Solutions `Optimum V'
2765 m68*-isi-bsd4.2* )
2766 machine=isi-ov opsys=bsd4-2
2768 m68*-isi-bsd4.3* )
2769 machine=isi-ov opsys=bsd4-3
2772 ## Intel 386 machines where we do care about the manufacturer
2773 i[3456]86-intsys-sysv* )
2774 machine=is386 opsys=usg5-2-2
2777 ## Prime EXL
2778 i[3456]86-prime-sysv* )
2779 machine=i386 opsys=usg5-3
2782 ## Sequent Symmetry running Dynix
2783 i[3456]86-sequent-bsd* )
2784 machine=symmetry opsys=bsd4-3
2787 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2788 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2789 machine=sequent-ptx opsys=ptx4
2790 NON_GNU_CPP=/lib/cpp
2793 ## Sequent Symmetry running DYNIX/ptx
2794 ## Use the old cpp rather than the newer ANSI one.
2795 i[3456]86-sequent-ptx* )
2796 machine=sequent-ptx opsys=ptx
2797 NON_GNU_CPP="/lib/cpp"
2800 ## ncr machine running svr4.3.
2801 i[3456]86-ncr-sysv4.3 )
2802 machine=ncr386 opsys=usg5-4-3
2805 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2806 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2807 i[3456]86-ncr-sysv* )
2808 machine=ncr386 opsys=usg5-4-2
2811 ## Intel Paragon OSF/1
2812 i860-intel-osf1* )
2813 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2816 ## Intel 860
2817 i860-*-sysv4* )
2818 machine=i860 opsys=usg5-4
2819 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2820 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2823 ## Macintosh PowerPC
2824 powerpc*-*-linux-gnu* )
2825 machine=macppc opsys=gnu-linux
2828 ## Masscomp machines
2829 m68*-masscomp-rtu* )
2830 machine=masscomp opsys=rtu
2833 ## Megatest machines
2834 m68*-megatest-bsd* )
2835 machine=mega68 opsys=bsd4-2
2838 ## Workstations sold by MIPS
2839 ## This is not necessarily all workstations using the MIPS processor -
2840 ## Irises are produced by SGI, and DECstations by DEC.
2842 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2843 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2844 ## it gives for choosing between the alternatives seems to be "Use
2845 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2846 ## the BSD world." I'll assume that these are instructions for
2847 ## handling two odd situations, and that every other situation
2848 ## should use mips.h and usg5-2-2, they being listed first.
2849 mips-mips-usg* )
2850 machine=mips4
2851 ## Fall through to the general code at the bottom to decide on the OS.
2853 mips-mips-riscos4* )
2854 machine=mips4 opsys=bsd4-3
2855 NON_GNU_CC="cc -systype bsd43"
2856 NON_GNU_CPP="cc -systype bsd43 -E"
2858 mips-mips-riscos5* )
2859 machine=mips4 opsys=riscos5
2860 NON_GNU_CC="cc -systype bsd43"
2861 NON_GNU_CPP="cc -systype bsd43 -E"
2863 mips-mips-bsd* )
2864 machine=mips opsys=bsd4-3
2866 mips-mips-* )
2867 machine=mips opsys=usg5-2-2
2870 ## NeXT
2871 m68*-next-* | m68k-*-nextstep* )
2872 machine=m68k opsys=nextstep
2875 ## The complete machine from National Semiconductor
2876 ns32k-ns-genix* )
2877 machine=ns32000 opsys=usg5-2
2880 ## NCR machines
2881 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2882 machine=tower32 opsys=usg5-2-2
2884 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2885 machine=tower32v3 opsys=usg5-3
2888 ## NEC EWS4800
2889 mips-nec-sysv4*)
2890 machine=ews4800 opsys=ux4800
2893 ## Nixdorf Targon 31
2894 m68*-nixdorf-sysv* )
2895 machine=targon31 opsys=usg5-2-2
2898 ## Nu (TI or LMI)
2899 m68*-nu-sysv* )
2900 machine=nu opsys=usg5-2
2903 ## Plexus
2904 m68*-plexus-sysv* )
2905 machine=plexus opsys=usg5-2
2908 ## Pyramid machines
2909 ## I don't really have any idea what sort of processor the Pyramid has,
2910 ## so I'm assuming it is its own architecture.
2911 pyramid-pyramid-bsd* )
2912 machine=pyramid opsys=bsd4-2
2915 ## Sequent Balance
2916 ns32k-sequent-bsd4.2* )
2917 machine=sequent opsys=bsd4-2
2919 ns32k-sequent-bsd4.3* )
2920 machine=sequent opsys=bsd4-3
2923 ## Siemens Nixdorf
2924 mips-siemens-sysv* | mips-sni-sysv*)
2925 machine=mips-siemens opsys=usg5-4
2926 NON_GNU_CC=/usr/ccs/bin/cc
2927 NON_GNU_CPP=/usr/ccs/lib/cpp
2930 ## Silicon Graphics machines
2931 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2932 m68*-sgi-iris3.5* )
2933 machine=irist opsys=iris3-5
2935 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2936 machine=irist opsys=iris3-6
2938 ## Iris 4D
2939 mips-sgi-irix3* )
2940 machine=iris4d opsys=irix3-3
2942 mips-sgi-irix4* )
2943 machine=iris4d opsys=irix4-0
2945 mips-sgi-irix6.5 )
2946 machine=iris4d opsys=irix6-5
2947 # Without defining _LANGUAGE_C, things get masked out in the headers
2948 # so that, for instance, grepping for `free' in stdlib.h fails and
2949 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2950 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2951 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2953 mips-sgi-irix6* )
2954 machine=iris4d opsys=irix6-0
2955 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2956 # but presumably it does no harm.
2957 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2958 # -32 probably isn't necessary in later v.6s -- anyone know which?
2959 NON_GCC_TEST_OPTIONS=-32
2961 mips-sgi-irix5.[01]* )
2962 machine=iris4d opsys=irix5-0
2964 mips-sgi-irix5* | mips-sgi-irix* )
2965 machine=iris4d opsys=irix5-2
2968 ## SONY machines
2969 m68*-sony-bsd4.2* )
2970 machine=news opsys=bsd4-2
2972 m68*-sony-bsd4.3* )
2973 machine=news opsys=bsd4-3
2975 m68*-sony-newsos3* | m68*-sony-news3*)
2976 machine=news opsys=bsd4-3
2978 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2979 machine=news-risc opsys=bsd4-3
2981 mips-sony-newsos6* )
2982 machine=news-r6 opsys=newsos6
2984 mips-sony-news* )
2985 machine=news-risc opsys=newsos5
2988 ## Stride
2989 m68*-stride-sysv* )
2990 machine=stride opsys=usg5-2
2993 ## Suns
2994 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2995 machine=sparc opsys=gnu-linux
2998 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2999 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
3000 | rs6000-*-solaris2*)
3001 case "${canonical}" in
3002 m68*-sunos1* ) machine=sun1 ;;
3003 m68*-sunos2* ) machine=sun2 ;;
3004 m68* ) machine=sun3 ;;
3005 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
3006 i[3456]86-*-* ) machine=intel386 ;;
3007 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3008 powerpcle* ) machine=powerpcle ;;
3009 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3010 sparc* ) machine=sparc ;;
3011 * ) unported=yes ;;
3012 esac
3013 case "${canonical}" in
3014 ## The Sun386 didn't get past 4.0.
3015 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
3016 *-sunos4.0* ) opsys=sunos4-0 ;;
3017 *-sunos4.1.[3-9]*noshare )
3018 ## This name is sunos413 instead of sunos4-1-3
3019 ## to avoid a file name conflict on MSDOS.
3020 opsys=sunos413
3021 NON_GNU_CPP=/usr/lib/cpp
3022 NON_GCC_TEST_OPTIONS=-Bstatic
3023 GCC_TEST_OPTIONS=-static
3025 *-sunos4.1.[3-9]* | *-sunos4shr*)
3026 opsys=sunos4shr
3027 NON_GNU_CPP=/usr/lib/cpp
3029 *-sunos4* | *-sunos )
3030 opsys=sunos4-1
3031 NON_GCC_TEST_OPTIONS=-Bstatic
3032 GCC_TEST_OPTIONS=-static
3034 *-sunos5.3* | *-solaris2.3* )
3035 opsys=sol2-3
3036 NON_GNU_CPP=/usr/ccs/lib/cpp
3038 *-sunos5.4* | *-solaris2.4* )
3039 opsys=sol2-4
3040 NON_GNU_CPP=/usr/ccs/lib/cpp
3041 RANLIB="ar -ts"
3043 *-sunos5.5* | *-solaris2.5* )
3044 opsys=sol2-5
3045 NON_GNU_CPP=/usr/ccs/lib/cpp
3046 RANLIB="ar -ts"
3048 *-sunos5.6* | *-solaris2.6* )
3049 opsys=sol2-6
3050 NON_GNU_CPP=/usr/ccs/lib/cpp
3051 RANLIB="ar -ts"
3053 *-sunos5* | *-solaris* )
3054 opsys=sol2-6
3055 emacs_check_sunpro_c=yes
3056 NON_GNU_CPP=/usr/ccs/lib/cpp
3058 * ) opsys=bsd4-2 ;;
3059 esac
3060 ## Watch out for a compiler that we know will not work.
3061 case "${canonical}" in
3062 *-solaris* | *-sunos5* )
3063 if [ "x$CC" = x/usr/ucb/cc ]; then
3064 ## /usr/ucb/cc doesn't work;
3065 ## we should find some other compiler that does work.
3066 unset CC
3069 *) ;;
3070 esac
3072 sparc-*-nextstep* )
3073 machine=sparc opsys=nextstep
3076 ## Tadpole 68k
3077 m68*-tadpole-sysv* )
3078 machine=tad68k opsys=usg5-3
3081 ## Tahoe machines
3082 tahoe-tahoe-bsd4.2* )
3083 machine=tahoe opsys=bsd4-2
3085 tahoe-tahoe-bsd4.3* )
3086 machine=tahoe opsys=bsd4-3
3089 ## Tandem Integrity S2
3090 mips-tandem-sysv* )
3091 machine=tandem-s2 opsys=usg5-3
3094 ## Tektronix XD88
3095 m88k-tektronix-sysv3* )
3096 machine=tekxd88 opsys=usg5-3
3099 ## Tektronix 16000 box (6130?)
3100 ns16k-tektronix-bsd* )
3101 machine=ns16000 opsys=bsd4-2
3103 ## Tektronix 4300
3104 ## src/m/tek4300.h hints that this is a m68k machine.
3105 m68*-tektronix-bsd* )
3106 machine=tek4300 opsys=bsd4-3
3109 ## Titan P2 or P3
3110 ## We seem to have lost the machine-description file titan.h!
3111 titan-titan-sysv* )
3112 machine=titan opsys=usg5-3
3115 ## Ustation E30 (SS5E)
3116 m68*-unisys-uniplus* )
3117 machine=ustation opsystem=unipl5-2
3120 ## Vaxen.
3121 vax-dec-* )
3122 machine=vax
3123 case "${canonical}" in
3124 *-bsd4.1* ) opsys=bsd4-1 ;;
3125 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3126 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3127 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3128 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3129 *-vms* ) opsys=vms ;;
3130 * ) unported=yes
3131 esac
3134 ## Whitechapel MG1
3135 ns16k-whitechapel-* )
3136 machine=mg1
3137 ## We don't know what sort of OS runs on these; we'll let the
3138 ## operating system guessing code below try.
3141 ## Wicat
3142 m68*-wicat-sysv* )
3143 machine=wicat opsys=usg5-2
3146 ## IA-64
3147 ia64*-*-linux* )
3148 machine=ia64 opsys=gnu-linux
3151 ## Intel 386 machines where we don't care about the manufacturer
3152 i[3456]86-*-* )
3153 machine=intel386
3154 case "${canonical}" in
3155 *-cygwin ) opsys=cygwin ;;
3156 *-darwin* ) opsys=darwin
3157 CPP="${CC-cc} -E -no-cpp-precomp"
3159 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3160 *-isc2.2* ) opsys=isc2-2 ;;
3161 *-isc4.0* ) opsys=isc4-0 ;;
3162 *-isc4.* ) opsys=isc4-1
3163 GCC_TEST_OPTIONS=-posix
3164 NON_GCC_TEST_OPTIONS=-Xp
3166 *-isc* ) opsys=isc3-0 ;;
3167 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3168 *-esix* ) opsys=esix ;;
3169 *-xenix* ) opsys=xenix ;;
3170 *-linux-gnu* ) opsys=gnu-linux ;;
3171 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3172 *-sco3.2v5* ) opsys=sco5
3173 NON_GNU_CPP=/lib/cpp
3174 # Prevent -belf from being passed to $CPP.
3175 # /lib/cpp does not accept it.
3176 OVERRIDE_CPPFLAGS=" "
3178 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3179 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3180 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3181 *-386bsd* ) opsys=386bsd ;;
3182 *-nextstep* ) opsys=nextstep ;;
3183 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3184 esac
3187 ## m68k Linux-based GNU system
3188 m68k-*-linux-gnu* )
3189 machine=m68k opsys=gnu-linux
3192 ## Mips Linux-based GNU system
3193 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3194 machine=mips opsys=gnu-linux
3197 ## UXP/DS
3198 sparc-fujitsu-sysv4* )
3199 machine=sparc opsys=uxpds
3200 NON_GNU_CPP=/usr/ccs/lib/cpp
3201 RANLIB="ar -ts"
3204 ## UXP/V
3205 f301-fujitsu-uxpv4.1)
3206 machine=f301 opsys=uxpv
3209 ## AMD x86-64 Linux-based GNU system
3210 x86_64-*-linux-gnu* )
3211 machine=amdx86-64 opsys=gnu-linux
3214 ## Tensilica Xtensa Linux-based GNU system
3215 xtensa-*-linux-gnu* )
3216 machine=xtensa opsys=gnu-linux
3220 unported=yes
3222 esac
3224 ### If the code above didn't choose an operating system, just choose
3225 ### an operating system based on the configuration name. You really
3226 ### only want to use this when you have no idea what the right
3227 ### operating system is; if you know what operating systems a machine
3228 ### runs, it's cleaner to make it explicit in the case statement
3229 ### above.
3230 if test x"${opsys}" = x; then
3231 case "${canonical}" in
3232 *-gnu* ) opsys=gnu ;;
3233 *-bsd4.[01] ) opsys=bsd4-1 ;;
3234 *-bsd4.2 ) opsys=bsd4-2 ;;
3235 *-bsd4.3 ) opsys=bsd4-3 ;;
3236 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3237 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3238 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3239 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3240 *-sysv4.2uw* ) opsys=unixware ;;
3241 *-sysv5uw* ) opsys=unixware ;;
3242 *-sysv5OpenUNIX* ) opsys=unixware ;;
3243 *-sysv4.1* | *-sysvr4.1* )
3244 NON_GNU_CPP=/usr/lib/cpp
3245 opsys=usg5-4 ;;
3246 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3247 if [ x$NON_GNU_CPP = x ]; then
3248 if [ -f /usr/ccs/lib/cpp ]; then
3249 NON_GNU_CPP=/usr/ccs/lib/cpp
3250 else
3251 NON_GNU_CPP=/lib/cpp
3254 opsys=usg5-4-2 ;;
3255 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3257 unported=yes
3259 esac
3264 if test $unported = yes; then
3265 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3266 Check \`etc/MACHINES' for recognized configuration names." >&5
3267 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3268 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3269 { (exit 1); exit 1; }; }
3272 machfile="m/${machine}.h"
3273 opsysfile="s/${opsys}.h"
3276 #### Choose a compiler.
3277 test -n "$CC" && cc_specified=yes
3279 # Save the value of CFLAGS that the user specified.
3280 SPECIFIED_CFLAGS="$CFLAGS"
3282 case ${with_gcc} in
3283 "yes" ) CC="gcc" GCC=yes ;;
3284 "no" ) : ${CC=cc} ;;
3286 esac
3287 ac_ext=c
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 if test -n "$ac_tool_prefix"; then
3293 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3294 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3297 if test "${ac_cv_prog_CC+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300 if test -n "$CC"; then
3301 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 break 2
3314 done
3315 done
3316 IFS=$as_save_IFS
3320 CC=$ac_cv_prog_CC
3321 if test -n "$CC"; then
3322 { echo "$as_me:$LINENO: result: $CC" >&5
3323 echo "${ECHO_T}$CC" >&6; }
3324 else
3325 { echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6; }
3331 if test -z "$ac_cv_prog_CC"; then
3332 ac_ct_CC=$CC
3333 # Extract the first word of "gcc", so it can be a program name with args.
3334 set dummy gcc; ac_word=$2
3335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 if test -n "$ac_ct_CC"; then
3341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_prog_ac_ct_CC="gcc"
3351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3354 done
3355 done
3356 IFS=$as_save_IFS
3360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3361 if test -n "$ac_ct_CC"; then
3362 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3363 echo "${ECHO_T}$ac_ct_CC" >&6; }
3364 else
3365 { echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6; }
3369 if test "x$ac_ct_CC" = x; then
3370 CC=""
3371 else
3372 case $cross_compiling:$ac_tool_warned in
3373 yes:)
3374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3375 whose name does not start with the host triplet. If you think this
3376 configuration is useful to you, please write to autoconf@gnu.org." >&5
3377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3378 whose name does not start with the host triplet. If you think this
3379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3380 ac_tool_warned=yes ;;
3381 esac
3382 CC=$ac_ct_CC
3384 else
3385 CC="$ac_cv_prog_CC"
3388 if test -z "$CC"; then
3389 if test -n "$ac_tool_prefix"; then
3390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3391 set dummy ${ac_tool_prefix}cc; ac_word=$2
3392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3394 if test "${ac_cv_prog_CC+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 ac_cv_prog_CC="${ac_tool_prefix}cc"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3411 done
3412 done
3413 IFS=$as_save_IFS
3417 CC=$ac_cv_prog_CC
3418 if test -n "$CC"; then
3419 { echo "$as_me:$LINENO: result: $CC" >&5
3420 echo "${ECHO_T}$CC" >&6; }
3421 else
3422 { echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6; }
3429 if test -z "$CC"; then
3430 # Extract the first word of "cc", so it can be a program name with args.
3431 set dummy cc; ac_word=$2
3432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3434 if test "${ac_cv_prog_CC+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437 if test -n "$CC"; then
3438 ac_cv_prog_CC="$CC" # Let the user override the test.
3439 else
3440 ac_prog_rejected=no
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3449 ac_prog_rejected=yes
3450 continue
3452 ac_cv_prog_CC="cc"
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3456 done
3457 done
3458 IFS=$as_save_IFS
3460 if test $ac_prog_rejected = yes; then
3461 # We found a bogon in the path, so make sure we never use it.
3462 set dummy $ac_cv_prog_CC
3463 shift
3464 if test $# != 0; then
3465 # We chose a different compiler from the bogus one.
3466 # However, it has the same basename, so the bogon will be chosen
3467 # first if we set CC to just the basename; use the full file name.
3468 shift
3469 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3474 CC=$ac_cv_prog_CC
3475 if test -n "$CC"; then
3476 { echo "$as_me:$LINENO: result: $CC" >&5
3477 echo "${ECHO_T}$CC" >&6; }
3478 else
3479 { echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6; }
3485 if test -z "$CC"; then
3486 if test -n "$ac_tool_prefix"; then
3487 for ac_prog in cl.exe
3489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3493 if test "${ac_cv_prog_CC+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3510 done
3511 done
3512 IFS=$as_save_IFS
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518 { echo "$as_me:$LINENO: result: $CC" >&5
3519 echo "${ECHO_T}$CC" >&6; }
3520 else
3521 { echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6; }
3526 test -n "$CC" && break
3527 done
3529 if test -z "$CC"; then
3530 ac_ct_CC=$CC
3531 for ac_prog in cl.exe
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy $ac_prog; ac_word=$2
3535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_ac_ct_CC="$ac_prog"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3554 done
3555 done
3556 IFS=$as_save_IFS
3560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3563 echo "${ECHO_T}$ac_ct_CC" >&6; }
3564 else
3565 { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3570 test -n "$ac_ct_CC" && break
3571 done
3573 if test "x$ac_ct_CC" = x; then
3574 CC=""
3575 else
3576 case $cross_compiling:$ac_tool_warned in
3577 yes:)
3578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3579 whose name does not start with the host triplet. If you think this
3580 configuration is useful to you, please write to autoconf@gnu.org." >&5
3581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3582 whose name does not start with the host triplet. If you think this
3583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3584 ac_tool_warned=yes ;;
3585 esac
3586 CC=$ac_ct_CC
3593 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3594 See \`config.log' for more details." >&5
3595 echo "$as_me: error: no acceptable C compiler found in \$PATH
3596 See \`config.log' for more details." >&2;}
3597 { (exit 1); exit 1; }; }
3599 # Provide some information about the compiler.
3600 echo "$as_me:$LINENO: checking for C compiler version" >&5
3601 ac_compiler=`set X $ac_compile; echo $2`
3602 { (ac_try="$ac_compiler --version >&5"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compiler --version >&5") 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }
3612 { (ac_try="$ac_compiler -v >&5"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compiler -v >&5") 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }
3622 { (ac_try="$ac_compiler -V >&5"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compiler -V >&5") 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }
3633 cat >conftest.$ac_ext <<_ACEOF
3634 /* confdefs.h. */
3635 _ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3641 main ()
3645 return 0;
3647 _ACEOF
3648 ac_clean_files_save=$ac_clean_files
3649 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3650 # Try to create an executable without -o first, disregard a.out.
3651 # It will help us diagnose broken compilers, and finding out an intuition
3652 # of exeext.
3653 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3654 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3655 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3657 # List of possible output files, starting from the most likely.
3658 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3659 # only as a last resort. b.out is created by i960 compilers.
3660 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3662 # The IRIX 6 linker writes into existing files which may not be
3663 # executable, retaining their permissions. Remove them first so a
3664 # subsequent execution test works.
3665 ac_rmfiles=
3666 for ac_file in $ac_files
3668 case $ac_file in
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3670 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3671 esac
3672 done
3673 rm -f $ac_rmfiles
3675 if { (ac_try="$ac_link_default"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_link_default") 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; then
3685 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3686 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3687 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3688 # so that the user can short-circuit this test for compilers unknown to
3689 # Autoconf.
3690 for ac_file in $ac_files ''
3692 test -f "$ac_file" || continue
3693 case $ac_file in
3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3696 [ab].out )
3697 # We found the default executable, but exeext='' is most
3698 # certainly right.
3699 break;;
3700 *.* )
3701 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3702 then :; else
3703 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705 # We set ac_cv_exeext here because the later test for it is not
3706 # safe: cross compilers may not add the suffix if given an `-o'
3707 # argument, so we may need to know it at that point already.
3708 # Even if this section looks crufty: it has the advantage of
3709 # actually working.
3710 break;;
3712 break;;
3713 esac
3714 done
3715 test "$ac_cv_exeext" = no && ac_cv_exeext=
3717 else
3718 ac_file=''
3721 { echo "$as_me:$LINENO: result: $ac_file" >&5
3722 echo "${ECHO_T}$ac_file" >&6; }
3723 if test -z "$ac_file"; then
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3728 See \`config.log' for more details." >&5
3729 echo "$as_me: error: C compiler cannot create executables
3730 See \`config.log' for more details." >&2;}
3731 { (exit 77); exit 77; }; }
3734 ac_exeext=$ac_cv_exeext
3736 # Check that the compiler produces executables we can run. If not, either
3737 # the compiler is broken, or we cross compile.
3738 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3739 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3740 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3741 # If not cross compiling, check that we can run a simple program.
3742 if test "$cross_compiling" != yes; then
3743 if { ac_try='./$ac_file'
3744 { (case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747 esac
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_try") 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 cross_compiling=no
3754 else
3755 if test "$cross_compiling" = maybe; then
3756 cross_compiling=yes
3757 else
3758 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3759 If you meant to cross compile, use \`--host'.
3760 See \`config.log' for more details." >&5
3761 echo "$as_me: error: cannot run C compiled programs.
3762 If you meant to cross compile, use \`--host'.
3763 See \`config.log' for more details." >&2;}
3764 { (exit 1); exit 1; }; }
3768 { echo "$as_me:$LINENO: result: yes" >&5
3769 echo "${ECHO_T}yes" >&6; }
3771 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3772 ac_clean_files=$ac_clean_files_save
3773 # Check that the compiler produces executables we can run. If not, either
3774 # the compiler is broken, or we cross compile.
3775 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3776 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3777 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3778 echo "${ECHO_T}$cross_compiling" >&6; }
3780 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3781 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3782 if { (ac_try="$ac_link"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_link") 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; then
3792 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3793 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3794 # work properly (i.e., refer to `conftest.exe'), while it won't with
3795 # `rm'.
3796 for ac_file in conftest.exe conftest conftest.*; do
3797 test -f "$ac_file" || continue
3798 case $ac_file in
3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3800 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3801 break;;
3802 * ) break;;
3803 esac
3804 done
3805 else
3806 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3807 See \`config.log' for more details." >&5
3808 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3809 See \`config.log' for more details." >&2;}
3810 { (exit 1); exit 1; }; }
3813 rm -f conftest$ac_cv_exeext
3814 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3815 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3817 rm -f conftest.$ac_ext
3818 EXEEXT=$ac_cv_exeext
3819 ac_exeext=$EXEEXT
3820 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3821 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3822 if test "${ac_cv_objext+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h. */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3833 main ()
3837 return 0;
3839 _ACEOF
3840 rm -f conftest.o conftest.obj
3841 if { (ac_try="$ac_compile"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847 (eval "$ac_compile") 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; then
3851 for ac_file in conftest.o conftest.obj conftest.*; do
3852 test -f "$ac_file" || continue;
3853 case $ac_file in
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3856 break;;
3857 esac
3858 done
3859 else
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3864 See \`config.log' for more details." >&5
3865 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3866 See \`config.log' for more details." >&2;}
3867 { (exit 1); exit 1; }; }
3870 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3872 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3873 echo "${ECHO_T}$ac_cv_objext" >&6; }
3874 OBJEXT=$ac_cv_objext
3875 ac_objext=$OBJEXT
3876 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3877 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3878 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3889 main ()
3891 #ifndef __GNUC__
3892 choke me
3893 #endif
3896 return 0;
3898 _ACEOF
3899 rm -f conftest.$ac_objext
3900 if { (ac_try="$ac_compile"
3901 case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_compile") 2>conftest.er1
3907 ac_status=$?
3908 grep -v '^ *+' conftest.er1 >conftest.err
3909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_c_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest.$ac_objext; then
3916 ac_compiler_gnu=yes
3917 else
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 ac_compiler_gnu=no
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3928 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3929 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3930 GCC=`test $ac_compiler_gnu = yes && echo yes`
3931 ac_test_CFLAGS=${CFLAGS+set}
3932 ac_save_CFLAGS=$CFLAGS
3933 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3934 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3935 if test "${ac_cv_prog_cc_g+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938 ac_save_c_werror_flag=$ac_c_werror_flag
3939 ac_c_werror_flag=yes
3940 ac_cv_prog_cc_g=no
3941 CFLAGS="-g"
3942 cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h. */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3950 main ()
3954 return 0;
3956 _ACEOF
3957 rm -f conftest.$ac_objext
3958 if { (ac_try="$ac_compile"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_compile") 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && {
3971 test -z "$ac_c_werror_flag" ||
3972 test ! -s conftest.err
3973 } && test -s conftest.$ac_objext; then
3974 ac_cv_prog_cc_g=yes
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 CFLAGS=""
3980 cat >conftest.$ac_ext <<_ACEOF
3981 /* confdefs.h. */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3988 main ()
3992 return 0;
3994 _ACEOF
3995 rm -f conftest.$ac_objext
3996 if { (ac_try="$ac_compile"
3997 case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest.$ac_objext; then
4013 else
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 ac_c_werror_flag=$ac_save_c_werror_flag
4018 CFLAGS="-g"
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4027 main ()
4031 return 0;
4033 _ACEOF
4034 rm -f conftest.$ac_objext
4035 if { (ac_try="$ac_compile"
4036 case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_compile") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } && {
4048 test -z "$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4050 } && test -s conftest.$ac_objext; then
4051 ac_cv_prog_cc_g=yes
4052 else
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_c_werror_flag=$ac_save_c_werror_flag
4068 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4069 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4070 if test "$ac_test_CFLAGS" = set; then
4071 CFLAGS=$ac_save_CFLAGS
4072 elif test $ac_cv_prog_cc_g = yes; then
4073 if test "$GCC" = yes; then
4074 CFLAGS="-g -O2"
4075 else
4076 CFLAGS="-g"
4078 else
4079 if test "$GCC" = yes; then
4080 CFLAGS="-O2"
4081 else
4082 CFLAGS=
4085 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4086 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4087 if test "${ac_cv_prog_cc_c89+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 ac_cv_prog_cc_c89=no
4091 ac_save_CC=$CC
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <stdarg.h>
4099 #include <stdio.h>
4100 #include <sys/types.h>
4101 #include <sys/stat.h>
4102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4103 struct buf { int x; };
4104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4105 static char *e (p, i)
4106 char **p;
4107 int i;
4109 return p[i];
4111 static char *f (char * (*g) (char **, int), char **p, ...)
4113 char *s;
4114 va_list v;
4115 va_start (v,p);
4116 s = g (p, va_arg (v,int));
4117 va_end (v);
4118 return s;
4121 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4122 function prototypes and stuff, but not '\xHH' hex character constants.
4123 These don't provoke an error unfortunately, instead are silently treated
4124 as 'x'. The following induces an error, until -std is added to get
4125 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4126 array size at least. It's necessary to write '\x00'==0 to get something
4127 that's true only with -std. */
4128 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4130 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4131 inside strings and character constants. */
4132 #define FOO(x) 'x'
4133 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4135 int test (int i, double x);
4136 struct s1 {int (*f) (int a);};
4137 struct s2 {int (*f) (double a);};
4138 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4139 int argc;
4140 char **argv;
4142 main ()
4144 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4146 return 0;
4148 _ACEOF
4149 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4150 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4152 CC="$ac_save_CC $ac_arg"
4153 rm -f conftest.$ac_objext
4154 if { (ac_try="$ac_compile"
4155 case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_compile") 2>conftest.er1
4161 ac_status=$?
4162 grep -v '^ *+' conftest.er1 >conftest.err
4163 rm -f conftest.er1
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } && {
4167 test -z "$ac_c_werror_flag" ||
4168 test ! -s conftest.err
4169 } && test -s conftest.$ac_objext; then
4170 ac_cv_prog_cc_c89=$ac_arg
4171 else
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4178 rm -f core conftest.err conftest.$ac_objext
4179 test "x$ac_cv_prog_cc_c89" != "xno" && break
4180 done
4181 rm -f conftest.$ac_ext
4182 CC=$ac_save_CC
4185 # AC_CACHE_VAL
4186 case "x$ac_cv_prog_cc_c89" in
4188 { echo "$as_me:$LINENO: result: none needed" >&5
4189 echo "${ECHO_T}none needed" >&6; } ;;
4190 xno)
4191 { echo "$as_me:$LINENO: result: unsupported" >&5
4192 echo "${ECHO_T}unsupported" >&6; } ;;
4194 CC="$CC $ac_cv_prog_cc_c89"
4195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4196 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4197 esac
4200 ac_ext=c
4201 ac_cpp='$CPP $CPPFLAGS'
4202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 # On Suns, sometimes $CPP names a directory.
4208 if test -n "$CPP" && test -d "$CPP"; then
4209 CPP=
4212 ## If not using gcc, and on Solaris, and no CPP specified, see if
4213 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4214 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4215 test x"$CPP" = x; then
4216 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4217 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4219 if test "${emacs_cv_sunpro_c+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4230 main ()
4232 #ifndef __SUNPRO_C
4233 fail;
4234 #endif
4237 return 0;
4239 _ACEOF
4240 rm -f conftest.$ac_objext conftest$ac_exeext
4241 if { (ac_try="$ac_link"
4242 case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245 esac
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_link") 2>conftest.er1
4248 ac_status=$?
4249 grep -v '^ *+' conftest.er1 >conftest.err
4250 rm -f conftest.er1
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } && {
4254 test -z "$ac_c_werror_flag" ||
4255 test ! -s conftest.err
4256 } && test -s conftest$ac_exeext &&
4257 $as_test_x conftest$ac_exeext; then
4258 emacs_cv_sunpro_c=yes
4259 else
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 emacs_cv_sunpro_c=no
4266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4267 conftest$ac_exeext conftest.$ac_ext
4270 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4271 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4273 if test x"$emacs_cv_sunpro_c" = xyes; then
4274 NON_GNU_CPP="$CC -E -Xs"
4278 #### Some systems specify a CPP to use unless we are using GCC.
4279 #### Now that we know whether we are using GCC, we can decide whether
4280 #### to use that one.
4281 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4282 then
4283 CPP="$NON_GNU_CPP"
4286 #### Some systems specify a CC to use unless we are using GCC.
4287 #### Now that we know whether we are using GCC, we can decide whether
4288 #### to use that one.
4289 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4290 test x$cc_specified != xyes
4291 then
4292 CC="$NON_GNU_CC"
4295 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4296 then
4297 CC="$CC $GCC_TEST_OPTIONS"
4300 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4301 then
4302 CC="$CC $NON_GCC_TEST_OPTIONS"
4305 ac_ext=c
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4311 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4312 # On Suns, sometimes $CPP names a directory.
4313 if test -n "$CPP" && test -d "$CPP"; then
4314 CPP=
4316 if test -z "$CPP"; then
4317 if test "${ac_cv_prog_CPP+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320 # Double quotes because CPP needs to be expanded
4321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4323 ac_preproc_ok=false
4324 for ac_c_preproc_warn_flag in '' yes
4326 # Use a header file that comes with gcc, so configuring glibc
4327 # with a fresh cross-compiler works.
4328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4329 # <limits.h> exists even on freestanding compilers.
4330 # On the NeXT, cc -E runs the code through the compiler's parser,
4331 # not just through cpp. "Syntax error" is here to catch this case.
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h. */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #ifdef __STDC__
4339 # include <limits.h>
4340 #else
4341 # include <assert.h>
4342 #endif
4343 Syntax error
4344 _ACEOF
4345 if { (ac_try="$ac_cpp conftest.$ac_ext"
4346 case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } >/dev/null && {
4358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 }; then
4362 else
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 # Broken: fails on valid input.
4367 continue
4370 rm -f conftest.err conftest.$ac_ext
4372 # OK, works on sane cases. Now check whether nonexistent headers
4373 # can be detected and how.
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h. */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #include <ac_nonexistent.h>
4381 _ACEOF
4382 if { (ac_try="$ac_cpp conftest.$ac_ext"
4383 case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4389 ac_status=$?
4390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } >/dev/null && {
4395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4397 }; then
4398 # Broken: success on invalid input.
4399 continue
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 # Passes both tests.
4405 ac_preproc_ok=:
4406 break
4409 rm -f conftest.err conftest.$ac_ext
4411 done
4412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4413 rm -f conftest.err conftest.$ac_ext
4414 if $ac_preproc_ok; then
4415 break
4418 done
4419 ac_cv_prog_CPP=$CPP
4422 CPP=$ac_cv_prog_CPP
4423 else
4424 ac_cv_prog_CPP=$CPP
4426 { echo "$as_me:$LINENO: result: $CPP" >&5
4427 echo "${ECHO_T}$CPP" >&6; }
4428 ac_preproc_ok=false
4429 for ac_c_preproc_warn_flag in '' yes
4431 # Use a header file that comes with gcc, so configuring glibc
4432 # with a fresh cross-compiler works.
4433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4434 # <limits.h> exists even on freestanding compilers.
4435 # On the NeXT, cc -E runs the code through the compiler's parser,
4436 # not just through cpp. "Syntax error" is here to catch this case.
4437 cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 #ifdef __STDC__
4444 # include <limits.h>
4445 #else
4446 # include <assert.h>
4447 #endif
4448 Syntax error
4449 _ACEOF
4450 if { (ac_try="$ac_cpp conftest.$ac_ext"
4451 case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454 esac
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4457 ac_status=$?
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } >/dev/null && {
4463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4464 test ! -s conftest.err
4465 }; then
4467 else
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4471 # Broken: fails on valid input.
4472 continue
4475 rm -f conftest.err conftest.$ac_ext
4477 # OK, works on sane cases. Now check whether nonexistent headers
4478 # can be detected and how.
4479 cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h. */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 #include <ac_nonexistent.h>
4486 _ACEOF
4487 if { (ac_try="$ac_cpp conftest.$ac_ext"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4494 ac_status=$?
4495 grep -v '^ *+' conftest.er1 >conftest.err
4496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } >/dev/null && {
4500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4502 }; then
4503 # Broken: success on invalid input.
4504 continue
4505 else
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 # Passes both tests.
4510 ac_preproc_ok=:
4511 break
4514 rm -f conftest.err conftest.$ac_ext
4516 done
4517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4518 rm -f conftest.err conftest.$ac_ext
4519 if $ac_preproc_ok; then
4521 else
4522 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4523 See \`config.log' for more details." >&5
4524 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4525 See \`config.log' for more details." >&2;}
4526 { (exit 1); exit 1; }; }
4529 ac_ext=c
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4537 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4538 if test "${ac_cv_path_GREP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 # Extract the first word of "grep ggrep" to use in msg output
4542 if test -z "$GREP"; then
4543 set dummy grep ggrep; ac_prog_name=$2
4544 if test "${ac_cv_path_GREP+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 ac_path_GREP_found=false
4548 # Loop through the user's path and test for each of PROGNAME-LIST
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_prog in grep ggrep; do
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4557 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4558 # Check for GNU ac_path_GREP and select it if it is found.
4559 # Check for GNU $ac_path_GREP
4560 case `"$ac_path_GREP" --version 2>&1` in
4561 *GNU*)
4562 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4564 ac_count=0
4565 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4566 while :
4568 cat "conftest.in" "conftest.in" >"conftest.tmp"
4569 mv "conftest.tmp" "conftest.in"
4570 cp "conftest.in" "conftest.nl"
4571 echo 'GREP' >> "conftest.nl"
4572 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4574 ac_count=`expr $ac_count + 1`
4575 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4576 # Best one so far, save it but keep looking for a better one
4577 ac_cv_path_GREP="$ac_path_GREP"
4578 ac_path_GREP_max=$ac_count
4580 # 10*(2^10) chars as input seems more than enough
4581 test $ac_count -gt 10 && break
4582 done
4583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4584 esac
4587 $ac_path_GREP_found && break 3
4588 done
4589 done
4591 done
4592 IFS=$as_save_IFS
4597 GREP="$ac_cv_path_GREP"
4598 if test -z "$GREP"; then
4599 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4600 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4601 { (exit 1); exit 1; }; }
4604 else
4605 ac_cv_path_GREP=$GREP
4610 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4611 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4612 GREP="$ac_cv_path_GREP"
4615 { echo "$as_me:$LINENO: checking for egrep" >&5
4616 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4617 if test "${ac_cv_path_EGREP+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4621 then ac_cv_path_EGREP="$GREP -E"
4622 else
4623 # Extract the first word of "egrep" to use in msg output
4624 if test -z "$EGREP"; then
4625 set dummy egrep; ac_prog_name=$2
4626 if test "${ac_cv_path_EGREP+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 ac_path_EGREP_found=false
4630 # Loop through the user's path and test for each of PROGNAME-LIST
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_prog in egrep; do
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4639 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4640 # Check for GNU ac_path_EGREP and select it if it is found.
4641 # Check for GNU $ac_path_EGREP
4642 case `"$ac_path_EGREP" --version 2>&1` in
4643 *GNU*)
4644 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4646 ac_count=0
4647 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4648 while :
4650 cat "conftest.in" "conftest.in" >"conftest.tmp"
4651 mv "conftest.tmp" "conftest.in"
4652 cp "conftest.in" "conftest.nl"
4653 echo 'EGREP' >> "conftest.nl"
4654 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4656 ac_count=`expr $ac_count + 1`
4657 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4658 # Best one so far, save it but keep looking for a better one
4659 ac_cv_path_EGREP="$ac_path_EGREP"
4660 ac_path_EGREP_max=$ac_count
4662 # 10*(2^10) chars as input seems more than enough
4663 test $ac_count -gt 10 && break
4664 done
4665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666 esac
4669 $ac_path_EGREP_found && break 3
4670 done
4671 done
4673 done
4674 IFS=$as_save_IFS
4679 EGREP="$ac_cv_path_EGREP"
4680 if test -z "$EGREP"; then
4681 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4682 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4683 { (exit 1); exit 1; }; }
4686 else
4687 ac_cv_path_EGREP=$EGREP
4693 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4694 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4695 EGREP="$ac_cv_path_EGREP"
4699 { echo "$as_me:$LINENO: checking for AIX" >&5
4700 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4701 cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h. */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 #ifdef _AIX
4709 #endif
4711 _ACEOF
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713 $EGREP "yes" >/dev/null 2>&1; then
4714 { echo "$as_me:$LINENO: result: yes" >&5
4715 echo "${ECHO_T}yes" >&6; }
4716 cat >>confdefs.h <<\_ACEOF
4717 #define _ALL_SOURCE 1
4718 _ACEOF
4720 else
4721 { echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6; }
4724 rm -f conftest*
4728 cat >>confdefs.h <<\_ACEOF
4729 #define _GNU_SOURCE 1
4730 _ACEOF
4734 ### Use -Wno-pointer-sign if the compiler supports it
4735 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4736 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4737 SAVE_CFLAGS="$CFLAGS"
4738 CFLAGS="$CFLAGS -Wno-pointer-sign"
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h. */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4747 main ()
4751 return 0;
4753 _ACEOF
4754 rm -f conftest.$ac_objext
4755 if { (ac_try="$ac_compile"
4756 case "(($ac_try" in
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4759 esac
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_compile") 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } && {
4768 test -z "$ac_c_werror_flag" ||
4769 test ! -s conftest.err
4770 } && test -s conftest.$ac_objext; then
4771 has_option=yes
4772 else
4773 echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4776 has_option=no
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 if test $has_option = yes; then
4781 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4783 { echo "$as_me:$LINENO: result: $has_option" >&5
4784 echo "${ECHO_T}$has_option" >&6; }
4785 CFLAGS="$SAVE_CFLAGS"
4786 unset has_option
4787 unset SAVE_CFLAGS
4789 #### Some other nice autoconf tests.
4791 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4792 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4793 LN_S=$as_ln_s
4794 if test "$LN_S" = "ln -s"; then
4795 { echo "$as_me:$LINENO: result: yes" >&5
4796 echo "${ECHO_T}yes" >&6; }
4797 else
4798 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4799 echo "${ECHO_T}no, using $LN_S" >&6; }
4802 ac_ext=c
4803 ac_cpp='$CPP $CPPFLAGS'
4804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4808 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4809 # On Suns, sometimes $CPP names a directory.
4810 if test -n "$CPP" && test -d "$CPP"; then
4811 CPP=
4813 if test -z "$CPP"; then
4814 if test "${ac_cv_prog_CPP+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 # Double quotes because CPP needs to be expanded
4818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4820 ac_preproc_ok=false
4821 for ac_c_preproc_warn_flag in '' yes
4823 # Use a header file that comes with gcc, so configuring glibc
4824 # with a fresh cross-compiler works.
4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 # <limits.h> exists even on freestanding compilers.
4827 # On the NeXT, cc -E runs the code through the compiler's parser,
4828 # not just through cpp. "Syntax error" is here to catch this case.
4829 cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h. */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 #ifdef __STDC__
4836 # include <limits.h>
4837 #else
4838 # include <assert.h>
4839 #endif
4840 Syntax error
4841 _ACEOF
4842 if { (ac_try="$ac_cpp conftest.$ac_ext"
4843 case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846 esac
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null && {
4855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 }; then
4859 else
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4863 # Broken: fails on valid input.
4864 continue
4867 rm -f conftest.err conftest.$ac_ext
4869 # OK, works on sane cases. Now check whether nonexistent headers
4870 # can be detected and how.
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 #include <ac_nonexistent.h>
4878 _ACEOF
4879 if { (ac_try="$ac_cpp conftest.$ac_ext"
4880 case "(($ac_try" in
4881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882 *) ac_try_echo=$ac_try;;
4883 esac
4884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4886 ac_status=$?
4887 grep -v '^ *+' conftest.er1 >conftest.err
4888 rm -f conftest.er1
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } >/dev/null && {
4892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4893 test ! -s conftest.err
4894 }; then
4895 # Broken: success on invalid input.
4896 continue
4897 else
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 # Passes both tests.
4902 ac_preproc_ok=:
4903 break
4906 rm -f conftest.err conftest.$ac_ext
4908 done
4909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4910 rm -f conftest.err conftest.$ac_ext
4911 if $ac_preproc_ok; then
4912 break
4915 done
4916 ac_cv_prog_CPP=$CPP
4919 CPP=$ac_cv_prog_CPP
4920 else
4921 ac_cv_prog_CPP=$CPP
4923 { echo "$as_me:$LINENO: result: $CPP" >&5
4924 echo "${ECHO_T}$CPP" >&6; }
4925 ac_preproc_ok=false
4926 for ac_c_preproc_warn_flag in '' yes
4928 # Use a header file that comes with gcc, so configuring glibc
4929 # with a fresh cross-compiler works.
4930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4931 # <limits.h> exists even on freestanding compilers.
4932 # On the NeXT, cc -E runs the code through the compiler's parser,
4933 # not just through cpp. "Syntax error" is here to catch this case.
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 #ifdef __STDC__
4941 # include <limits.h>
4942 #else
4943 # include <assert.h>
4944 #endif
4945 Syntax error
4946 _ACEOF
4947 if { (ac_try="$ac_cpp conftest.$ac_ext"
4948 case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951 esac
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev/null && {
4960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 }; then
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4968 # Broken: fails on valid input.
4969 continue
4972 rm -f conftest.err conftest.$ac_ext
4974 # OK, works on sane cases. Now check whether nonexistent headers
4975 # can be detected and how.
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 #include <ac_nonexistent.h>
4983 _ACEOF
4984 if { (ac_try="$ac_cpp conftest.$ac_ext"
4985 case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988 esac
4989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev/null && {
4997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4998 test ! -s conftest.err
4999 }; then
5000 # Broken: success on invalid input.
5001 continue
5002 else
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 # Passes both tests.
5007 ac_preproc_ok=:
5008 break
5011 rm -f conftest.err conftest.$ac_ext
5013 done
5014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5015 rm -f conftest.err conftest.$ac_ext
5016 if $ac_preproc_ok; then
5018 else
5019 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5020 See \`config.log' for more details." >&5
5021 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5022 See \`config.log' for more details." >&2;}
5023 { (exit 1); exit 1; }; }
5026 ac_ext=c
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032 # Find a good install program. We prefer a C program (faster),
5033 # so one script is as good as another. But avoid the broken or
5034 # incompatible versions:
5035 # SysV /etc/install, /usr/sbin/install
5036 # SunOS /usr/etc/install
5037 # IRIX /sbin/install
5038 # AIX /bin/install
5039 # AmigaOS /C/install, which installs bootblocks on floppy discs
5040 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5043 # OS/2's system install, which has a completely different semantic
5044 # ./install, which can be erroneously created by make from ./install.sh.
5045 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5046 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5047 if test -z "$INSTALL"; then
5048 if test "${ac_cv_path_install+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 # Account for people who put trailing slashes in PATH elements.
5057 case $as_dir/ in
5058 ./ | .// | /cC/* | \
5059 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5060 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5061 /usr/ucb/* ) ;;
5063 # OSF1 and SCO ODT 3.0 have their own names for install.
5064 # Don't use installbsd from OSF since it installs stuff as root
5065 # by default.
5066 for ac_prog in ginstall scoinst install; do
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5069 if test $ac_prog = install &&
5070 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5071 # AIX install. It has an incompatible calling convention.
5073 elif test $ac_prog = install &&
5074 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5075 # program-specific install script used by HP pwplus--don't use.
5077 else
5078 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5079 break 3
5082 done
5083 done
5085 esac
5086 done
5087 IFS=$as_save_IFS
5091 if test "${ac_cv_path_install+set}" = set; then
5092 INSTALL=$ac_cv_path_install
5093 else
5094 # As a last resort, use the slow shell script. Don't cache a
5095 # value for INSTALL within a source directory, because that will
5096 # break other packages using the cache if that directory is
5097 # removed, or if the value is a relative name.
5098 INSTALL=$ac_install_sh
5101 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5102 echo "${ECHO_T}$INSTALL" >&6; }
5104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5105 # It thinks the first close brace ends the variable substitution.
5106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5108 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5110 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5112 if test "x$RANLIB" = x; then
5113 if test -n "$ac_tool_prefix"; then
5114 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5115 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5118 if test "${ac_cv_prog_RANLIB+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121 if test -n "$RANLIB"; then
5122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5135 done
5136 done
5137 IFS=$as_save_IFS
5141 RANLIB=$ac_cv_prog_RANLIB
5142 if test -n "$RANLIB"; then
5143 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5144 echo "${ECHO_T}$RANLIB" >&6; }
5145 else
5146 { echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6; }
5152 if test -z "$ac_cv_prog_RANLIB"; then
5153 ac_ct_RANLIB=$RANLIB
5154 # Extract the first word of "ranlib", so it can be a program name with args.
5155 set dummy ranlib; ac_word=$2
5156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161 if test -n "$ac_ct_RANLIB"; then
5162 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_prog_ac_ct_RANLIB="ranlib"
5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5175 done
5176 done
5177 IFS=$as_save_IFS
5181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5182 if test -n "$ac_ct_RANLIB"; then
5183 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5184 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5185 else
5186 { echo "$as_me:$LINENO: result: no" >&5
5187 echo "${ECHO_T}no" >&6; }
5190 if test "x$ac_ct_RANLIB" = x; then
5191 RANLIB=":"
5192 else
5193 case $cross_compiling:$ac_tool_warned in
5194 yes:)
5195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5196 whose name does not start with the host triplet. If you think this
5197 configuration is useful to you, please write to autoconf@gnu.org." >&5
5198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5199 whose name does not start with the host triplet. If you think this
5200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5201 ac_tool_warned=yes ;;
5202 esac
5203 RANLIB=$ac_ct_RANLIB
5205 else
5206 RANLIB="$ac_cv_prog_RANLIB"
5210 # Extract the first word of "install-info", so it can be a program name with args.
5211 set dummy install-info; ac_word=$2
5212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5214 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217 case $INSTALL_INFO in
5218 [\\/]* | ?:[\\/]*)
5219 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5235 IFS=$as_save_IFS
5238 esac
5240 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5241 if test -n "$INSTALL_INFO"; then
5242 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5243 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5244 else
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5250 # Extract the first word of "install-info", so it can be a program name with args.
5251 set dummy install-info; ac_word=$2
5252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5254 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257 case $INSTALL_INFO in
5258 [\\/]* | ?:[\\/]*)
5259 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in /usr/sbin
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5273 done
5274 done
5275 IFS=$as_save_IFS
5278 esac
5280 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5281 if test -n "$INSTALL_INFO"; then
5282 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5283 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5284 else
5285 { echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6; }
5290 # Extract the first word of "install-info", so it can be a program name with args.
5291 set dummy install-info; ac_word=$2
5292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5294 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297 case $INSTALL_INFO in
5298 [\\/]* | ?:[\\/]*)
5299 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in /sbin
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5313 done
5314 done
5315 IFS=$as_save_IFS
5317 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5319 esac
5321 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5322 if test -n "$INSTALL_INFO"; then
5323 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5324 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5325 else
5326 { echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6; }
5331 # Extract the first word of "gzip", so it can be a program name with args.
5332 set dummy gzip; ac_word=$2
5333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5335 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338 case $GZIP_PROG in
5339 [\\/]* | ?:[\\/]*)
5340 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5356 IFS=$as_save_IFS
5359 esac
5361 GZIP_PROG=$ac_cv_path_GZIP_PROG
5362 if test -n "$GZIP_PROG"; then
5363 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5364 echo "${ECHO_T}$GZIP_PROG" >&6; }
5365 else
5366 { echo "$as_me:$LINENO: result: no" >&5
5367 echo "${ECHO_T}no" >&6; }
5373 ## Need makeinfo >= 4.6 (?) to build the manuals.
5374 # Extract the first word of "makeinfo", so it can be a program name with args.
5375 set dummy makeinfo; ac_word=$2
5376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381 case $MAKEINFO in
5382 [\\/]* | ?:[\\/]*)
5383 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5397 done
5398 done
5399 IFS=$as_save_IFS
5401 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5403 esac
5405 MAKEINFO=$ac_cv_path_MAKEINFO
5406 if test -n "$MAKEINFO"; then
5407 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5408 echo "${ECHO_T}$MAKEINFO" >&6; }
5409 else
5410 { echo "$as_me:$LINENO: result: no" >&5
5411 echo "${ECHO_T}no" >&6; }
5415 if test "$MAKEINFO" != "no" && \
5416 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
5417 MAKEINFO=no
5420 if test "$MAKEINFO" = "no"; then
5421 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5422 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5423 { (exit 1); exit 1; }; }
5428 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5429 then
5430 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5433 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5434 then
5435 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5439 late_LDFLAGS=$LDFLAGS
5440 if test "$GCC" = yes; then
5441 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5442 else
5443 LDFLAGS="$LDFLAGS -znocombreloc"
5446 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5447 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5448 cat >conftest.$ac_ext <<_ACEOF
5449 main(){return 0;}
5450 _ACEOF
5451 rm -f conftest.$ac_objext conftest$ac_exeext
5452 if { (ac_try="$ac_link"
5453 case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456 esac
5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 (eval "$ac_link") 2>conftest.er1
5459 ac_status=$?
5460 grep -v '^ *+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } && {
5465 test -z "$ac_c_werror_flag" ||
5466 test ! -s conftest.err
5467 } && test -s conftest$ac_exeext &&
5468 $as_test_x conftest$ac_exeext; then
5469 { echo "$as_me:$LINENO: result: yes" >&5
5470 echo "${ECHO_T}yes" >&6; }
5471 else
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 LDFLAGS=$late_LDFLAGS
5476 { echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6; }
5480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5481 conftest$ac_exeext conftest.$ac_ext
5483 #### Extract some information from the operating system and machine files.
5485 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5486 - which libraries the lib-src programs will want, and
5487 - whether the GNU malloc routines are usable..." >&5
5488 echo "$as_me: checking the machine- and system-dependent files to find out
5489 - which libraries the lib-src programs will want, and
5490 - whether the GNU malloc routines are usable..." >&6;}
5492 ### First figure out CFLAGS (which we use for running the compiler here)
5493 ### and REAL_CFLAGS (which we use for real compilation).
5494 ### The two are the same except on a few systems, where they are made
5495 ### different to work around various lossages. For example,
5496 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5497 ### as implying static linking.
5499 ### If the CFLAGS env var is specified, we use that value
5500 ### instead of the default.
5502 ### It's not important that this name contain the PID; you can't run
5503 ### two configures in the same directory and have anything work
5504 ### anyway.
5505 tempcname="conftest.c"
5507 echo '
5508 #include "'${srcdir}'/src/'${opsysfile}'"
5509 #include "'${srcdir}'/src/'${machfile}'"
5510 #ifndef LIBS_MACHINE
5511 #define LIBS_MACHINE
5512 #endif
5513 #ifndef LIBS_SYSTEM
5514 #define LIBS_SYSTEM
5515 #endif
5516 #ifndef C_SWITCH_SYSTEM
5517 #define C_SWITCH_SYSTEM
5518 #endif
5519 #ifndef C_SWITCH_MACHINE
5520 #define C_SWITCH_MACHINE
5521 #endif
5522 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5523 configure___ c_switch_system=C_SWITCH_SYSTEM
5524 configure___ c_switch_machine=C_SWITCH_MACHINE
5526 #ifndef LIB_X11_LIB
5527 #define LIB_X11_LIB -lX11
5528 #endif
5530 #ifndef LIBX11_MACHINE
5531 #define LIBX11_MACHINE
5532 #endif
5534 #ifndef LIBX11_SYSTEM
5535 #define LIBX11_SYSTEM
5536 #endif
5537 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5539 #ifdef UNEXEC
5540 configure___ unexec=UNEXEC
5541 #else
5542 configure___ unexec=unexec.o
5543 #endif
5545 #ifdef SYSTEM_MALLOC
5546 configure___ system_malloc=yes
5547 #else
5548 configure___ system_malloc=no
5549 #endif
5551 #ifdef USE_MMAP_FOR_BUFFERS
5552 configure___ use_mmap_for_buffers=yes
5553 #else
5554 configure___ use_mmap_for_buffers=no
5555 #endif
5557 #ifndef C_DEBUG_SWITCH
5558 #define C_DEBUG_SWITCH -g
5559 #endif
5561 #ifndef C_OPTIMIZE_SWITCH
5562 #ifdef __GNUC__
5563 #define C_OPTIMIZE_SWITCH -O2
5564 #else
5565 #define C_OPTIMIZE_SWITCH -O
5566 #endif
5567 #endif
5569 #ifndef C_WARNINGS_SWITCH
5570 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5571 #endif
5573 #ifndef LD_SWITCH_MACHINE
5574 #define LD_SWITCH_MACHINE
5575 #endif
5577 #ifndef LD_SWITCH_SYSTEM
5578 #define LD_SWITCH_SYSTEM
5579 #endif
5581 #ifndef LD_SWITCH_X_SITE_AUX
5582 #define LD_SWITCH_X_SITE_AUX
5583 #endif
5585 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5586 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5588 #ifdef THIS_IS_CONFIGURE
5590 /* Get the CFLAGS for tests in configure. */
5591 #ifdef __GNUC__
5592 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5593 #else
5594 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5595 #endif
5597 #else /* not THIS_IS_CONFIGURE */
5599 /* Get the CFLAGS for real compilation. */
5600 #ifdef __GNUC__
5601 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5602 #else
5603 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5604 #endif
5606 #endif /* not THIS_IS_CONFIGURE */
5607 ' > ${tempcname}
5609 # The value of CPP is a quoted variable reference, so we need to do this
5610 # to get its actual value...
5611 CPP=`eval "echo $CPP"`
5612 eval `${CPP} -Isrc ${tempcname} \
5613 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5614 if test "x$SPECIFIED_CFLAGS" = x; then
5615 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5616 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5617 else
5618 REAL_CFLAGS="$CFLAGS"
5620 rm ${tempcname}
5622 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5624 ### Make sure subsequent tests use flags consistent with the build flags.
5626 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5627 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5628 else
5629 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5634 # Check whether --enable-largefile was given.
5635 if test "${enable_largefile+set}" = set; then
5636 enableval=$enable_largefile;
5639 if test "$enable_largefile" != no; then
5641 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5642 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5643 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 ac_cv_sys_largefile_CC=no
5647 if test "$GCC" != yes; then
5648 ac_save_CC=$CC
5649 while :; do
5650 # IRIX 6.2 and later do not support large files by default,
5651 # so use the C compiler's -n32 option if that helps.
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 #include <sys/types.h>
5659 /* Check that off_t can represent 2**63 - 1 correctly.
5660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5661 since some C++ compilers masquerading as C compilers
5662 incorrectly reject 9223372036854775807. */
5663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5665 && LARGE_OFF_T % 2147483647 == 1)
5666 ? 1 : -1];
5668 main ()
5672 return 0;
5674 _ACEOF
5675 rm -f conftest.$ac_objext
5676 if { (ac_try="$ac_compile"
5677 case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compile") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } && {
5689 test -z "$ac_c_werror_flag" ||
5690 test ! -s conftest.err
5691 } && test -s conftest.$ac_objext; then
5692 break
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5700 rm -f core conftest.err conftest.$ac_objext
5701 CC="$CC -n32"
5702 rm -f conftest.$ac_objext
5703 if { (ac_try="$ac_compile"
5704 case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_compile") 2>conftest.er1
5710 ac_status=$?
5711 grep -v '^ *+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } && {
5716 test -z "$ac_c_werror_flag" ||
5717 test ! -s conftest.err
5718 } && test -s conftest.$ac_objext; then
5719 ac_cv_sys_largefile_CC=' -n32'; break
5720 else
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5727 rm -f core conftest.err conftest.$ac_objext
5728 break
5729 done
5730 CC=$ac_save_CC
5731 rm -f conftest.$ac_ext
5734 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5735 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5736 if test "$ac_cv_sys_largefile_CC" != no; then
5737 CC=$CC$ac_cv_sys_largefile_CC
5740 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5741 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5742 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745 while :; do
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h. */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #include <sys/types.h>
5753 /* Check that off_t can represent 2**63 - 1 correctly.
5754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5755 since some C++ compilers masquerading as C compilers
5756 incorrectly reject 9223372036854775807. */
5757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5759 && LARGE_OFF_T % 2147483647 == 1)
5760 ? 1 : -1];
5762 main ()
5766 return 0;
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (ac_try="$ac_compile"
5771 case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compile") 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && {
5783 test -z "$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5785 } && test -s conftest.$ac_objext; then
5786 ac_cv_sys_file_offset_bits=no; break
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 #define _FILE_OFFSET_BITS 64
5802 #include <sys/types.h>
5803 /* Check that off_t can represent 2**63 - 1 correctly.
5804 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5805 since some C++ compilers masquerading as C compilers
5806 incorrectly reject 9223372036854775807. */
5807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5809 && LARGE_OFF_T % 2147483647 == 1)
5810 ? 1 : -1];
5812 main ()
5816 return 0;
5818 _ACEOF
5819 rm -f conftest.$ac_objext
5820 if { (ac_try="$ac_compile"
5821 case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824 esac
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_compile") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && {
5833 test -z "$ac_c_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest.$ac_objext; then
5836 ac_cv_sys_file_offset_bits=64; break
5837 else
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 ac_cv_sys_file_offset_bits=unknown
5846 break
5847 done
5849 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5850 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5851 case $ac_cv_sys_file_offset_bits in #(
5852 no | unknown) ;;
5854 cat >>confdefs.h <<_ACEOF
5855 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5856 _ACEOF
5858 esac
5859 rm -f conftest*
5860 if test $ac_cv_sys_file_offset_bits = unknown; then
5861 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5862 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5863 if test "${ac_cv_sys_large_files+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866 while :; do
5867 cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h. */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5873 #include <sys/types.h>
5874 /* Check that off_t can represent 2**63 - 1 correctly.
5875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5876 since some C++ compilers masquerading as C compilers
5877 incorrectly reject 9223372036854775807. */
5878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5880 && LARGE_OFF_T % 2147483647 == 1)
5881 ? 1 : -1];
5883 main ()
5887 return 0;
5889 _ACEOF
5890 rm -f conftest.$ac_objext
5891 if { (ac_try="$ac_compile"
5892 case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_compile") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest.$ac_objext; then
5907 ac_cv_sys_large_files=no; break
5908 else
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.$ac_ext >&5
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h. */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 #define _LARGE_FILES 1
5923 #include <sys/types.h>
5924 /* Check that off_t can represent 2**63 - 1 correctly.
5925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5926 since some C++ compilers masquerading as C compilers
5927 incorrectly reject 9223372036854775807. */
5928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5930 && LARGE_OFF_T % 2147483647 == 1)
5931 ? 1 : -1];
5933 main ()
5937 return 0;
5939 _ACEOF
5940 rm -f conftest.$ac_objext
5941 if { (ac_try="$ac_compile"
5942 case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_compile") 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && {
5954 test -z "$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 } && test -s conftest.$ac_objext; then
5957 ac_cv_sys_large_files=1; break
5958 else
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 ac_cv_sys_large_files=unknown
5967 break
5968 done
5970 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5971 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5972 case $ac_cv_sys_large_files in #(
5973 no | unknown) ;;
5975 cat >>confdefs.h <<_ACEOF
5976 #define _LARGE_FILES $ac_cv_sys_large_files
5977 _ACEOF
5979 esac
5980 rm -f conftest*
5986 ### The standard library on x86-64 GNU/Linux distributions can
5987 ### be located in either /usr/lib64 or /usr/lib.
5988 case "${canonical}" in
5989 x86_64-*-linux-gnu* )
5990 if test -d /usr/lib64; then
5992 cat >>confdefs.h <<\_ACEOF
5993 #define HAVE_X86_64_LIB64_DIR 1
5994 _ACEOF
5997 esac
6002 if test "${with_sound}" != "no"; then
6003 # Sound support for GNU/Linux and the free BSDs.
6004 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6005 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6006 if test "${ac_cv_header_stdc+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009 cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h. */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 #include <stdlib.h>
6016 #include <stdarg.h>
6017 #include <string.h>
6018 #include <float.h>
6021 main ()
6025 return 0;
6027 _ACEOF
6028 rm -f conftest.$ac_objext
6029 if { (ac_try="$ac_compile"
6030 case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_compile") 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && {
6042 test -z "$ac_c_werror_flag" ||
6043 test ! -s conftest.err
6044 } && test -s conftest.$ac_objext; then
6045 ac_cv_header_stdc=yes
6046 else
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6050 ac_cv_header_stdc=no
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 if test $ac_cv_header_stdc = yes; then
6056 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 #include <string.h>
6065 _ACEOF
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 $EGREP "memchr" >/dev/null 2>&1; then
6069 else
6070 ac_cv_header_stdc=no
6072 rm -f conftest*
6076 if test $ac_cv_header_stdc = yes; then
6077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h. */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084 #include <stdlib.h>
6086 _ACEOF
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "free" >/dev/null 2>&1; then
6090 else
6091 ac_cv_header_stdc=no
6093 rm -f conftest*
6097 if test $ac_cv_header_stdc = yes; then
6098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6099 if test "$cross_compiling" = yes; then
6101 else
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <ctype.h>
6109 #include <stdlib.h>
6110 #if ((' ' & 0x0FF) == 0x020)
6111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6113 #else
6114 # define ISLOWER(c) \
6115 (('a' <= (c) && (c) <= 'i') \
6116 || ('j' <= (c) && (c) <= 'r') \
6117 || ('s' <= (c) && (c) <= 'z'))
6118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6119 #endif
6121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6123 main ()
6125 int i;
6126 for (i = 0; i < 256; i++)
6127 if (XOR (islower (i), ISLOWER (i))
6128 || toupper (i) != TOUPPER (i))
6129 return 2;
6130 return 0;
6132 _ACEOF
6133 rm -f conftest$ac_exeext
6134 if { (ac_try="$ac_link"
6135 case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_link") 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6144 { (case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_try") 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6154 else
6155 echo "$as_me: program exited with status $ac_status" >&5
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 ( exit $ac_status )
6160 ac_cv_header_stdc=no
6162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6168 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6169 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6170 if test $ac_cv_header_stdc = yes; then
6172 cat >>confdefs.h <<\_ACEOF
6173 #define STDC_HEADERS 1
6174 _ACEOF
6178 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6188 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6189 inttypes.h stdint.h unistd.h
6191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197 cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h. */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6203 $ac_includes_default
6205 #include <$ac_header>
6206 _ACEOF
6207 rm -f conftest.$ac_objext
6208 if { (ac_try="$ac_compile"
6209 case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212 esac
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_compile") 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } && {
6221 test -z "$ac_c_werror_flag" ||
6222 test ! -s conftest.err
6223 } && test -s conftest.$ac_objext; then
6224 eval "$as_ac_Header=yes"
6225 else
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 eval "$as_ac_Header=no"
6232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 ac_res=`eval echo '${'$as_ac_Header'}'`
6235 { echo "$as_me:$LINENO: result: $ac_res" >&5
6236 echo "${ECHO_T}$ac_res" >&6; }
6237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6240 _ACEOF
6244 done
6250 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 ac_res=`eval echo '${'$as_ac_Header'}'`
6260 { echo "$as_me:$LINENO: result: $ac_res" >&5
6261 echo "${ECHO_T}$ac_res" >&6; }
6262 else
6263 # Is the header compilable?
6264 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 $ac_includes_default
6273 #include <$ac_header>
6274 _ACEOF
6275 rm -f conftest.$ac_objext
6276 if { (ac_try="$ac_compile"
6277 case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_compile") 2>conftest.er1
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } && {
6289 test -z "$ac_c_werror_flag" ||
6290 test ! -s conftest.err
6291 } && test -s conftest.$ac_objext; then
6292 ac_header_compiler=yes
6293 else
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6297 ac_header_compiler=no
6300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6302 echo "${ECHO_T}$ac_header_compiler" >&6; }
6304 # Is the header present?
6305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 #include <$ac_header>
6314 _ACEOF
6315 if { (ac_try="$ac_cpp conftest.$ac_ext"
6316 case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6319 esac
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } >/dev/null && {
6328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 }; then
6331 ac_header_preproc=yes
6332 else
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 ac_header_preproc=no
6339 rm -f conftest.err conftest.$ac_ext
6340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6341 echo "${ECHO_T}$ac_header_preproc" >&6; }
6343 # So? What about this header?
6344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6345 yes:no: )
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6350 ac_header_preproc=yes
6352 no:yes:* )
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6367 esac
6368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 eval "$as_ac_Header=\$ac_header_preproc"
6375 ac_res=`eval echo '${'$as_ac_Header'}'`
6376 { echo "$as_me:$LINENO: result: $ac_res" >&5
6377 echo "${ECHO_T}$ac_res" >&6; }
6380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6381 cat >>confdefs.h <<_ACEOF
6382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6383 _ACEOF
6387 done
6389 # Emulation library used on NetBSD.
6390 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6391 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6392 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 ac_check_lib_save_LIBS=$LIBS
6396 LIBS="-lossaudio $LIBS"
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h. */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6404 /* Override any GCC internal prototype to avoid an error.
6405 Use char because int might match the return type of a GCC
6406 builtin and then its argument prototype would still apply. */
6407 #ifdef __cplusplus
6408 extern "C"
6409 #endif
6410 char _oss_ioctl ();
6412 main ()
6414 return _oss_ioctl ();
6416 return 0;
6418 _ACEOF
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (ac_try="$ac_link"
6421 case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424 esac
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_link") 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext &&
6436 $as_test_x conftest$ac_exeext; then
6437 ac_cv_lib_ossaudio__oss_ioctl=yes
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_cv_lib_ossaudio__oss_ioctl=no
6445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6446 conftest$ac_exeext conftest.$ac_ext
6447 LIBS=$ac_check_lib_save_LIBS
6449 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6450 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6451 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6452 LIBSOUND=-lossaudio
6453 else
6454 LIBSOUND=
6459 ALSA_REQUIRED=1.0.0
6460 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6461 if test "X${with_pkg_config_prog}" != X; then
6462 PKG_CONFIG="${with_pkg_config_prog}"
6465 succeeded=no
6467 if test -z "$PKG_CONFIG"; then
6468 # Extract the first word of "pkg-config", so it can be a program name with args.
6469 set dummy pkg-config; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 case $PKG_CONFIG in
6476 [\\/]* | ?:[\\/]*)
6477 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6491 done
6492 done
6493 IFS=$as_save_IFS
6495 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6497 esac
6499 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6500 if test -n "$PKG_CONFIG"; then
6501 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6502 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6503 else
6504 { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6511 if test "$PKG_CONFIG" = "no" ; then
6512 HAVE_ALSA=no
6513 else
6514 PKG_CONFIG_MIN_VERSION=0.9.0
6515 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6516 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6517 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6519 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6520 { echo "$as_me:$LINENO: result: yes" >&5
6521 echo "${ECHO_T}yes" >&6; }
6522 succeeded=yes
6524 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6525 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6526 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6527 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6528 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6530 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6531 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6532 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6533 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6534 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6535 else
6536 { echo "$as_me:$LINENO: result: no" >&5
6537 echo "${ECHO_T}no" >&6; }
6538 ALSA_CFLAGS=""
6539 ALSA_LIBS=""
6540 ## If we have a custom action on failure, don't print errors, but
6541 ## do set a variable so people can do so.
6542 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6548 else
6549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6554 if test $succeeded = yes; then
6555 HAVE_ALSA=yes
6556 else
6557 HAVE_ALSA=no
6560 if test $HAVE_ALSA = yes; then
6561 SAVE_CFLAGS="$CFLAGS"
6562 SAVE_LDFLAGS="$LDFLAGS"
6563 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6564 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h. */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 #include <asoundlib.h>
6573 main ()
6575 snd_lib_error_set_handler (0);
6577 return 0;
6579 _ACEOF
6580 rm -f conftest.$ac_objext
6581 if { (ac_try="$ac_compile"
6582 case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6585 esac
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_compile") 2>conftest.er1
6588 ac_status=$?
6589 grep -v '^ *+' conftest.er1 >conftest.err
6590 rm -f conftest.er1
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest.$ac_objext; then
6597 emacs_alsa_normal=yes
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 emacs_alsa_normal=no
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 if test "$emacs_alsa_normal" != yes; then
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h. */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 #include <alsa/asoundlib.h>
6615 main ()
6617 snd_lib_error_set_handler (0);
6619 return 0;
6621 _ACEOF
6622 rm -f conftest.$ac_objext
6623 if { (ac_try="$ac_compile"
6624 case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627 esac
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_compile") 2>conftest.er1
6630 ac_status=$?
6631 grep -v '^ *+' conftest.er1 >conftest.err
6632 rm -f conftest.er1
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } && {
6636 test -z "$ac_c_werror_flag" ||
6637 test ! -s conftest.err
6638 } && test -s conftest.$ac_objext; then
6639 emacs_alsa_subdir=yes
6640 else
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6644 emacs_alsa_subdir=no
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 if test "$emacs_alsa_subdir" != yes; then
6649 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6650 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6651 { (exit 1); exit 1; }; }
6653 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6656 CFLAGS="$SAVE_CFLAGS"
6657 LDFLAGS="$SAVE_LDFLAGS"
6658 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6659 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6661 cat >>confdefs.h <<\_ACEOF
6662 #define HAVE_ALSA 1
6663 _ACEOF
6694 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6695 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6696 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6697 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6698 sys/utsname.h pwd.h
6700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 ac_res=`eval echo '${'$as_ac_Header'}'`
6708 { echo "$as_me:$LINENO: result: $ac_res" >&5
6709 echo "${ECHO_T}$ac_res" >&6; }
6710 else
6711 # Is the header compilable?
6712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6714 cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h. */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 $ac_includes_default
6721 #include <$ac_header>
6722 _ACEOF
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6725 case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6728 esac
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.$ac_objext; then
6740 ac_header_compiler=yes
6741 else
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 ac_header_compiler=no
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6750 echo "${ECHO_T}$ac_header_compiler" >&6; }
6752 # Is the header present?
6753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 #include <$ac_header>
6762 _ACEOF
6763 if { (ac_try="$ac_cpp conftest.$ac_ext"
6764 case "(($ac_try" in
6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6767 esac
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } >/dev/null && {
6776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 }; then
6779 ac_header_preproc=yes
6780 else
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 ac_header_preproc=no
6787 rm -f conftest.err conftest.$ac_ext
6788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6789 echo "${ECHO_T}$ac_header_preproc" >&6; }
6791 # So? What about this header?
6792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6793 yes:no: )
6794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6798 ac_header_preproc=yes
6800 no:yes:* )
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6815 esac
6816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821 eval "$as_ac_Header=\$ac_header_preproc"
6823 ac_res=`eval echo '${'$as_ac_Header'}'`
6824 { echo "$as_me:$LINENO: result: $ac_res" >&5
6825 echo "${ECHO_T}$ac_res" >&6; }
6828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6829 cat >>confdefs.h <<_ACEOF
6830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6831 _ACEOF
6835 done
6838 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6839 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6840 cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h. */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6846 #include <sys/personality.h>
6848 main ()
6850 personality (PER_LINUX32)
6852 return 0;
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (ac_try="$ac_compile"
6857 case "(($ac_try" in
6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6860 esac
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compile") 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest.$ac_objext; then
6872 emacs_cv_personality_linux32=yes
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 emacs_cv_personality_linux32=no
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6882 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6884 if test $emacs_cv_personality_linux32 = yes; then
6886 cat >>confdefs.h <<\_ACEOF
6887 #define HAVE_PERSONALITY_LINUX32 1
6888 _ACEOF
6893 for ac_header in term.h
6895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901 cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h. */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 #include <$ac_header>
6908 _ACEOF
6909 if { (ac_try="$ac_cpp conftest.$ac_ext"
6910 case "(($ac_try" in
6911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912 *) ac_try_echo=$ac_try;;
6913 esac
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6916 ac_status=$?
6917 grep -v '^ *+' conftest.er1 >conftest.err
6918 rm -f conftest.er1
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } >/dev/null && {
6922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6923 test ! -s conftest.err
6924 }; then
6925 eval "$as_ac_Header=yes"
6926 else
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 eval "$as_ac_Header=no"
6933 rm -f conftest.err conftest.$ac_ext
6935 ac_res=`eval echo '${'$as_ac_Header'}'`
6936 { echo "$as_me:$LINENO: result: $ac_res" >&5
6937 echo "${ECHO_T}$ac_res" >&6; }
6938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6939 cat >>confdefs.h <<_ACEOF
6940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6941 _ACEOF
6945 done
6947 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6948 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6949 if test "${ac_cv_header_stdc+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 #include <stdlib.h>
6959 #include <stdarg.h>
6960 #include <string.h>
6961 #include <float.h>
6964 main ()
6968 return 0;
6970 _ACEOF
6971 rm -f conftest.$ac_objext
6972 if { (ac_try="$ac_compile"
6973 case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976 esac
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_compile") 2>conftest.er1
6979 ac_status=$?
6980 grep -v '^ *+' conftest.er1 >conftest.err
6981 rm -f conftest.er1
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && {
6985 test -z "$ac_c_werror_flag" ||
6986 test ! -s conftest.err
6987 } && test -s conftest.$ac_objext; then
6988 ac_cv_header_stdc=yes
6989 else
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 ac_cv_header_stdc=no
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998 if test $ac_cv_header_stdc = yes; then
6999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 #include <string.h>
7008 _ACEOF
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "memchr" >/dev/null 2>&1; then
7012 else
7013 ac_cv_header_stdc=no
7015 rm -f conftest*
7019 if test $ac_cv_header_stdc = yes; then
7020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h. */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 #include <stdlib.h>
7029 _ACEOF
7030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7031 $EGREP "free" >/dev/null 2>&1; then
7033 else
7034 ac_cv_header_stdc=no
7036 rm -f conftest*
7040 if test $ac_cv_header_stdc = yes; then
7041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7042 if test "$cross_compiling" = yes; then
7044 else
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 #include <ctype.h>
7052 #include <stdlib.h>
7053 #if ((' ' & 0x0FF) == 0x020)
7054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7056 #else
7057 # define ISLOWER(c) \
7058 (('a' <= (c) && (c) <= 'i') \
7059 || ('j' <= (c) && (c) <= 'r') \
7060 || ('s' <= (c) && (c) <= 'z'))
7061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7062 #endif
7064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7066 main ()
7068 int i;
7069 for (i = 0; i < 256; i++)
7070 if (XOR (islower (i), ISLOWER (i))
7071 || toupper (i) != TOUPPER (i))
7072 return 2;
7073 return 0;
7075 _ACEOF
7076 rm -f conftest$ac_exeext
7077 if { (ac_try="$ac_link"
7078 case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081 esac
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_link") 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7087 { (case "(($ac_try" in
7088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089 *) ac_try_echo=$ac_try;;
7090 esac
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092 (eval "$ac_try") 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7097 else
7098 echo "$as_me: program exited with status $ac_status" >&5
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 ( exit $ac_status )
7103 ac_cv_header_stdc=no
7105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7111 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7112 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7113 if test $ac_cv_header_stdc = yes; then
7115 cat >>confdefs.h <<\_ACEOF
7116 #define STDC_HEADERS 1
7117 _ACEOF
7121 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7122 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7123 if test "${ac_cv_header_time+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126 cat >conftest.$ac_ext <<_ACEOF
7127 /* confdefs.h. */
7128 _ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 #include <sys/types.h>
7133 #include <sys/time.h>
7134 #include <time.h>
7137 main ()
7139 if ((struct tm *) 0)
7140 return 0;
7142 return 0;
7144 _ACEOF
7145 rm -f conftest.$ac_objext
7146 if { (ac_try="$ac_compile"
7147 case "(($ac_try" in
7148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149 *) ac_try_echo=$ac_try;;
7150 esac
7151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152 (eval "$ac_compile") 2>conftest.er1
7153 ac_status=$?
7154 grep -v '^ *+' conftest.er1 >conftest.err
7155 rm -f conftest.er1
7156 cat conftest.err >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } && {
7159 test -z "$ac_c_werror_flag" ||
7160 test ! -s conftest.err
7161 } && test -s conftest.$ac_objext; then
7162 ac_cv_header_time=yes
7163 else
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 ac_cv_header_time=no
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7173 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7174 if test $ac_cv_header_time = yes; then
7176 cat >>confdefs.h <<\_ACEOF
7177 #define TIME_WITH_SYS_TIME 1
7178 _ACEOF
7182 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7183 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7184 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187 cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h. */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7195 main ()
7197 #ifndef sys_siglist
7198 (void) sys_siglist;
7199 #endif
7202 return 0;
7204 _ACEOF
7205 rm -f conftest.$ac_objext
7206 if { (ac_try="$ac_compile"
7207 case "(($ac_try" in
7208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7210 esac
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212 (eval "$ac_compile") 2>conftest.er1
7213 ac_status=$?
7214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } && {
7219 test -z "$ac_c_werror_flag" ||
7220 test ! -s conftest.err
7221 } && test -s conftest.$ac_objext; then
7222 ac_cv_have_decl_sys_siglist=yes
7223 else
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 ac_cv_have_decl_sys_siglist=no
7230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7233 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7234 if test $ac_cv_have_decl_sys_siglist = yes; then
7236 cat >>confdefs.h <<_ACEOF
7237 #define HAVE_DECL_SYS_SIGLIST 1
7238 _ACEOF
7241 else
7242 cat >>confdefs.h <<_ACEOF
7243 #define HAVE_DECL_SYS_SIGLIST 0
7244 _ACEOF
7250 if test $ac_cv_have_decl_sys_siglist != yes; then
7251 # For Tru64, at least:
7252 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7253 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7254 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h. */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 $ac_includes_default
7265 main ()
7267 #ifndef __sys_siglist
7268 (void) __sys_siglist;
7269 #endif
7272 return 0;
7274 _ACEOF
7275 rm -f conftest.$ac_objext
7276 if { (ac_try="$ac_compile"
7277 case "(($ac_try" in
7278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279 *) ac_try_echo=$ac_try;;
7280 esac
7281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282 (eval "$ac_compile") 2>conftest.er1
7283 ac_status=$?
7284 grep -v '^ *+' conftest.er1 >conftest.err
7285 rm -f conftest.er1
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } && {
7289 test -z "$ac_c_werror_flag" ||
7290 test ! -s conftest.err
7291 } && test -s conftest.$ac_objext; then
7292 ac_cv_have_decl___sys_siglist=yes
7293 else
7294 echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.$ac_ext >&5
7297 ac_cv_have_decl___sys_siglist=no
7300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7303 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7304 if test $ac_cv_have_decl___sys_siglist = yes; then
7306 cat >>confdefs.h <<_ACEOF
7307 #define HAVE_DECL___SYS_SIGLIST 1
7308 _ACEOF
7311 else
7312 cat >>confdefs.h <<_ACEOF
7313 #define HAVE_DECL___SYS_SIGLIST 0
7314 _ACEOF
7320 if test $ac_cv_have_decl___sys_siglist = yes; then
7322 cat >>confdefs.h <<\_ACEOF
7323 #define sys_siglist __sys_siglist
7324 _ACEOF
7328 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7329 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7330 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h. */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 #include <sys/types.h>
7340 #include <sys/wait.h>
7341 #ifndef WEXITSTATUS
7342 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7343 #endif
7344 #ifndef WIFEXITED
7345 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7346 #endif
7349 main ()
7351 int s;
7352 wait (&s);
7353 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7355 return 0;
7357 _ACEOF
7358 rm -f conftest.$ac_objext
7359 if { (ac_try="$ac_compile"
7360 case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7363 esac
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_compile") 2>conftest.er1
7366 ac_status=$?
7367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } && {
7372 test -z "$ac_c_werror_flag" ||
7373 test ! -s conftest.err
7374 } && test -s conftest.$ac_objext; then
7375 ac_cv_header_sys_wait_h=yes
7376 else
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7380 ac_cv_header_sys_wait_h=no
7383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7386 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7387 if test $ac_cv_header_sys_wait_h = yes; then
7389 cat >>confdefs.h <<\_ACEOF
7390 #define HAVE_SYS_WAIT_H 1
7391 _ACEOF
7396 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7397 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7398 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 #ifdef TIME_WITH_SYS_TIME
7408 #include <sys/time.h>
7409 #include <time.h>
7410 #else
7411 #ifdef HAVE_SYS_TIME_H
7412 #include <sys/time.h>
7413 #else
7414 #include <time.h>
7415 #endif
7416 #endif
7417 #ifdef HAVE_UTIME_H
7418 #include <utime.h>
7419 #endif
7421 main ()
7423 static struct utimbuf x; x.actime = x.modtime;
7425 return 0;
7427 _ACEOF
7428 rm -f conftest.$ac_objext
7429 if { (ac_try="$ac_compile"
7430 case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433 esac
7434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435 (eval "$ac_compile") 2>conftest.er1
7436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && {
7442 test -z "$ac_c_werror_flag" ||
7443 test ! -s conftest.err
7444 } && test -s conftest.$ac_objext; then
7445 emacs_cv_struct_utimbuf=yes
7446 else
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7450 emacs_cv_struct_utimbuf=no
7453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7456 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7457 if test $emacs_cv_struct_utimbuf = yes; then
7459 cat >>confdefs.h <<\_ACEOF
7460 #define HAVE_STRUCT_UTIMBUF 1
7461 _ACEOF
7465 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7466 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7467 if test "${ac_cv_type_signal+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470 cat >conftest.$ac_ext <<_ACEOF
7471 /* confdefs.h. */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 #include <sys/types.h>
7477 #include <signal.h>
7480 main ()
7482 return *(signal (0, 0)) (0) == 1;
7484 return 0;
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (ac_try="$ac_compile"
7489 case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492 esac
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_compile") 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest.$ac_objext; then
7504 ac_cv_type_signal=int
7505 else
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_cv_type_signal=void
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7515 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7517 cat >>confdefs.h <<_ACEOF
7518 #define RETSIGTYPE $ac_cv_type_signal
7519 _ACEOF
7523 { echo "$as_me:$LINENO: checking for speed_t" >&5
7524 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7525 if test "${emacs_cv_speed_t+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528 cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h. */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534 #include <termios.h>
7536 main ()
7538 speed_t x = 1;
7540 return 0;
7542 _ACEOF
7543 rm -f conftest.$ac_objext
7544 if { (ac_try="$ac_compile"
7545 case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_compile") 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && {
7557 test -z "$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 } && test -s conftest.$ac_objext; then
7560 emacs_cv_speed_t=yes
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 emacs_cv_speed_t=no
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7571 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7572 if test $emacs_cv_speed_t = yes; then
7574 cat >>confdefs.h <<\_ACEOF
7575 #define HAVE_SPEED_T 1
7576 _ACEOF
7580 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7581 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7582 if test "${emacs_cv_struct_timeval+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585 cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h. */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 #ifdef TIME_WITH_SYS_TIME
7592 #include <sys/time.h>
7593 #include <time.h>
7594 #else
7595 #ifdef HAVE_SYS_TIME_H
7596 #include <sys/time.h>
7597 #else
7598 #include <time.h>
7599 #endif
7600 #endif
7602 main ()
7604 static struct timeval x; x.tv_sec = x.tv_usec;
7606 return 0;
7608 _ACEOF
7609 rm -f conftest.$ac_objext
7610 if { (ac_try="$ac_compile"
7611 case "(($ac_try" in
7612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7614 esac
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616 (eval "$ac_compile") 2>conftest.er1
7617 ac_status=$?
7618 grep -v '^ *+' conftest.er1 >conftest.err
7619 rm -f conftest.er1
7620 cat conftest.err >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } && {
7623 test -z "$ac_c_werror_flag" ||
7624 test ! -s conftest.err
7625 } && test -s conftest.$ac_objext; then
7626 emacs_cv_struct_timeval=yes
7627 else
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7631 emacs_cv_struct_timeval=no
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7637 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7638 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7639 if test $emacs_cv_struct_timeval = yes; then
7641 cat >>confdefs.h <<\_ACEOF
7642 #define HAVE_TIMEVAL 1
7643 _ACEOF
7647 { echo "$as_me:$LINENO: checking for struct exception" >&5
7648 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7649 if test "${emacs_cv_struct_exception+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h. */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 #include <math.h>
7660 main ()
7662 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7664 return 0;
7666 _ACEOF
7667 rm -f conftest.$ac_objext
7668 if { (ac_try="$ac_compile"
7669 case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672 esac
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_compile") 2>conftest.er1
7675 ac_status=$?
7676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } && {
7681 test -z "$ac_c_werror_flag" ||
7682 test ! -s conftest.err
7683 } && test -s conftest.$ac_objext; then
7684 emacs_cv_struct_exception=yes
7685 else
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7689 emacs_cv_struct_exception=no
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7695 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7696 HAVE_EXCEPTION=$emacs_cv_struct_exception
7697 if test $emacs_cv_struct_exception != yes; then
7699 cat >>confdefs.h <<\_ACEOF
7700 #define NO_MATHERR 1
7701 _ACEOF
7706 for ac_header in sys/socket.h
7708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 ac_res=`eval echo '${'$as_ac_Header'}'`
7716 { echo "$as_me:$LINENO: result: $ac_res" >&5
7717 echo "${ECHO_T}$ac_res" >&6; }
7718 else
7719 # Is the header compilable?
7720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7722 cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h. */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7728 $ac_includes_default
7729 #include <$ac_header>
7730 _ACEOF
7731 rm -f conftest.$ac_objext
7732 if { (ac_try="$ac_compile"
7733 case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.$ac_objext; then
7748 ac_header_compiler=yes
7749 else
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 ac_header_compiler=no
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7758 echo "${ECHO_T}$ac_header_compiler" >&6; }
7760 # Is the header present?
7761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7763 cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h. */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7769 #include <$ac_header>
7770 _ACEOF
7771 if { (ac_try="$ac_cpp conftest.$ac_ext"
7772 case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7775 esac
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7778 ac_status=$?
7779 grep -v '^ *+' conftest.er1 >conftest.err
7780 rm -f conftest.er1
7781 cat conftest.err >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } >/dev/null && {
7784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7785 test ! -s conftest.err
7786 }; then
7787 ac_header_preproc=yes
7788 else
7789 echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7792 ac_header_preproc=no
7795 rm -f conftest.err conftest.$ac_ext
7796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7797 echo "${ECHO_T}$ac_header_preproc" >&6; }
7799 # So? What about this header?
7800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7801 yes:no: )
7802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7806 ac_header_preproc=yes
7808 no:yes:* )
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7823 esac
7824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829 eval "$as_ac_Header=\$ac_header_preproc"
7831 ac_res=`eval echo '${'$as_ac_Header'}'`
7832 { echo "$as_me:$LINENO: result: $ac_res" >&5
7833 echo "${ECHO_T}$ac_res" >&6; }
7836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7839 _ACEOF
7843 done
7846 for ac_header in net/if.h
7848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854 cat >conftest.$ac_ext <<_ACEOF
7855 /* confdefs.h. */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7860 $ac_includes_default
7861 #if HAVE_SYS_SOCKET_H
7862 #include <sys/socket.h>
7863 #endif
7865 #include <$ac_header>
7866 _ACEOF
7867 rm -f conftest.$ac_objext
7868 if { (ac_try="$ac_compile"
7869 case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_compile") 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_c_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest.$ac_objext; then
7884 eval "$as_ac_Header=yes"
7885 else
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 eval "$as_ac_Header=no"
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 ac_res=`eval echo '${'$as_ac_Header'}'`
7895 { echo "$as_me:$LINENO: result: $ac_res" >&5
7896 echo "${ECHO_T}$ac_res" >&6; }
7897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7898 cat >>confdefs.h <<_ACEOF
7899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7900 _ACEOF
7904 done
7907 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7908 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7909 if test "${ac_cv_struct_tm+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912 cat >conftest.$ac_ext <<_ACEOF
7913 /* confdefs.h. */
7914 _ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7918 #include <sys/types.h>
7919 #include <time.h>
7922 main ()
7924 struct tm tm;
7925 int *p = &tm.tm_sec;
7926 return !p;
7928 return 0;
7930 _ACEOF
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7933 case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936 esac
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 ac_cv_struct_tm=time.h
7949 else
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_cv_struct_tm=sys/time.h
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7959 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7960 if test $ac_cv_struct_tm = sys/time.h; then
7962 cat >>confdefs.h <<\_ACEOF
7963 #define TM_IN_SYS_TIME 1
7964 _ACEOF
7968 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7969 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7970 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h. */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7979 #include <sys/types.h>
7980 #include <$ac_cv_struct_tm>
7984 main ()
7986 static struct tm ac_aggr;
7987 if (ac_aggr.tm_zone)
7988 return 0;
7990 return 0;
7992 _ACEOF
7993 rm -f conftest.$ac_objext
7994 if { (ac_try="$ac_compile"
7995 case "(($ac_try" in
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7998 esac
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_compile") 2>conftest.er1
8001 ac_status=$?
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } && {
8007 test -z "$ac_c_werror_flag" ||
8008 test ! -s conftest.err
8009 } && test -s conftest.$ac_objext; then
8010 ac_cv_member_struct_tm_tm_zone=yes
8011 else
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h. */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 #include <sys/types.h>
8022 #include <$ac_cv_struct_tm>
8026 main ()
8028 static struct tm ac_aggr;
8029 if (sizeof ac_aggr.tm_zone)
8030 return 0;
8032 return 0;
8034 _ACEOF
8035 rm -f conftest.$ac_objext
8036 if { (ac_try="$ac_compile"
8037 case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_compile") 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest.$ac_objext; then
8052 ac_cv_member_struct_tm_tm_zone=yes
8053 else
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_cv_member_struct_tm_tm_zone=no
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8066 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8067 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8069 cat >>confdefs.h <<_ACEOF
8070 #define HAVE_STRUCT_TM_TM_ZONE 1
8071 _ACEOF
8076 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8078 cat >>confdefs.h <<\_ACEOF
8079 #define HAVE_TM_ZONE 1
8080 _ACEOF
8082 else
8083 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8084 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8085 if test "${ac_cv_have_decl_tzname+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h. */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 #include <time.h>
8097 main ()
8099 #ifndef tzname
8100 (void) tzname;
8101 #endif
8104 return 0;
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (ac_try="$ac_compile"
8109 case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } && {
8121 test -z "$ac_c_werror_flag" ||
8122 test ! -s conftest.err
8123 } && test -s conftest.$ac_objext; then
8124 ac_cv_have_decl_tzname=yes
8125 else
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 ac_cv_have_decl_tzname=no
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8135 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8136 if test $ac_cv_have_decl_tzname = yes; then
8138 cat >>confdefs.h <<_ACEOF
8139 #define HAVE_DECL_TZNAME 1
8140 _ACEOF
8143 else
8144 cat >>confdefs.h <<_ACEOF
8145 #define HAVE_DECL_TZNAME 0
8146 _ACEOF
8152 { echo "$as_me:$LINENO: checking for tzname" >&5
8153 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8154 if test "${ac_cv_var_tzname+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157 cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h. */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 #include <time.h>
8164 #if !HAVE_DECL_TZNAME
8165 extern char *tzname[];
8166 #endif
8169 main ()
8171 return tzname[0][0];
8173 return 0;
8175 _ACEOF
8176 rm -f conftest.$ac_objext conftest$ac_exeext
8177 if { (ac_try="$ac_link"
8178 case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_link") 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest$ac_exeext &&
8193 $as_test_x conftest$ac_exeext; then
8194 ac_cv_var_tzname=yes
8195 else
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 ac_cv_var_tzname=no
8202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8203 conftest$ac_exeext conftest.$ac_ext
8205 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8206 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8207 if test $ac_cv_var_tzname = yes; then
8209 cat >>confdefs.h <<\_ACEOF
8210 #define HAVE_TZNAME 1
8211 _ACEOF
8216 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8217 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8218 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 #include <time.h>
8230 main ()
8232 static struct tm ac_aggr;
8233 if (ac_aggr.tm_gmtoff)
8234 return 0;
8236 return 0;
8238 _ACEOF
8239 rm -f conftest.$ac_objext
8240 if { (ac_try="$ac_compile"
8241 case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_compile") 2>conftest.er1
8247 ac_status=$?
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest.$ac_objext; then
8256 ac_cv_member_struct_tm_tm_gmtoff=yes
8257 else
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h. */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 #include <time.h>
8270 main ()
8272 static struct tm ac_aggr;
8273 if (sizeof ac_aggr.tm_gmtoff)
8274 return 0;
8276 return 0;
8278 _ACEOF
8279 rm -f conftest.$ac_objext
8280 if { (ac_try="$ac_compile"
8281 case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284 esac
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && {
8293 test -z "$ac_c_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest.$ac_objext; then
8296 ac_cv_member_struct_tm_tm_gmtoff=yes
8297 else
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8301 ac_cv_member_struct_tm_tm_gmtoff=no
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8310 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8311 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8313 cat >>confdefs.h <<\_ACEOF
8314 #define HAVE_TM_GMTOFF 1
8315 _ACEOF
8319 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8320 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8321 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324 cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h. */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 $ac_includes_default
8331 #if HAVE_SYS_SOCKET_H
8332 #include <sys/socket.h>
8333 #endif
8334 #if HAVE_NET_IF_H
8335 #include <net/if.h>
8336 #endif
8339 main ()
8341 static struct ifreq ac_aggr;
8342 if (ac_aggr.ifr_flags)
8343 return 0;
8345 return 0;
8347 _ACEOF
8348 rm -f conftest.$ac_objext
8349 if { (ac_try="$ac_compile"
8350 case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_compile") 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && {
8362 test -z "$ac_c_werror_flag" ||
8363 test ! -s conftest.err
8364 } && test -s conftest.$ac_objext; then
8365 ac_cv_member_struct_ifreq_ifr_flags=yes
8366 else
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h. */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 $ac_includes_default
8377 #if HAVE_SYS_SOCKET_H
8378 #include <sys/socket.h>
8379 #endif
8380 #if HAVE_NET_IF_H
8381 #include <net/if.h>
8382 #endif
8385 main ()
8387 static struct ifreq ac_aggr;
8388 if (sizeof ac_aggr.ifr_flags)
8389 return 0;
8391 return 0;
8393 _ACEOF
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8396 case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399 esac
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_compile") 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_c_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest.$ac_objext; then
8411 ac_cv_member_struct_ifreq_ifr_flags=yes
8412 else
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_cv_member_struct_ifreq_ifr_flags=no
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8425 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8426 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8428 cat >>confdefs.h <<_ACEOF
8429 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8430 _ACEOF
8434 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8435 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8436 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h. */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 $ac_includes_default
8446 #if HAVE_SYS_SOCKET_H
8447 #include <sys/socket.h>
8448 #endif
8449 #if HAVE_NET_IF_H
8450 #include <net/if.h>
8451 #endif
8454 main ()
8456 static struct ifreq ac_aggr;
8457 if (ac_aggr.ifr_hwaddr)
8458 return 0;
8460 return 0;
8462 _ACEOF
8463 rm -f conftest.$ac_objext
8464 if { (ac_try="$ac_compile"
8465 case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8468 esac
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_compile") 2>conftest.er1
8471 ac_status=$?
8472 grep -v '^ *+' conftest.er1 >conftest.err
8473 rm -f conftest.er1
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } && {
8477 test -z "$ac_c_werror_flag" ||
8478 test ! -s conftest.err
8479 } && test -s conftest.$ac_objext; then
8480 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8481 else
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h. */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491 $ac_includes_default
8492 #if HAVE_SYS_SOCKET_H
8493 #include <sys/socket.h>
8494 #endif
8495 #if HAVE_NET_IF_H
8496 #include <net/if.h>
8497 #endif
8500 main ()
8502 static struct ifreq ac_aggr;
8503 if (sizeof ac_aggr.ifr_hwaddr)
8504 return 0;
8506 return 0;
8508 _ACEOF
8509 rm -f conftest.$ac_objext
8510 if { (ac_try="$ac_compile"
8511 case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514 esac
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_compile") 2>conftest.er1
8517 ac_status=$?
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } && {
8523 test -z "$ac_c_werror_flag" ||
8524 test ! -s conftest.err
8525 } && test -s conftest.$ac_objext; then
8526 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8527 else
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8531 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8540 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8541 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8543 cat >>confdefs.h <<_ACEOF
8544 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8545 _ACEOF
8549 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8550 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8551 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554 cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h. */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8560 $ac_includes_default
8561 #if HAVE_SYS_SOCKET_H
8562 #include <sys/socket.h>
8563 #endif
8564 #if HAVE_NET_IF_H
8565 #include <net/if.h>
8566 #endif
8569 main ()
8571 static struct ifreq ac_aggr;
8572 if (ac_aggr.ifr_netmask)
8573 return 0;
8575 return 0;
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (ac_try="$ac_compile"
8580 case "(($ac_try" in
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8583 esac
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_compile") 2>conftest.er1
8586 ac_status=$?
8587 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -f conftest.er1
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } && {
8592 test -z "$ac_c_werror_flag" ||
8593 test ! -s conftest.err
8594 } && test -s conftest.$ac_objext; then
8595 ac_cv_member_struct_ifreq_ifr_netmask=yes
8596 else
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h. */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8606 $ac_includes_default
8607 #if HAVE_SYS_SOCKET_H
8608 #include <sys/socket.h>
8609 #endif
8610 #if HAVE_NET_IF_H
8611 #include <net/if.h>
8612 #endif
8615 main ()
8617 static struct ifreq ac_aggr;
8618 if (sizeof ac_aggr.ifr_netmask)
8619 return 0;
8621 return 0;
8623 _ACEOF
8624 rm -f conftest.$ac_objext
8625 if { (ac_try="$ac_compile"
8626 case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_compile") 2>conftest.er1
8632 ac_status=$?
8633 grep -v '^ *+' conftest.er1 >conftest.err
8634 rm -f conftest.er1
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && {
8638 test -z "$ac_c_werror_flag" ||
8639 test ! -s conftest.err
8640 } && test -s conftest.$ac_objext; then
8641 ac_cv_member_struct_ifreq_ifr_netmask=yes
8642 else
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_member_struct_ifreq_ifr_netmask=no
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8655 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8656 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8658 cat >>confdefs.h <<_ACEOF
8659 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8660 _ACEOF
8664 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8665 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8666 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h. */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8675 $ac_includes_default
8676 #if HAVE_SYS_SOCKET_H
8677 #include <sys/socket.h>
8678 #endif
8679 #if HAVE_NET_IF_H
8680 #include <net/if.h>
8681 #endif
8684 main ()
8686 static struct ifreq ac_aggr;
8687 if (ac_aggr.ifr_broadaddr)
8688 return 0;
8690 return 0;
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8695 case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h. */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 $ac_includes_default
8722 #if HAVE_SYS_SOCKET_H
8723 #include <sys/socket.h>
8724 #endif
8725 #if HAVE_NET_IF_H
8726 #include <net/if.h>
8727 #endif
8730 main ()
8732 static struct ifreq ac_aggr;
8733 if (sizeof ac_aggr.ifr_broadaddr)
8734 return 0;
8736 return 0;
8738 _ACEOF
8739 rm -f conftest.$ac_objext
8740 if { (ac_try="$ac_compile"
8741 case "(($ac_try" in
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8744 esac
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_compile") 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } && {
8753 test -z "$ac_c_werror_flag" ||
8754 test ! -s conftest.err
8755 } && test -s conftest.$ac_objext; then
8756 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8757 else
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8761 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8770 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8771 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8773 cat >>confdefs.h <<_ACEOF
8774 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8775 _ACEOF
8779 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8780 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8781 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 else
8784 cat >conftest.$ac_ext <<_ACEOF
8785 /* confdefs.h. */
8786 _ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790 $ac_includes_default
8791 #if HAVE_SYS_SOCKET_H
8792 #include <sys/socket.h>
8793 #endif
8794 #if HAVE_NET_IF_H
8795 #include <net/if.h>
8796 #endif
8799 main ()
8801 static struct ifreq ac_aggr;
8802 if (ac_aggr.ifr_addr)
8803 return 0;
8805 return 0;
8807 _ACEOF
8808 rm -f conftest.$ac_objext
8809 if { (ac_try="$ac_compile"
8810 case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813 esac
8814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_compile") 2>conftest.er1
8816 ac_status=$?
8817 grep -v '^ *+' conftest.er1 >conftest.err
8818 rm -f conftest.er1
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } && {
8822 test -z "$ac_c_werror_flag" ||
8823 test ! -s conftest.err
8824 } && test -s conftest.$ac_objext; then
8825 ac_cv_member_struct_ifreq_ifr_addr=yes
8826 else
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8830 cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h. */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8836 $ac_includes_default
8837 #if HAVE_SYS_SOCKET_H
8838 #include <sys/socket.h>
8839 #endif
8840 #if HAVE_NET_IF_H
8841 #include <net/if.h>
8842 #endif
8845 main ()
8847 static struct ifreq ac_aggr;
8848 if (sizeof ac_aggr.ifr_addr)
8849 return 0;
8851 return 0;
8853 _ACEOF
8854 rm -f conftest.$ac_objext
8855 if { (ac_try="$ac_compile"
8856 case "(($ac_try" in
8857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858 *) ac_try_echo=$ac_try;;
8859 esac
8860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861 (eval "$ac_compile") 2>conftest.er1
8862 ac_status=$?
8863 grep -v '^ *+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } && {
8868 test -z "$ac_c_werror_flag" ||
8869 test ! -s conftest.err
8870 } && test -s conftest.$ac_objext; then
8871 ac_cv_member_struct_ifreq_ifr_addr=yes
8872 else
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8876 ac_cv_member_struct_ifreq_ifr_addr=no
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8885 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8886 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8888 cat >>confdefs.h <<_ACEOF
8889 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8890 _ACEOF
8897 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8898 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8899 if test "$ac_cv_prog_cc_c89" != no; then
8900 { echo "$as_me:$LINENO: result: yes" >&5
8901 echo "${ECHO_T}yes" >&6; }
8903 cat >>confdefs.h <<\_ACEOF
8904 #define PROTOTYPES 1
8905 _ACEOF
8908 cat >>confdefs.h <<\_ACEOF
8909 #define __PROTOTYPES 1
8910 _ACEOF
8912 else
8913 { echo "$as_me:$LINENO: result: no" >&5
8914 echo "${ECHO_T}no" >&6; }
8917 { echo "$as_me:$LINENO: checking for working volatile" >&5
8918 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8919 if test "${ac_cv_c_volatile+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8930 main ()
8933 volatile int x;
8934 int * volatile y = (int *) 0;
8935 return !x && !y;
8937 return 0;
8939 _ACEOF
8940 rm -f conftest.$ac_objext
8941 if { (ac_try="$ac_compile"
8942 case "(($ac_try" in
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8945 esac
8946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947 (eval "$ac_compile") 2>conftest.er1
8948 ac_status=$?
8949 grep -v '^ *+' conftest.er1 >conftest.err
8950 rm -f conftest.er1
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } && {
8954 test -z "$ac_c_werror_flag" ||
8955 test ! -s conftest.err
8956 } && test -s conftest.$ac_objext; then
8957 ac_cv_c_volatile=yes
8958 else
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 ac_cv_c_volatile=no
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8968 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8969 if test $ac_cv_c_volatile = no; then
8971 cat >>confdefs.h <<\_ACEOF
8972 #define volatile
8973 _ACEOF
8977 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8978 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8979 if test "${ac_cv_c_const+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h. */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8990 main ()
8992 /* FIXME: Include the comments suggested by Paul. */
8993 #ifndef __cplusplus
8994 /* Ultrix mips cc rejects this. */
8995 typedef int charset[2];
8996 const charset cs;
8997 /* SunOS 4.1.1 cc rejects this. */
8998 char const *const *pcpcc;
8999 char **ppc;
9000 /* NEC SVR4.0.2 mips cc rejects this. */
9001 struct point {int x, y;};
9002 static struct point const zero = {0,0};
9003 /* AIX XL C 1.02.0.0 rejects this.
9004 It does not let you subtract one const X* pointer from another in
9005 an arm of an if-expression whose if-part is not a constant
9006 expression */
9007 const char *g = "string";
9008 pcpcc = &g + (g ? g-g : 0);
9009 /* HPUX 7.0 cc rejects these. */
9010 ++pcpcc;
9011 ppc = (char**) pcpcc;
9012 pcpcc = (char const *const *) ppc;
9013 { /* SCO 3.2v4 cc rejects this. */
9014 char *t;
9015 char const *s = 0 ? (char *) 0 : (char const *) 0;
9017 *t++ = 0;
9018 if (s) return 0;
9020 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9021 int x[] = {25, 17};
9022 const int *foo = &x[0];
9023 ++foo;
9025 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9026 typedef const int *iptr;
9027 iptr p = 0;
9028 ++p;
9030 { /* AIX XL C 1.02.0.0 rejects this saying
9031 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9032 struct s { int j; const int *ap[3]; };
9033 struct s *b; b->j = 5;
9035 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9036 const int foo = 10;
9037 if (!foo) return 0;
9039 return !cs[0] && !zero.x;
9040 #endif
9043 return 0;
9045 _ACEOF
9046 rm -f conftest.$ac_objext
9047 if { (ac_try="$ac_compile"
9048 case "(($ac_try" in
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9051 esac
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_compile") 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && {
9060 test -z "$ac_c_werror_flag" ||
9061 test ! -s conftest.err
9062 } && test -s conftest.$ac_objext; then
9063 ac_cv_c_const=yes
9064 else
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 ac_cv_c_const=no
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9074 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9075 if test $ac_cv_c_const = no; then
9077 cat >>confdefs.h <<\_ACEOF
9078 #define const
9079 _ACEOF
9083 { echo "$as_me:$LINENO: checking for void * support" >&5
9084 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9085 if test "${emacs_cv_void_star+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088 cat >conftest.$ac_ext <<_ACEOF
9089 /* confdefs.h. */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9096 main ()
9098 void * foo;
9100 return 0;
9102 _ACEOF
9103 rm -f conftest.$ac_objext
9104 if { (ac_try="$ac_compile"
9105 case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108 esac
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_compile") 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } && {
9117 test -z "$ac_c_werror_flag" ||
9118 test ! -s conftest.err
9119 } && test -s conftest.$ac_objext; then
9120 emacs_cv_void_star=yes
9121 else
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9125 emacs_cv_void_star=no
9128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9131 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9132 if test $emacs_cv_void_star = yes; then
9133 cat >>confdefs.h <<\_ACEOF
9134 #define POINTER_TYPE void
9135 _ACEOF
9137 else
9138 cat >>confdefs.h <<\_ACEOF
9139 #define POINTER_TYPE char
9140 _ACEOF
9148 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9149 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9150 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9151 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154 cat >conftest.make <<\_ACEOF
9155 SHELL = /bin/sh
9156 all:
9157 @echo '@@@%%%=$(MAKE)=@@@%%%'
9158 _ACEOF
9159 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9160 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9161 *@@@%%%=?*=@@@%%%*)
9162 eval ac_cv_prog_make_${ac_make}_set=yes;;
9164 eval ac_cv_prog_make_${ac_make}_set=no;;
9165 esac
9166 rm -f conftest.make
9168 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9169 { echo "$as_me:$LINENO: result: yes" >&5
9170 echo "${ECHO_T}yes" >&6; }
9171 SET_MAKE=
9172 else
9173 { echo "$as_me:$LINENO: result: no" >&5
9174 echo "${ECHO_T}no" >&6; }
9175 SET_MAKE="MAKE=${MAKE-make}"
9179 { echo "$as_me:$LINENO: checking for long file names" >&5
9180 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9181 if test "${ac_cv_sys_long_file_names+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184 ac_cv_sys_long_file_names=yes
9185 # Test for long file names in all the places we know might matter:
9186 # . the current directory, where building will happen
9187 # $prefix/lib where we will be installing things
9188 # $exec_prefix/lib likewise
9189 # $TMPDIR if set, where it might want to write temporary files
9190 # /tmp where it might want to write temporary files
9191 # /var/tmp likewise
9192 # /usr/tmp likewise
9193 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9194 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9195 # in the usual case where exec_prefix is '${prefix}'.
9196 case $ac_dir in #(
9197 . | /* | ?:[\\/]*) ;; #(
9198 *) continue;;
9199 esac
9200 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9201 ac_xdir=$ac_dir/cf$$
9202 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9203 ac_tf1=$ac_xdir/conftest9012345
9204 ac_tf2=$ac_xdir/conftest9012346
9205 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9206 ac_cv_sys_long_file_names=no
9207 rm -f -r "$ac_xdir" 2>/dev/null
9208 test $ac_cv_sys_long_file_names = no && break
9209 done
9211 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9212 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9213 if test $ac_cv_sys_long_file_names = yes; then
9215 cat >>confdefs.h <<\_ACEOF
9216 #define HAVE_LONG_FILE_NAMES 1
9217 _ACEOF
9222 #### Choose a window system.
9224 { echo "$as_me:$LINENO: checking for X" >&5
9225 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9228 # Check whether --with-x was given.
9229 if test "${with_x+set}" = set; then
9230 withval=$with_x;
9233 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9234 if test "x$with_x" = xno; then
9235 # The user explicitly disabled X.
9236 have_x=disabled
9237 else
9238 case $x_includes,$x_libraries in #(
9239 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9240 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9241 { (exit 1); exit 1; }; };; #(
9242 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245 # One or both of the vars are not set, and there is no cached value.
9246 ac_x_includes=no ac_x_libraries=no
9247 rm -f -r conftest.dir
9248 if mkdir conftest.dir; then
9249 cd conftest.dir
9250 cat >Imakefile <<'_ACEOF'
9251 incroot:
9252 @echo incroot='${INCROOT}'
9253 usrlibdir:
9254 @echo usrlibdir='${USRLIBDIR}'
9255 libdir:
9256 @echo libdir='${LIBDIR}'
9257 _ACEOF
9258 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9260 for ac_var in incroot usrlibdir libdir; do
9261 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9262 done
9263 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9264 for ac_extension in a so sl; do
9265 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9266 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9267 ac_im_usrlibdir=$ac_im_libdir; break
9269 done
9270 # Screen out bogus values from the imake configuration. They are
9271 # bogus both because they are the default anyway, and because
9272 # using them would break gcc on systems where it needs fixed includes.
9273 case $ac_im_incroot in
9274 /usr/include) ac_x_includes= ;;
9275 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9276 esac
9277 case $ac_im_usrlibdir in
9278 /usr/lib | /lib) ;;
9279 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9280 esac
9282 cd ..
9283 rm -f -r conftest.dir
9286 # Standard set of common directories for X headers.
9287 # Check X11 before X11Rn because it is often a symlink to the current release.
9288 ac_x_header_dirs='
9289 /usr/X11/include
9290 /usr/X11R6/include
9291 /usr/X11R5/include
9292 /usr/X11R4/include
9294 /usr/include/X11
9295 /usr/include/X11R6
9296 /usr/include/X11R5
9297 /usr/include/X11R4
9299 /usr/local/X11/include
9300 /usr/local/X11R6/include
9301 /usr/local/X11R5/include
9302 /usr/local/X11R4/include
9304 /usr/local/include/X11
9305 /usr/local/include/X11R6
9306 /usr/local/include/X11R5
9307 /usr/local/include/X11R4
9309 /usr/X386/include
9310 /usr/x386/include
9311 /usr/XFree86/include/X11
9313 /usr/include
9314 /usr/local/include
9315 /usr/unsupported/include
9316 /usr/athena/include
9317 /usr/local/x11r5/include
9318 /usr/lpp/Xamples/include
9320 /usr/openwin/include
9321 /usr/openwin/share/include'
9323 if test "$ac_x_includes" = no; then
9324 # Guess where to find include files, by looking for Xlib.h.
9325 # First, try using that file with no special directory specified.
9326 cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h. */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 #include <X11/Xlib.h>
9333 _ACEOF
9334 if { (ac_try="$ac_cpp conftest.$ac_ext"
9335 case "(($ac_try" in
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9338 esac
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9341 ac_status=$?
9342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } >/dev/null && {
9347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9348 test ! -s conftest.err
9349 }; then
9350 # We can compile using X headers with no special include directory.
9351 ac_x_includes=
9352 else
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9356 for ac_dir in $ac_x_header_dirs; do
9357 if test -r "$ac_dir/X11/Xlib.h"; then
9358 ac_x_includes=$ac_dir
9359 break
9361 done
9364 rm -f conftest.err conftest.$ac_ext
9365 fi # $ac_x_includes = no
9367 if test "$ac_x_libraries" = no; then
9368 # Check for the libraries.
9369 # See if we find them without any special options.
9370 # Don't add to $LIBS permanently.
9371 ac_save_LIBS=$LIBS
9372 LIBS="-lX11 $LIBS"
9373 cat >conftest.$ac_ext <<_ACEOF
9374 /* confdefs.h. */
9375 _ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9379 #include <X11/Xlib.h>
9381 main ()
9383 XrmInitialize ()
9385 return 0;
9387 _ACEOF
9388 rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (ac_try="$ac_link"
9390 case "(($ac_try" in
9391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9393 esac
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_link") 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && {
9402 test -z "$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9404 } && test -s conftest$ac_exeext &&
9405 $as_test_x conftest$ac_exeext; then
9406 LIBS=$ac_save_LIBS
9407 # We can link X programs with no special library path.
9408 ac_x_libraries=
9409 else
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 LIBS=$ac_save_LIBS
9414 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9416 # Don't even attempt the hair of trying to link an X program!
9417 for ac_extension in a so sl; do
9418 if test -r "$ac_dir/libX11.$ac_extension"; then
9419 ac_x_libraries=$ac_dir
9420 break 2
9422 done
9423 done
9426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9427 conftest$ac_exeext conftest.$ac_ext
9428 fi # $ac_x_libraries = no
9430 case $ac_x_includes,$ac_x_libraries in #(
9431 no,* | *,no | *\'*)
9432 # Didn't find X, or a directory has "'" in its name.
9433 ac_cv_have_x="have_x=no";; #(
9435 # Record where we found X for the cache.
9436 ac_cv_have_x="have_x=yes\
9437 ac_x_includes='$ac_x_includes'\
9438 ac_x_libraries='$ac_x_libraries'"
9439 esac
9441 ;; #(
9442 *) have_x=yes;;
9443 esac
9444 eval "$ac_cv_have_x"
9445 fi # $with_x != no
9447 if test "$have_x" != yes; then
9448 { echo "$as_me:$LINENO: result: $have_x" >&5
9449 echo "${ECHO_T}$have_x" >&6; }
9450 no_x=yes
9451 else
9452 # If each of the values was on the command line, it overrides each guess.
9453 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9454 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9455 # Update the cache value to reflect the command line values.
9456 ac_cv_have_x="have_x=yes\
9457 ac_x_includes='$x_includes'\
9458 ac_x_libraries='$x_libraries'"
9459 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9460 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9463 if test "$no_x" = yes; then
9464 window_system=none
9465 else
9466 window_system=x11
9469 if test "${x_libraries}" != NONE; then
9470 if test -n "${x_libraries}"; then
9471 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9472 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9474 x_default_search_path=""
9475 x_search_path=${x_libraries}
9476 if test -z "${x_search_path}"; then
9477 x_search_path=/usr/lib
9479 for x_library in `echo ${x_search_path}: | \
9480 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9481 x_search_path="\
9482 ${x_library}/X11/%L/%T/%N%C%S:\
9483 ${x_library}/X11/%l/%T/%N%C%S:\
9484 ${x_library}/X11/%T/%N%C%S:\
9485 ${x_library}/X11/%L/%T/%N%S:\
9486 ${x_library}/X11/%l/%T/%N%S:\
9487 ${x_library}/X11/%T/%N%S"
9488 if test x"${x_default_search_path}" = x; then
9489 x_default_search_path=${x_search_path}
9490 else
9491 x_default_search_path="${x_search_path}:${x_default_search_path}"
9493 done
9495 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9496 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9499 if test x"${x_includes}" = x; then
9500 bitmapdir=/usr/include/X11/bitmaps
9501 else
9502 # accumulate include directories that have X11 bitmap subdirectories
9503 bmd_acc="dummyval"
9504 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9505 if test -d "${bmd}/X11/bitmaps"; then
9506 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9508 if test -d "${bmd}/bitmaps"; then
9509 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9511 done
9512 if test ${bmd_acc} != "dummyval"; then
9513 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9517 HAVE_CARBON=no
9518 if test "${with_carbon}" != no; then
9519 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9520 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9521 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9522 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9526 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9527 else
9528 # Is the header compilable?
9529 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9530 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h. */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 $ac_includes_default
9538 #include <Carbon/Carbon.h>
9539 _ACEOF
9540 rm -f conftest.$ac_objext
9541 if { (ac_try="$ac_compile"
9542 case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9545 esac
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_compile") 2>conftest.er1
9548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } && {
9554 test -z "$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9556 } && test -s conftest.$ac_objext; then
9557 ac_header_compiler=yes
9558 else
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_header_compiler=no
9565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9567 echo "${ECHO_T}$ac_header_compiler" >&6; }
9569 # Is the header present?
9570 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9571 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h. */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 #include <Carbon/Carbon.h>
9579 _ACEOF
9580 if { (ac_try="$ac_cpp conftest.$ac_ext"
9581 case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584 esac
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } >/dev/null && {
9593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9595 }; then
9596 ac_header_preproc=yes
9597 else
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9601 ac_header_preproc=no
9604 rm -f conftest.err conftest.$ac_ext
9605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9606 echo "${ECHO_T}$ac_header_preproc" >&6; }
9608 # So? What about this header?
9609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9610 yes:no: )
9611 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9612 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9613 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9614 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9615 ac_header_preproc=yes
9617 no:yes:* )
9618 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9619 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9621 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9623 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9625 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9627 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9629 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9632 esac
9633 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9634 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9635 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9640 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9641 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9644 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9645 HAVE_CARBON=yes
9650 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9651 if test "${with_carbon+set}" != set \
9652 && test "${carbon_appdir_x+set}" != set; then
9653 for var in with_x with_x_toolkit with_gtk with_xim \
9654 with_xpm with_jpeg with_tiff with_gif with_png; do
9655 if eval test \"\${$var+set}\" = set; then
9656 HAVE_CARBON=no
9657 break
9659 done
9662 if test "${HAVE_CARBON}" = yes; then
9663 window_system=mac
9666 case "${window_system}" in
9667 x11 )
9668 HAVE_X_WINDOWS=yes
9669 HAVE_X11=yes
9670 case "${with_x_toolkit}" in
9671 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9672 motif ) USE_X_TOOLKIT=MOTIF ;;
9673 gtk ) with_gtk=yes
9674 USE_X_TOOLKIT=none ;;
9675 no ) USE_X_TOOLKIT=none ;;
9677 if test x"$with_gtk" = xyes; then
9678 USE_X_TOOLKIT=none
9679 else
9680 USE_X_TOOLKIT=maybe
9683 esac
9685 mac | none )
9686 HAVE_X_WINDOWS=no
9687 HAVE_X11=no
9688 USE_X_TOOLKIT=none
9690 esac
9692 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9693 # Extract the first word of "X", so it can be a program name with args.
9694 set dummy X; ac_word=$2
9695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9697 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700 if test -n "$HAVE_XSERVER"; then
9701 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9702 else
9703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704 for as_dir in $PATH
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9710 ac_cv_prog_HAVE_XSERVER="true"
9711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9712 break 2
9714 done
9715 done
9716 IFS=$as_save_IFS
9718 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9721 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9722 if test -n "$HAVE_XSERVER"; then
9723 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9724 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9725 else
9726 { echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6; }
9731 if test "$HAVE_XSERVER" = true ||
9732 test -n "$DISPLAY" ||
9733 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9734 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9735 were found. You should install the relevant development files for X
9736 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9737 sure you have development files for image handling, i.e.
9738 tiff, gif, jpeg, png and xpm.
9739 If you are sure you want Emacs compiled without X window support, pass
9740 --without-x
9741 to configure." >&5
9742 echo "$as_me: error: You seem to be running X, but no X development libraries
9743 were found. You should install the relevant development files for X
9744 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9745 sure you have development files for image handling, i.e.
9746 tiff, gif, jpeg, png and xpm.
9747 If you are sure you want Emacs compiled without X window support, pass
9748 --without-x
9749 to configure." >&2;}
9750 { (exit 1); exit 1; }; }
9754 ### If we're using X11, we should use the X menu package.
9755 HAVE_MENUS=no
9756 case ${HAVE_X11} in
9757 yes ) HAVE_MENUS=yes ;;
9758 esac
9760 if test "${opsys}" = "hpux9"; then
9761 case "${x_libraries}" in
9762 *X11R4* )
9763 opsysfile="s/hpux9-x11r4.h"
9765 esac
9768 if test "${opsys}" = "hpux9shr"; then
9769 case "${x_libraries}" in
9770 *X11R4* )
9771 opsysfile="s/hpux9shxr4.h"
9773 esac
9776 ### Compute the unexec source name from the object name.
9777 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9779 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9780 # Assume not, until told otherwise.
9781 GNU_MALLOC=yes
9782 doug_lea_malloc=yes
9783 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9784 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9785 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h. */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796 #define malloc_get_state innocuous_malloc_get_state
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char malloc_get_state (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9803 #ifdef __STDC__
9804 # include <limits.h>
9805 #else
9806 # include <assert.h>
9807 #endif
9809 #undef malloc_get_state
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char malloc_get_state ();
9818 /* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9822 choke me
9823 #endif
9826 main ()
9828 return malloc_get_state ();
9830 return 0;
9832 _ACEOF
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (ac_try="$ac_link"
9835 case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_link") 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest$ac_exeext &&
9850 $as_test_x conftest$ac_exeext; then
9851 ac_cv_func_malloc_get_state=yes
9852 else
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_cv_func_malloc_get_state=no
9859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9860 conftest$ac_exeext conftest.$ac_ext
9862 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9863 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9864 if test $ac_cv_func_malloc_get_state = yes; then
9866 else
9867 doug_lea_malloc=no
9870 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9871 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9872 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875 cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h. */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9883 #define malloc_set_state innocuous_malloc_set_state
9885 /* System header to define __stub macros and hopefully few prototypes,
9886 which can conflict with char malloc_set_state (); below.
9887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9888 <limits.h> exists even on freestanding compilers. */
9890 #ifdef __STDC__
9891 # include <limits.h>
9892 #else
9893 # include <assert.h>
9894 #endif
9896 #undef malloc_set_state
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9901 #ifdef __cplusplus
9902 extern "C"
9903 #endif
9904 char malloc_set_state ();
9905 /* The GNU C library defines this for functions which it implements
9906 to always fail with ENOSYS. Some functions are actually named
9907 something starting with __ and the normal name is an alias. */
9908 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9909 choke me
9910 #endif
9913 main ()
9915 return malloc_set_state ();
9917 return 0;
9919 _ACEOF
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (ac_try="$ac_link"
9922 case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9925 esac
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_link") 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest$ac_exeext &&
9937 $as_test_x conftest$ac_exeext; then
9938 ac_cv_func_malloc_set_state=yes
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_cv_func_malloc_set_state=no
9946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9947 conftest$ac_exeext conftest.$ac_ext
9949 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9950 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9951 if test $ac_cv_func_malloc_set_state = yes; then
9953 else
9954 doug_lea_malloc=no
9957 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9958 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9959 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962 cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h. */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968 extern void (* __after_morecore_hook)();
9970 main ()
9972 __after_morecore_hook = 0
9974 return 0;
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
9985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest$ac_exeext &&
9994 $as_test_x conftest$ac_exeext; then
9995 emacs_cv_var___after_morecore_hook=yes
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 emacs_cv_var___after_morecore_hook=no
10003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10004 conftest$ac_exeext conftest.$ac_ext
10006 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10007 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10008 if test $emacs_cv_var___after_morecore_hook = no; then
10009 doug_lea_malloc=no
10011 if test "${system_malloc}" = "yes"; then
10012 GNU_MALLOC=no
10013 GNU_MALLOC_reason="
10014 (The GNU allocators don't work with this system configuration.)"
10016 if test "$doug_lea_malloc" = "yes" ; then
10017 if test "$GNU_MALLOC" = yes ; then
10018 GNU_MALLOC_reason="
10019 (Using Doug Lea's new malloc from the GNU C Library.)"
10022 cat >>confdefs.h <<\_ACEOF
10023 #define DOUG_LEA_MALLOC 1
10024 _ACEOF
10028 if test x"${REL_ALLOC}" = x; then
10029 REL_ALLOC=${GNU_MALLOC}
10035 for ac_header in stdlib.h unistd.h
10037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 ac_res=`eval echo '${'$as_ac_Header'}'`
10045 { echo "$as_me:$LINENO: result: $ac_res" >&5
10046 echo "${ECHO_T}$ac_res" >&6; }
10047 else
10048 # Is the header compilable?
10049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h. */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 $ac_includes_default
10058 #include <$ac_header>
10059 _ACEOF
10060 rm -f conftest.$ac_objext
10061 if { (ac_try="$ac_compile"
10062 case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10065 esac
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_compile") 2>conftest.er1
10068 ac_status=$?
10069 grep -v '^ *+' conftest.er1 >conftest.err
10070 rm -f conftest.er1
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && {
10074 test -z "$ac_c_werror_flag" ||
10075 test ! -s conftest.err
10076 } && test -s conftest.$ac_objext; then
10077 ac_header_compiler=yes
10078 else
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 ac_header_compiler=no
10085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10087 echo "${ECHO_T}$ac_header_compiler" >&6; }
10089 # Is the header present?
10090 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 #include <$ac_header>
10099 _ACEOF
10100 if { (ac_try="$ac_cpp conftest.$ac_ext"
10101 case "(($ac_try" in
10102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103 *) ac_try_echo=$ac_try;;
10104 esac
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10107 ac_status=$?
10108 grep -v '^ *+' conftest.er1 >conftest.err
10109 rm -f conftest.er1
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } >/dev/null && {
10113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10114 test ! -s conftest.err
10115 }; then
10116 ac_header_preproc=yes
10117 else
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10121 ac_header_preproc=no
10124 rm -f conftest.err conftest.$ac_ext
10125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10126 echo "${ECHO_T}$ac_header_preproc" >&6; }
10128 # So? What about this header?
10129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10130 yes:no: )
10131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10135 ac_header_preproc=yes
10137 no:yes:* )
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10152 esac
10153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158 eval "$as_ac_Header=\$ac_header_preproc"
10160 ac_res=`eval echo '${'$as_ac_Header'}'`
10161 { echo "$as_me:$LINENO: result: $ac_res" >&5
10162 echo "${ECHO_T}$ac_res" >&6; }
10165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10166 cat >>confdefs.h <<_ACEOF
10167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10168 _ACEOF
10172 done
10175 for ac_func in getpagesize
10177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10191 #define $ac_func innocuous_$ac_func
10193 /* System header to define __stub macros and hopefully few prototypes,
10194 which can conflict with char $ac_func (); below.
10195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10196 <limits.h> exists even on freestanding compilers. */
10198 #ifdef __STDC__
10199 # include <limits.h>
10200 #else
10201 # include <assert.h>
10202 #endif
10204 #undef $ac_func
10206 /* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
10209 #ifdef __cplusplus
10210 extern "C"
10211 #endif
10212 char $ac_func ();
10213 /* The GNU C library defines this for functions which it implements
10214 to always fail with ENOSYS. Some functions are actually named
10215 something starting with __ and the normal name is an alias. */
10216 #if defined __stub_$ac_func || defined __stub___$ac_func
10217 choke me
10218 #endif
10221 main ()
10223 return $ac_func ();
10225 return 0;
10227 _ACEOF
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10233 esac
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest$ac_exeext &&
10245 $as_test_x conftest$ac_exeext; then
10246 eval "$as_ac_var=yes"
10247 else
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 eval "$as_ac_var=no"
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10257 ac_res=`eval echo '${'$as_ac_var'}'`
10258 { echo "$as_me:$LINENO: result: $ac_res" >&5
10259 echo "${ECHO_T}$ac_res" >&6; }
10260 if test `eval echo '${'$as_ac_var'}'` = yes; then
10261 cat >>confdefs.h <<_ACEOF
10262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10263 _ACEOF
10266 done
10268 { echo "$as_me:$LINENO: checking for working mmap" >&5
10269 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10270 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273 if test "$cross_compiling" = yes; then
10274 ac_cv_func_mmap_fixed_mapped=no
10275 else
10276 cat >conftest.$ac_ext <<_ACEOF
10277 /* confdefs.h. */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10282 $ac_includes_default
10283 /* malloc might have been renamed as rpl_malloc. */
10284 #undef malloc
10286 /* Thanks to Mike Haertel and Jim Avera for this test.
10287 Here is a matrix of mmap possibilities:
10288 mmap private not fixed
10289 mmap private fixed at somewhere currently unmapped
10290 mmap private fixed at somewhere already mapped
10291 mmap shared not fixed
10292 mmap shared fixed at somewhere currently unmapped
10293 mmap shared fixed at somewhere already mapped
10294 For private mappings, we should verify that changes cannot be read()
10295 back from the file, nor mmap's back from the file at a different
10296 address. (There have been systems where private was not correctly
10297 implemented like the infamous i386 svr4.0, and systems where the
10298 VM page cache was not coherent with the file system buffer cache
10299 like early versions of FreeBSD and possibly contemporary NetBSD.)
10300 For shared mappings, we should conversely verify that changes get
10301 propagated back to all the places they're supposed to be.
10303 Grep wants private fixed already mapped.
10304 The main things grep needs to know about mmap are:
10305 * does it exist and is it safe to write into the mmap'd area
10306 * how to use it (BSD variants) */
10308 #include <fcntl.h>
10309 #include <sys/mman.h>
10311 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10312 char *malloc ();
10313 #endif
10315 /* This mess was copied from the GNU getpagesize.h. */
10316 #ifndef HAVE_GETPAGESIZE
10317 /* Assume that all systems that can run configure have sys/param.h. */
10318 # ifndef HAVE_SYS_PARAM_H
10319 # define HAVE_SYS_PARAM_H 1
10320 # endif
10322 # ifdef _SC_PAGESIZE
10323 # define getpagesize() sysconf(_SC_PAGESIZE)
10324 # else /* no _SC_PAGESIZE */
10325 # ifdef HAVE_SYS_PARAM_H
10326 # include <sys/param.h>
10327 # ifdef EXEC_PAGESIZE
10328 # define getpagesize() EXEC_PAGESIZE
10329 # else /* no EXEC_PAGESIZE */
10330 # ifdef NBPG
10331 # define getpagesize() NBPG * CLSIZE
10332 # ifndef CLSIZE
10333 # define CLSIZE 1
10334 # endif /* no CLSIZE */
10335 # else /* no NBPG */
10336 # ifdef NBPC
10337 # define getpagesize() NBPC
10338 # else /* no NBPC */
10339 # ifdef PAGESIZE
10340 # define getpagesize() PAGESIZE
10341 # endif /* PAGESIZE */
10342 # endif /* no NBPC */
10343 # endif /* no NBPG */
10344 # endif /* no EXEC_PAGESIZE */
10345 # else /* no HAVE_SYS_PARAM_H */
10346 # define getpagesize() 8192 /* punt totally */
10347 # endif /* no HAVE_SYS_PARAM_H */
10348 # endif /* no _SC_PAGESIZE */
10350 #endif /* no HAVE_GETPAGESIZE */
10353 main ()
10355 char *data, *data2, *data3;
10356 int i, pagesize;
10357 int fd;
10359 pagesize = getpagesize ();
10361 /* First, make a file with some known garbage in it. */
10362 data = (char *) malloc (pagesize);
10363 if (!data)
10364 return 1;
10365 for (i = 0; i < pagesize; ++i)
10366 *(data + i) = rand ();
10367 umask (0);
10368 fd = creat ("conftest.mmap", 0600);
10369 if (fd < 0)
10370 return 1;
10371 if (write (fd, data, pagesize) != pagesize)
10372 return 1;
10373 close (fd);
10375 /* Next, try to mmap the file at a fixed address which already has
10376 something else allocated at it. If we can, also make sure that
10377 we see the same garbage. */
10378 fd = open ("conftest.mmap", O_RDWR);
10379 if (fd < 0)
10380 return 1;
10381 data2 = (char *) malloc (2 * pagesize);
10382 if (!data2)
10383 return 1;
10384 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10385 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10386 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10387 return 1;
10388 for (i = 0; i < pagesize; ++i)
10389 if (*(data + i) != *(data2 + i))
10390 return 1;
10392 /* Finally, make sure that changes to the mapped area do not
10393 percolate back to the file as seen by read(). (This is a bug on
10394 some variants of i386 svr4.0.) */
10395 for (i = 0; i < pagesize; ++i)
10396 *(data2 + i) = *(data2 + i) + 1;
10397 data3 = (char *) malloc (pagesize);
10398 if (!data3)
10399 return 1;
10400 if (read (fd, data3, pagesize) != pagesize)
10401 return 1;
10402 for (i = 0; i < pagesize; ++i)
10403 if (*(data + i) != *(data3 + i))
10404 return 1;
10405 close (fd);
10406 return 0;
10408 _ACEOF
10409 rm -f conftest$ac_exeext
10410 if { (ac_try="$ac_link"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10414 esac
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_link") 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10420 { (case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10423 esac
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_try") 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 ac_cv_func_mmap_fixed_mapped=yes
10430 else
10431 echo "$as_me: program exited with status $ac_status" >&5
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10435 ( exit $ac_status )
10436 ac_cv_func_mmap_fixed_mapped=no
10438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10443 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10444 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10445 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10447 cat >>confdefs.h <<\_ACEOF
10448 #define HAVE_MMAP 1
10449 _ACEOF
10452 rm -f conftest.mmap
10454 if test $use_mmap_for_buffers = yes; then
10455 REL_ALLOC=no
10458 LIBS="$libsrc_libs $LIBS"
10461 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10462 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10463 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466 ac_check_lib_save_LIBS=$LIBS
10467 LIBS="-ldnet $LIBS"
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h. */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10475 /* Override any GCC internal prototype to avoid an error.
10476 Use char because int might match the return type of a GCC
10477 builtin and then its argument prototype would still apply. */
10478 #ifdef __cplusplus
10479 extern "C"
10480 #endif
10481 char dnet_ntoa ();
10483 main ()
10485 return dnet_ntoa ();
10487 return 0;
10489 _ACEOF
10490 rm -f conftest.$ac_objext conftest$ac_exeext
10491 if { (ac_try="$ac_link"
10492 case "(($ac_try" in
10493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10494 *) ac_try_echo=$ac_try;;
10495 esac
10496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10497 (eval "$ac_link") 2>conftest.er1
10498 ac_status=$?
10499 grep -v '^ *+' conftest.er1 >conftest.err
10500 rm -f conftest.er1
10501 cat conftest.err >&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } && {
10504 test -z "$ac_c_werror_flag" ||
10505 test ! -s conftest.err
10506 } && test -s conftest$ac_exeext &&
10507 $as_test_x conftest$ac_exeext; then
10508 ac_cv_lib_dnet_dnet_ntoa=yes
10509 else
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 ac_cv_lib_dnet_dnet_ntoa=no
10516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10517 conftest$ac_exeext conftest.$ac_ext
10518 LIBS=$ac_check_lib_save_LIBS
10520 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10521 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10522 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10523 cat >>confdefs.h <<_ACEOF
10524 #define HAVE_LIBDNET 1
10525 _ACEOF
10527 LIBS="-ldnet $LIBS"
10532 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10533 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10534 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537 ac_check_lib_save_LIBS=$LIBS
10538 LIBS="-lXbsd $LIBS"
10539 cat >conftest.$ac_ext <<_ACEOF
10540 /* confdefs.h. */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10548 main ()
10550 return main ();
10552 return 0;
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (ac_try="$ac_link"
10557 case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10560 esac
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_link") 2>conftest.er1
10563 ac_status=$?
10564 grep -v '^ *+' conftest.er1 >conftest.err
10565 rm -f conftest.er1
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && {
10569 test -z "$ac_c_werror_flag" ||
10570 test ! -s conftest.err
10571 } && test -s conftest$ac_exeext &&
10572 $as_test_x conftest$ac_exeext; then
10573 ac_cv_lib_Xbsd_main=yes
10574 else
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10578 ac_cv_lib_Xbsd_main=no
10581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582 conftest$ac_exeext conftest.$ac_ext
10583 LIBS=$ac_check_lib_save_LIBS
10585 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10586 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10587 if test $ac_cv_lib_Xbsd_main = yes; then
10588 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10593 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10594 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10595 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598 ac_check_lib_save_LIBS=$LIBS
10599 LIBS="-lpthreads $LIBS"
10600 cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h. */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610 #ifdef __cplusplus
10611 extern "C"
10612 #endif
10613 char cma_open ();
10615 main ()
10617 return cma_open ();
10619 return 0;
10621 _ACEOF
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10627 esac
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_link") 2>conftest.er1
10630 ac_status=$?
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } && {
10636 test -z "$ac_c_werror_flag" ||
10637 test ! -s conftest.err
10638 } && test -s conftest$ac_exeext &&
10639 $as_test_x conftest$ac_exeext; then
10640 ac_cv_lib_pthreads_cma_open=yes
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_cv_lib_pthreads_cma_open=no
10648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10649 conftest$ac_exeext conftest.$ac_ext
10650 LIBS=$ac_check_lib_save_LIBS
10652 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10653 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10654 if test $ac_cv_lib_pthreads_cma_open = yes; then
10655 cat >>confdefs.h <<_ACEOF
10656 #define HAVE_LIBPTHREADS 1
10657 _ACEOF
10659 LIBS="-lpthreads $LIBS"
10664 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10665 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10666 if test -d /usr/X386/include; then
10667 HAVE_XFREE386=yes
10668 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10669 else
10670 HAVE_XFREE386=no
10672 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10673 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10676 case ${host_os} in
10677 aix*)
10678 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10679 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10680 if test "${gdb_cv_bigtoc+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10684 case $GCC in
10685 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10686 *) gdb_cv_bigtoc=-bbigtoc ;;
10687 esac
10689 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h. */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10698 main ()
10700 int i;
10702 return 0;
10704 _ACEOF
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (ac_try="$ac_link"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710 esac
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_link") 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } && {
10719 test -z "$ac_c_werror_flag" ||
10720 test ! -s conftest.err
10721 } && test -s conftest$ac_exeext &&
10722 $as_test_x conftest$ac_exeext; then
10724 else
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 gdb_cv_bigtoc=
10731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10732 conftest$ac_exeext conftest.$ac_ext
10735 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10736 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10738 esac
10740 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10741 # used for the tests that follow. We set them back to REAL_CFLAGS and
10742 # REAL_CPPFLAGS later on.
10744 REAL_CPPFLAGS="$CPPFLAGS"
10746 if test "${HAVE_X11}" = "yes"; then
10747 DEFS="$C_SWITCH_X_SITE $DEFS"
10748 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10749 LIBS="$LIBX $LIBS"
10750 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10751 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10753 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10754 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10755 # but it's more convenient here to set LD_RUN_PATH
10756 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10757 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10758 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10759 export LD_RUN_PATH
10762 if test "${opsys}" = "gnu-linux"; then
10763 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10764 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h. */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10773 main ()
10775 XOpenDisplay ("foo");
10777 return 0;
10779 _ACEOF
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (ac_try="$ac_link"
10782 case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10785 esac
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_link") 2>conftest.er1
10788 ac_status=$?
10789 grep -v '^ *+' conftest.er1 >conftest.err
10790 rm -f conftest.er1
10791 cat conftest.err >&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && {
10794 test -z "$ac_c_werror_flag" ||
10795 test ! -s conftest.err
10796 } && test -s conftest$ac_exeext &&
10797 $as_test_x conftest$ac_exeext; then
10798 xlinux_first_failure=no
10799 else
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 xlinux_first_failure=yes
10806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10807 conftest$ac_exeext conftest.$ac_ext
10808 if test "${xlinux_first_failure}" = "yes"; then
10809 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10810 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10811 OLD_CPPFLAGS="$CPPFLAGS"
10812 OLD_LIBS="$LIBS"
10813 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10814 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10815 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10816 LIBS="$LIBS -b i486-linuxaout"
10817 cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h. */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10825 main ()
10827 XOpenDisplay ("foo");
10829 return 0;
10831 _ACEOF
10832 rm -f conftest.$ac_objext conftest$ac_exeext
10833 if { (ac_try="$ac_link"
10834 case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10837 esac
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_link") 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } && {
10846 test -z "$ac_c_werror_flag" ||
10847 test ! -s conftest.err
10848 } && test -s conftest$ac_exeext &&
10849 $as_test_x conftest$ac_exeext; then
10850 xlinux_second_failure=no
10851 else
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 xlinux_second_failure=yes
10858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10859 conftest$ac_exeext conftest.$ac_ext
10860 if test "${xlinux_second_failure}" = "yes"; then
10861 # If we get the same failure with -b, there is no use adding -b.
10862 # So take it out. This plays safe.
10863 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10864 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10865 CPPFLAGS="$OLD_CPPFLAGS"
10866 LIBS="$OLD_LIBS"
10867 { echo "$as_me:$LINENO: result: no" >&5
10868 echo "${ECHO_T}no" >&6; }
10869 else
10870 { echo "$as_me:$LINENO: result: yes" >&5
10871 echo "${ECHO_T}yes" >&6; }
10873 else
10874 { echo "$as_me:$LINENO: result: no" >&5
10875 echo "${ECHO_T}no" >&6; }
10879 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10880 # header files included from there.
10881 { echo "$as_me:$LINENO: checking for Xkb" >&5
10882 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10883 cat >conftest.$ac_ext <<_ACEOF
10884 /* confdefs.h. */
10885 _ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h. */
10889 #include <X11/Xlib.h>
10890 #include <X11/XKBlib.h>
10892 main ()
10894 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10896 return 0;
10898 _ACEOF
10899 rm -f conftest.$ac_objext conftest$ac_exeext
10900 if { (ac_try="$ac_link"
10901 case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10904 esac
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_link") 2>conftest.er1
10907 ac_status=$?
10908 grep -v '^ *+' conftest.er1 >conftest.err
10909 rm -f conftest.er1
10910 cat conftest.err >&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && {
10913 test -z "$ac_c_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest$ac_exeext &&
10916 $as_test_x conftest$ac_exeext; then
10917 emacs_xkb=yes
10918 else
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 emacs_xkb=no
10925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10926 conftest$ac_exeext conftest.$ac_ext
10927 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10928 echo "${ECHO_T}$emacs_xkb" >&6; }
10929 if test $emacs_xkb = yes; then
10931 cat >>confdefs.h <<\_ACEOF
10932 #define HAVE_XKBGETKEYBOARD 1
10933 _ACEOF
10941 for ac_func in XrmSetDatabase XScreenResourceString \
10942 XScreenNumberOfScreen XSetWMProtocols
10944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10958 #define $ac_func innocuous_$ac_func
10960 /* System header to define __stub macros and hopefully few prototypes,
10961 which can conflict with char $ac_func (); below.
10962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10963 <limits.h> exists even on freestanding compilers. */
10965 #ifdef __STDC__
10966 # include <limits.h>
10967 #else
10968 # include <assert.h>
10969 #endif
10971 #undef $ac_func
10973 /* Override any GCC internal prototype to avoid an error.
10974 Use char because int might match the return type of a GCC
10975 builtin and then its argument prototype would still apply. */
10976 #ifdef __cplusplus
10977 extern "C"
10978 #endif
10979 char $ac_func ();
10980 /* The GNU C library defines this for functions which it implements
10981 to always fail with ENOSYS. Some functions are actually named
10982 something starting with __ and the normal name is an alias. */
10983 #if defined __stub_$ac_func || defined __stub___$ac_func
10984 choke me
10985 #endif
10988 main ()
10990 return $ac_func ();
10992 return 0;
10994 _ACEOF
10995 rm -f conftest.$ac_objext conftest$ac_exeext
10996 if { (ac_try="$ac_link"
10997 case "(($ac_try" in
10998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999 *) ac_try_echo=$ac_try;;
11000 esac
11001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002 (eval "$ac_link") 2>conftest.er1
11003 ac_status=$?
11004 grep -v '^ *+' conftest.er1 >conftest.err
11005 rm -f conftest.er1
11006 cat conftest.err >&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } && {
11009 test -z "$ac_c_werror_flag" ||
11010 test ! -s conftest.err
11011 } && test -s conftest$ac_exeext &&
11012 $as_test_x conftest$ac_exeext; then
11013 eval "$as_ac_var=yes"
11014 else
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11018 eval "$as_ac_var=no"
11021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11022 conftest$ac_exeext conftest.$ac_ext
11024 ac_res=`eval echo '${'$as_ac_var'}'`
11025 { echo "$as_me:$LINENO: result: $ac_res" >&5
11026 echo "${ECHO_T}$ac_res" >&6; }
11027 if test `eval echo '${'$as_ac_var'}'` = yes; then
11028 cat >>confdefs.h <<_ACEOF
11029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11030 _ACEOF
11033 done
11037 if test "${window_system}" = "x11"; then
11038 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11039 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11040 if test "${emacs_cv_x11_version_6+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 else
11043 cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h. */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 #include <X11/Xlib.h>
11051 main ()
11053 #if XlibSpecificationRelease < 6
11054 fail;
11055 #endif
11058 return 0;
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_link") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext &&
11078 $as_test_x conftest$ac_exeext; then
11079 emacs_cv_x11_version_6=yes
11080 else
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 emacs_cv_x11_version_6=no
11087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11088 conftest$ac_exeext conftest.$ac_ext
11091 if test $emacs_cv_x11_version_6 = yes; then
11092 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11093 echo "${ECHO_T}6 or newer" >&6; }
11095 cat >>confdefs.h <<\_ACEOF
11096 #define HAVE_X11R6 1
11097 _ACEOF
11099 else
11100 { echo "$as_me:$LINENO: result: before 6" >&5
11101 echo "${ECHO_T}before 6" >&6; }
11106 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11107 HAVE_RSVG=no
11108 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11109 if test "${with_rsvg}" != "no"; then
11110 if test "X${with_pkg_config_prog}" != X; then
11111 PKG_CONFIG="${with_pkg_config_prog}"
11114 RSVG_REQUIRED=2.0.0
11115 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11118 succeeded=no
11120 if test -z "$PKG_CONFIG"; then
11121 # Extract the first word of "pkg-config", so it can be a program name with args.
11122 set dummy pkg-config; ac_word=$2
11123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11125 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128 case $PKG_CONFIG in
11129 [\\/]* | ?:[\\/]*)
11130 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11140 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 break 2
11144 done
11145 done
11146 IFS=$as_save_IFS
11148 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11150 esac
11152 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11153 if test -n "$PKG_CONFIG"; then
11154 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11155 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11156 else
11157 { echo "$as_me:$LINENO: result: no" >&5
11158 echo "${ECHO_T}no" >&6; }
11164 if test "$PKG_CONFIG" = "no" ; then
11166 else
11167 PKG_CONFIG_MIN_VERSION=0.9.0
11168 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11169 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11170 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11172 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11173 { echo "$as_me:$LINENO: result: yes" >&5
11174 echo "${ECHO_T}yes" >&6; }
11175 succeeded=yes
11177 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11178 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11179 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11180 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11181 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11183 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11184 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11185 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11186 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11187 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11188 else
11189 { echo "$as_me:$LINENO: result: no" >&5
11190 echo "${ECHO_T}no" >&6; }
11191 RSVG_CFLAGS=""
11192 RSVG_LIBS=""
11193 ## If we have a custom action on failure, don't print errors, but
11194 ## do set a variable so people can do so.
11195 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11201 else
11202 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11203 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11207 if test $succeeded = yes; then
11209 else
11216 if test ".${RSVG_CFLAGS}" != "."; then
11217 HAVE_RSVG=yes
11219 cat >>confdefs.h <<\_ACEOF
11220 #define HAVE_RSVG 1
11221 _ACEOF
11223 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11224 LIBS="$RSVG_LIBS $LIBS"
11230 HAVE_GTK=no
11231 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11232 USE_X_TOOLKIT=none
11234 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11235 test "$USE_X_TOOLKIT" = "maybe"; then
11236 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11237 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11238 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11239 { (exit 1); exit 1; }; };
11241 GLIB_REQUIRED=2.6
11242 GTK_REQUIRED=2.6
11243 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11245 if test "X${with_pkg_config_prog}" != X; then
11246 PKG_CONFIG="${with_pkg_config_prog}"
11249 succeeded=no
11251 if test -z "$PKG_CONFIG"; then
11252 # Extract the first word of "pkg-config", so it can be a program name with args.
11253 set dummy pkg-config; ac_word=$2
11254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11256 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259 case $PKG_CONFIG in
11260 [\\/]* | ?:[\\/]*)
11261 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265 for as_dir in $PATH
11267 IFS=$as_save_IFS
11268 test -z "$as_dir" && as_dir=.
11269 for ac_exec_ext in '' $ac_executable_extensions; do
11270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11271 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11273 break 2
11275 done
11276 done
11277 IFS=$as_save_IFS
11279 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11281 esac
11283 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11284 if test -n "$PKG_CONFIG"; then
11285 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11286 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11287 else
11288 { echo "$as_me:$LINENO: result: no" >&5
11289 echo "${ECHO_T}no" >&6; }
11295 if test "$PKG_CONFIG" = "no" ; then
11296 pkg_check_gtk=no
11297 else
11298 PKG_CONFIG_MIN_VERSION=0.9.0
11299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11300 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11301 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11303 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11304 { echo "$as_me:$LINENO: result: yes" >&5
11305 echo "${ECHO_T}yes" >&6; }
11306 succeeded=yes
11308 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11309 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11310 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11311 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11312 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11314 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11315 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11316 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11317 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11318 echo "${ECHO_T}$GTK_LIBS" >&6; }
11319 else
11320 { echo "$as_me:$LINENO: result: no" >&5
11321 echo "${ECHO_T}no" >&6; }
11322 GTK_CFLAGS=""
11323 GTK_LIBS=""
11324 ## If we have a custom action on failure, don't print errors, but
11325 ## do set a variable so people can do so.
11326 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11332 else
11333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11338 if test $succeeded = yes; then
11339 pkg_check_gtk=yes
11340 else
11341 pkg_check_gtk=no
11344 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11345 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11346 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11347 { (exit 1); exit 1; }; }
11352 if test x"$pkg_check_gtk" = xyes; then
11356 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11357 CFLAGS="$CFLAGS $GTK_CFLAGS"
11358 LIBS="$GTK_LIBS $LIBS"
11359 GTK_COMPILES=no
11361 for ac_func in gtk_main
11363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11377 #define $ac_func innocuous_$ac_func
11379 /* System header to define __stub macros and hopefully few prototypes,
11380 which can conflict with char $ac_func (); below.
11381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11382 <limits.h> exists even on freestanding compilers. */
11384 #ifdef __STDC__
11385 # include <limits.h>
11386 #else
11387 # include <assert.h>
11388 #endif
11390 #undef $ac_func
11392 /* Override any GCC internal prototype to avoid an error.
11393 Use char because int might match the return type of a GCC
11394 builtin and then its argument prototype would still apply. */
11395 #ifdef __cplusplus
11396 extern "C"
11397 #endif
11398 char $ac_func ();
11399 /* The GNU C library defines this for functions which it implements
11400 to always fail with ENOSYS. Some functions are actually named
11401 something starting with __ and the normal name is an alias. */
11402 #if defined __stub_$ac_func || defined __stub___$ac_func
11403 choke me
11404 #endif
11407 main ()
11409 return $ac_func ();
11411 return 0;
11413 _ACEOF
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (ac_try="$ac_link"
11416 case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_link") 2>conftest.er1
11422 ac_status=$?
11423 grep -v '^ *+' conftest.er1 >conftest.err
11424 rm -f conftest.er1
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } && {
11428 test -z "$ac_c_werror_flag" ||
11429 test ! -s conftest.err
11430 } && test -s conftest$ac_exeext &&
11431 $as_test_x conftest$ac_exeext; then
11432 eval "$as_ac_var=yes"
11433 else
11434 echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 eval "$as_ac_var=no"
11440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11441 conftest$ac_exeext conftest.$ac_ext
11443 ac_res=`eval echo '${'$as_ac_var'}'`
11444 { echo "$as_me:$LINENO: result: $ac_res" >&5
11445 echo "${ECHO_T}$ac_res" >&6; }
11446 if test `eval echo '${'$as_ac_var'}'` = yes; then
11447 cat >>confdefs.h <<_ACEOF
11448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11449 _ACEOF
11450 GTK_COMPILES=yes
11452 done
11454 if test "${GTK_COMPILES}" != "yes"; then
11455 if test "$USE_X_TOOLKIT" != "maybe"; then
11456 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11457 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11458 { (exit 1); exit 1; }; };
11460 else
11461 HAVE_GTK=yes
11463 cat >>confdefs.h <<\_ACEOF
11464 #define HAVE_GTK 1
11465 _ACEOF
11467 USE_X_TOOLKIT=none
11473 if test "${HAVE_GTK}" = "yes"; then
11475 if test "$with_toolkit_scroll_bars" != no; then
11476 with_toolkit_scroll_bars=yes
11479 HAVE_GTK_MULTIDISPLAY=no
11481 for ac_func in gdk_display_open
11483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h. */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11497 #define $ac_func innocuous_$ac_func
11499 /* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char $ac_func (); below.
11501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11502 <limits.h> exists even on freestanding compilers. */
11504 #ifdef __STDC__
11505 # include <limits.h>
11506 #else
11507 # include <assert.h>
11508 #endif
11510 #undef $ac_func
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11515 #ifdef __cplusplus
11516 extern "C"
11517 #endif
11518 char $ac_func ();
11519 /* The GNU C library defines this for functions which it implements
11520 to always fail with ENOSYS. Some functions are actually named
11521 something starting with __ and the normal name is an alias. */
11522 #if defined __stub_$ac_func || defined __stub___$ac_func
11523 choke me
11524 #endif
11527 main ()
11529 return $ac_func ();
11531 return 0;
11533 _ACEOF
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (ac_try="$ac_link"
11536 case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_link") 2>conftest.er1
11542 ac_status=$?
11543 grep -v '^ *+' conftest.er1 >conftest.err
11544 rm -f conftest.er1
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } && {
11548 test -z "$ac_c_werror_flag" ||
11549 test ! -s conftest.err
11550 } && test -s conftest$ac_exeext &&
11551 $as_test_x conftest$ac_exeext; then
11552 eval "$as_ac_var=yes"
11553 else
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11557 eval "$as_ac_var=no"
11560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11561 conftest$ac_exeext conftest.$ac_ext
11563 ac_res=`eval echo '${'$as_ac_var'}'`
11564 { echo "$as_me:$LINENO: result: $ac_res" >&5
11565 echo "${ECHO_T}$ac_res" >&6; }
11566 if test `eval echo '${'$as_ac_var'}'` = yes; then
11567 cat >>confdefs.h <<_ACEOF
11568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11569 _ACEOF
11570 HAVE_GTK_MULTIDISPLAY=yes
11572 done
11574 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11576 cat >>confdefs.h <<\_ACEOF
11577 #define HAVE_GTK_MULTIDISPLAY 1
11578 _ACEOF
11582 HAVE_GTK_FILE_SELECTION=no
11584 for ac_func in gtk_file_selection_new
11586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592 cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h. */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11600 #define $ac_func innocuous_$ac_func
11602 /* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11607 #ifdef __STDC__
11608 # include <limits.h>
11609 #else
11610 # include <assert.h>
11611 #endif
11613 #undef $ac_func
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char $ac_func ();
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined __stub_$ac_func || defined __stub___$ac_func
11626 choke me
11627 #endif
11630 main ()
11632 return $ac_func ();
11634 return 0;
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (ac_try="$ac_link"
11639 case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642 esac
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_link") 2>conftest.er1
11645 ac_status=$?
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } && {
11651 test -z "$ac_c_werror_flag" ||
11652 test ! -s conftest.err
11653 } && test -s conftest$ac_exeext &&
11654 $as_test_x conftest$ac_exeext; then
11655 eval "$as_ac_var=yes"
11656 else
11657 echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11660 eval "$as_ac_var=no"
11663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11664 conftest$ac_exeext conftest.$ac_ext
11666 ac_res=`eval echo '${'$as_ac_var'}'`
11667 { echo "$as_me:$LINENO: result: $ac_res" >&5
11668 echo "${ECHO_T}$ac_res" >&6; }
11669 if test `eval echo '${'$as_ac_var'}'` = yes; then
11670 cat >>confdefs.h <<_ACEOF
11671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11672 _ACEOF
11673 HAVE_GTK_FILE_SELECTION=yes
11675 done
11678 HAVE_GTK_FILE_CHOOSER=no
11680 for ac_func in gtk_file_chooser_dialog_new
11682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 else
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h. */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11696 #define $ac_func innocuous_$ac_func
11698 /* System header to define __stub macros and hopefully few prototypes,
11699 which can conflict with char $ac_func (); below.
11700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11701 <limits.h> exists even on freestanding compilers. */
11703 #ifdef __STDC__
11704 # include <limits.h>
11705 #else
11706 # include <assert.h>
11707 #endif
11709 #undef $ac_func
11711 /* Override any GCC internal prototype to avoid an error.
11712 Use char because int might match the return type of a GCC
11713 builtin and then its argument prototype would still apply. */
11714 #ifdef __cplusplus
11715 extern "C"
11716 #endif
11717 char $ac_func ();
11718 /* The GNU C library defines this for functions which it implements
11719 to always fail with ENOSYS. Some functions are actually named
11720 something starting with __ and the normal name is an alias. */
11721 #if defined __stub_$ac_func || defined __stub___$ac_func
11722 choke me
11723 #endif
11726 main ()
11728 return $ac_func ();
11730 return 0;
11732 _ACEOF
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (ac_try="$ac_link"
11735 case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11738 esac
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_link") 2>conftest.er1
11741 ac_status=$?
11742 grep -v '^ *+' conftest.er1 >conftest.err
11743 rm -f conftest.er1
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } && {
11747 test -z "$ac_c_werror_flag" ||
11748 test ! -s conftest.err
11749 } && test -s conftest$ac_exeext &&
11750 $as_test_x conftest$ac_exeext; then
11751 eval "$as_ac_var=yes"
11752 else
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11756 eval "$as_ac_var=no"
11759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11760 conftest$ac_exeext conftest.$ac_ext
11762 ac_res=`eval echo '${'$as_ac_var'}'`
11763 { echo "$as_me:$LINENO: result: $ac_res" >&5
11764 echo "${ECHO_T}$ac_res" >&6; }
11765 if test `eval echo '${'$as_ac_var'}'` = yes; then
11766 cat >>confdefs.h <<_ACEOF
11767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11768 _ACEOF
11769 HAVE_GTK_FILE_CHOOSER=yes
11771 done
11774 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11775 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11777 cat >>confdefs.h <<\_ACEOF
11778 #define HAVE_GTK_FILE_BOTH 1
11779 _ACEOF
11783 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11784 HAVE_GTK_AND_PTHREAD=no
11786 for ac_header in pthread.h
11788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 ac_res=`eval echo '${'$as_ac_Header'}'`
11796 { echo "$as_me:$LINENO: result: $ac_res" >&5
11797 echo "${ECHO_T}$ac_res" >&6; }
11798 else
11799 # Is the header compilable?
11800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h. */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 $ac_includes_default
11809 #include <$ac_header>
11810 _ACEOF
11811 rm -f conftest.$ac_objext
11812 if { (ac_try="$ac_compile"
11813 case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_compile") 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } && {
11825 test -z "$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11827 } && test -s conftest.$ac_objext; then
11828 ac_header_compiler=yes
11829 else
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11833 ac_header_compiler=no
11836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11838 echo "${ECHO_T}$ac_header_compiler" >&6; }
11840 # Is the header present?
11841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h. */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 #include <$ac_header>
11850 _ACEOF
11851 if { (ac_try="$ac_cpp conftest.$ac_ext"
11852 case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11855 esac
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11858 ac_status=$?
11859 grep -v '^ *+' conftest.er1 >conftest.err
11860 rm -f conftest.er1
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } >/dev/null && {
11864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11865 test ! -s conftest.err
11866 }; then
11867 ac_header_preproc=yes
11868 else
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 ac_header_preproc=no
11875 rm -f conftest.err conftest.$ac_ext
11876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11877 echo "${ECHO_T}$ac_header_preproc" >&6; }
11879 # So? What about this header?
11880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11881 yes:no: )
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11886 ac_header_preproc=yes
11888 no:yes:* )
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11903 esac
11904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909 eval "$as_ac_Header=\$ac_header_preproc"
11911 ac_res=`eval echo '${'$as_ac_Header'}'`
11912 { echo "$as_me:$LINENO: result: $ac_res" >&5
11913 echo "${ECHO_T}$ac_res" >&6; }
11916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11917 cat >>confdefs.h <<_ACEOF
11918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11919 _ACEOF
11923 done
11925 if test "$ac_cv_header_pthread_h"; then
11926 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11927 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11928 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 else
11931 ac_check_lib_save_LIBS=$LIBS
11932 LIBS="-lpthread $LIBS"
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h. */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11943 #ifdef __cplusplus
11944 extern "C"
11945 #endif
11946 char pthread_self ();
11948 main ()
11950 return pthread_self ();
11952 return 0;
11954 _ACEOF
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (ac_try="$ac_link"
11957 case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_link") 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } && {
11969 test -z "$ac_c_werror_flag" ||
11970 test ! -s conftest.err
11971 } && test -s conftest$ac_exeext &&
11972 $as_test_x conftest$ac_exeext; then
11973 ac_cv_lib_pthread_pthread_self=yes
11974 else
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_cv_lib_pthread_pthread_self=no
11981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11982 conftest$ac_exeext conftest.$ac_ext
11983 LIBS=$ac_check_lib_save_LIBS
11985 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11986 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11987 if test $ac_cv_lib_pthread_pthread_self = yes; then
11988 HAVE_GTK_AND_PTHREAD=yes
11992 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11993 case "${canonical}" in
11994 *-hpux*) ;;
11995 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11996 esac
11998 cat >>confdefs.h <<\_ACEOF
11999 #define HAVE_GTK_AND_PTHREAD 1
12000 _ACEOF
12006 HAVE_DBUS=no
12007 if test "${with_dbus}" = "yes"; then
12008 { echo "$as_me:$LINENO: checking for dbus_bus_get in -ldbus-1" >&5
12009 echo $ECHO_N "checking for dbus_bus_get in -ldbus-1... $ECHO_C" >&6; }
12010 if test "${ac_cv_lib_dbus_1_dbus_bus_get+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013 ac_check_lib_save_LIBS=$LIBS
12014 LIBS="-ldbus-1 $LIBS"
12015 cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h. */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12025 #ifdef __cplusplus
12026 extern "C"
12027 #endif
12028 char dbus_bus_get ();
12030 main ()
12032 return dbus_bus_get ();
12034 return 0;
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (ac_try="$ac_link"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_link") 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && {
12051 test -z "$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12053 } && test -s conftest$ac_exeext &&
12054 $as_test_x conftest$ac_exeext; then
12055 ac_cv_lib_dbus_1_dbus_bus_get=yes
12056 else
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 ac_cv_lib_dbus_1_dbus_bus_get=no
12063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12064 conftest$ac_exeext conftest.$ac_ext
12065 LIBS=$ac_check_lib_save_LIBS
12067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_bus_get" >&5
12068 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_bus_get" >&6; }
12069 if test $ac_cv_lib_dbus_1_dbus_bus_get = yes; then
12070 HAVE_DBUS=yes
12073 if test "$HAVE_DBUS" = yes; then
12075 cat >>confdefs.h <<\_ACEOF
12076 #define HAVE_DBUS 1
12077 _ACEOF
12079 DBUS_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include"
12081 DBUS_LIBS="-ldbus-1"
12083 DBUS_INFO="dbus"
12088 ### Link with -lXft if available to work around a bug.
12089 HAVE_XFT=maybe
12090 if test "${HAVE_GTK}" = "yes"; then
12091 if test "X${with_pkg_config_prog}" != X; then
12092 PKG_CONFIG="${with_pkg_config_prog}"
12096 succeeded=no
12098 if test -z "$PKG_CONFIG"; then
12099 # Extract the first word of "pkg-config", so it can be a program name with args.
12100 set dummy pkg-config; ac_word=$2
12101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12103 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106 case $PKG_CONFIG in
12107 [\\/]* | ?:[\\/]*)
12108 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112 for as_dir in $PATH
12114 IFS=$as_save_IFS
12115 test -z "$as_dir" && as_dir=.
12116 for ac_exec_ext in '' $ac_executable_extensions; do
12117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12118 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12120 break 2
12122 done
12123 done
12124 IFS=$as_save_IFS
12126 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12128 esac
12130 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12131 if test -n "$PKG_CONFIG"; then
12132 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12133 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12134 else
12135 { echo "$as_me:$LINENO: result: no" >&5
12136 echo "${ECHO_T}no" >&6; }
12142 if test "$PKG_CONFIG" = "no" ; then
12143 HAVE_XFT=no
12144 else
12145 PKG_CONFIG_MIN_VERSION=0.9.0
12146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12147 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12148 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12150 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12151 { echo "$as_me:$LINENO: result: yes" >&5
12152 echo "${ECHO_T}yes" >&6; }
12153 succeeded=yes
12155 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12156 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12157 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12158 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12159 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12161 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12162 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12163 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12164 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12165 echo "${ECHO_T}$XFT_LIBS" >&6; }
12166 else
12167 { echo "$as_me:$LINENO: result: no" >&5
12168 echo "${ECHO_T}no" >&6; }
12169 XFT_CFLAGS=""
12170 XFT_LIBS=""
12171 ## If we have a custom action on failure, don't print errors, but
12172 ## do set a variable so people can do so.
12173 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12179 else
12180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12185 if test $succeeded = yes; then
12187 else
12188 HAVE_XFT=no
12191 if test "$HAVE_XFT" != no; then
12192 OLD_CFLAGS="$CPPFLAGS"
12193 OLD_CPPFLAGS="$CFLAGS"
12194 OLD_LIBS="$LIBS"
12195 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12196 CFLAGS="$CFLAGS $XFT_CFLAGS"
12197 LIBS="$XFT_LIBS $LIBS"
12198 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12199 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12200 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12201 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12205 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12206 else
12207 # Is the header compilable?
12208 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12209 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 $ac_includes_default
12217 #include <X11/Xft/Xft.h>
12218 _ACEOF
12219 rm -f conftest.$ac_objext
12220 if { (ac_try="$ac_compile"
12221 case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_compile") 2>conftest.er1
12227 ac_status=$?
12228 grep -v '^ *+' conftest.er1 >conftest.err
12229 rm -f conftest.er1
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } && {
12233 test -z "$ac_c_werror_flag" ||
12234 test ! -s conftest.err
12235 } && test -s conftest.$ac_objext; then
12236 ac_header_compiler=yes
12237 else
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12241 ac_header_compiler=no
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12246 echo "${ECHO_T}$ac_header_compiler" >&6; }
12248 # Is the header present?
12249 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12250 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h. */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12257 #include <X11/Xft/Xft.h>
12258 _ACEOF
12259 if { (ac_try="$ac_cpp conftest.$ac_ext"
12260 case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } >/dev/null && {
12272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 }; then
12275 ac_header_preproc=yes
12276 else
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 ac_header_preproc=no
12283 rm -f conftest.err conftest.$ac_ext
12284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12285 echo "${ECHO_T}$ac_header_preproc" >&6; }
12287 # So? What about this header?
12288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12289 yes:no: )
12290 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12291 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12293 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12294 ac_header_preproc=yes
12296 no:yes:* )
12297 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12298 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12299 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12300 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12301 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12302 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12303 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12304 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12305 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12306 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12307 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12308 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12311 esac
12312 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12313 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12314 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12319 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12320 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12323 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12324 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12325 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12326 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329 ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-lXft $XFT_LIBS $LIBS"
12331 cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h. */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12338 /* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
12341 #ifdef __cplusplus
12342 extern "C"
12343 #endif
12344 char XftFontOpen ();
12346 main ()
12348 return XftFontOpen ();
12350 return 0;
12352 _ACEOF
12353 rm -f conftest.$ac_objext conftest$ac_exeext
12354 if { (ac_try="$ac_link"
12355 case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12358 esac
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_link") 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && {
12367 test -z "$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12369 } && test -s conftest$ac_exeext &&
12370 $as_test_x conftest$ac_exeext; then
12371 ac_cv_lib_Xft_XftFontOpen=yes
12372 else
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ac_cv_lib_Xft_XftFontOpen=no
12379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12380 conftest$ac_exeext conftest.$ac_ext
12381 LIBS=$ac_check_lib_save_LIBS
12383 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12384 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12385 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12386 HAVE_XFT=yes
12393 if test "${HAVE_XFT}" = "yes"; then
12395 cat >>confdefs.h <<\_ACEOF
12396 #define HAVE_XFT 1
12397 _ACEOF
12400 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12401 else
12402 CFLAGS="$OLD_CPPFLAGS"
12403 CFLAGS="$OLD_CFLAGS"
12404 LIBS="$OLD_LIBS"
12409 HAVE_XAW3D=no
12410 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12411 if test "$with_xaw3d" != no; then
12412 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12413 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12414 if test "${emacs_cv_xaw3d+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h. */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12424 #include <X11/Intrinsic.h>
12425 #include <X11/Xaw3d/Simple.h>
12427 main ()
12431 return 0;
12433 _ACEOF
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } && {
12448 test -z "$ac_c_werror_flag" ||
12449 test ! -s conftest.err
12450 } && test -s conftest$ac_exeext &&
12451 $as_test_x conftest$ac_exeext; then
12452 emacs_cv_xaw3d=yes
12453 else
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12457 emacs_cv_xaw3d=no
12460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12461 conftest$ac_exeext conftest.$ac_ext
12464 else
12465 emacs_cv_xaw3d=no
12467 if test $emacs_cv_xaw3d = yes; then
12468 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12469 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12470 USE_X_TOOLKIT=LUCID
12471 HAVE_XAW3D=yes
12473 cat >>confdefs.h <<\_ACEOF
12474 #define HAVE_XAW3D 1
12475 _ACEOF
12477 else
12478 { echo "$as_me:$LINENO: result: no" >&5
12479 echo "${ECHO_T}no" >&6; }
12480 { echo "$as_me:$LINENO: checking for libXaw" >&5
12481 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12482 if test "${emacs_cv_xaw+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485 cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h. */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12492 #include <X11/Intrinsic.h>
12493 #include <X11/Xaw/Simple.h>
12495 main ()
12499 return 0;
12501 _ACEOF
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (ac_try="$ac_link"
12504 case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507 esac
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_link") 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } && {
12516 test -z "$ac_c_werror_flag" ||
12517 test ! -s conftest.err
12518 } && test -s conftest$ac_exeext &&
12519 $as_test_x conftest$ac_exeext; then
12520 emacs_cv_xaw=yes
12521 else
12522 echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12525 emacs_cv_xaw=no
12528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12529 conftest$ac_exeext conftest.$ac_ext
12532 if test $emacs_cv_xaw = yes; then
12533 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12534 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12535 USE_X_TOOLKIT=LUCID
12536 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12537 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12538 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12539 { (exit 1); exit 1; }; }
12540 else
12541 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12542 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12543 USE_X_TOOLKIT=none
12548 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12550 if test "${USE_X_TOOLKIT}" != "none"; then
12551 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12552 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12553 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 else
12556 cat >conftest.$ac_ext <<_ACEOF
12557 /* confdefs.h. */
12558 _ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12562 #include <X11/Intrinsic.h>
12564 main ()
12566 #if XtSpecificationRelease < 6
12567 fail;
12568 #endif
12571 return 0;
12573 _ACEOF
12574 rm -f conftest.$ac_objext conftest$ac_exeext
12575 if { (ac_try="$ac_link"
12576 case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12579 esac
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_link") 2>conftest.er1
12582 ac_status=$?
12583 grep -v '^ *+' conftest.er1 >conftest.err
12584 rm -f conftest.er1
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } && {
12588 test -z "$ac_c_werror_flag" ||
12589 test ! -s conftest.err
12590 } && test -s conftest$ac_exeext &&
12591 $as_test_x conftest$ac_exeext; then
12592 emacs_cv_x11_toolkit_version_6=yes
12593 else
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 emacs_cv_x11_toolkit_version_6=no
12600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12601 conftest$ac_exeext conftest.$ac_ext
12604 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12605 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12606 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12607 echo "${ECHO_T}6 or newer" >&6; }
12609 cat >>confdefs.h <<\_ACEOF
12610 #define HAVE_X11XTR6 1
12611 _ACEOF
12613 else
12614 { echo "$as_me:$LINENO: result: before 6" >&5
12615 echo "${ECHO_T}before 6" >&6; }
12618 OLDLIBS="$LIBS"
12619 if test x$HAVE_X11XTR6 = xyes; then
12620 LIBS="-lXt -lSM -lICE $LIBS"
12621 else
12622 LIBS="-lXt $LIBS"
12625 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12626 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12627 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 else
12630 ac_check_lib_save_LIBS=$LIBS
12631 LIBS="-lXmu $LIBS"
12632 cat >conftest.$ac_ext <<_ACEOF
12633 /* confdefs.h. */
12634 _ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h. */
12639 /* Override any GCC internal prototype to avoid an error.
12640 Use char because int might match the return type of a GCC
12641 builtin and then its argument prototype would still apply. */
12642 #ifdef __cplusplus
12643 extern "C"
12644 #endif
12645 char XmuConvertStandardSelection ();
12647 main ()
12649 return XmuConvertStandardSelection ();
12651 return 0;
12653 _ACEOF
12654 rm -f conftest.$ac_objext conftest$ac_exeext
12655 if { (ac_try="$ac_link"
12656 case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12659 esac
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_link") 2>conftest.er1
12662 ac_status=$?
12663 grep -v '^ *+' conftest.er1 >conftest.err
12664 rm -f conftest.er1
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } && {
12668 test -z "$ac_c_werror_flag" ||
12669 test ! -s conftest.err
12670 } && test -s conftest$ac_exeext &&
12671 $as_test_x conftest$ac_exeext; then
12672 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12673 else
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12677 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12681 conftest$ac_exeext conftest.$ac_ext
12682 LIBS=$ac_check_lib_save_LIBS
12684 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12685 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12686 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12687 cat >>confdefs.h <<_ACEOF
12688 #define HAVE_LIBXMU 1
12689 _ACEOF
12691 LIBS="-lXmu $LIBS"
12695 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12698 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12699 if test "${HAVE_X11}" = "yes"; then
12700 if test "${USE_X_TOOLKIT}" != "none"; then
12702 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12703 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12704 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707 ac_check_lib_save_LIBS=$LIBS
12708 LIBS="-lXext $LIBS"
12709 cat >conftest.$ac_ext <<_ACEOF
12710 /* confdefs.h. */
12711 _ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h. */
12716 /* Override any GCC internal prototype to avoid an error.
12717 Use char because int might match the return type of a GCC
12718 builtin and then its argument prototype would still apply. */
12719 #ifdef __cplusplus
12720 extern "C"
12721 #endif
12722 char XShapeQueryExtension ();
12724 main ()
12726 return XShapeQueryExtension ();
12728 return 0;
12730 _ACEOF
12731 rm -f conftest.$ac_objext conftest$ac_exeext
12732 if { (ac_try="$ac_link"
12733 case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736 esac
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_link") 2>conftest.er1
12739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } && {
12745 test -z "$ac_c_werror_flag" ||
12746 test ! -s conftest.err
12747 } && test -s conftest$ac_exeext &&
12748 $as_test_x conftest$ac_exeext; then
12749 ac_cv_lib_Xext_XShapeQueryExtension=yes
12750 else
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 ac_cv_lib_Xext_XShapeQueryExtension=no
12757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12758 conftest$ac_exeext conftest.$ac_ext
12759 LIBS=$ac_check_lib_save_LIBS
12761 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12762 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12763 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12764 cat >>confdefs.h <<_ACEOF
12765 #define HAVE_LIBXEXT 1
12766 _ACEOF
12768 LIBS="-lXext $LIBS"
12775 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12776 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12777 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12778 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781 cat >conftest.$ac_ext <<_ACEOF
12782 /* confdefs.h. */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12787 #include <Xm/Xm.h>
12789 main ()
12791 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12792 int x = 5;
12793 #else
12794 Motif version prior to 2.1.
12795 #endif
12797 return 0;
12799 _ACEOF
12800 rm -f conftest.$ac_objext
12801 if { (ac_try="$ac_compile"
12802 case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12805 esac
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_compile") 2>conftest.er1
12808 ac_status=$?
12809 grep -v '^ *+' conftest.er1 >conftest.err
12810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } && {
12814 test -z "$ac_c_werror_flag" ||
12815 test ! -s conftest.err
12816 } && test -s conftest.$ac_objext; then
12817 emacs_cv_motif_version_2_1=yes
12818 else
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12822 emacs_cv_motif_version_2_1=no
12825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12828 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12829 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12830 if test $emacs_cv_motif_version_2_1 = yes; then
12831 HAVE_LIBXP=no
12833 cat >>confdefs.h <<\_ACEOF
12834 #define HAVE_MOTIF_2_1 1
12835 _ACEOF
12837 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12838 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12839 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842 ac_check_lib_save_LIBS=$LIBS
12843 LIBS="-lXp $LIBS"
12844 cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h. */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12851 /* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12854 #ifdef __cplusplus
12855 extern "C"
12856 #endif
12857 char XpCreateContext ();
12859 main ()
12861 return XpCreateContext ();
12863 return 0;
12865 _ACEOF
12866 rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (ac_try="$ac_link"
12868 case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12871 esac
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_link") 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } && {
12880 test -z "$ac_c_werror_flag" ||
12881 test ! -s conftest.err
12882 } && test -s conftest$ac_exeext &&
12883 $as_test_x conftest$ac_exeext; then
12884 ac_cv_lib_Xp_XpCreateContext=yes
12885 else
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12889 ac_cv_lib_Xp_XpCreateContext=no
12892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12893 conftest$ac_exeext conftest.$ac_ext
12894 LIBS=$ac_check_lib_save_LIBS
12896 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12897 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12898 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12899 HAVE_LIBXP=yes
12902 if test ${HAVE_LIBXP} = yes; then
12904 cat >>confdefs.h <<\_ACEOF
12905 #define HAVE_LIBXP 1
12906 _ACEOF
12909 else
12910 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12911 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12912 if test "${emacs_cv_lesstif+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915 # We put this in CFLAGS temporarily to precede other -I options
12916 # that might be in CFLAGS temporarily.
12917 # We put this in CPPFLAGS where it precedes the other -I options.
12918 OLD_CPPFLAGS=$CPPFLAGS
12919 OLD_CFLAGS=$CFLAGS
12920 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12921 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12922 cat >conftest.$ac_ext <<_ACEOF
12923 /* confdefs.h. */
12924 _ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12928 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12930 main ()
12932 int x = 5;
12934 return 0;
12936 _ACEOF
12937 rm -f conftest.$ac_objext
12938 if { (ac_try="$ac_compile"
12939 case "(($ac_try" in
12940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941 *) ac_try_echo=$ac_try;;
12942 esac
12943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12944 (eval "$ac_compile") 2>conftest.er1
12945 ac_status=$?
12946 grep -v '^ *+' conftest.er1 >conftest.err
12947 rm -f conftest.er1
12948 cat conftest.err >&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } && {
12951 test -z "$ac_c_werror_flag" ||
12952 test ! -s conftest.err
12953 } && test -s conftest.$ac_objext; then
12954 emacs_cv_lesstif=yes
12955 else
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12959 emacs_cv_lesstif=no
12962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12964 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12965 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12966 if test $emacs_cv_lesstif = yes; then
12967 # Make sure this -I option remains in CPPFLAGS after it is set
12968 # back to REAL_CPPFLAGS.
12969 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12970 # have those other -I options anyway. Ultimately, having this
12971 # directory ultimately in CPPFLAGS will be enough.
12972 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12973 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12974 else
12975 CFLAGS=$OLD_CFLAGS
12976 CPPFLAGS=$OLD_CPPFLAGS
12983 USE_TOOLKIT_SCROLL_BARS=no
12984 if test "${with_toolkit_scroll_bars}" != "no"; then
12985 if test "${USE_X_TOOLKIT}" != "none"; then
12986 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12987 cat >>confdefs.h <<\_ACEOF
12988 #define USE_TOOLKIT_SCROLL_BARS 1
12989 _ACEOF
12991 HAVE_XAW3D=no
12992 USE_TOOLKIT_SCROLL_BARS=yes
12993 elif test "${HAVE_XAW3D}" = "yes"; then
12994 cat >>confdefs.h <<\_ACEOF
12995 #define USE_TOOLKIT_SCROLL_BARS 1
12996 _ACEOF
12998 USE_TOOLKIT_SCROLL_BARS=yes
13000 elif test "${HAVE_GTK}" = "yes"; then
13001 cat >>confdefs.h <<\_ACEOF
13002 #define USE_TOOLKIT_SCROLL_BARS 1
13003 _ACEOF
13005 USE_TOOLKIT_SCROLL_BARS=yes
13006 elif test "${HAVE_CARBON}" = "yes"; then
13007 cat >>confdefs.h <<\_ACEOF
13008 #define USE_TOOLKIT_SCROLL_BARS 1
13009 _ACEOF
13011 USE_TOOLKIT_SCROLL_BARS=yes
13015 cat >conftest.$ac_ext <<_ACEOF
13016 /* confdefs.h. */
13017 _ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13022 #include <X11/Xlib.h>
13023 #include <X11/Xresource.h>
13025 main ()
13027 XIMProc callback;
13029 return 0;
13031 _ACEOF
13032 rm -f conftest.$ac_objext
13033 if { (ac_try="$ac_compile"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037 esac
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_compile") 2>conftest.er1
13040 ac_status=$?
13041 grep -v '^ *+' conftest.er1 >conftest.err
13042 rm -f conftest.er1
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } && {
13046 test -z "$ac_c_werror_flag" ||
13047 test ! -s conftest.err
13048 } && test -s conftest.$ac_objext; then
13049 HAVE_XIM=yes
13051 cat >>confdefs.h <<\_ACEOF
13052 #define HAVE_XIM 1
13053 _ACEOF
13055 else
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 HAVE_XIM=no
13062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 if test "${with_xim}" != "no"; then
13067 cat >>confdefs.h <<\_ACEOF
13068 #define USE_XIM 1
13069 _ACEOF
13074 if test "${HAVE_XIM}" != "no"; then
13075 late_CFLAGS=$CFLAGS
13076 if test "$GCC" = yes; then
13077 CFLAGS="$CFLAGS --pedantic-errors"
13079 cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h. */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13086 #include <X11/Xlib.h>
13087 #include <X11/Xresource.h>
13089 main ()
13091 Display *display;
13092 XrmDatabase db;
13093 char *res_name;
13094 char *res_class;
13095 XIMProc callback;
13096 XPointer *client_data;
13097 #ifndef __GNUC__
13098 /* If we're not using GCC, it's probably not XFree86, and this is
13099 probably right, but we can't use something like --pedantic-errors. */
13100 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13101 char*, XIMProc, XPointer*);
13102 #endif
13103 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13104 client_data);
13106 return 0;
13108 _ACEOF
13109 rm -f conftest.$ac_objext
13110 if { (ac_try="$ac_compile"
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_compile") 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); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest.$ac_objext; then
13126 emacs_cv_arg6_star=yes
13127 else
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13136 if test "$emacs_cv_arg6_star" = yes; then
13137 cat >>confdefs.h <<\_ACEOF
13138 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13139 _ACEOF
13141 else
13142 cat >>confdefs.h <<\_ACEOF
13143 #define XRegisterIMInstantiateCallback_arg6 XPointer
13144 _ACEOF
13147 CFLAGS=$late_CFLAGS
13150 ### Use -lXpm if available, unless `--with-xpm=no'.
13151 HAVE_XPM=no
13152 if test "${HAVE_X11}" = "yes"; then
13153 if test "${with_xpm}" != "no"; then
13154 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13155 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13156 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13157 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13161 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13162 else
13163 # Is the header compilable?
13164 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13165 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13166 cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h. */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13172 $ac_includes_default
13173 #include <X11/xpm.h>
13174 _ACEOF
13175 rm -f conftest.$ac_objext
13176 if { (ac_try="$ac_compile"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_compile") 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } && {
13189 test -z "$ac_c_werror_flag" ||
13190 test ! -s conftest.err
13191 } && test -s conftest.$ac_objext; then
13192 ac_header_compiler=yes
13193 else
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197 ac_header_compiler=no
13200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13202 echo "${ECHO_T}$ac_header_compiler" >&6; }
13204 # Is the header present?
13205 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13206 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h. */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 #include <X11/xpm.h>
13214 _ACEOF
13215 if { (ac_try="$ac_cpp conftest.$ac_ext"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13219 esac
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13222 ac_status=$?
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } >/dev/null && {
13228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13229 test ! -s conftest.err
13230 }; then
13231 ac_header_preproc=yes
13232 else
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 ac_header_preproc=no
13239 rm -f conftest.err conftest.$ac_ext
13240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13241 echo "${ECHO_T}$ac_header_preproc" >&6; }
13243 # So? What about this header?
13244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13245 yes:no: )
13246 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13247 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13248 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13249 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13250 ac_header_preproc=yes
13252 no:yes:* )
13253 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13254 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13255 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13256 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13258 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13260 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13262 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13264 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13267 esac
13268 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13269 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13270 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 else
13273 ac_cv_header_X11_xpm_h=$ac_header_preproc
13275 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13276 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13279 if test $ac_cv_header_X11_xpm_h = yes; then
13280 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13281 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13282 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 else
13285 ac_check_lib_save_LIBS=$LIBS
13286 LIBS="-lXpm -lX11 $LIBS"
13287 cat >conftest.$ac_ext <<_ACEOF
13288 /* confdefs.h. */
13289 _ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13294 /* Override any GCC internal prototype to avoid an error.
13295 Use char because int might match the return type of a GCC
13296 builtin and then its argument prototype would still apply. */
13297 #ifdef __cplusplus
13298 extern "C"
13299 #endif
13300 char XpmReadFileToPixmap ();
13302 main ()
13304 return XpmReadFileToPixmap ();
13306 return 0;
13308 _ACEOF
13309 rm -f conftest.$ac_objext conftest$ac_exeext
13310 if { (ac_try="$ac_link"
13311 case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13314 esac
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_link") 2>conftest.er1
13317 ac_status=$?
13318 grep -v '^ *+' conftest.er1 >conftest.err
13319 rm -f conftest.er1
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } && {
13323 test -z "$ac_c_werror_flag" ||
13324 test ! -s conftest.err
13325 } && test -s conftest$ac_exeext &&
13326 $as_test_x conftest$ac_exeext; then
13327 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13328 else
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13332 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13336 conftest$ac_exeext conftest.$ac_ext
13337 LIBS=$ac_check_lib_save_LIBS
13339 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13340 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13341 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13342 HAVE_XPM=yes
13348 if test "${HAVE_XPM}" = "yes"; then
13349 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13350 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13351 cat >conftest.$ac_ext <<_ACEOF
13352 /* confdefs.h. */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 #include "X11/xpm.h"
13358 #ifndef XpmReturnAllocPixels
13359 no_return_alloc_pixels
13360 #endif
13362 _ACEOF
13363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13364 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13365 HAVE_XPM=no
13366 else
13367 HAVE_XPM=yes
13369 rm -f conftest*
13372 if test "${HAVE_XPM}" = "yes"; then
13373 { echo "$as_me:$LINENO: result: yes" >&5
13374 echo "${ECHO_T}yes" >&6; }
13375 else
13376 { echo "$as_me:$LINENO: result: no" >&5
13377 echo "${ECHO_T}no" >&6; }
13382 if test "${HAVE_XPM}" = "yes"; then
13384 cat >>confdefs.h <<\_ACEOF
13385 #define HAVE_XPM 1
13386 _ACEOF
13391 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13392 HAVE_JPEG=no
13393 if test "${HAVE_X11}" = "yes"; then
13394 if test "${with_jpeg}" != "no"; then
13395 if test "${ac_cv_header_jerror_h+set}" = set; then
13396 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13397 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13398 if test "${ac_cv_header_jerror_h+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13402 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13403 else
13404 # Is the header compilable?
13405 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13406 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13407 cat >conftest.$ac_ext <<_ACEOF
13408 /* confdefs.h. */
13409 _ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 $ac_includes_default
13414 #include <jerror.h>
13415 _ACEOF
13416 rm -f conftest.$ac_objext
13417 if { (ac_try="$ac_compile"
13418 case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_compile") 2>conftest.er1
13424 ac_status=$?
13425 grep -v '^ *+' conftest.er1 >conftest.err
13426 rm -f conftest.er1
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } && {
13430 test -z "$ac_c_werror_flag" ||
13431 test ! -s conftest.err
13432 } && test -s conftest.$ac_objext; then
13433 ac_header_compiler=yes
13434 else
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13438 ac_header_compiler=no
13441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13443 echo "${ECHO_T}$ac_header_compiler" >&6; }
13445 # Is the header present?
13446 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13447 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h. */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 #include <jerror.h>
13455 _ACEOF
13456 if { (ac_try="$ac_cpp conftest.$ac_ext"
13457 case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13460 esac
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13463 ac_status=$?
13464 grep -v '^ *+' conftest.er1 >conftest.err
13465 rm -f conftest.er1
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } >/dev/null && {
13469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13470 test ! -s conftest.err
13471 }; then
13472 ac_header_preproc=yes
13473 else
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 ac_header_preproc=no
13480 rm -f conftest.err conftest.$ac_ext
13481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13482 echo "${ECHO_T}$ac_header_preproc" >&6; }
13484 # So? What about this header?
13485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13486 yes:no: )
13487 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13488 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13489 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13490 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13491 ac_header_preproc=yes
13493 no:yes:* )
13494 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13495 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13496 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13497 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13498 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13499 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13500 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13501 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13503 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13505 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13508 esac
13509 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13510 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13511 if test "${ac_cv_header_jerror_h+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13513 else
13514 ac_cv_header_jerror_h=$ac_header_preproc
13516 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13517 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13520 if test $ac_cv_header_jerror_h = yes; then
13521 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13522 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13523 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 else
13526 ac_check_lib_save_LIBS=$LIBS
13527 LIBS="-ljpeg $LIBS"
13528 cat >conftest.$ac_ext <<_ACEOF
13529 /* confdefs.h. */
13530 _ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13535 /* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
13538 #ifdef __cplusplus
13539 extern "C"
13540 #endif
13541 char jpeg_destroy_compress ();
13543 main ()
13545 return jpeg_destroy_compress ();
13547 return 0;
13549 _ACEOF
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (ac_try="$ac_link"
13552 case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555 esac
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_link") 2>conftest.er1
13558 ac_status=$?
13559 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } && {
13564 test -z "$ac_c_werror_flag" ||
13565 test ! -s conftest.err
13566 } && test -s conftest$ac_exeext &&
13567 $as_test_x conftest$ac_exeext; then
13568 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13569 else
13570 echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13573 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13577 conftest$ac_exeext conftest.$ac_ext
13578 LIBS=$ac_check_lib_save_LIBS
13580 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13581 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13582 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13583 HAVE_JPEG=yes
13592 if test "${HAVE_JPEG}" = "yes"; then
13593 cat >>confdefs.h <<\_ACEOF
13594 #define HAVE_JPEG 1
13595 _ACEOF
13597 cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h. */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 #include <jpeglib.h>
13604 version=JPEG_LIB_VERSION
13606 _ACEOF
13607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13608 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13609 cat >>confdefs.h <<\_ACEOF
13610 #define HAVE_JPEG 1
13611 _ACEOF
13613 else
13614 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13615 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13616 HAVE_JPEG=no
13618 rm -f conftest*
13623 ### Use -lpng if available, unless `--with-png=no'.
13624 HAVE_PNG=no
13625 if test "${HAVE_X11}" = "yes"; then
13626 if test "${with_png}" != "no"; then
13627 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13628 # in /usr/include/libpng.
13631 for ac_header in png.h libpng/png.h
13633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 ac_res=`eval echo '${'$as_ac_Header'}'`
13641 { echo "$as_me:$LINENO: result: $ac_res" >&5
13642 echo "${ECHO_T}$ac_res" >&6; }
13643 else
13644 # Is the header compilable?
13645 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13647 cat >conftest.$ac_ext <<_ACEOF
13648 /* confdefs.h. */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13653 $ac_includes_default
13654 #include <$ac_header>
13655 _ACEOF
13656 rm -f conftest.$ac_objext
13657 if { (ac_try="$ac_compile"
13658 case "(($ac_try" in
13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660 *) ac_try_echo=$ac_try;;
13661 esac
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663 (eval "$ac_compile") 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } && {
13670 test -z "$ac_c_werror_flag" ||
13671 test ! -s conftest.err
13672 } && test -s conftest.$ac_objext; then
13673 ac_header_compiler=yes
13674 else
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13678 ac_header_compiler=no
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13683 echo "${ECHO_T}$ac_header_compiler" >&6; }
13685 # Is the header present?
13686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13688 cat >conftest.$ac_ext <<_ACEOF
13689 /* confdefs.h. */
13690 _ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h. */
13694 #include <$ac_header>
13695 _ACEOF
13696 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
13709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13710 test ! -s conftest.err
13711 }; then
13712 ac_header_preproc=yes
13713 else
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13717 ac_header_preproc=no
13720 rm -f conftest.err conftest.$ac_ext
13721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13722 echo "${ECHO_T}$ac_header_preproc" >&6; }
13724 # So? What about this header?
13725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13726 yes:no: )
13727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13731 ac_header_preproc=yes
13733 no:yes:* )
13734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13748 esac
13749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754 eval "$as_ac_Header=\$ac_header_preproc"
13756 ac_res=`eval echo '${'$as_ac_Header'}'`
13757 { echo "$as_me:$LINENO: result: $ac_res" >&5
13758 echo "${ECHO_T}$ac_res" >&6; }
13761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13762 cat >>confdefs.h <<_ACEOF
13763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13764 _ACEOF
13768 done
13770 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13771 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13772 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13773 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776 ac_check_lib_save_LIBS=$LIBS
13777 LIBS="-lpng -lz -lm $LIBS"
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13785 /* Override any GCC internal prototype to avoid an error.
13786 Use char because int might match the return type of a GCC
13787 builtin and then its argument prototype would still apply. */
13788 #ifdef __cplusplus
13789 extern "C"
13790 #endif
13791 char png_get_channels ();
13793 main ()
13795 return png_get_channels ();
13797 return 0;
13799 _ACEOF
13800 rm -f conftest.$ac_objext conftest$ac_exeext
13801 if { (ac_try="$ac_link"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_link") 2>conftest.er1
13808 ac_status=$?
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } && {
13814 test -z "$ac_c_werror_flag" ||
13815 test ! -s conftest.err
13816 } && test -s conftest$ac_exeext &&
13817 $as_test_x conftest$ac_exeext; then
13818 ac_cv_lib_png_png_get_channels=yes
13819 else
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ac_cv_lib_png_png_get_channels=no
13826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13827 conftest$ac_exeext conftest.$ac_ext
13828 LIBS=$ac_check_lib_save_LIBS
13830 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13831 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13832 if test $ac_cv_lib_png_png_get_channels = yes; then
13833 HAVE_PNG=yes
13839 if test "${HAVE_PNG}" = "yes"; then
13841 cat >>confdefs.h <<\_ACEOF
13842 #define HAVE_PNG 1
13843 _ACEOF
13848 ### Use -ltiff if available, unless `--with-tiff=no'.
13849 HAVE_TIFF=no
13850 if test "${HAVE_X11}" = "yes"; then
13851 if test "${with_tiff}" != "no"; then
13852 if test "${ac_cv_header_tiffio_h+set}" = set; then
13853 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13854 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13855 if test "${ac_cv_header_tiffio_h+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13859 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13860 else
13861 # Is the header compilable?
13862 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13863 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h. */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 $ac_includes_default
13871 #include <tiffio.h>
13872 _ACEOF
13873 rm -f conftest.$ac_objext
13874 if { (ac_try="$ac_compile"
13875 case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13878 esac
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_compile") 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } && {
13887 test -z "$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest.$ac_objext; then
13890 ac_header_compiler=yes
13891 else
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13895 ac_header_compiler=no
13898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13900 echo "${ECHO_T}$ac_header_compiler" >&6; }
13902 # Is the header present?
13903 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13904 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13905 cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h. */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 #include <tiffio.h>
13912 _ACEOF
13913 if { (ac_try="$ac_cpp conftest.$ac_ext"
13914 case "(($ac_try" in
13915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13917 esac
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13920 ac_status=$?
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } >/dev/null && {
13926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13927 test ! -s conftest.err
13928 }; then
13929 ac_header_preproc=yes
13930 else
13931 echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.$ac_ext >&5
13934 ac_header_preproc=no
13937 rm -f conftest.err conftest.$ac_ext
13938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13939 echo "${ECHO_T}$ac_header_preproc" >&6; }
13941 # So? What about this header?
13942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13943 yes:no: )
13944 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13945 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13946 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13947 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13948 ac_header_preproc=yes
13950 no:yes:* )
13951 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13952 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13954 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13956 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13957 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13958 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13960 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13961 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13962 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13965 esac
13966 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13967 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13968 if test "${ac_cv_header_tiffio_h+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 else
13971 ac_cv_header_tiffio_h=$ac_header_preproc
13973 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13974 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13977 if test $ac_cv_header_tiffio_h = yes; then
13978 tifflibs="-lz -lm"
13979 # At least one tiff package requires the jpeg library.
13980 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13981 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13982 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13983 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986 ac_check_lib_save_LIBS=$LIBS
13987 LIBS="-ltiff $tifflibs $LIBS"
13988 cat >conftest.$ac_ext <<_ACEOF
13989 /* confdefs.h. */
13990 _ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h. */
13995 /* Override any GCC internal prototype to avoid an error.
13996 Use char because int might match the return type of a GCC
13997 builtin and then its argument prototype would still apply. */
13998 #ifdef __cplusplus
13999 extern "C"
14000 #endif
14001 char TIFFGetVersion ();
14003 main ()
14005 return TIFFGetVersion ();
14007 return 0;
14009 _ACEOF
14010 rm -f conftest.$ac_objext conftest$ac_exeext
14011 if { (ac_try="$ac_link"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015 esac
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_link") 2>conftest.er1
14018 ac_status=$?
14019 grep -v '^ *+' conftest.er1 >conftest.err
14020 rm -f conftest.er1
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } && {
14024 test -z "$ac_c_werror_flag" ||
14025 test ! -s conftest.err
14026 } && test -s conftest$ac_exeext &&
14027 $as_test_x conftest$ac_exeext; then
14028 ac_cv_lib_tiff_TIFFGetVersion=yes
14029 else
14030 echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14033 ac_cv_lib_tiff_TIFFGetVersion=no
14036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14037 conftest$ac_exeext conftest.$ac_ext
14038 LIBS=$ac_check_lib_save_LIBS
14040 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14041 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14042 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14043 HAVE_TIFF=yes
14051 if test "${HAVE_TIFF}" = "yes"; then
14053 cat >>confdefs.h <<\_ACEOF
14054 #define HAVE_TIFF 1
14055 _ACEOF
14060 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14061 HAVE_GIF=no
14062 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14063 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14064 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14065 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14066 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14070 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14071 else
14072 # Is the header compilable?
14073 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14074 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14075 cat >conftest.$ac_ext <<_ACEOF
14076 /* confdefs.h. */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14081 $ac_includes_default
14082 #include <gif_lib.h>
14083 _ACEOF
14084 rm -f conftest.$ac_objext
14085 if { (ac_try="$ac_compile"
14086 case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14089 esac
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_compile") 2>conftest.er1
14092 ac_status=$?
14093 grep -v '^ *+' conftest.er1 >conftest.err
14094 rm -f conftest.er1
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } && {
14098 test -z "$ac_c_werror_flag" ||
14099 test ! -s conftest.err
14100 } && test -s conftest.$ac_objext; then
14101 ac_header_compiler=yes
14102 else
14103 echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14106 ac_header_compiler=no
14109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14111 echo "${ECHO_T}$ac_header_compiler" >&6; }
14113 # Is the header present?
14114 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14115 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14116 cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h. */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 #include <gif_lib.h>
14123 _ACEOF
14124 if { (ac_try="$ac_cpp conftest.$ac_ext"
14125 case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128 esac
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14131 ac_status=$?
14132 grep -v '^ *+' conftest.er1 >conftest.err
14133 rm -f conftest.er1
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } >/dev/null && {
14137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14138 test ! -s conftest.err
14139 }; then
14140 ac_header_preproc=yes
14141 else
14142 echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14145 ac_header_preproc=no
14148 rm -f conftest.err conftest.$ac_ext
14149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14150 echo "${ECHO_T}$ac_header_preproc" >&6; }
14152 # So? What about this header?
14153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14154 yes:no: )
14155 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14156 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14157 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14158 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14159 ac_header_preproc=yes
14161 no:yes:* )
14162 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14163 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14164 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14165 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14166 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14167 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14169 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14171 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14173 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14176 esac
14177 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14178 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14179 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182 ac_cv_header_gif_lib_h=$ac_header_preproc
14184 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14185 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14188 if test $ac_cv_header_gif_lib_h = yes; then
14189 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14190 # Earlier versions can crash Emacs.
14191 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14192 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14193 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14195 else
14196 ac_check_lib_save_LIBS=$LIBS
14197 LIBS="-lgif $LIBS"
14198 cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h. */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14205 /* Override any GCC internal prototype to avoid an error.
14206 Use char because int might match the return type of a GCC
14207 builtin and then its argument prototype would still apply. */
14208 #ifdef __cplusplus
14209 extern "C"
14210 #endif
14211 char EGifPutExtensionLast ();
14213 main ()
14215 return EGifPutExtensionLast ();
14217 return 0;
14219 _ACEOF
14220 rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (ac_try="$ac_link"
14222 case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225 esac
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_link") 2>conftest.er1
14228 ac_status=$?
14229 grep -v '^ *+' conftest.er1 >conftest.err
14230 rm -f conftest.er1
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } && {
14234 test -z "$ac_c_werror_flag" ||
14235 test ! -s conftest.err
14236 } && test -s conftest$ac_exeext &&
14237 $as_test_x conftest$ac_exeext; then
14238 ac_cv_lib_gif_EGifPutExtensionLast=yes
14239 else
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 ac_cv_lib_gif_EGifPutExtensionLast=no
14246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14247 conftest$ac_exeext conftest.$ac_ext
14248 LIBS=$ac_check_lib_save_LIBS
14250 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14251 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14252 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14253 HAVE_GIF=yes
14254 else
14255 try_libungif=yes
14262 if test "$HAVE_GIF" = yes; then
14263 ac_gif_lib_name="-lgif"
14266 # If gif_lib.h but no libgif, try libungif.
14267 if test x"$try_libungif" = xyes; then
14268 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14269 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14270 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 else
14273 ac_check_lib_save_LIBS=$LIBS
14274 LIBS="-lungif $LIBS"
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h. */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14282 /* Override any GCC internal prototype to avoid an error.
14283 Use char because int might match the return type of a GCC
14284 builtin and then its argument prototype would still apply. */
14285 #ifdef __cplusplus
14286 extern "C"
14287 #endif
14288 char EGifPutExtensionLast ();
14290 main ()
14292 return EGifPutExtensionLast ();
14294 return 0;
14296 _ACEOF
14297 rm -f conftest.$ac_objext conftest$ac_exeext
14298 if { (ac_try="$ac_link"
14299 case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14302 esac
14303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304 (eval "$ac_link") 2>conftest.er1
14305 ac_status=$?
14306 grep -v '^ *+' conftest.er1 >conftest.err
14307 rm -f conftest.er1
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } && {
14311 test -z "$ac_c_werror_flag" ||
14312 test ! -s conftest.err
14313 } && test -s conftest$ac_exeext &&
14314 $as_test_x conftest$ac_exeext; then
14315 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14316 else
14317 echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14320 ac_cv_lib_ungif_EGifPutExtensionLast=no
14323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14324 conftest$ac_exeext conftest.$ac_ext
14325 LIBS=$ac_check_lib_save_LIBS
14327 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14328 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14329 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14330 HAVE_GIF=yes
14334 if test "$HAVE_GIF" = yes; then
14336 cat >>confdefs.h <<\_ACEOF
14337 #define LIBGIF -lungif
14338 _ACEOF
14340 ac_gif_lib_name="-lungif"
14344 if test "${HAVE_GIF}" = "yes"; then
14346 cat >>confdefs.h <<\_ACEOF
14347 #define HAVE_GIF 1
14348 _ACEOF
14353 if test "${HAVE_X11}" = "yes"; then
14354 MISSING=""
14355 WITH_NO=""
14356 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14357 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14358 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14359 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14360 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14361 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14362 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14363 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14364 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14365 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14367 if test "X${MISSING}" != X; then
14368 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14369 $MISSING
14370 Maybe some development libraries/packages are missing?
14371 If you don't want to link with them give
14372 $WITH_NO
14373 as options to configure" >&5
14374 echo "$as_me: error: The following required libraries were not found:
14375 $MISSING
14376 Maybe some development libraries/packages are missing?
14377 If you don't want to link with them give
14378 $WITH_NO
14379 as options to configure" >&2;}
14380 { (exit 1); exit 1; }; }
14384 ### Use -lgpm if available, unless `--with-gpm=no'.
14385 HAVE_GPM=no
14386 if test "${with_gpm}" != "no"; then
14387 if test "${ac_cv_header_gpm_h+set}" = set; then
14388 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14389 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14390 if test "${ac_cv_header_gpm_h+set}" = set; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14393 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14394 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14395 else
14396 # Is the header compilable?
14397 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14398 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14399 cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h. */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 $ac_includes_default
14406 #include <gpm.h>
14407 _ACEOF
14408 rm -f conftest.$ac_objext
14409 if { (ac_try="$ac_compile"
14410 case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_compile") 2>conftest.er1
14416 ac_status=$?
14417 grep -v '^ *+' conftest.er1 >conftest.err
14418 rm -f conftest.er1
14419 cat conftest.err >&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } && {
14422 test -z "$ac_c_werror_flag" ||
14423 test ! -s conftest.err
14424 } && test -s conftest.$ac_objext; then
14425 ac_header_compiler=yes
14426 else
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 ac_header_compiler=no
14433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14435 echo "${ECHO_T}$ac_header_compiler" >&6; }
14437 # Is the header present?
14438 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14439 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14440 cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h. */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 #include <gpm.h>
14447 _ACEOF
14448 if { (ac_try="$ac_cpp conftest.$ac_ext"
14449 case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14452 esac
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14455 ac_status=$?
14456 grep -v '^ *+' conftest.er1 >conftest.err
14457 rm -f conftest.er1
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } >/dev/null && {
14461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14462 test ! -s conftest.err
14463 }; then
14464 ac_header_preproc=yes
14465 else
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14469 ac_header_preproc=no
14472 rm -f conftest.err conftest.$ac_ext
14473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14474 echo "${ECHO_T}$ac_header_preproc" >&6; }
14476 # So? What about this header?
14477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14478 yes:no: )
14479 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14480 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14482 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14483 ac_header_preproc=yes
14485 no:yes:* )
14486 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14487 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14489 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14491 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14493 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14495 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14497 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14500 esac
14501 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14502 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14503 if test "${ac_cv_header_gpm_h+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506 ac_cv_header_gpm_h=$ac_header_preproc
14508 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14509 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14512 if test $ac_cv_header_gpm_h = yes; then
14513 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14514 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14515 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 else
14518 ac_check_lib_save_LIBS=$LIBS
14519 LIBS="-lgpm $LIBS"
14520 cat >conftest.$ac_ext <<_ACEOF
14521 /* confdefs.h. */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14527 /* Override any GCC internal prototype to avoid an error.
14528 Use char because int might match the return type of a GCC
14529 builtin and then its argument prototype would still apply. */
14530 #ifdef __cplusplus
14531 extern "C"
14532 #endif
14533 char Gpm_Open ();
14535 main ()
14537 return Gpm_Open ();
14539 return 0;
14541 _ACEOF
14542 rm -f conftest.$ac_objext conftest$ac_exeext
14543 if { (ac_try="$ac_link"
14544 case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547 esac
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_link") 2>conftest.er1
14550 ac_status=$?
14551 grep -v '^ *+' conftest.er1 >conftest.err
14552 rm -f conftest.er1
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } && {
14556 test -z "$ac_c_werror_flag" ||
14557 test ! -s conftest.err
14558 } && test -s conftest$ac_exeext &&
14559 $as_test_x conftest$ac_exeext; then
14560 ac_cv_lib_gpm_Gpm_Open=yes
14561 else
14562 echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14565 ac_cv_lib_gpm_Gpm_Open=no
14568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14569 conftest$ac_exeext conftest.$ac_ext
14570 LIBS=$ac_check_lib_save_LIBS
14572 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14573 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14574 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14575 HAVE_GPM=yes
14583 if test "${HAVE_GPM}" = "yes"; then
14585 cat >>confdefs.h <<\_ACEOF
14586 #define HAVE_GPM 1
14587 _ACEOF
14591 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14592 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14593 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14594 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14598 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14599 else
14600 # Is the header compilable?
14601 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14602 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14603 cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h. */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 $ac_includes_default
14610 #include <malloc/malloc.h>
14611 _ACEOF
14612 rm -f conftest.$ac_objext
14613 if { (ac_try="$ac_compile"
14614 case "(($ac_try" in
14615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616 *) ac_try_echo=$ac_try;;
14617 esac
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_compile") 2>conftest.er1
14620 ac_status=$?
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && {
14626 test -z "$ac_c_werror_flag" ||
14627 test ! -s conftest.err
14628 } && test -s conftest.$ac_objext; then
14629 ac_header_compiler=yes
14630 else
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ac_header_compiler=no
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14639 echo "${ECHO_T}$ac_header_compiler" >&6; }
14641 # Is the header present?
14642 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14643 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14644 cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h. */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14650 #include <malloc/malloc.h>
14651 _ACEOF
14652 if { (ac_try="$ac_cpp conftest.$ac_ext"
14653 case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14656 esac
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14659 ac_status=$?
14660 grep -v '^ *+' conftest.er1 >conftest.err
14661 rm -f conftest.er1
14662 cat conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } >/dev/null && {
14665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14666 test ! -s conftest.err
14667 }; then
14668 ac_header_preproc=yes
14669 else
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14673 ac_header_preproc=no
14676 rm -f conftest.err conftest.$ac_ext
14677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14678 echo "${ECHO_T}$ac_header_preproc" >&6; }
14680 # So? What about this header?
14681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14682 yes:no: )
14683 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14684 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14686 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14687 ac_header_preproc=yes
14689 no:yes:* )
14690 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14691 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14693 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14695 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14696 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14697 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14699 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14701 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14704 esac
14705 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14706 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14707 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14709 else
14710 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14712 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14713 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14716 if test $ac_cv_header_malloc_malloc_h = yes; then
14718 cat >>confdefs.h <<\_ACEOF
14719 #define HAVE_MALLOC_MALLOC_H 1
14720 _ACEOF
14726 ### Use Mac OS X Carbon API to implement GUI.
14727 if test "${HAVE_CARBON}" = "yes"; then
14729 cat >>confdefs.h <<\_ACEOF
14730 #define HAVE_CARBON 1
14731 _ACEOF
14733 ## Specify the install directory
14734 carbon_appdir=
14735 if test "${carbon_appdir_x}" != ""; then
14736 case ${carbon_appdir_x} in
14737 y | ye | yes) carbon_appdir=/Applications ;;
14738 * ) carbon_appdir=${carbon_appdir_x} ;;
14739 esac
14741 # We also have mouse menus.
14742 HAVE_MENUS=yes
14745 ### Use session management (-lSM -lICE) if available
14746 HAVE_X_SM=no
14747 if test "${HAVE_X11}" = "yes"; then
14748 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14749 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14750 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14751 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14755 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14756 else
14757 # Is the header compilable?
14758 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14759 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14760 cat >conftest.$ac_ext <<_ACEOF
14761 /* confdefs.h. */
14762 _ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h. */
14766 $ac_includes_default
14767 #include <X11/SM/SMlib.h>
14768 _ACEOF
14769 rm -f conftest.$ac_objext
14770 if { (ac_try="$ac_compile"
14771 case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14774 esac
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_compile") 2>conftest.er1
14777 ac_status=$?
14778 grep -v '^ *+' conftest.er1 >conftest.err
14779 rm -f conftest.er1
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } && {
14783 test -z "$ac_c_werror_flag" ||
14784 test ! -s conftest.err
14785 } && test -s conftest.$ac_objext; then
14786 ac_header_compiler=yes
14787 else
14788 echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14791 ac_header_compiler=no
14794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14796 echo "${ECHO_T}$ac_header_compiler" >&6; }
14798 # Is the header present?
14799 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14800 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14801 cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h. */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 #include <X11/SM/SMlib.h>
14808 _ACEOF
14809 if { (ac_try="$ac_cpp conftest.$ac_ext"
14810 case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14813 esac
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } >/dev/null && {
14822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14823 test ! -s conftest.err
14824 }; then
14825 ac_header_preproc=yes
14826 else
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 ac_header_preproc=no
14833 rm -f conftest.err conftest.$ac_ext
14834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14835 echo "${ECHO_T}$ac_header_preproc" >&6; }
14837 # So? What about this header?
14838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14839 yes:no: )
14840 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14841 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14843 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14844 ac_header_preproc=yes
14846 no:yes:* )
14847 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14848 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14850 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14852 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14854 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14856 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14858 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14861 esac
14862 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14863 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14864 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14869 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14870 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14873 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14874 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14875 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14876 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879 ac_check_lib_save_LIBS=$LIBS
14880 LIBS="-lSM -lICE $LIBS"
14881 cat >conftest.$ac_ext <<_ACEOF
14882 /* confdefs.h. */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14888 /* Override any GCC internal prototype to avoid an error.
14889 Use char because int might match the return type of a GCC
14890 builtin and then its argument prototype would still apply. */
14891 #ifdef __cplusplus
14892 extern "C"
14893 #endif
14894 char SmcOpenConnection ();
14896 main ()
14898 return SmcOpenConnection ();
14900 return 0;
14902 _ACEOF
14903 rm -f conftest.$ac_objext conftest$ac_exeext
14904 if { (ac_try="$ac_link"
14905 case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908 esac
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_link") 2>conftest.er1
14911 ac_status=$?
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && {
14917 test -z "$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14919 } && test -s conftest$ac_exeext &&
14920 $as_test_x conftest$ac_exeext; then
14921 ac_cv_lib_SM_SmcOpenConnection=yes
14922 else
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14926 ac_cv_lib_SM_SmcOpenConnection=no
14929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14930 conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14933 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14934 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14935 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14936 HAVE_X_SM=yes
14943 if test "${HAVE_X_SM}" = "yes"; then
14945 cat >>confdefs.h <<\_ACEOF
14946 #define HAVE_X_SM 1
14947 _ACEOF
14949 case "$LIBS" in
14950 *-lSM*) ;;
14951 *) LIBS="-lSM -lICE $LIBS" ;;
14952 esac
14956 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14957 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14958 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14959 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962 cat >conftest.$ac_ext <<_ACEOF
14963 /* confdefs.h. */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14968 #include <netdb.h>
14970 main ()
14972 return h_errno;
14974 return 0;
14976 _ACEOF
14977 rm -f conftest.$ac_objext conftest$ac_exeext
14978 if { (ac_try="$ac_link"
14979 case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14982 esac
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_link") 2>conftest.er1
14985 ac_status=$?
14986 grep -v '^ *+' conftest.er1 >conftest.err
14987 rm -f conftest.er1
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && {
14991 test -z "$ac_c_werror_flag" ||
14992 test ! -s conftest.err
14993 } && test -s conftest$ac_exeext &&
14994 $as_test_x conftest$ac_exeext; then
14995 emacs_cv_netdb_declares_h_errno=yes
14996 else
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 emacs_cv_netdb_declares_h_errno=no
15003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15004 conftest$ac_exeext conftest.$ac_ext
15006 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15007 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15008 if test $emacs_cv_netdb_declares_h_errno = yes; then
15010 cat >>confdefs.h <<\_ACEOF
15011 #define HAVE_H_ERRNO 1
15012 _ACEOF
15016 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15017 # for constant arguments. Useless!
15018 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15019 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15020 if test "${ac_cv_working_alloca_h+set}" = set; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15022 else
15023 cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h. */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 #include <alloca.h>
15031 main ()
15033 char *p = (char *) alloca (2 * sizeof (int));
15034 if (p) return 0;
15036 return 0;
15038 _ACEOF
15039 rm -f conftest.$ac_objext conftest$ac_exeext
15040 if { (ac_try="$ac_link"
15041 case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15044 esac
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_link") 2>conftest.er1
15047 ac_status=$?
15048 grep -v '^ *+' conftest.er1 >conftest.err
15049 rm -f conftest.er1
15050 cat conftest.err >&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } && {
15053 test -z "$ac_c_werror_flag" ||
15054 test ! -s conftest.err
15055 } && test -s conftest$ac_exeext &&
15056 $as_test_x conftest$ac_exeext; then
15057 ac_cv_working_alloca_h=yes
15058 else
15059 echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15062 ac_cv_working_alloca_h=no
15065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15066 conftest$ac_exeext conftest.$ac_ext
15068 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15069 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15070 if test $ac_cv_working_alloca_h = yes; then
15072 cat >>confdefs.h <<\_ACEOF
15073 #define HAVE_ALLOCA_H 1
15074 _ACEOF
15078 { echo "$as_me:$LINENO: checking for alloca" >&5
15079 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15080 if test "${ac_cv_func_alloca_works+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h. */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 #ifdef __GNUC__
15090 # define alloca __builtin_alloca
15091 #else
15092 # ifdef _MSC_VER
15093 # include <malloc.h>
15094 # define alloca _alloca
15095 # else
15096 # ifdef HAVE_ALLOCA_H
15097 # include <alloca.h>
15098 # else
15099 # ifdef _AIX
15100 #pragma alloca
15101 # else
15102 # ifndef alloca /* predefined by HP cc +Olibcalls */
15103 char *alloca ();
15104 # endif
15105 # endif
15106 # endif
15107 # endif
15108 #endif
15111 main ()
15113 char *p = (char *) alloca (1);
15114 if (p) return 0;
15116 return 0;
15118 _ACEOF
15119 rm -f conftest.$ac_objext conftest$ac_exeext
15120 if { (ac_try="$ac_link"
15121 case "(($ac_try" in
15122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15124 esac
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_link") 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } && {
15133 test -z "$ac_c_werror_flag" ||
15134 test ! -s conftest.err
15135 } && test -s conftest$ac_exeext &&
15136 $as_test_x conftest$ac_exeext; then
15137 ac_cv_func_alloca_works=yes
15138 else
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 ac_cv_func_alloca_works=no
15145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15146 conftest$ac_exeext conftest.$ac_ext
15148 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15149 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15151 if test $ac_cv_func_alloca_works = yes; then
15153 cat >>confdefs.h <<\_ACEOF
15154 #define HAVE_ALLOCA 1
15155 _ACEOF
15157 else
15158 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15159 # that cause trouble. Some versions do not even contain alloca or
15160 # contain a buggy version. If you still want to use their alloca,
15161 # use ar to extract alloca.o from them instead of compiling alloca.c.
15163 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15165 cat >>confdefs.h <<\_ACEOF
15166 #define C_ALLOCA 1
15167 _ACEOF
15170 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15171 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15172 if test "${ac_cv_os_cray+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175 cat >conftest.$ac_ext <<_ACEOF
15176 /* confdefs.h. */
15177 _ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 #if defined CRAY && ! defined CRAY2
15182 webecray
15183 #else
15184 wenotbecray
15185 #endif
15187 _ACEOF
15188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15189 $EGREP "webecray" >/dev/null 2>&1; then
15190 ac_cv_os_cray=yes
15191 else
15192 ac_cv_os_cray=no
15194 rm -f conftest*
15197 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15198 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15199 if test $ac_cv_os_cray = yes; then
15200 for ac_func in _getb67 GETB67 getb67; do
15201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 else
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h. */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15215 #define $ac_func innocuous_$ac_func
15217 /* System header to define __stub macros and hopefully few prototypes,
15218 which can conflict with char $ac_func (); below.
15219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15220 <limits.h> exists even on freestanding compilers. */
15222 #ifdef __STDC__
15223 # include <limits.h>
15224 #else
15225 # include <assert.h>
15226 #endif
15228 #undef $ac_func
15230 /* Override any GCC internal prototype to avoid an error.
15231 Use char because int might match the return type of a GCC
15232 builtin and then its argument prototype would still apply. */
15233 #ifdef __cplusplus
15234 extern "C"
15235 #endif
15236 char $ac_func ();
15237 /* The GNU C library defines this for functions which it implements
15238 to always fail with ENOSYS. Some functions are actually named
15239 something starting with __ and the normal name is an alias. */
15240 #if defined __stub_$ac_func || defined __stub___$ac_func
15241 choke me
15242 #endif
15245 main ()
15247 return $ac_func ();
15249 return 0;
15251 _ACEOF
15252 rm -f conftest.$ac_objext conftest$ac_exeext
15253 if { (ac_try="$ac_link"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15257 esac
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_link") 2>conftest.er1
15260 ac_status=$?
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest$ac_exeext &&
15269 $as_test_x conftest$ac_exeext; then
15270 eval "$as_ac_var=yes"
15271 else
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 eval "$as_ac_var=no"
15278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15279 conftest$ac_exeext conftest.$ac_ext
15281 ac_res=`eval echo '${'$as_ac_var'}'`
15282 { echo "$as_me:$LINENO: result: $ac_res" >&5
15283 echo "${ECHO_T}$ac_res" >&6; }
15284 if test `eval echo '${'$as_ac_var'}'` = yes; then
15286 cat >>confdefs.h <<_ACEOF
15287 #define CRAY_STACKSEG_END $ac_func
15288 _ACEOF
15290 break
15293 done
15296 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15297 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15298 if test "${ac_cv_c_stack_direction+set}" = set; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 else
15301 if test "$cross_compiling" = yes; then
15302 ac_cv_c_stack_direction=0
15303 else
15304 cat >conftest.$ac_ext <<_ACEOF
15305 /* confdefs.h. */
15306 _ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15310 $ac_includes_default
15312 find_stack_direction ()
15314 static char *addr = 0;
15315 auto char dummy;
15316 if (addr == 0)
15318 addr = &dummy;
15319 return find_stack_direction ();
15321 else
15322 return (&dummy > addr) ? 1 : -1;
15326 main ()
15328 return find_stack_direction () < 0;
15330 _ACEOF
15331 rm -f conftest$ac_exeext
15332 if { (ac_try="$ac_link"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_link") 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 ac_cv_c_stack_direction=1
15352 else
15353 echo "$as_me: program exited with status $ac_status" >&5
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15357 ( exit $ac_status )
15358 ac_cv_c_stack_direction=-1
15360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15365 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15366 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15368 cat >>confdefs.h <<_ACEOF
15369 #define STACK_DIRECTION $ac_cv_c_stack_direction
15370 _ACEOF
15376 if test x"$ac_cv_func_alloca_works" != xyes; then
15377 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15378 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15379 { (exit 1); exit 1; }; }
15382 # fmod, logb, and frexp are found in -lm on most systems.
15383 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15385 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15386 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15387 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 else
15390 ac_check_lib_save_LIBS=$LIBS
15391 LIBS="-lm $LIBS"
15392 cat >conftest.$ac_ext <<_ACEOF
15393 /* confdefs.h. */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15399 /* Override any GCC internal prototype to avoid an error.
15400 Use char because int might match the return type of a GCC
15401 builtin and then its argument prototype would still apply. */
15402 #ifdef __cplusplus
15403 extern "C"
15404 #endif
15405 char sqrt ();
15407 main ()
15409 return sqrt ();
15411 return 0;
15413 _ACEOF
15414 rm -f conftest.$ac_objext conftest$ac_exeext
15415 if { (ac_try="$ac_link"
15416 case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_link") 2>conftest.er1
15422 ac_status=$?
15423 grep -v '^ *+' conftest.er1 >conftest.err
15424 rm -f conftest.er1
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } && {
15428 test -z "$ac_c_werror_flag" ||
15429 test ! -s conftest.err
15430 } && test -s conftest$ac_exeext &&
15431 $as_test_x conftest$ac_exeext; then
15432 ac_cv_lib_m_sqrt=yes
15433 else
15434 echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15437 ac_cv_lib_m_sqrt=no
15440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15441 conftest$ac_exeext conftest.$ac_ext
15442 LIBS=$ac_check_lib_save_LIBS
15444 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15445 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15446 if test $ac_cv_lib_m_sqrt = yes; then
15447 cat >>confdefs.h <<_ACEOF
15448 #define HAVE_LIBM 1
15449 _ACEOF
15451 LIBS="-lm $LIBS"
15456 # Check for mail-locking functions in a "mail" library. Probably this should
15457 # have the same check as for liblockfile below.
15459 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15460 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15461 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 else
15464 ac_check_lib_save_LIBS=$LIBS
15465 LIBS="-lmail $LIBS"
15466 cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h. */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15473 /* Override any GCC internal prototype to avoid an error.
15474 Use char because int might match the return type of a GCC
15475 builtin and then its argument prototype would still apply. */
15476 #ifdef __cplusplus
15477 extern "C"
15478 #endif
15479 char maillock ();
15481 main ()
15483 return maillock ();
15485 return 0;
15487 _ACEOF
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (ac_try="$ac_link"
15490 case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_link") 2>conftest.er1
15496 ac_status=$?
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } && {
15502 test -z "$ac_c_werror_flag" ||
15503 test ! -s conftest.err
15504 } && test -s conftest$ac_exeext &&
15505 $as_test_x conftest$ac_exeext; then
15506 ac_cv_lib_mail_maillock=yes
15507 else
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ac_cv_lib_mail_maillock=no
15514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15515 conftest$ac_exeext conftest.$ac_ext
15516 LIBS=$ac_check_lib_save_LIBS
15518 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15519 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15520 if test $ac_cv_lib_mail_maillock = yes; then
15521 cat >>confdefs.h <<_ACEOF
15522 #define HAVE_LIBMAIL 1
15523 _ACEOF
15525 LIBS="-lmail $LIBS"
15530 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15531 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15532 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 else
15535 ac_check_lib_save_LIBS=$LIBS
15536 LIBS="-llockfile $LIBS"
15537 cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h. */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15544 /* Override any GCC internal prototype to avoid an error.
15545 Use char because int might match the return type of a GCC
15546 builtin and then its argument prototype would still apply. */
15547 #ifdef __cplusplus
15548 extern "C"
15549 #endif
15550 char maillock ();
15552 main ()
15554 return maillock ();
15556 return 0;
15558 _ACEOF
15559 rm -f conftest.$ac_objext conftest$ac_exeext
15560 if { (ac_try="$ac_link"
15561 case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15564 esac
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_link") 2>conftest.er1
15567 ac_status=$?
15568 grep -v '^ *+' conftest.er1 >conftest.err
15569 rm -f conftest.er1
15570 cat conftest.err >&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } && {
15573 test -z "$ac_c_werror_flag" ||
15574 test ! -s conftest.err
15575 } && test -s conftest$ac_exeext &&
15576 $as_test_x conftest$ac_exeext; then
15577 ac_cv_lib_lockfile_maillock=yes
15578 else
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_cv_lib_lockfile_maillock=no
15585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15586 conftest$ac_exeext conftest.$ac_ext
15587 LIBS=$ac_check_lib_save_LIBS
15589 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15590 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15591 if test $ac_cv_lib_lockfile_maillock = yes; then
15592 cat >>confdefs.h <<_ACEOF
15593 #define HAVE_LIBLOCKFILE 1
15594 _ACEOF
15596 LIBS="-llockfile $LIBS"
15600 # If we have the shared liblockfile, assume we must use it for mail
15601 # locking (e.g. Debian). If we couldn't link against liblockfile
15602 # (no liblockfile.a installed), ensure that we don't need to.
15603 if test "$ac_cv_lib_lockfile_maillock" = no; then
15604 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15605 set dummy liblockfile.so; ac_word=$2
15606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15608 if test "${ac_cv_prog_liblockfile+set}" = set; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 else
15611 if test -n "$liblockfile"; then
15612 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15613 else
15614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15615 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15616 for as_dir in $as_dummy
15618 IFS=$as_save_IFS
15619 test -z "$as_dir" && as_dir=.
15620 for ac_exec_ext in '' $ac_executable_extensions; do
15621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15622 ac_cv_prog_liblockfile="yes"
15623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15624 break 2
15626 done
15627 done
15628 IFS=$as_save_IFS
15630 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15633 liblockfile=$ac_cv_prog_liblockfile
15634 if test -n "$liblockfile"; then
15635 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15636 echo "${ECHO_T}$liblockfile" >&6; }
15637 else
15638 { echo "$as_me:$LINENO: result: no" >&5
15639 echo "${ECHO_T}no" >&6; }
15643 if test $ac_cv_prog_liblockfile = yes; then
15644 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15645 This probably means that movemail could lose mail.
15646 There may be a \`development' package to install containing liblockfile." >&5
15647 echo "$as_me: error: Shared liblockfile found but can't link against it.
15648 This probably means that movemail could lose mail.
15649 There may be a \`development' package to install containing liblockfile." >&2;}
15650 { (exit 1); exit 1; }; }
15651 else :
15655 for ac_func in touchlock
15657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663 cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h. */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15671 #define $ac_func innocuous_$ac_func
15673 /* System header to define __stub macros and hopefully few prototypes,
15674 which can conflict with char $ac_func (); below.
15675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15676 <limits.h> exists even on freestanding compilers. */
15678 #ifdef __STDC__
15679 # include <limits.h>
15680 #else
15681 # include <assert.h>
15682 #endif
15684 #undef $ac_func
15686 /* Override any GCC internal prototype to avoid an error.
15687 Use char because int might match the return type of a GCC
15688 builtin and then its argument prototype would still apply. */
15689 #ifdef __cplusplus
15690 extern "C"
15691 #endif
15692 char $ac_func ();
15693 /* The GNU C library defines this for functions which it implements
15694 to always fail with ENOSYS. Some functions are actually named
15695 something starting with __ and the normal name is an alias. */
15696 #if defined __stub_$ac_func || defined __stub___$ac_func
15697 choke me
15698 #endif
15701 main ()
15703 return $ac_func ();
15705 return 0;
15707 _ACEOF
15708 rm -f conftest.$ac_objext conftest$ac_exeext
15709 if { (ac_try="$ac_link"
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_link") 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); } && {
15722 test -z "$ac_c_werror_flag" ||
15723 test ! -s conftest.err
15724 } && test -s conftest$ac_exeext &&
15725 $as_test_x conftest$ac_exeext; then
15726 eval "$as_ac_var=yes"
15727 else
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15731 eval "$as_ac_var=no"
15734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15735 conftest$ac_exeext conftest.$ac_ext
15737 ac_res=`eval echo '${'$as_ac_var'}'`
15738 { echo "$as_me:$LINENO: result: $ac_res" >&5
15739 echo "${ECHO_T}$ac_res" >&6; }
15740 if test `eval echo '${'$as_ac_var'}'` = yes; then
15741 cat >>confdefs.h <<_ACEOF
15742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15743 _ACEOF
15746 done
15749 for ac_header in maillock.h
15751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15758 ac_res=`eval echo '${'$as_ac_Header'}'`
15759 { echo "$as_me:$LINENO: result: $ac_res" >&5
15760 echo "${ECHO_T}$ac_res" >&6; }
15761 else
15762 # Is the header compilable?
15763 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15765 cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h. */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 $ac_includes_default
15772 #include <$ac_header>
15773 _ACEOF
15774 rm -f conftest.$ac_objext
15775 if { (ac_try="$ac_compile"
15776 case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15779 esac
15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_compile") 2>conftest.er1
15782 ac_status=$?
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } && {
15788 test -z "$ac_c_werror_flag" ||
15789 test ! -s conftest.err
15790 } && test -s conftest.$ac_objext; then
15791 ac_header_compiler=yes
15792 else
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15796 ac_header_compiler=no
15799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15801 echo "${ECHO_T}$ac_header_compiler" >&6; }
15803 # Is the header present?
15804 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15806 cat >conftest.$ac_ext <<_ACEOF
15807 /* confdefs.h. */
15808 _ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h. */
15812 #include <$ac_header>
15813 _ACEOF
15814 if { (ac_try="$ac_cpp conftest.$ac_ext"
15815 case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15818 esac
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15821 ac_status=$?
15822 grep -v '^ *+' conftest.er1 >conftest.err
15823 rm -f conftest.er1
15824 cat conftest.err >&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } >/dev/null && {
15827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15828 test ! -s conftest.err
15829 }; then
15830 ac_header_preproc=yes
15831 else
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15835 ac_header_preproc=no
15838 rm -f conftest.err conftest.$ac_ext
15839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15840 echo "${ECHO_T}$ac_header_preproc" >&6; }
15842 # So? What about this header?
15843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15844 yes:no: )
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15849 ac_header_preproc=yes
15851 no:yes:* )
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15866 esac
15867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15871 else
15872 eval "$as_ac_Header=\$ac_header_preproc"
15874 ac_res=`eval echo '${'$as_ac_Header'}'`
15875 { echo "$as_me:$LINENO: result: $ac_res" >&5
15876 echo "${ECHO_T}$ac_res" >&6; }
15879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15882 _ACEOF
15886 done
15957 for ac_func in gethostname getdomainname dup2 \
15958 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15959 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15960 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15961 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15962 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15963 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15964 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15965 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15968 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 else
15973 cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h. */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15981 #define $ac_func innocuous_$ac_func
15983 /* System header to define __stub macros and hopefully few prototypes,
15984 which can conflict with char $ac_func (); below.
15985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15986 <limits.h> exists even on freestanding compilers. */
15988 #ifdef __STDC__
15989 # include <limits.h>
15990 #else
15991 # include <assert.h>
15992 #endif
15994 #undef $ac_func
15996 /* Override any GCC internal prototype to avoid an error.
15997 Use char because int might match the return type of a GCC
15998 builtin and then its argument prototype would still apply. */
15999 #ifdef __cplusplus
16000 extern "C"
16001 #endif
16002 char $ac_func ();
16003 /* The GNU C library defines this for functions which it implements
16004 to always fail with ENOSYS. Some functions are actually named
16005 something starting with __ and the normal name is an alias. */
16006 #if defined __stub_$ac_func || defined __stub___$ac_func
16007 choke me
16008 #endif
16011 main ()
16013 return $ac_func ();
16015 return 0;
16017 _ACEOF
16018 rm -f conftest.$ac_objext conftest$ac_exeext
16019 if { (ac_try="$ac_link"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_link") 2>conftest.er1
16026 ac_status=$?
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } && {
16032 test -z "$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16034 } && test -s conftest$ac_exeext &&
16035 $as_test_x conftest$ac_exeext; then
16036 eval "$as_ac_var=yes"
16037 else
16038 echo "$as_me: failed program was:" >&5
16039 sed 's/^/| /' conftest.$ac_ext >&5
16041 eval "$as_ac_var=no"
16044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16045 conftest$ac_exeext conftest.$ac_ext
16047 ac_res=`eval echo '${'$as_ac_var'}'`
16048 { echo "$as_me:$LINENO: result: $ac_res" >&5
16049 echo "${ECHO_T}$ac_res" >&6; }
16050 if test `eval echo '${'$as_ac_var'}'` = yes; then
16051 cat >>confdefs.h <<_ACEOF
16052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16053 _ACEOF
16056 done
16060 for ac_header in sys/un.h
16062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16069 ac_res=`eval echo '${'$as_ac_Header'}'`
16070 { echo "$as_me:$LINENO: result: $ac_res" >&5
16071 echo "${ECHO_T}$ac_res" >&6; }
16072 else
16073 # Is the header compilable?
16074 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16076 cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h. */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 $ac_includes_default
16083 #include <$ac_header>
16084 _ACEOF
16085 rm -f conftest.$ac_objext
16086 if { (ac_try="$ac_compile"
16087 case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16090 esac
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_compile") 2>conftest.er1
16093 ac_status=$?
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } && {
16099 test -z "$ac_c_werror_flag" ||
16100 test ! -s conftest.err
16101 } && test -s conftest.$ac_objext; then
16102 ac_header_compiler=yes
16103 else
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16107 ac_header_compiler=no
16110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16112 echo "${ECHO_T}$ac_header_compiler" >&6; }
16114 # Is the header present?
16115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16117 cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h. */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 #include <$ac_header>
16124 _ACEOF
16125 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
16138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16139 test ! -s conftest.err
16140 }; then
16141 ac_header_preproc=yes
16142 else
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 ac_header_preproc=no
16149 rm -f conftest.err conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16151 echo "${ECHO_T}$ac_header_preproc" >&6; }
16153 # So? What about this header?
16154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16155 yes:no: )
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16160 ac_header_preproc=yes
16162 no:yes:* )
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16177 esac
16178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 else
16183 eval "$as_ac_Header=\$ac_header_preproc"
16185 ac_res=`eval echo '${'$as_ac_Header'}'`
16186 { echo "$as_me:$LINENO: result: $ac_res" >&5
16187 echo "${ECHO_T}$ac_res" >&6; }
16190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16191 cat >>confdefs.h <<_ACEOF
16192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16193 _ACEOF
16197 done
16204 for ac_header in $ac_header_list
16206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 ac_res=`eval echo '${'$as_ac_Header'}'`
16214 { echo "$as_me:$LINENO: result: $ac_res" >&5
16215 echo "${ECHO_T}$ac_res" >&6; }
16216 else
16217 # Is the header compilable?
16218 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16220 cat >conftest.$ac_ext <<_ACEOF
16221 /* confdefs.h. */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 $ac_includes_default
16227 #include <$ac_header>
16228 _ACEOF
16229 rm -f conftest.$ac_objext
16230 if { (ac_try="$ac_compile"
16231 case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_compile") 2>conftest.er1
16237 ac_status=$?
16238 grep -v '^ *+' conftest.er1 >conftest.err
16239 rm -f conftest.er1
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } && {
16243 test -z "$ac_c_werror_flag" ||
16244 test ! -s conftest.err
16245 } && test -s conftest.$ac_objext; then
16246 ac_header_compiler=yes
16247 else
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 ac_header_compiler=no
16254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16256 echo "${ECHO_T}$ac_header_compiler" >&6; }
16258 # Is the header present?
16259 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16261 cat >conftest.$ac_ext <<_ACEOF
16262 /* confdefs.h. */
16263 _ACEOF
16264 cat confdefs.h >>conftest.$ac_ext
16265 cat >>conftest.$ac_ext <<_ACEOF
16266 /* end confdefs.h. */
16267 #include <$ac_header>
16268 _ACEOF
16269 if { (ac_try="$ac_cpp conftest.$ac_ext"
16270 case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16273 esac
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16276 ac_status=$?
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } >/dev/null && {
16282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16283 test ! -s conftest.err
16284 }; then
16285 ac_header_preproc=yes
16286 else
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16290 ac_header_preproc=no
16293 rm -f conftest.err conftest.$ac_ext
16294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16295 echo "${ECHO_T}$ac_header_preproc" >&6; }
16297 # So? What about this header?
16298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16299 yes:no: )
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16304 ac_header_preproc=yes
16306 no:yes:* )
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16310 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16314 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16321 esac
16322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327 eval "$as_ac_Header=\$ac_header_preproc"
16329 ac_res=`eval echo '${'$as_ac_Header'}'`
16330 { echo "$as_me:$LINENO: result: $ac_res" >&5
16331 echo "${ECHO_T}$ac_res" >&6; }
16334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16335 cat >>confdefs.h <<_ACEOF
16336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16337 _ACEOF
16341 done
16351 for ac_func in $ac_func_list
16353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16357 echo $ECHO_N "(cached) $ECHO_C" >&6
16358 else
16359 cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h. */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16367 #define $ac_func innocuous_$ac_func
16369 /* System header to define __stub macros and hopefully few prototypes,
16370 which can conflict with char $ac_func (); below.
16371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16372 <limits.h> exists even on freestanding compilers. */
16374 #ifdef __STDC__
16375 # include <limits.h>
16376 #else
16377 # include <assert.h>
16378 #endif
16380 #undef $ac_func
16382 /* Override any GCC internal prototype to avoid an error.
16383 Use char because int might match the return type of a GCC
16384 builtin and then its argument prototype would still apply. */
16385 #ifdef __cplusplus
16386 extern "C"
16387 #endif
16388 char $ac_func ();
16389 /* The GNU C library defines this for functions which it implements
16390 to always fail with ENOSYS. Some functions are actually named
16391 something starting with __ and the normal name is an alias. */
16392 #if defined __stub_$ac_func || defined __stub___$ac_func
16393 choke me
16394 #endif
16397 main ()
16399 return $ac_func ();
16401 return 0;
16403 _ACEOF
16404 rm -f conftest.$ac_objext conftest$ac_exeext
16405 if { (ac_try="$ac_link"
16406 case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_link") 2>conftest.er1
16412 ac_status=$?
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } && {
16418 test -z "$ac_c_werror_flag" ||
16419 test ! -s conftest.err
16420 } && test -s conftest$ac_exeext &&
16421 $as_test_x conftest$ac_exeext; then
16422 eval "$as_ac_var=yes"
16423 else
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16427 eval "$as_ac_var=no"
16430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16431 conftest$ac_exeext conftest.$ac_ext
16433 ac_res=`eval echo '${'$as_ac_var'}'`
16434 { echo "$as_me:$LINENO: result: $ac_res" >&5
16435 echo "${ECHO_T}$ac_res" >&6; }
16436 if test `eval echo '${'$as_ac_var'}'` = yes; then
16437 cat >>confdefs.h <<_ACEOF
16438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16439 _ACEOF
16442 done
16460 { echo "$as_me:$LINENO: checking for working mktime" >&5
16461 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16462 if test "${ac_cv_func_working_mktime+set}" = set; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 else
16465 if test "$cross_compiling" = yes; then
16466 ac_cv_func_working_mktime=no
16467 else
16468 cat >conftest.$ac_ext <<_ACEOF
16469 /* confdefs.h. */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 /* Test program from Paul Eggert and Tony Leneis. */
16475 #ifdef TIME_WITH_SYS_TIME
16476 # include <sys/time.h>
16477 # include <time.h>
16478 #else
16479 # ifdef HAVE_SYS_TIME_H
16480 # include <sys/time.h>
16481 # else
16482 # include <time.h>
16483 # endif
16484 #endif
16486 #include <stdlib.h>
16488 #ifdef HAVE_UNISTD_H
16489 # include <unistd.h>
16490 #endif
16492 #ifndef HAVE_ALARM
16493 # define alarm(X) /* empty */
16494 #endif
16496 /* Work around redefinition to rpl_putenv by other config tests. */
16497 #undef putenv
16499 static time_t time_t_max;
16500 static time_t time_t_min;
16502 /* Values we'll use to set the TZ environment variable. */
16503 static char *tz_strings[] = {
16504 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16505 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16507 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16509 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16510 Based on a problem report from Andreas Jaeger. */
16511 static int
16512 spring_forward_gap ()
16514 /* glibc (up to about 1998-10-07) failed this test. */
16515 struct tm tm;
16517 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16518 instead of "TZ=America/Vancouver" in order to detect the bug even
16519 on systems that don't support the Olson extension, or don't have the
16520 full zoneinfo tables installed. */
16521 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16523 tm.tm_year = 98;
16524 tm.tm_mon = 3;
16525 tm.tm_mday = 5;
16526 tm.tm_hour = 2;
16527 tm.tm_min = 0;
16528 tm.tm_sec = 0;
16529 tm.tm_isdst = -1;
16530 return mktime (&tm) != (time_t) -1;
16533 static int
16534 mktime_test1 (now)
16535 time_t now;
16537 struct tm *lt;
16538 return ! (lt = localtime (&now)) || mktime (lt) == now;
16541 static int
16542 mktime_test (now)
16543 time_t now;
16545 return (mktime_test1 (now)
16546 && mktime_test1 ((time_t) (time_t_max - now))
16547 && mktime_test1 ((time_t) (time_t_min + now)));
16550 static int
16551 irix_6_4_bug ()
16553 /* Based on code from Ariel Faigon. */
16554 struct tm tm;
16555 tm.tm_year = 96;
16556 tm.tm_mon = 3;
16557 tm.tm_mday = 0;
16558 tm.tm_hour = 0;
16559 tm.tm_min = 0;
16560 tm.tm_sec = 0;
16561 tm.tm_isdst = -1;
16562 mktime (&tm);
16563 return tm.tm_mon == 2 && tm.tm_mday == 31;
16566 static int
16567 bigtime_test (j)
16568 int j;
16570 struct tm tm;
16571 time_t now;
16572 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16573 now = mktime (&tm);
16574 if (now != (time_t) -1)
16576 struct tm *lt = localtime (&now);
16577 if (! (lt
16578 && lt->tm_year == tm.tm_year
16579 && lt->tm_mon == tm.tm_mon
16580 && lt->tm_mday == tm.tm_mday
16581 && lt->tm_hour == tm.tm_hour
16582 && lt->tm_min == tm.tm_min
16583 && lt->tm_sec == tm.tm_sec
16584 && lt->tm_yday == tm.tm_yday
16585 && lt->tm_wday == tm.tm_wday
16586 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16587 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16588 return 0;
16590 return 1;
16593 static int
16594 year_2050_test ()
16596 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16597 ignoring leap seconds. */
16598 unsigned long int answer = 2527315200UL;
16600 struct tm tm;
16601 time_t t;
16602 tm.tm_year = 2050 - 1900;
16603 tm.tm_mon = 2 - 1;
16604 tm.tm_mday = 1;
16605 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16606 tm.tm_isdst = -1;
16608 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16609 instead of "TZ=America/Vancouver" in order to detect the bug even
16610 on systems that don't support the Olson extension, or don't have the
16611 full zoneinfo tables installed. */
16612 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16614 t = mktime (&tm);
16616 /* Check that the result is either a failure, or close enough
16617 to the correct answer that we can assume the discrepancy is
16618 due to leap seconds. */
16619 return (t == (time_t) -1
16620 || (0 < t && answer - 120 <= t && t <= answer + 120));
16624 main ()
16626 time_t t, delta;
16627 int i, j;
16629 /* This test makes some buggy mktime implementations loop.
16630 Give up after 60 seconds; a mktime slower than that
16631 isn't worth using anyway. */
16632 alarm (60);
16634 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16635 continue;
16636 time_t_max--;
16637 if ((time_t) -1 < 0)
16638 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16639 continue;
16640 delta = time_t_max / 997; /* a suitable prime number */
16641 for (i = 0; i < N_STRINGS; i++)
16643 if (tz_strings[i])
16644 putenv (tz_strings[i]);
16646 for (t = 0; t <= time_t_max - delta; t += delta)
16647 if (! mktime_test (t))
16648 return 1;
16649 if (! (mktime_test ((time_t) 1)
16650 && mktime_test ((time_t) (60 * 60))
16651 && mktime_test ((time_t) (60 * 60 * 24))))
16652 return 1;
16654 for (j = 1; 0 < j; j *= 2)
16655 if (! bigtime_test (j))
16656 return 1;
16657 if (! bigtime_test (j - 1))
16658 return 1;
16660 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16662 _ACEOF
16663 rm -f conftest$ac_exeext
16664 if { (ac_try="$ac_link"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_link") 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_func_working_mktime=yes
16684 else
16685 echo "$as_me: program exited with status $ac_status" >&5
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 ( exit $ac_status )
16690 ac_cv_func_working_mktime=no
16692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16697 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16698 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16699 if test $ac_cv_func_working_mktime = no; then
16700 case " $LIBOBJS " in
16701 *" mktime.$ac_objext "* ) ;;
16702 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16704 esac
16708 if test "$ac_cv_func_working_mktime" = no; then
16710 cat >>confdefs.h <<\_ACEOF
16711 #define BROKEN_MKTIME 1
16712 _ACEOF
16716 ac_have_func=no # yes means we've found a way to get the load average.
16718 # Make sure getloadavg.c is where it belongs, at configure-time.
16719 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16720 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16721 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16722 { (exit 1); exit 1; }; }
16724 ac_save_LIBS=$LIBS
16726 # Check for getloadavg, but be sure not to touch the cache variable.
16727 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16728 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16729 if test "${ac_cv_func_getloadavg+set}" = set; then
16730 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 else
16732 cat >conftest.$ac_ext <<_ACEOF
16733 /* confdefs.h. */
16734 _ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h. */
16738 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16740 #define getloadavg innocuous_getloadavg
16742 /* System header to define __stub macros and hopefully few prototypes,
16743 which can conflict with char getloadavg (); below.
16744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16745 <limits.h> exists even on freestanding compilers. */
16747 #ifdef __STDC__
16748 # include <limits.h>
16749 #else
16750 # include <assert.h>
16751 #endif
16753 #undef getloadavg
16755 /* Override any GCC internal prototype to avoid an error.
16756 Use char because int might match the return type of a GCC
16757 builtin and then its argument prototype would still apply. */
16758 #ifdef __cplusplus
16759 extern "C"
16760 #endif
16761 char getloadavg ();
16762 /* The GNU C library defines this for functions which it implements
16763 to always fail with ENOSYS. Some functions are actually named
16764 something starting with __ and the normal name is an alias. */
16765 #if defined __stub_getloadavg || defined __stub___getloadavg
16766 choke me
16767 #endif
16770 main ()
16772 return getloadavg ();
16774 return 0;
16776 _ACEOF
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (ac_try="$ac_link"
16779 case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_link") 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } && {
16791 test -z "$ac_c_werror_flag" ||
16792 test ! -s conftest.err
16793 } && test -s conftest$ac_exeext &&
16794 $as_test_x conftest$ac_exeext; then
16795 ac_cv_func_getloadavg=yes
16796 else
16797 echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 ac_cv_func_getloadavg=no
16803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16804 conftest$ac_exeext conftest.$ac_ext
16806 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16807 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16808 if test $ac_cv_func_getloadavg = yes; then
16809 exit 0
16810 else
16811 exit 1
16813 ) && ac_have_func=yes
16815 # On HPUX9, an unprivileged user can get load averages through this function.
16817 for ac_func in pstat_getdynamic
16819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825 cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h. */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16833 #define $ac_func innocuous_$ac_func
16835 /* System header to define __stub macros and hopefully few prototypes,
16836 which can conflict with char $ac_func (); below.
16837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16838 <limits.h> exists even on freestanding compilers. */
16840 #ifdef __STDC__
16841 # include <limits.h>
16842 #else
16843 # include <assert.h>
16844 #endif
16846 #undef $ac_func
16848 /* Override any GCC internal prototype to avoid an error.
16849 Use char because int might match the return type of a GCC
16850 builtin and then its argument prototype would still apply. */
16851 #ifdef __cplusplus
16852 extern "C"
16853 #endif
16854 char $ac_func ();
16855 /* The GNU C library defines this for functions which it implements
16856 to always fail with ENOSYS. Some functions are actually named
16857 something starting with __ and the normal name is an alias. */
16858 #if defined __stub_$ac_func || defined __stub___$ac_func
16859 choke me
16860 #endif
16863 main ()
16865 return $ac_func ();
16867 return 0;
16869 _ACEOF
16870 rm -f conftest.$ac_objext conftest$ac_exeext
16871 if { (ac_try="$ac_link"
16872 case "(($ac_try" in
16873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874 *) ac_try_echo=$ac_try;;
16875 esac
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877 (eval "$ac_link") 2>conftest.er1
16878 ac_status=$?
16879 grep -v '^ *+' conftest.er1 >conftest.err
16880 rm -f conftest.er1
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && {
16884 test -z "$ac_c_werror_flag" ||
16885 test ! -s conftest.err
16886 } && test -s conftest$ac_exeext &&
16887 $as_test_x conftest$ac_exeext; then
16888 eval "$as_ac_var=yes"
16889 else
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 eval "$as_ac_var=no"
16896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16897 conftest$ac_exeext conftest.$ac_ext
16899 ac_res=`eval echo '${'$as_ac_var'}'`
16900 { echo "$as_me:$LINENO: result: $ac_res" >&5
16901 echo "${ECHO_T}$ac_res" >&6; }
16902 if test `eval echo '${'$as_ac_var'}'` = yes; then
16903 cat >>confdefs.h <<_ACEOF
16904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16905 _ACEOF
16908 done
16911 # Solaris has libkstat which does not require root.
16913 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16914 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16915 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918 ac_check_lib_save_LIBS=$LIBS
16919 LIBS="-lkstat $LIBS"
16920 cat >conftest.$ac_ext <<_ACEOF
16921 /* confdefs.h. */
16922 _ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h. */
16927 /* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16930 #ifdef __cplusplus
16931 extern "C"
16932 #endif
16933 char kstat_open ();
16935 main ()
16937 return kstat_open ();
16939 return 0;
16941 _ACEOF
16942 rm -f conftest.$ac_objext conftest$ac_exeext
16943 if { (ac_try="$ac_link"
16944 case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_link") 2>conftest.er1
16950 ac_status=$?
16951 grep -v '^ *+' conftest.er1 >conftest.err
16952 rm -f conftest.er1
16953 cat conftest.err >&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } && {
16956 test -z "$ac_c_werror_flag" ||
16957 test ! -s conftest.err
16958 } && test -s conftest$ac_exeext &&
16959 $as_test_x conftest$ac_exeext; then
16960 ac_cv_lib_kstat_kstat_open=yes
16961 else
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_cv_lib_kstat_kstat_open=no
16968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16969 conftest$ac_exeext conftest.$ac_ext
16970 LIBS=$ac_check_lib_save_LIBS
16972 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16973 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16974 if test $ac_cv_lib_kstat_kstat_open = yes; then
16975 cat >>confdefs.h <<_ACEOF
16976 #define HAVE_LIBKSTAT 1
16977 _ACEOF
16979 LIBS="-lkstat $LIBS"
16983 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16985 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16986 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16987 # to get the right answer into the cache.
16988 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16989 if test $ac_have_func = no; then
16990 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16991 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16992 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995 ac_check_lib_save_LIBS=$LIBS
16996 LIBS="-lelf $LIBS"
16997 cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h. */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17004 /* Override any GCC internal prototype to avoid an error.
17005 Use char because int might match the return type of a GCC
17006 builtin and then its argument prototype would still apply. */
17007 #ifdef __cplusplus
17008 extern "C"
17009 #endif
17010 char elf_begin ();
17012 main ()
17014 return elf_begin ();
17016 return 0;
17018 _ACEOF
17019 rm -f conftest.$ac_objext conftest$ac_exeext
17020 if { (ac_try="$ac_link"
17021 case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17024 esac
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_link") 2>conftest.er1
17027 ac_status=$?
17028 grep -v '^ *+' conftest.er1 >conftest.err
17029 rm -f conftest.er1
17030 cat conftest.err >&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } && {
17033 test -z "$ac_c_werror_flag" ||
17034 test ! -s conftest.err
17035 } && test -s conftest$ac_exeext &&
17036 $as_test_x conftest$ac_exeext; then
17037 ac_cv_lib_elf_elf_begin=yes
17038 else
17039 echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17042 ac_cv_lib_elf_elf_begin=no
17045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17046 conftest$ac_exeext conftest.$ac_ext
17047 LIBS=$ac_check_lib_save_LIBS
17049 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17050 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17051 if test $ac_cv_lib_elf_elf_begin = yes; then
17052 LIBS="-lelf $LIBS"
17056 if test $ac_have_func = no; then
17057 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17058 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17059 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 else
17062 ac_check_lib_save_LIBS=$LIBS
17063 LIBS="-lkvm $LIBS"
17064 cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h. */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17071 /* Override any GCC internal prototype to avoid an error.
17072 Use char because int might match the return type of a GCC
17073 builtin and then its argument prototype would still apply. */
17074 #ifdef __cplusplus
17075 extern "C"
17076 #endif
17077 char kvm_open ();
17079 main ()
17081 return kvm_open ();
17083 return 0;
17085 _ACEOF
17086 rm -f conftest.$ac_objext conftest$ac_exeext
17087 if { (ac_try="$ac_link"
17088 case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_link") 2>conftest.er1
17094 ac_status=$?
17095 grep -v '^ *+' conftest.er1 >conftest.err
17096 rm -f conftest.er1
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } && {
17100 test -z "$ac_c_werror_flag" ||
17101 test ! -s conftest.err
17102 } && test -s conftest$ac_exeext &&
17103 $as_test_x conftest$ac_exeext; then
17104 ac_cv_lib_kvm_kvm_open=yes
17105 else
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17109 ac_cv_lib_kvm_kvm_open=no
17112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17113 conftest$ac_exeext conftest.$ac_ext
17114 LIBS=$ac_check_lib_save_LIBS
17116 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17117 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17118 if test $ac_cv_lib_kvm_kvm_open = yes; then
17119 LIBS="-lkvm $LIBS"
17122 # Check for the 4.4BSD definition of getloadavg.
17123 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17124 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17125 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 else
17128 ac_check_lib_save_LIBS=$LIBS
17129 LIBS="-lutil $LIBS"
17130 cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h. */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17137 /* Override any GCC internal prototype to avoid an error.
17138 Use char because int might match the return type of a GCC
17139 builtin and then its argument prototype would still apply. */
17140 #ifdef __cplusplus
17141 extern "C"
17142 #endif
17143 char getloadavg ();
17145 main ()
17147 return getloadavg ();
17149 return 0;
17151 _ACEOF
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (ac_try="$ac_link"
17154 case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } && {
17166 test -z "$ac_c_werror_flag" ||
17167 test ! -s conftest.err
17168 } && test -s conftest$ac_exeext &&
17169 $as_test_x conftest$ac_exeext; then
17170 ac_cv_lib_util_getloadavg=yes
17171 else
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17175 ac_cv_lib_util_getloadavg=no
17178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17179 conftest$ac_exeext conftest.$ac_ext
17180 LIBS=$ac_check_lib_save_LIBS
17182 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17183 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17184 if test $ac_cv_lib_util_getloadavg = yes; then
17185 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17190 if test $ac_have_func = no; then
17191 # There is a commonly available library for RS/6000 AIX.
17192 # Since it is not a standard part of AIX, it might be installed locally.
17193 ac_getloadavg_LIBS=$LIBS
17194 LIBS="-L/usr/local/lib $LIBS"
17195 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17196 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17197 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 else
17200 ac_check_lib_save_LIBS=$LIBS
17201 LIBS="-lgetloadavg $LIBS"
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h. */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17209 /* Override any GCC internal prototype to avoid an error.
17210 Use char because int might match the return type of a GCC
17211 builtin and then its argument prototype would still apply. */
17212 #ifdef __cplusplus
17213 extern "C"
17214 #endif
17215 char getloadavg ();
17217 main ()
17219 return getloadavg ();
17221 return 0;
17223 _ACEOF
17224 rm -f conftest.$ac_objext conftest$ac_exeext
17225 if { (ac_try="$ac_link"
17226 case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_link") 2>conftest.er1
17232 ac_status=$?
17233 grep -v '^ *+' conftest.er1 >conftest.err
17234 rm -f conftest.er1
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } && {
17238 test -z "$ac_c_werror_flag" ||
17239 test ! -s conftest.err
17240 } && test -s conftest$ac_exeext &&
17241 $as_test_x conftest$ac_exeext; then
17242 ac_cv_lib_getloadavg_getloadavg=yes
17243 else
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ac_cv_lib_getloadavg_getloadavg=no
17250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17251 conftest$ac_exeext conftest.$ac_ext
17252 LIBS=$ac_check_lib_save_LIBS
17254 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17255 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17256 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17257 LIBS="-lgetloadavg $LIBS"
17258 else
17259 LIBS=$ac_getloadavg_LIBS
17264 # Make sure it is really in the library, if we think we found it,
17265 # otherwise set up the replacement function.
17267 for ac_func in getloadavg
17269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17283 #define $ac_func innocuous_$ac_func
17285 /* System header to define __stub macros and hopefully few prototypes,
17286 which can conflict with char $ac_func (); below.
17287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288 <limits.h> exists even on freestanding compilers. */
17290 #ifdef __STDC__
17291 # include <limits.h>
17292 #else
17293 # include <assert.h>
17294 #endif
17296 #undef $ac_func
17298 /* Override any GCC internal prototype to avoid an error.
17299 Use char because int might match the return type of a GCC
17300 builtin and then its argument prototype would still apply. */
17301 #ifdef __cplusplus
17302 extern "C"
17303 #endif
17304 char $ac_func ();
17305 /* The GNU C library defines this for functions which it implements
17306 to always fail with ENOSYS. Some functions are actually named
17307 something starting with __ and the normal name is an alias. */
17308 #if defined __stub_$ac_func || defined __stub___$ac_func
17309 choke me
17310 #endif
17313 main ()
17315 return $ac_func ();
17317 return 0;
17319 _ACEOF
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17328 ac_status=$?
17329 grep -v '^ *+' conftest.er1 >conftest.err
17330 rm -f conftest.er1
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } && {
17334 test -z "$ac_c_werror_flag" ||
17335 test ! -s conftest.err
17336 } && test -s conftest$ac_exeext &&
17337 $as_test_x conftest$ac_exeext; then
17338 eval "$as_ac_var=yes"
17339 else
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 eval "$as_ac_var=no"
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347 conftest$ac_exeext conftest.$ac_ext
17349 ac_res=`eval echo '${'$as_ac_var'}'`
17350 { echo "$as_me:$LINENO: result: $ac_res" >&5
17351 echo "${ECHO_T}$ac_res" >&6; }
17352 if test `eval echo '${'$as_ac_var'}'` = yes; then
17353 cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17355 _ACEOF
17357 else
17358 case " $LIBOBJS " in
17359 *" getloadavg.$ac_objext "* ) ;;
17360 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17362 esac
17365 cat >>confdefs.h <<\_ACEOF
17366 #define C_GETLOADAVG 1
17367 _ACEOF
17369 # Figure out what our getloadavg.c needs.
17370 ac_have_func=no
17371 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17372 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17373 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17374 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17377 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17378 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17379 else
17380 # Is the header compilable?
17381 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17382 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17383 cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h. */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 $ac_includes_default
17390 #include <sys/dg_sys_info.h>
17391 _ACEOF
17392 rm -f conftest.$ac_objext
17393 if { (ac_try="$ac_compile"
17394 case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17397 esac
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_compile") 2>conftest.er1
17400 ac_status=$?
17401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } && {
17406 test -z "$ac_c_werror_flag" ||
17407 test ! -s conftest.err
17408 } && test -s conftest.$ac_objext; then
17409 ac_header_compiler=yes
17410 else
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 ac_header_compiler=no
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17419 echo "${ECHO_T}$ac_header_compiler" >&6; }
17421 # Is the header present?
17422 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17423 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17424 cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h. */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 #include <sys/dg_sys_info.h>
17431 _ACEOF
17432 if { (ac_try="$ac_cpp conftest.$ac_ext"
17433 case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436 esac
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17439 ac_status=$?
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } >/dev/null && {
17445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17446 test ! -s conftest.err
17447 }; then
17448 ac_header_preproc=yes
17449 else
17450 echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17453 ac_header_preproc=no
17456 rm -f conftest.err conftest.$ac_ext
17457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17458 echo "${ECHO_T}$ac_header_preproc" >&6; }
17460 # So? What about this header?
17461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17462 yes:no: )
17463 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17464 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17465 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17466 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17467 ac_header_preproc=yes
17469 no:yes:* )
17470 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17471 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17472 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17473 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17474 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17475 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17476 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17477 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17478 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17479 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17480 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17481 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17484 esac
17485 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17486 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17487 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17492 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17493 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17496 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17497 ac_have_func=yes
17499 cat >>confdefs.h <<\_ACEOF
17500 #define DGUX 1
17501 _ACEOF
17504 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17505 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17506 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509 ac_check_lib_save_LIBS=$LIBS
17510 LIBS="-ldgc $LIBS"
17511 cat >conftest.$ac_ext <<_ACEOF
17512 /* confdefs.h. */
17513 _ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17518 /* Override any GCC internal prototype to avoid an error.
17519 Use char because int might match the return type of a GCC
17520 builtin and then its argument prototype would still apply. */
17521 #ifdef __cplusplus
17522 extern "C"
17523 #endif
17524 char dg_sys_info ();
17526 main ()
17528 return dg_sys_info ();
17530 return 0;
17532 _ACEOF
17533 rm -f conftest.$ac_objext conftest$ac_exeext
17534 if { (ac_try="$ac_link"
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_link") 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); } && {
17547 test -z "$ac_c_werror_flag" ||
17548 test ! -s conftest.err
17549 } && test -s conftest$ac_exeext &&
17550 $as_test_x conftest$ac_exeext; then
17551 ac_cv_lib_dgc_dg_sys_info=yes
17552 else
17553 echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17556 ac_cv_lib_dgc_dg_sys_info=no
17559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17560 conftest$ac_exeext conftest.$ac_ext
17561 LIBS=$ac_check_lib_save_LIBS
17563 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17564 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17565 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17566 cat >>confdefs.h <<_ACEOF
17567 #define HAVE_LIBDGC 1
17568 _ACEOF
17570 LIBS="-ldgc $LIBS"
17578 if test "${ac_cv_header_locale_h+set}" = set; then
17579 { echo "$as_me:$LINENO: checking for locale.h" >&5
17580 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17581 if test "${ac_cv_header_locale_h+set}" = set; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17585 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17586 else
17587 # Is the header compilable?
17588 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17589 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17590 cat >conftest.$ac_ext <<_ACEOF
17591 /* confdefs.h. */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596 $ac_includes_default
17597 #include <locale.h>
17598 _ACEOF
17599 rm -f conftest.$ac_objext
17600 if { (ac_try="$ac_compile"
17601 case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_compile") 2>conftest.er1
17607 ac_status=$?
17608 grep -v '^ *+' conftest.er1 >conftest.err
17609 rm -f conftest.er1
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } && {
17613 test -z "$ac_c_werror_flag" ||
17614 test ! -s conftest.err
17615 } && test -s conftest.$ac_objext; then
17616 ac_header_compiler=yes
17617 else
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621 ac_header_compiler=no
17624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17626 echo "${ECHO_T}$ac_header_compiler" >&6; }
17628 # Is the header present?
17629 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17630 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17631 cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h. */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17637 #include <locale.h>
17638 _ACEOF
17639 if { (ac_try="$ac_cpp conftest.$ac_ext"
17640 case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17643 esac
17644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17646 ac_status=$?
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } >/dev/null && {
17652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17653 test ! -s conftest.err
17654 }; then
17655 ac_header_preproc=yes
17656 else
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_header_preproc=no
17663 rm -f conftest.err conftest.$ac_ext
17664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17665 echo "${ECHO_T}$ac_header_preproc" >&6; }
17667 # So? What about this header?
17668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17669 yes:no: )
17670 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17671 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17672 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17673 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17674 ac_header_preproc=yes
17676 no:yes:* )
17677 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17678 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17679 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17680 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17681 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17682 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17683 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17684 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17685 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17686 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17687 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17688 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17691 esac
17692 { echo "$as_me:$LINENO: checking for locale.h" >&5
17693 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17694 if test "${ac_cv_header_locale_h+set}" = set; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 else
17697 ac_cv_header_locale_h=$ac_header_preproc
17699 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17700 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17706 for ac_func in setlocale
17708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17713 else
17714 cat >conftest.$ac_ext <<_ACEOF
17715 /* confdefs.h. */
17716 _ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17722 #define $ac_func innocuous_$ac_func
17724 /* System header to define __stub macros and hopefully few prototypes,
17725 which can conflict with char $ac_func (); below.
17726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17727 <limits.h> exists even on freestanding compilers. */
17729 #ifdef __STDC__
17730 # include <limits.h>
17731 #else
17732 # include <assert.h>
17733 #endif
17735 #undef $ac_func
17737 /* Override any GCC internal prototype to avoid an error.
17738 Use char because int might match the return type of a GCC
17739 builtin and then its argument prototype would still apply. */
17740 #ifdef __cplusplus
17741 extern "C"
17742 #endif
17743 char $ac_func ();
17744 /* The GNU C library defines this for functions which it implements
17745 to always fail with ENOSYS. Some functions are actually named
17746 something starting with __ and the normal name is an alias. */
17747 #if defined __stub_$ac_func || defined __stub___$ac_func
17748 choke me
17749 #endif
17752 main ()
17754 return $ac_func ();
17756 return 0;
17758 _ACEOF
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (ac_try="$ac_link"
17761 case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17764 esac
17765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766 (eval "$ac_link") 2>conftest.er1
17767 ac_status=$?
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } && {
17773 test -z "$ac_c_werror_flag" ||
17774 test ! -s conftest.err
17775 } && test -s conftest$ac_exeext &&
17776 $as_test_x conftest$ac_exeext; then
17777 eval "$as_ac_var=yes"
17778 else
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17782 eval "$as_ac_var=no"
17785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17786 conftest$ac_exeext conftest.$ac_ext
17788 ac_res=`eval echo '${'$as_ac_var'}'`
17789 { echo "$as_me:$LINENO: result: $ac_res" >&5
17790 echo "${ECHO_T}$ac_res" >&6; }
17791 if test `eval echo '${'$as_ac_var'}'` = yes; then
17792 cat >>confdefs.h <<_ACEOF
17793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17794 _ACEOF
17797 done
17800 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17801 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17802 # Irix 4.0.5F has the header but not the library.
17803 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17804 ac_have_func=yes
17806 cat >>confdefs.h <<\_ACEOF
17807 #define SVR4 1
17808 _ACEOF
17812 if test $ac_have_func = no; then
17813 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17814 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17815 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17816 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17820 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17821 else
17822 # Is the header compilable?
17823 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17824 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17825 cat >conftest.$ac_ext <<_ACEOF
17826 /* confdefs.h. */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17831 $ac_includes_default
17832 #include <inq_stats/cpustats.h>
17833 _ACEOF
17834 rm -f conftest.$ac_objext
17835 if { (ac_try="$ac_compile"
17836 case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17839 esac
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_compile") 2>conftest.er1
17842 ac_status=$?
17843 grep -v '^ *+' conftest.er1 >conftest.err
17844 rm -f conftest.er1
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } && {
17848 test -z "$ac_c_werror_flag" ||
17849 test ! -s conftest.err
17850 } && test -s conftest.$ac_objext; then
17851 ac_header_compiler=yes
17852 else
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 ac_header_compiler=no
17859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17861 echo "${ECHO_T}$ac_header_compiler" >&6; }
17863 # Is the header present?
17864 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17865 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17866 cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h. */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 #include <inq_stats/cpustats.h>
17873 _ACEOF
17874 if { (ac_try="$ac_cpp conftest.$ac_ext"
17875 case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17878 esac
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17881 ac_status=$?
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } >/dev/null && {
17887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17888 test ! -s conftest.err
17889 }; then
17890 ac_header_preproc=yes
17891 else
17892 echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17895 ac_header_preproc=no
17898 rm -f conftest.err conftest.$ac_ext
17899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17900 echo "${ECHO_T}$ac_header_preproc" >&6; }
17902 # So? What about this header?
17903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17904 yes:no: )
17905 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17906 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17907 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17908 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17909 ac_header_preproc=yes
17911 no:yes:* )
17912 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17913 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17914 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17915 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17916 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17917 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17918 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17919 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17920 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17921 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17922 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17923 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17926 esac
17927 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17928 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17929 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17934 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17935 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17938 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17939 ac_have_func=yes
17941 cat >>confdefs.h <<\_ACEOF
17942 #define UMAX 1
17943 _ACEOF
17946 cat >>confdefs.h <<\_ACEOF
17947 #define UMAX4_3 1
17948 _ACEOF
17955 if test $ac_have_func = no; then
17956 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17957 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17958 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17959 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17963 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17964 else
17965 # Is the header compilable?
17966 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17967 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17968 cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h. */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17974 $ac_includes_default
17975 #include <sys/cpustats.h>
17976 _ACEOF
17977 rm -f conftest.$ac_objext
17978 if { (ac_try="$ac_compile"
17979 case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17982 esac
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_compile") 2>conftest.er1
17985 ac_status=$?
17986 grep -v '^ *+' conftest.er1 >conftest.err
17987 rm -f conftest.er1
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } && {
17991 test -z "$ac_c_werror_flag" ||
17992 test ! -s conftest.err
17993 } && test -s conftest.$ac_objext; then
17994 ac_header_compiler=yes
17995 else
17996 echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999 ac_header_compiler=no
18002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18004 echo "${ECHO_T}$ac_header_compiler" >&6; }
18006 # Is the header present?
18007 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18008 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18009 cat >conftest.$ac_ext <<_ACEOF
18010 /* confdefs.h. */
18011 _ACEOF
18012 cat confdefs.h >>conftest.$ac_ext
18013 cat >>conftest.$ac_ext <<_ACEOF
18014 /* end confdefs.h. */
18015 #include <sys/cpustats.h>
18016 _ACEOF
18017 if { (ac_try="$ac_cpp conftest.$ac_ext"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021 esac
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18024 ac_status=$?
18025 grep -v '^ *+' conftest.er1 >conftest.err
18026 rm -f conftest.er1
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } >/dev/null && {
18030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 }; then
18033 ac_header_preproc=yes
18034 else
18035 echo "$as_me: failed program was:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18038 ac_header_preproc=no
18041 rm -f conftest.err conftest.$ac_ext
18042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18043 echo "${ECHO_T}$ac_header_preproc" >&6; }
18045 # So? What about this header?
18046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18047 yes:no: )
18048 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18049 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18050 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18051 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18052 ac_header_preproc=yes
18054 no:yes:* )
18055 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18056 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18057 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18058 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18059 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18060 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18061 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18062 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18063 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18064 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18065 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18066 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18069 esac
18070 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18071 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18072 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18074 else
18075 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18077 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18078 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18081 if test $ac_cv_header_sys_cpustats_h = yes; then
18082 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18083 #define UMAX 1
18084 _ACEOF
18091 if test $ac_have_func = no; then
18093 for ac_header in mach/mach.h
18095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 ac_res=`eval echo '${'$as_ac_Header'}'`
18103 { echo "$as_me:$LINENO: result: $ac_res" >&5
18104 echo "${ECHO_T}$ac_res" >&6; }
18105 else
18106 # Is the header compilable?
18107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18109 cat >conftest.$ac_ext <<_ACEOF
18110 /* confdefs.h. */
18111 _ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18115 $ac_includes_default
18116 #include <$ac_header>
18117 _ACEOF
18118 rm -f conftest.$ac_objext
18119 if { (ac_try="$ac_compile"
18120 case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18123 esac
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_compile") 2>conftest.er1
18126 ac_status=$?
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } && {
18132 test -z "$ac_c_werror_flag" ||
18133 test ! -s conftest.err
18134 } && test -s conftest.$ac_objext; then
18135 ac_header_compiler=yes
18136 else
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 ac_header_compiler=no
18143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18145 echo "${ECHO_T}$ac_header_compiler" >&6; }
18147 # Is the header present?
18148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18150 cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h. */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 #include <$ac_header>
18157 _ACEOF
18158 if { (ac_try="$ac_cpp conftest.$ac_ext"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18162 esac
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18165 ac_status=$?
18166 grep -v '^ *+' conftest.er1 >conftest.err
18167 rm -f conftest.er1
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } >/dev/null && {
18171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18172 test ! -s conftest.err
18173 }; then
18174 ac_header_preproc=yes
18175 else
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18179 ac_header_preproc=no
18182 rm -f conftest.err conftest.$ac_ext
18183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18184 echo "${ECHO_T}$ac_header_preproc" >&6; }
18186 # So? What about this header?
18187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18188 yes:no: )
18189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18193 ac_header_preproc=yes
18195 no:yes:* )
18196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18210 esac
18211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18215 else
18216 eval "$as_ac_Header=\$ac_header_preproc"
18218 ac_res=`eval echo '${'$as_ac_Header'}'`
18219 { echo "$as_me:$LINENO: result: $ac_res" >&5
18220 echo "${ECHO_T}$ac_res" >&6; }
18223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18224 cat >>confdefs.h <<_ACEOF
18225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18226 _ACEOF
18230 done
18235 for ac_header in nlist.h
18237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 ac_res=`eval echo '${'$as_ac_Header'}'`
18245 { echo "$as_me:$LINENO: result: $ac_res" >&5
18246 echo "${ECHO_T}$ac_res" >&6; }
18247 else
18248 # Is the header compilable?
18249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18251 cat >conftest.$ac_ext <<_ACEOF
18252 /* confdefs.h. */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18257 $ac_includes_default
18258 #include <$ac_header>
18259 _ACEOF
18260 rm -f conftest.$ac_objext
18261 if { (ac_try="$ac_compile"
18262 case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_compile") 2>conftest.er1
18268 ac_status=$?
18269 grep -v '^ *+' conftest.er1 >conftest.err
18270 rm -f conftest.er1
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } && {
18274 test -z "$ac_c_werror_flag" ||
18275 test ! -s conftest.err
18276 } && test -s conftest.$ac_objext; then
18277 ac_header_compiler=yes
18278 else
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 ac_header_compiler=no
18285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18287 echo "${ECHO_T}$ac_header_compiler" >&6; }
18289 # Is the header present?
18290 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18292 cat >conftest.$ac_ext <<_ACEOF
18293 /* confdefs.h. */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h. */
18298 #include <$ac_header>
18299 _ACEOF
18300 if { (ac_try="$ac_cpp conftest.$ac_ext"
18301 case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18304 esac
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18307 ac_status=$?
18308 grep -v '^ *+' conftest.er1 >conftest.err
18309 rm -f conftest.er1
18310 cat conftest.err >&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } >/dev/null && {
18313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18314 test ! -s conftest.err
18315 }; then
18316 ac_header_preproc=yes
18317 else
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 ac_header_preproc=no
18324 rm -f conftest.err conftest.$ac_ext
18325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18326 echo "${ECHO_T}$ac_header_preproc" >&6; }
18328 # So? What about this header?
18329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18330 yes:no: )
18331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18335 ac_header_preproc=yes
18337 no:yes:* )
18338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18352 esac
18353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358 eval "$as_ac_Header=\$ac_header_preproc"
18360 ac_res=`eval echo '${'$as_ac_Header'}'`
18361 { echo "$as_me:$LINENO: result: $ac_res" >&5
18362 echo "${ECHO_T}$ac_res" >&6; }
18365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18366 cat >>confdefs.h <<_ACEOF
18367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18368 _ACEOF
18369 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18370 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18371 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374 cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h. */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380 #include <nlist.h>
18383 main ()
18385 static struct nlist ac_aggr;
18386 if (ac_aggr.n_un.n_name)
18387 return 0;
18389 return 0;
18391 _ACEOF
18392 rm -f conftest.$ac_objext
18393 if { (ac_try="$ac_compile"
18394 case "(($ac_try" in
18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396 *) ac_try_echo=$ac_try;;
18397 esac
18398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18399 (eval "$ac_compile") 2>conftest.er1
18400 ac_status=$?
18401 grep -v '^ *+' conftest.er1 >conftest.err
18402 rm -f conftest.er1
18403 cat conftest.err >&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } && {
18406 test -z "$ac_c_werror_flag" ||
18407 test ! -s conftest.err
18408 } && test -s conftest.$ac_objext; then
18409 ac_cv_member_struct_nlist_n_un_n_name=yes
18410 else
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 cat >conftest.$ac_ext <<_ACEOF
18415 /* confdefs.h. */
18416 _ACEOF
18417 cat confdefs.h >>conftest.$ac_ext
18418 cat >>conftest.$ac_ext <<_ACEOF
18419 /* end confdefs.h. */
18420 #include <nlist.h>
18423 main ()
18425 static struct nlist ac_aggr;
18426 if (sizeof ac_aggr.n_un.n_name)
18427 return 0;
18429 return 0;
18431 _ACEOF
18432 rm -f conftest.$ac_objext
18433 if { (ac_try="$ac_compile"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18437 esac
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_compile") 2>conftest.er1
18440 ac_status=$?
18441 grep -v '^ *+' conftest.er1 >conftest.err
18442 rm -f conftest.er1
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } && {
18446 test -z "$ac_c_werror_flag" ||
18447 test ! -s conftest.err
18448 } && test -s conftest.$ac_objext; then
18449 ac_cv_member_struct_nlist_n_un_n_name=yes
18450 else
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 ac_cv_member_struct_nlist_n_un_n_name=no
18457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18462 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18463 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18464 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18466 cat >>confdefs.h <<_ACEOF
18467 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18468 _ACEOF
18471 cat >>confdefs.h <<\_ACEOF
18472 #define NLIST_NAME_UNION 1
18473 _ACEOF
18480 done
18483 done
18486 # Some definitions of getloadavg require that the program be installed setgid.
18487 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18488 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18489 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18491 else
18492 cat >conftest.$ac_ext <<_ACEOF
18493 /* confdefs.h. */
18494 _ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18499 #ifdef LDAV_PRIVILEGED
18500 Yowza Am I SETGID yet
18501 #endif
18502 _ACEOF
18503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18504 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18505 ac_cv_func_getloadavg_setgid=yes
18506 else
18507 ac_cv_func_getloadavg_setgid=no
18509 rm -f conftest*
18512 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18513 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18514 if test $ac_cv_func_getloadavg_setgid = yes; then
18515 NEED_SETGID=true
18517 cat >>confdefs.h <<\_ACEOF
18518 #define GETLOADAVG_PRIVILEGED 1
18519 _ACEOF
18521 else
18522 NEED_SETGID=false
18525 if test $ac_cv_func_getloadavg_setgid = yes; then
18526 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18527 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18528 if test "${ac_cv_group_kmem+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18530 else
18531 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18532 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18533 # If we got an error (system does not support symlinks), try without -L.
18534 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18535 ac_cv_group_kmem=`echo $ac_ls_output \
18536 | sed -ne 's/[ ][ ]*/ /g;
18537 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18538 / /s/.* //;p;'`
18541 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18542 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18543 KMEM_GROUP=$ac_cv_group_kmem
18545 if test "x$ac_save_LIBS" = x; then
18546 GETLOADAVG_LIBS=$LIBS
18547 else
18548 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18550 LIBS=$ac_save_LIBS
18554 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18555 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18556 if test "${ac_cv_sys_largefile_source+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18558 else
18559 while :; do
18560 cat >conftest.$ac_ext <<_ACEOF
18561 /* confdefs.h. */
18562 _ACEOF
18563 cat confdefs.h >>conftest.$ac_ext
18564 cat >>conftest.$ac_ext <<_ACEOF
18565 /* end confdefs.h. */
18566 #include <sys/types.h> /* for off_t */
18567 #include <stdio.h>
18569 main ()
18571 int (*fp) (FILE *, off_t, int) = fseeko;
18572 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18574 return 0;
18576 _ACEOF
18577 rm -f conftest.$ac_objext conftest$ac_exeext
18578 if { (ac_try="$ac_link"
18579 case "(($ac_try" in
18580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18581 *) ac_try_echo=$ac_try;;
18582 esac
18583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18584 (eval "$ac_link") 2>conftest.er1
18585 ac_status=$?
18586 grep -v '^ *+' conftest.er1 >conftest.err
18587 rm -f conftest.er1
18588 cat conftest.err >&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } && {
18591 test -z "$ac_c_werror_flag" ||
18592 test ! -s conftest.err
18593 } && test -s conftest$ac_exeext &&
18594 $as_test_x conftest$ac_exeext; then
18595 ac_cv_sys_largefile_source=no; break
18596 else
18597 echo "$as_me: failed program was:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18604 conftest$ac_exeext conftest.$ac_ext
18605 cat >conftest.$ac_ext <<_ACEOF
18606 /* confdefs.h. */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 #define _LARGEFILE_SOURCE 1
18612 #include <sys/types.h> /* for off_t */
18613 #include <stdio.h>
18615 main ()
18617 int (*fp) (FILE *, off_t, int) = fseeko;
18618 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18620 return 0;
18622 _ACEOF
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_link") 2>conftest.er1
18631 ac_status=$?
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } && {
18637 test -z "$ac_c_werror_flag" ||
18638 test ! -s conftest.err
18639 } && test -s conftest$ac_exeext &&
18640 $as_test_x conftest$ac_exeext; then
18641 ac_cv_sys_largefile_source=1; break
18642 else
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18650 conftest$ac_exeext conftest.$ac_ext
18651 ac_cv_sys_largefile_source=unknown
18652 break
18653 done
18655 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18656 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18657 case $ac_cv_sys_largefile_source in #(
18658 no | unknown) ;;
18660 cat >>confdefs.h <<_ACEOF
18661 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18662 _ACEOF
18664 esac
18665 rm -f conftest*
18667 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18668 # in glibc 2.1.3, but that breaks too many other things.
18669 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18670 if test $ac_cv_sys_largefile_source != unknown; then
18672 cat >>confdefs.h <<\_ACEOF
18673 #define HAVE_FSEEKO 1
18674 _ACEOF
18679 # Configure getopt.
18680 # getopt.m4 serial 10
18682 # The getopt module assume you want GNU getopt, with getopt_long etc,
18683 # rather than vanilla POSIX getopt. This means your your code should
18684 # always include <getopt.h> for the getopt prototypes.
18696 # Prerequisites of lib/getopt*.
18701 GETOPT_H=
18703 for ac_header in getopt.h
18705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18712 ac_res=`eval echo '${'$as_ac_Header'}'`
18713 { echo "$as_me:$LINENO: result: $ac_res" >&5
18714 echo "${ECHO_T}$ac_res" >&6; }
18715 else
18716 # Is the header compilable?
18717 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 $ac_includes_default
18726 #include <$ac_header>
18727 _ACEOF
18728 rm -f conftest.$ac_objext
18729 if { (ac_try="$ac_compile"
18730 case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18733 esac
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_compile") 2>conftest.er1
18736 ac_status=$?
18737 grep -v '^ *+' conftest.er1 >conftest.err
18738 rm -f conftest.er1
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } && {
18742 test -z "$ac_c_werror_flag" ||
18743 test ! -s conftest.err
18744 } && test -s conftest.$ac_objext; then
18745 ac_header_compiler=yes
18746 else
18747 echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18750 ac_header_compiler=no
18753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18755 echo "${ECHO_T}$ac_header_compiler" >&6; }
18757 # Is the header present?
18758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18760 cat >conftest.$ac_ext <<_ACEOF
18761 /* confdefs.h. */
18762 _ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18766 #include <$ac_header>
18767 _ACEOF
18768 if { (ac_try="$ac_cpp conftest.$ac_ext"
18769 case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18772 esac
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } >/dev/null && {
18781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18782 test ! -s conftest.err
18783 }; then
18784 ac_header_preproc=yes
18785 else
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18789 ac_header_preproc=no
18792 rm -f conftest.err conftest.$ac_ext
18793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18794 echo "${ECHO_T}$ac_header_preproc" >&6; }
18796 # So? What about this header?
18797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18798 yes:no: )
18799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18803 ac_header_preproc=yes
18805 no:yes:* )
18806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18820 esac
18821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 else
18826 eval "$as_ac_Header=\$ac_header_preproc"
18828 ac_res=`eval echo '${'$as_ac_Header'}'`
18829 { echo "$as_me:$LINENO: result: $ac_res" >&5
18830 echo "${ECHO_T}$ac_res" >&6; }
18833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18834 cat >>confdefs.h <<_ACEOF
18835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18836 _ACEOF
18838 else
18839 GETOPT_H=getopt.h
18842 done
18844 if test -z "$GETOPT_H"; then
18846 for ac_func in getopt_long_only
18848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18853 else
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h. */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18862 #define $ac_func innocuous_$ac_func
18864 /* System header to define __stub macros and hopefully few prototypes,
18865 which can conflict with char $ac_func (); below.
18866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18867 <limits.h> exists even on freestanding compilers. */
18869 #ifdef __STDC__
18870 # include <limits.h>
18871 #else
18872 # include <assert.h>
18873 #endif
18875 #undef $ac_func
18877 /* Override any GCC internal prototype to avoid an error.
18878 Use char because int might match the return type of a GCC
18879 builtin and then its argument prototype would still apply. */
18880 #ifdef __cplusplus
18881 extern "C"
18882 #endif
18883 char $ac_func ();
18884 /* The GNU C library defines this for functions which it implements
18885 to always fail with ENOSYS. Some functions are actually named
18886 something starting with __ and the normal name is an alias. */
18887 #if defined __stub_$ac_func || defined __stub___$ac_func
18888 choke me
18889 #endif
18892 main ()
18894 return $ac_func ();
18896 return 0;
18898 _ACEOF
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18904 esac
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_link") 2>conftest.er1
18907 ac_status=$?
18908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } && {
18913 test -z "$ac_c_werror_flag" ||
18914 test ! -s conftest.err
18915 } && test -s conftest$ac_exeext &&
18916 $as_test_x conftest$ac_exeext; then
18917 eval "$as_ac_var=yes"
18918 else
18919 echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 eval "$as_ac_var=no"
18925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18926 conftest$ac_exeext conftest.$ac_ext
18928 ac_res=`eval echo '${'$as_ac_var'}'`
18929 { echo "$as_me:$LINENO: result: $ac_res" >&5
18930 echo "${ECHO_T}$ac_res" >&6; }
18931 if test `eval echo '${'$as_ac_var'}'` = yes; then
18932 cat >>confdefs.h <<_ACEOF
18933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18934 _ACEOF
18936 else
18937 GETOPT_H=getopt.h
18939 done
18943 if test -z "$GETOPT_H"; then
18944 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18945 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18946 if test "${ac_cv_have_decl_optreset+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18948 else
18949 cat >conftest.$ac_ext <<_ACEOF
18950 /* confdefs.h. */
18951 _ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h. */
18955 #include <getopt.h>
18958 main ()
18960 #ifndef optreset
18961 (void) optreset;
18962 #endif
18965 return 0;
18967 _ACEOF
18968 rm -f conftest.$ac_objext
18969 if { (ac_try="$ac_compile"
18970 case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18973 esac
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_compile") 2>conftest.er1
18976 ac_status=$?
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } && {
18982 test -z "$ac_c_werror_flag" ||
18983 test ! -s conftest.err
18984 } && test -s conftest.$ac_objext; then
18985 ac_cv_have_decl_optreset=yes
18986 else
18987 echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18990 ac_cv_have_decl_optreset=no
18993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18995 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18996 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18997 if test $ac_cv_have_decl_optreset = yes; then
18998 GETOPT_H=getopt.h
19003 if test -z "$GETOPT_H"; then
19004 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19005 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19006 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009 if test "$cross_compiling" = yes; then
19010 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19011 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19012 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015 cat >conftest.$ac_ext <<_ACEOF
19016 /* confdefs.h. */
19017 _ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19021 #include <getopt.h>
19024 main ()
19026 #ifndef getopt_clip
19027 (void) getopt_clip;
19028 #endif
19031 return 0;
19033 _ACEOF
19034 rm -f conftest.$ac_objext
19035 if { (ac_try="$ac_compile"
19036 case "(($ac_try" in
19037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038 *) ac_try_echo=$ac_try;;
19039 esac
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041 (eval "$ac_compile") 2>conftest.er1
19042 ac_status=$?
19043 grep -v '^ *+' conftest.er1 >conftest.err
19044 rm -f conftest.er1
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } && {
19048 test -z "$ac_c_werror_flag" ||
19049 test ! -s conftest.err
19050 } && test -s conftest.$ac_objext; then
19051 ac_cv_have_decl_getopt_clip=yes
19052 else
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 ac_cv_have_decl_getopt_clip=no
19059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19061 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19062 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19063 if test $ac_cv_have_decl_getopt_clip = yes; then
19064 gl_cv_func_gnu_getopt=no
19065 else
19066 gl_cv_func_gnu_getopt=yes
19069 else
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h. */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076 #include <getopt.h>
19078 main ()
19081 char *myargv[3];
19082 myargv[0] = "conftest";
19083 myargv[1] = "-+";
19084 myargv[2] = 0;
19085 return getopt (2, myargv, "+a") != '?';
19088 return 0;
19090 _ACEOF
19091 rm -f conftest$ac_exeext
19092 if { (ac_try="$ac_link"
19093 case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096 esac
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_link") 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19102 { (case "(($ac_try" in
19103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104 *) ac_try_echo=$ac_try;;
19105 esac
19106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107 (eval "$ac_try") 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 gl_cv_func_gnu_getopt=yes
19112 else
19113 echo "$as_me: program exited with status $ac_status" >&5
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ( exit $ac_status )
19118 gl_cv_func_gnu_getopt=no
19120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19125 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19126 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19127 if test "$gl_cv_func_gnu_getopt" = "no"; then
19128 GETOPT_H=getopt.h
19134 if test -n "$GETOPT_H"; then
19137 GETOPT_H=getopt.h
19139 cat >>confdefs.h <<\_ACEOF
19140 #define __GETOPT_PREFIX rpl_
19141 _ACEOF
19146 GETOPTOBJS='getopt.o getopt1.o'
19153 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19154 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19155 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
19157 else
19158 # Use it with a single arg.
19159 cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h. */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 $ac_includes_default
19167 main ()
19169 getpgrp (0);
19171 return 0;
19173 _ACEOF
19174 rm -f conftest.$ac_objext
19175 if { (ac_try="$ac_compile"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_compile") 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } && {
19188 test -z "$ac_c_werror_flag" ||
19189 test ! -s conftest.err
19190 } && test -s conftest.$ac_objext; then
19191 ac_cv_func_getpgrp_void=no
19192 else
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ac_cv_func_getpgrp_void=yes
19199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19202 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19203 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19204 if test $ac_cv_func_getpgrp_void = yes; then
19206 cat >>confdefs.h <<\_ACEOF
19207 #define GETPGRP_VOID 1
19208 _ACEOF
19214 for ac_func in strftime
19216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19217 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19219 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19220 echo $ECHO_N "(cached) $ECHO_C" >&6
19221 else
19222 cat >conftest.$ac_ext <<_ACEOF
19223 /* confdefs.h. */
19224 _ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h. */
19228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19230 #define $ac_func innocuous_$ac_func
19232 /* System header to define __stub macros and hopefully few prototypes,
19233 which can conflict with char $ac_func (); below.
19234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19235 <limits.h> exists even on freestanding compilers. */
19237 #ifdef __STDC__
19238 # include <limits.h>
19239 #else
19240 # include <assert.h>
19241 #endif
19243 #undef $ac_func
19245 /* Override any GCC internal prototype to avoid an error.
19246 Use char because int might match the return type of a GCC
19247 builtin and then its argument prototype would still apply. */
19248 #ifdef __cplusplus
19249 extern "C"
19250 #endif
19251 char $ac_func ();
19252 /* The GNU C library defines this for functions which it implements
19253 to always fail with ENOSYS. Some functions are actually named
19254 something starting with __ and the normal name is an alias. */
19255 #if defined __stub_$ac_func || defined __stub___$ac_func
19256 choke me
19257 #endif
19260 main ()
19262 return $ac_func ();
19264 return 0;
19266 _ACEOF
19267 rm -f conftest.$ac_objext conftest$ac_exeext
19268 if { (ac_try="$ac_link"
19269 case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19272 esac
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_link") 2>conftest.er1
19275 ac_status=$?
19276 grep -v '^ *+' conftest.er1 >conftest.err
19277 rm -f conftest.er1
19278 cat conftest.err >&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } && {
19281 test -z "$ac_c_werror_flag" ||
19282 test ! -s conftest.err
19283 } && test -s conftest$ac_exeext &&
19284 $as_test_x conftest$ac_exeext; then
19285 eval "$as_ac_var=yes"
19286 else
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 eval "$as_ac_var=no"
19293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19294 conftest$ac_exeext conftest.$ac_ext
19296 ac_res=`eval echo '${'$as_ac_var'}'`
19297 { echo "$as_me:$LINENO: result: $ac_res" >&5
19298 echo "${ECHO_T}$ac_res" >&6; }
19299 if test `eval echo '${'$as_ac_var'}'` = yes; then
19300 cat >>confdefs.h <<_ACEOF
19301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19302 _ACEOF
19304 else
19305 # strftime is in -lintl on SCO UNIX.
19306 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19307 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19308 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19309 echo $ECHO_N "(cached) $ECHO_C" >&6
19310 else
19311 ac_check_lib_save_LIBS=$LIBS
19312 LIBS="-lintl $LIBS"
19313 cat >conftest.$ac_ext <<_ACEOF
19314 /* confdefs.h. */
19315 _ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h. */
19320 /* Override any GCC internal prototype to avoid an error.
19321 Use char because int might match the return type of a GCC
19322 builtin and then its argument prototype would still apply. */
19323 #ifdef __cplusplus
19324 extern "C"
19325 #endif
19326 char strftime ();
19328 main ()
19330 return strftime ();
19332 return 0;
19334 _ACEOF
19335 rm -f conftest.$ac_objext conftest$ac_exeext
19336 if { (ac_try="$ac_link"
19337 case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19340 esac
19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342 (eval "$ac_link") 2>conftest.er1
19343 ac_status=$?
19344 grep -v '^ *+' conftest.er1 >conftest.err
19345 rm -f conftest.er1
19346 cat conftest.err >&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } && {
19349 test -z "$ac_c_werror_flag" ||
19350 test ! -s conftest.err
19351 } && test -s conftest$ac_exeext &&
19352 $as_test_x conftest$ac_exeext; then
19353 ac_cv_lib_intl_strftime=yes
19354 else
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19358 ac_cv_lib_intl_strftime=no
19361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19362 conftest$ac_exeext conftest.$ac_ext
19363 LIBS=$ac_check_lib_save_LIBS
19365 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19366 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19367 if test $ac_cv_lib_intl_strftime = yes; then
19368 cat >>confdefs.h <<\_ACEOF
19369 #define HAVE_STRFTIME 1
19370 _ACEOF
19372 LIBS="-lintl $LIBS"
19376 done
19379 # UNIX98 PTYs.
19381 for ac_func in grantpt
19383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389 cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h. */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19397 #define $ac_func innocuous_$ac_func
19399 /* System header to define __stub macros and hopefully few prototypes,
19400 which can conflict with char $ac_func (); below.
19401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19402 <limits.h> exists even on freestanding compilers. */
19404 #ifdef __STDC__
19405 # include <limits.h>
19406 #else
19407 # include <assert.h>
19408 #endif
19410 #undef $ac_func
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19415 #ifdef __cplusplus
19416 extern "C"
19417 #endif
19418 char $ac_func ();
19419 /* The GNU C library defines this for functions which it implements
19420 to always fail with ENOSYS. Some functions are actually named
19421 something starting with __ and the normal name is an alias. */
19422 #if defined __stub_$ac_func || defined __stub___$ac_func
19423 choke me
19424 #endif
19427 main ()
19429 return $ac_func ();
19431 return 0;
19433 _ACEOF
19434 rm -f conftest.$ac_objext conftest$ac_exeext
19435 if { (ac_try="$ac_link"
19436 case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19439 esac
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_link") 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } && {
19448 test -z "$ac_c_werror_flag" ||
19449 test ! -s conftest.err
19450 } && test -s conftest$ac_exeext &&
19451 $as_test_x conftest$ac_exeext; then
19452 eval "$as_ac_var=yes"
19453 else
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 eval "$as_ac_var=no"
19460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19461 conftest$ac_exeext conftest.$ac_ext
19463 ac_res=`eval echo '${'$as_ac_var'}'`
19464 { echo "$as_me:$LINENO: result: $ac_res" >&5
19465 echo "${ECHO_T}$ac_res" >&6; }
19466 if test `eval echo '${'$as_ac_var'}'` = yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19469 _ACEOF
19472 done
19475 # PTY-related GNU extensions.
19477 for ac_func in getpt
19479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485 cat >conftest.$ac_ext <<_ACEOF
19486 /* confdefs.h. */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19493 #define $ac_func innocuous_$ac_func
19495 /* System header to define __stub macros and hopefully few prototypes,
19496 which can conflict with char $ac_func (); below.
19497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19498 <limits.h> exists even on freestanding compilers. */
19500 #ifdef __STDC__
19501 # include <limits.h>
19502 #else
19503 # include <assert.h>
19504 #endif
19506 #undef $ac_func
19508 /* Override any GCC internal prototype to avoid an error.
19509 Use char because int might match the return type of a GCC
19510 builtin and then its argument prototype would still apply. */
19511 #ifdef __cplusplus
19512 extern "C"
19513 #endif
19514 char $ac_func ();
19515 /* The GNU C library defines this for functions which it implements
19516 to always fail with ENOSYS. Some functions are actually named
19517 something starting with __ and the normal name is an alias. */
19518 #if defined __stub_$ac_func || defined __stub___$ac_func
19519 choke me
19520 #endif
19523 main ()
19525 return $ac_func ();
19527 return 0;
19529 _ACEOF
19530 rm -f conftest.$ac_objext conftest$ac_exeext
19531 if { (ac_try="$ac_link"
19532 case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19535 esac
19536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_link") 2>conftest.er1
19538 ac_status=$?
19539 grep -v '^ *+' conftest.er1 >conftest.err
19540 rm -f conftest.er1
19541 cat conftest.err >&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } && {
19544 test -z "$ac_c_werror_flag" ||
19545 test ! -s conftest.err
19546 } && test -s conftest$ac_exeext &&
19547 $as_test_x conftest$ac_exeext; then
19548 eval "$as_ac_var=yes"
19549 else
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 eval "$as_ac_var=no"
19556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19557 conftest$ac_exeext conftest.$ac_ext
19559 ac_res=`eval echo '${'$as_ac_var'}'`
19560 { echo "$as_me:$LINENO: result: $ac_res" >&5
19561 echo "${ECHO_T}$ac_res" >&6; }
19562 if test `eval echo '${'$as_ac_var'}'` = yes; then
19563 cat >>confdefs.h <<_ACEOF
19564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19565 _ACEOF
19568 done
19571 # Check this now, so that we will NOT find the above functions in ncurses.
19572 # That is because we have not set up to link ncurses in lib-src.
19573 # It's better to believe a function is not available
19574 # than to expect to find it in ncurses.
19576 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19577 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19578 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19580 else
19581 ac_check_lib_save_LIBS=$LIBS
19582 LIBS="-lncurses $LIBS"
19583 cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h. */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19590 /* Override any GCC internal prototype to avoid an error.
19591 Use char because int might match the return type of a GCC
19592 builtin and then its argument prototype would still apply. */
19593 #ifdef __cplusplus
19594 extern "C"
19595 #endif
19596 char tparm ();
19598 main ()
19600 return tparm ();
19602 return 0;
19604 _ACEOF
19605 rm -f conftest.$ac_objext conftest$ac_exeext
19606 if { (ac_try="$ac_link"
19607 case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_link") 2>conftest.er1
19613 ac_status=$?
19614 grep -v '^ *+' conftest.er1 >conftest.err
19615 rm -f conftest.er1
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest$ac_exeext &&
19622 $as_test_x conftest$ac_exeext; then
19623 ac_cv_lib_ncurses_tparm=yes
19624 else
19625 echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19628 ac_cv_lib_ncurses_tparm=no
19631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19632 conftest$ac_exeext conftest.$ac_ext
19633 LIBS=$ac_check_lib_save_LIBS
19635 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19636 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19637 if test $ac_cv_lib_ncurses_tparm = yes; then
19638 cat >>confdefs.h <<_ACEOF
19639 #define HAVE_LIBNCURSES 1
19640 _ACEOF
19642 LIBS="-lncurses $LIBS"
19647 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19649 resolv=no
19650 cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h. */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 #include <netinet/in.h>
19657 #include <arpa/nameser.h>
19658 #include <resolv.h>
19660 main ()
19662 return res_init();
19664 return 0;
19666 _ACEOF
19667 rm -f conftest.$ac_objext conftest$ac_exeext
19668 if { (ac_try="$ac_link"
19669 case "(($ac_try" in
19670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19671 *) ac_try_echo=$ac_try;;
19672 esac
19673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19674 (eval "$ac_link") 2>conftest.er1
19675 ac_status=$?
19676 grep -v '^ *+' conftest.er1 >conftest.err
19677 rm -f conftest.er1
19678 cat conftest.err >&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); } && {
19681 test -z "$ac_c_werror_flag" ||
19682 test ! -s conftest.err
19683 } && test -s conftest$ac_exeext &&
19684 $as_test_x conftest$ac_exeext; then
19685 have_res_init=yes
19686 else
19687 echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19690 have_res_init=no
19693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19694 conftest$ac_exeext conftest.$ac_ext
19695 if test "$have_res_init" = no; then
19696 OLIBS="$LIBS"
19697 LIBS="$LIBS -lresolv"
19698 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19699 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19700 cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h. */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 #include <netinet/in.h>
19707 #include <arpa/nameser.h>
19708 #include <resolv.h>
19710 main ()
19712 return res_init();
19714 return 0;
19716 _ACEOF
19717 rm -f conftest.$ac_objext conftest$ac_exeext
19718 if { (ac_try="$ac_link"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_link") 2>conftest.er1
19725 ac_status=$?
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest$ac_exeext &&
19734 $as_test_x conftest$ac_exeext; then
19735 have_res_init=yes
19736 else
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 have_res_init=no
19743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19744 conftest$ac_exeext conftest.$ac_ext
19745 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19746 echo "${ECHO_T}$have_res_init" >&6; }
19747 if test "$have_res_init" = yes ; then
19748 resolv=yes
19750 LIBS="$OLIBS"
19753 if test "$have_res_init" = yes; then
19755 cat >>confdefs.h <<\_ACEOF
19756 #define HAVE_RES_INIT 1
19757 _ACEOF
19761 # Do we need the Hesiod library to provide the support routines?
19762 if test "$with_hesiod" = yes ; then
19763 # Don't set $LIBS here -- see comments above.
19764 { echo "$as_me:$LINENO: checking for res_send" >&5
19765 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19766 if test "${ac_cv_func_res_send+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769 cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h. */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19777 #define res_send innocuous_res_send
19779 /* System header to define __stub macros and hopefully few prototypes,
19780 which can conflict with char res_send (); below.
19781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19782 <limits.h> exists even on freestanding compilers. */
19784 #ifdef __STDC__
19785 # include <limits.h>
19786 #else
19787 # include <assert.h>
19788 #endif
19790 #undef res_send
19792 /* Override any GCC internal prototype to avoid an error.
19793 Use char because int might match the return type of a GCC
19794 builtin and then its argument prototype would still apply. */
19795 #ifdef __cplusplus
19796 extern "C"
19797 #endif
19798 char res_send ();
19799 /* The GNU C library defines this for functions which it implements
19800 to always fail with ENOSYS. Some functions are actually named
19801 something starting with __ and the normal name is an alias. */
19802 #if defined __stub_res_send || defined __stub___res_send
19803 choke me
19804 #endif
19807 main ()
19809 return res_send ();
19811 return 0;
19813 _ACEOF
19814 rm -f conftest.$ac_objext conftest$ac_exeext
19815 if { (ac_try="$ac_link"
19816 case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19819 esac
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_link") 2>conftest.er1
19822 ac_status=$?
19823 grep -v '^ *+' conftest.er1 >conftest.err
19824 rm -f conftest.er1
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } && {
19828 test -z "$ac_c_werror_flag" ||
19829 test ! -s conftest.err
19830 } && test -s conftest$ac_exeext &&
19831 $as_test_x conftest$ac_exeext; then
19832 ac_cv_func_res_send=yes
19833 else
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 ac_cv_func_res_send=no
19840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19841 conftest$ac_exeext conftest.$ac_ext
19843 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19844 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19845 if test $ac_cv_func_res_send = yes; then
19847 else
19848 { echo "$as_me:$LINENO: checking for __res_send" >&5
19849 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19850 if test "${ac_cv_func___res_send+set}" = set; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19852 else
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h. */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19861 #define __res_send innocuous___res_send
19863 /* System header to define __stub macros and hopefully few prototypes,
19864 which can conflict with char __res_send (); below.
19865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19866 <limits.h> exists even on freestanding compilers. */
19868 #ifdef __STDC__
19869 # include <limits.h>
19870 #else
19871 # include <assert.h>
19872 #endif
19874 #undef __res_send
19876 /* Override any GCC internal prototype to avoid an error.
19877 Use char because int might match the return type of a GCC
19878 builtin and then its argument prototype would still apply. */
19879 #ifdef __cplusplus
19880 extern "C"
19881 #endif
19882 char __res_send ();
19883 /* The GNU C library defines this for functions which it implements
19884 to always fail with ENOSYS. Some functions are actually named
19885 something starting with __ and the normal name is an alias. */
19886 #if defined __stub___res_send || defined __stub_____res_send
19887 choke me
19888 #endif
19891 main ()
19893 return __res_send ();
19895 return 0;
19897 _ACEOF
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899 if { (ac_try="$ac_link"
19900 case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19903 esac
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_link") 2>conftest.er1
19906 ac_status=$?
19907 grep -v '^ *+' conftest.er1 >conftest.err
19908 rm -f conftest.er1
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } && {
19912 test -z "$ac_c_werror_flag" ||
19913 test ! -s conftest.err
19914 } && test -s conftest$ac_exeext &&
19915 $as_test_x conftest$ac_exeext; then
19916 ac_cv_func___res_send=yes
19917 else
19918 echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19921 ac_cv_func___res_send=no
19924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19925 conftest$ac_exeext conftest.$ac_ext
19927 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19928 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19929 if test $ac_cv_func___res_send = yes; then
19931 else
19932 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19933 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19934 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19936 else
19937 ac_check_lib_save_LIBS=$LIBS
19938 LIBS="-lresolv $LIBS"
19939 cat >conftest.$ac_ext <<_ACEOF
19940 /* confdefs.h. */
19941 _ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19946 /* Override any GCC internal prototype to avoid an error.
19947 Use char because int might match the return type of a GCC
19948 builtin and then its argument prototype would still apply. */
19949 #ifdef __cplusplus
19950 extern "C"
19951 #endif
19952 char res_send ();
19954 main ()
19956 return res_send ();
19958 return 0;
19960 _ACEOF
19961 rm -f conftest.$ac_objext conftest$ac_exeext
19962 if { (ac_try="$ac_link"
19963 case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19966 esac
19967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_link") 2>conftest.er1
19969 ac_status=$?
19970 grep -v '^ *+' conftest.er1 >conftest.err
19971 rm -f conftest.er1
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } && {
19975 test -z "$ac_c_werror_flag" ||
19976 test ! -s conftest.err
19977 } && test -s conftest$ac_exeext &&
19978 $as_test_x conftest$ac_exeext; then
19979 ac_cv_lib_resolv_res_send=yes
19980 else
19981 echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ac_cv_lib_resolv_res_send=no
19987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19988 conftest$ac_exeext conftest.$ac_ext
19989 LIBS=$ac_check_lib_save_LIBS
19991 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19992 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19993 if test $ac_cv_lib_resolv_res_send = yes; then
19994 resolv=yes
19995 else
19996 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19997 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19998 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20000 else
20001 ac_check_lib_save_LIBS=$LIBS
20002 LIBS="-lresolv $LIBS"
20003 cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h. */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20010 /* Override any GCC internal prototype to avoid an error.
20011 Use char because int might match the return type of a GCC
20012 builtin and then its argument prototype would still apply. */
20013 #ifdef __cplusplus
20014 extern "C"
20015 #endif
20016 char __res_send ();
20018 main ()
20020 return __res_send ();
20022 return 0;
20024 _ACEOF
20025 rm -f conftest.$ac_objext conftest$ac_exeext
20026 if { (ac_try="$ac_link"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_link") 2>conftest.er1
20033 ac_status=$?
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } && {
20039 test -z "$ac_c_werror_flag" ||
20040 test ! -s conftest.err
20041 } && test -s conftest$ac_exeext &&
20042 $as_test_x conftest$ac_exeext; then
20043 ac_cv_lib_resolv___res_send=yes
20044 else
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 ac_cv_lib_resolv___res_send=no
20051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20052 conftest$ac_exeext conftest.$ac_ext
20053 LIBS=$ac_check_lib_save_LIBS
20055 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20056 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20057 if test $ac_cv_lib_resolv___res_send = yes; then
20058 resolv=yes
20067 if test "$resolv" = yes ; then
20068 RESOLVLIB=-lresolv
20069 else
20070 RESOLVLIB=
20072 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20073 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20074 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20076 else
20077 cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h. */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20085 #define hes_getmailhost innocuous_hes_getmailhost
20087 /* System header to define __stub macros and hopefully few prototypes,
20088 which can conflict with char hes_getmailhost (); below.
20089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20090 <limits.h> exists even on freestanding compilers. */
20092 #ifdef __STDC__
20093 # include <limits.h>
20094 #else
20095 # include <assert.h>
20096 #endif
20098 #undef hes_getmailhost
20100 /* Override any GCC internal prototype to avoid an error.
20101 Use char because int might match the return type of a GCC
20102 builtin and then its argument prototype would still apply. */
20103 #ifdef __cplusplus
20104 extern "C"
20105 #endif
20106 char hes_getmailhost ();
20107 /* The GNU C library defines this for functions which it implements
20108 to always fail with ENOSYS. Some functions are actually named
20109 something starting with __ and the normal name is an alias. */
20110 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20111 choke me
20112 #endif
20115 main ()
20117 return hes_getmailhost ();
20119 return 0;
20121 _ACEOF
20122 rm -f conftest.$ac_objext conftest$ac_exeext
20123 if { (ac_try="$ac_link"
20124 case "(($ac_try" in
20125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126 *) ac_try_echo=$ac_try;;
20127 esac
20128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129 (eval "$ac_link") 2>conftest.er1
20130 ac_status=$?
20131 grep -v '^ *+' conftest.er1 >conftest.err
20132 rm -f conftest.er1
20133 cat conftest.err >&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && {
20136 test -z "$ac_c_werror_flag" ||
20137 test ! -s conftest.err
20138 } && test -s conftest$ac_exeext &&
20139 $as_test_x conftest$ac_exeext; then
20140 ac_cv_func_hes_getmailhost=yes
20141 else
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20145 ac_cv_func_hes_getmailhost=no
20148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20149 conftest$ac_exeext conftest.$ac_ext
20151 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20152 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20153 if test $ac_cv_func_hes_getmailhost = yes; then
20155 else
20156 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20157 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20158 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161 ac_check_lib_save_LIBS=$LIBS
20162 LIBS="-lhesiod $RESOLVLIB $LIBS"
20163 cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h. */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20170 /* Override any GCC internal prototype to avoid an error.
20171 Use char because int might match the return type of a GCC
20172 builtin and then its argument prototype would still apply. */
20173 #ifdef __cplusplus
20174 extern "C"
20175 #endif
20176 char hes_getmailhost ();
20178 main ()
20180 return hes_getmailhost ();
20182 return 0;
20184 _ACEOF
20185 rm -f conftest.$ac_objext conftest$ac_exeext
20186 if { (ac_try="$ac_link"
20187 case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20190 esac
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_link") 2>conftest.er1
20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && {
20199 test -z "$ac_c_werror_flag" ||
20200 test ! -s conftest.err
20201 } && test -s conftest$ac_exeext &&
20202 $as_test_x conftest$ac_exeext; then
20203 ac_cv_lib_hesiod_hes_getmailhost=yes
20204 else
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20208 ac_cv_lib_hesiod_hes_getmailhost=no
20211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20212 conftest$ac_exeext conftest.$ac_ext
20213 LIBS=$ac_check_lib_save_LIBS
20215 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20216 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20217 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20219 cat >>confdefs.h <<\_ACEOF
20220 #define HAVE_LIBHESIOD 1
20221 _ACEOF
20223 else
20231 # Do we need libresolv (due to res_init or Hesiod)?
20232 if test "$resolv" = yes ; then
20234 cat >>confdefs.h <<\_ACEOF
20235 #define HAVE_LIBRESOLV 1
20236 _ACEOF
20240 # These tell us which Kerberos-related libraries to use.
20241 if test "${with_kerberos+set}" = set; then
20243 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20244 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20245 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20246 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 else
20248 ac_check_lib_save_LIBS=$LIBS
20249 LIBS="-lcom_err $LIBS"
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h. */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20257 /* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply. */
20260 #ifdef __cplusplus
20261 extern "C"
20262 #endif
20263 char com_err ();
20265 main ()
20267 return com_err ();
20269 return 0;
20271 _ACEOF
20272 rm -f conftest.$ac_objext conftest$ac_exeext
20273 if { (ac_try="$ac_link"
20274 case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_link") 2>conftest.er1
20280 ac_status=$?
20281 grep -v '^ *+' conftest.er1 >conftest.err
20282 rm -f conftest.er1
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } && {
20286 test -z "$ac_c_werror_flag" ||
20287 test ! -s conftest.err
20288 } && test -s conftest$ac_exeext &&
20289 $as_test_x conftest$ac_exeext; then
20290 ac_cv_lib_com_err_com_err=yes
20291 else
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 ac_cv_lib_com_err_com_err=no
20298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20299 conftest$ac_exeext conftest.$ac_ext
20300 LIBS=$ac_check_lib_save_LIBS
20302 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20303 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20304 if test $ac_cv_lib_com_err_com_err = yes; then
20305 cat >>confdefs.h <<_ACEOF
20306 #define HAVE_LIBCOM_ERR 1
20307 _ACEOF
20309 LIBS="-lcom_err $LIBS"
20314 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20315 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20316 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 else
20319 ac_check_lib_save_LIBS=$LIBS
20320 LIBS="-lk5crypto $LIBS"
20321 cat >conftest.$ac_ext <<_ACEOF
20322 /* confdefs.h. */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20328 /* Override any GCC internal prototype to avoid an error.
20329 Use char because int might match the return type of a GCC
20330 builtin and then its argument prototype would still apply. */
20331 #ifdef __cplusplus
20332 extern "C"
20333 #endif
20334 char mit_des_cbc_encrypt ();
20336 main ()
20338 return mit_des_cbc_encrypt ();
20340 return 0;
20342 _ACEOF
20343 rm -f conftest.$ac_objext conftest$ac_exeext
20344 if { (ac_try="$ac_link"
20345 case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_link") 2>conftest.er1
20351 ac_status=$?
20352 grep -v '^ *+' conftest.er1 >conftest.err
20353 rm -f conftest.er1
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } && {
20357 test -z "$ac_c_werror_flag" ||
20358 test ! -s conftest.err
20359 } && test -s conftest$ac_exeext &&
20360 $as_test_x conftest$ac_exeext; then
20361 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20362 else
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20366 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20370 conftest$ac_exeext conftest.$ac_ext
20371 LIBS=$ac_check_lib_save_LIBS
20373 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20374 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20375 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20376 cat >>confdefs.h <<_ACEOF
20377 #define HAVE_LIBK5CRYPTO 1
20378 _ACEOF
20380 LIBS="-lk5crypto $LIBS"
20385 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20386 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20387 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390 ac_check_lib_save_LIBS=$LIBS
20391 LIBS="-lcrypto $LIBS"
20392 cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h. */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h. */
20399 /* Override any GCC internal prototype to avoid an error.
20400 Use char because int might match the return type of a GCC
20401 builtin and then its argument prototype would still apply. */
20402 #ifdef __cplusplus
20403 extern "C"
20404 #endif
20405 char mit_des_cbc_encrypt ();
20407 main ()
20409 return mit_des_cbc_encrypt ();
20411 return 0;
20413 _ACEOF
20414 rm -f conftest.$ac_objext conftest$ac_exeext
20415 if { (ac_try="$ac_link"
20416 case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_link") 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } && {
20428 test -z "$ac_c_werror_flag" ||
20429 test ! -s conftest.err
20430 } && test -s conftest$ac_exeext &&
20431 $as_test_x conftest$ac_exeext; then
20432 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20433 else
20434 echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20437 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20441 conftest$ac_exeext conftest.$ac_ext
20442 LIBS=$ac_check_lib_save_LIBS
20444 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20445 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20446 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20447 cat >>confdefs.h <<_ACEOF
20448 #define HAVE_LIBCRYPTO 1
20449 _ACEOF
20451 LIBS="-lcrypto $LIBS"
20456 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20457 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20458 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
20460 else
20461 ac_check_lib_save_LIBS=$LIBS
20462 LIBS="-lkrb5 $LIBS"
20463 cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h. */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20470 /* Override any GCC internal prototype to avoid an error.
20471 Use char because int might match the return type of a GCC
20472 builtin and then its argument prototype would still apply. */
20473 #ifdef __cplusplus
20474 extern "C"
20475 #endif
20476 char krb5_init_context ();
20478 main ()
20480 return krb5_init_context ();
20482 return 0;
20484 _ACEOF
20485 rm -f conftest.$ac_objext conftest$ac_exeext
20486 if { (ac_try="$ac_link"
20487 case "(($ac_try" in
20488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20489 *) ac_try_echo=$ac_try;;
20490 esac
20491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20492 (eval "$ac_link") 2>conftest.er1
20493 ac_status=$?
20494 grep -v '^ *+' conftest.er1 >conftest.err
20495 rm -f conftest.er1
20496 cat conftest.err >&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } && {
20499 test -z "$ac_c_werror_flag" ||
20500 test ! -s conftest.err
20501 } && test -s conftest$ac_exeext &&
20502 $as_test_x conftest$ac_exeext; then
20503 ac_cv_lib_krb5_krb5_init_context=yes
20504 else
20505 echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20508 ac_cv_lib_krb5_krb5_init_context=no
20511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20512 conftest$ac_exeext conftest.$ac_ext
20513 LIBS=$ac_check_lib_save_LIBS
20515 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20516 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20517 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20518 cat >>confdefs.h <<_ACEOF
20519 #define HAVE_LIBKRB5 1
20520 _ACEOF
20522 LIBS="-lkrb5 $LIBS"
20526 if test "${with_kerberos5+set}" != set; then
20528 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20529 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20530 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20532 else
20533 ac_check_lib_save_LIBS=$LIBS
20534 LIBS="-ldes425 $LIBS"
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h. */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20542 /* Override any GCC internal prototype to avoid an error.
20543 Use char because int might match the return type of a GCC
20544 builtin and then its argument prototype would still apply. */
20545 #ifdef __cplusplus
20546 extern "C"
20547 #endif
20548 char des_cbc_encrypt ();
20550 main ()
20552 return des_cbc_encrypt ();
20554 return 0;
20556 _ACEOF
20557 rm -f conftest.$ac_objext conftest$ac_exeext
20558 if { (ac_try="$ac_link"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_link") 2>conftest.er1
20565 ac_status=$?
20566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest$ac_exeext &&
20574 $as_test_x conftest$ac_exeext; then
20575 ac_cv_lib_des425_des_cbc_encrypt=yes
20576 else
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20580 ac_cv_lib_des425_des_cbc_encrypt=no
20583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20584 conftest$ac_exeext conftest.$ac_ext
20585 LIBS=$ac_check_lib_save_LIBS
20587 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20588 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20589 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20590 cat >>confdefs.h <<_ACEOF
20591 #define HAVE_LIBDES425 1
20592 _ACEOF
20594 LIBS="-ldes425 $LIBS"
20596 else
20598 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20599 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20600 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
20602 else
20603 ac_check_lib_save_LIBS=$LIBS
20604 LIBS="-ldes $LIBS"
20605 cat >conftest.$ac_ext <<_ACEOF
20606 /* confdefs.h. */
20607 _ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20612 /* Override any GCC internal prototype to avoid an error.
20613 Use char because int might match the return type of a GCC
20614 builtin and then its argument prototype would still apply. */
20615 #ifdef __cplusplus
20616 extern "C"
20617 #endif
20618 char des_cbc_encrypt ();
20620 main ()
20622 return des_cbc_encrypt ();
20624 return 0;
20626 _ACEOF
20627 rm -f conftest.$ac_objext conftest$ac_exeext
20628 if { (ac_try="$ac_link"
20629 case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20632 esac
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_link") 2>conftest.er1
20635 ac_status=$?
20636 grep -v '^ *+' conftest.er1 >conftest.err
20637 rm -f conftest.er1
20638 cat conftest.err >&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); } && {
20641 test -z "$ac_c_werror_flag" ||
20642 test ! -s conftest.err
20643 } && test -s conftest$ac_exeext &&
20644 $as_test_x conftest$ac_exeext; then
20645 ac_cv_lib_des_des_cbc_encrypt=yes
20646 else
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 ac_cv_lib_des_des_cbc_encrypt=no
20653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20654 conftest$ac_exeext conftest.$ac_ext
20655 LIBS=$ac_check_lib_save_LIBS
20657 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20658 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20659 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20660 cat >>confdefs.h <<_ACEOF
20661 #define HAVE_LIBDES 1
20662 _ACEOF
20664 LIBS="-ldes $LIBS"
20671 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20672 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20673 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 else
20676 ac_check_lib_save_LIBS=$LIBS
20677 LIBS="-lkrb4 $LIBS"
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h. */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20685 /* Override any GCC internal prototype to avoid an error.
20686 Use char because int might match the return type of a GCC
20687 builtin and then its argument prototype would still apply. */
20688 #ifdef __cplusplus
20689 extern "C"
20690 #endif
20691 char krb_get_cred ();
20693 main ()
20695 return krb_get_cred ();
20697 return 0;
20699 _ACEOF
20700 rm -f conftest.$ac_objext conftest$ac_exeext
20701 if { (ac_try="$ac_link"
20702 case "(($ac_try" in
20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704 *) ac_try_echo=$ac_try;;
20705 esac
20706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20707 (eval "$ac_link") 2>conftest.er1
20708 ac_status=$?
20709 grep -v '^ *+' conftest.er1 >conftest.err
20710 rm -f conftest.er1
20711 cat conftest.err >&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest$ac_exeext &&
20717 $as_test_x conftest$ac_exeext; then
20718 ac_cv_lib_krb4_krb_get_cred=yes
20719 else
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20723 ac_cv_lib_krb4_krb_get_cred=no
20726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20727 conftest$ac_exeext conftest.$ac_ext
20728 LIBS=$ac_check_lib_save_LIBS
20730 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20731 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20732 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20733 cat >>confdefs.h <<_ACEOF
20734 #define HAVE_LIBKRB4 1
20735 _ACEOF
20737 LIBS="-lkrb4 $LIBS"
20739 else
20741 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20742 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20743 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 else
20746 ac_check_lib_save_LIBS=$LIBS
20747 LIBS="-lkrb $LIBS"
20748 cat >conftest.$ac_ext <<_ACEOF
20749 /* confdefs.h. */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20755 /* Override any GCC internal prototype to avoid an error.
20756 Use char because int might match the return type of a GCC
20757 builtin and then its argument prototype would still apply. */
20758 #ifdef __cplusplus
20759 extern "C"
20760 #endif
20761 char krb_get_cred ();
20763 main ()
20765 return krb_get_cred ();
20767 return 0;
20769 _ACEOF
20770 rm -f conftest.$ac_objext conftest$ac_exeext
20771 if { (ac_try="$ac_link"
20772 case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20775 esac
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_link") 2>conftest.er1
20778 ac_status=$?
20779 grep -v '^ *+' conftest.er1 >conftest.err
20780 rm -f conftest.er1
20781 cat conftest.err >&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } && {
20784 test -z "$ac_c_werror_flag" ||
20785 test ! -s conftest.err
20786 } && test -s conftest$ac_exeext &&
20787 $as_test_x conftest$ac_exeext; then
20788 ac_cv_lib_krb_krb_get_cred=yes
20789 else
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20793 ac_cv_lib_krb_krb_get_cred=no
20796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20797 conftest$ac_exeext conftest.$ac_ext
20798 LIBS=$ac_check_lib_save_LIBS
20800 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20801 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20802 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20803 cat >>confdefs.h <<_ACEOF
20804 #define HAVE_LIBKRB 1
20805 _ACEOF
20807 LIBS="-lkrb $LIBS"
20815 if test "${with_kerberos5+set}" = set; then
20817 for ac_header in krb5.h
20819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20826 ac_res=`eval echo '${'$as_ac_Header'}'`
20827 { echo "$as_me:$LINENO: result: $ac_res" >&5
20828 echo "${ECHO_T}$ac_res" >&6; }
20829 else
20830 # Is the header compilable?
20831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20833 cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h. */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839 $ac_includes_default
20840 #include <$ac_header>
20841 _ACEOF
20842 rm -f conftest.$ac_objext
20843 if { (ac_try="$ac_compile"
20844 case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_compile") 2>conftest.er1
20850 ac_status=$?
20851 grep -v '^ *+' conftest.er1 >conftest.err
20852 rm -f conftest.er1
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } && {
20856 test -z "$ac_c_werror_flag" ||
20857 test ! -s conftest.err
20858 } && test -s conftest.$ac_objext; then
20859 ac_header_compiler=yes
20860 else
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20864 ac_header_compiler=no
20867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20869 echo "${ECHO_T}$ac_header_compiler" >&6; }
20871 # Is the header present?
20872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20874 cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h. */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20880 #include <$ac_header>
20881 _ACEOF
20882 if { (ac_try="$ac_cpp conftest.$ac_ext"
20883 case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20886 esac
20887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20889 ac_status=$?
20890 grep -v '^ *+' conftest.er1 >conftest.err
20891 rm -f conftest.er1
20892 cat conftest.err >&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } >/dev/null && {
20895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20896 test ! -s conftest.err
20897 }; then
20898 ac_header_preproc=yes
20899 else
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20903 ac_header_preproc=no
20906 rm -f conftest.err conftest.$ac_ext
20907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20908 echo "${ECHO_T}$ac_header_preproc" >&6; }
20910 # So? What about this header?
20911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20912 yes:no: )
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20917 ac_header_preproc=yes
20919 no:yes:* )
20920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20934 esac
20935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20938 echo $ECHO_N "(cached) $ECHO_C" >&6
20939 else
20940 eval "$as_ac_Header=\$ac_header_preproc"
20942 ac_res=`eval echo '${'$as_ac_Header'}'`
20943 { echo "$as_me:$LINENO: result: $ac_res" >&5
20944 echo "${ECHO_T}$ac_res" >&6; }
20947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20948 cat >>confdefs.h <<_ACEOF
20949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20950 _ACEOF
20954 done
20956 else
20958 for ac_header in des.h
20960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 ac_res=`eval echo '${'$as_ac_Header'}'`
20968 { echo "$as_me:$LINENO: result: $ac_res" >&5
20969 echo "${ECHO_T}$ac_res" >&6; }
20970 else
20971 # Is the header compilable?
20972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20974 cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h. */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20980 $ac_includes_default
20981 #include <$ac_header>
20982 _ACEOF
20983 rm -f conftest.$ac_objext
20984 if { (ac_try="$ac_compile"
20985 case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988 esac
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_compile") 2>conftest.er1
20991 ac_status=$?
20992 grep -v '^ *+' conftest.er1 >conftest.err
20993 rm -f conftest.er1
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } && {
20997 test -z "$ac_c_werror_flag" ||
20998 test ! -s conftest.err
20999 } && test -s conftest.$ac_objext; then
21000 ac_header_compiler=yes
21001 else
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21005 ac_header_compiler=no
21008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21010 echo "${ECHO_T}$ac_header_compiler" >&6; }
21012 # Is the header present?
21013 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21015 cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h. */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 #include <$ac_header>
21022 _ACEOF
21023 if { (ac_try="$ac_cpp conftest.$ac_ext"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21027 esac
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21030 ac_status=$?
21031 grep -v '^ *+' conftest.er1 >conftest.err
21032 rm -f conftest.er1
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } >/dev/null && {
21036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21037 test ! -s conftest.err
21038 }; then
21039 ac_header_preproc=yes
21040 else
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 ac_header_preproc=no
21047 rm -f conftest.err conftest.$ac_ext
21048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21049 echo "${ECHO_T}$ac_header_preproc" >&6; }
21051 # So? What about this header?
21052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21053 yes:no: )
21054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21058 ac_header_preproc=yes
21060 no:yes:* )
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21075 esac
21076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21080 else
21081 eval "$as_ac_Header=\$ac_header_preproc"
21083 ac_res=`eval echo '${'$as_ac_Header'}'`
21084 { echo "$as_me:$LINENO: result: $ac_res" >&5
21085 echo "${ECHO_T}$ac_res" >&6; }
21088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21089 cat >>confdefs.h <<_ACEOF
21090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21091 _ACEOF
21093 else
21095 for ac_header in kerberosIV/des.h
21097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21102 echo $ECHO_N "(cached) $ECHO_C" >&6
21104 ac_res=`eval echo '${'$as_ac_Header'}'`
21105 { echo "$as_me:$LINENO: result: $ac_res" >&5
21106 echo "${ECHO_T}$ac_res" >&6; }
21107 else
21108 # Is the header compilable?
21109 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21111 cat >conftest.$ac_ext <<_ACEOF
21112 /* confdefs.h. */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21117 $ac_includes_default
21118 #include <$ac_header>
21119 _ACEOF
21120 rm -f conftest.$ac_objext
21121 if { (ac_try="$ac_compile"
21122 case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21125 esac
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_compile") 2>conftest.er1
21128 ac_status=$?
21129 grep -v '^ *+' conftest.er1 >conftest.err
21130 rm -f conftest.er1
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest.$ac_objext; then
21137 ac_header_compiler=yes
21138 else
21139 echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ac_header_compiler=no
21145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21147 echo "${ECHO_T}$ac_header_compiler" >&6; }
21149 # Is the header present?
21150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21152 cat >conftest.$ac_ext <<_ACEOF
21153 /* confdefs.h. */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 #include <$ac_header>
21159 _ACEOF
21160 if { (ac_try="$ac_cpp conftest.$ac_ext"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21164 esac
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21167 ac_status=$?
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } >/dev/null && {
21173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21175 }; then
21176 ac_header_preproc=yes
21177 else
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 ac_header_preproc=no
21184 rm -f conftest.err conftest.$ac_ext
21185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21186 echo "${ECHO_T}$ac_header_preproc" >&6; }
21188 # So? What about this header?
21189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21190 yes:no: )
21191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21195 ac_header_preproc=yes
21197 no:yes:* )
21198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21212 esac
21213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218 eval "$as_ac_Header=\$ac_header_preproc"
21220 ac_res=`eval echo '${'$as_ac_Header'}'`
21221 { echo "$as_me:$LINENO: result: $ac_res" >&5
21222 echo "${ECHO_T}$ac_res" >&6; }
21225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21226 cat >>confdefs.h <<_ACEOF
21227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21228 _ACEOF
21230 else
21232 for ac_header in kerberos/des.h
21234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21239 echo $ECHO_N "(cached) $ECHO_C" >&6
21241 ac_res=`eval echo '${'$as_ac_Header'}'`
21242 { echo "$as_me:$LINENO: result: $ac_res" >&5
21243 echo "${ECHO_T}$ac_res" >&6; }
21244 else
21245 # Is the header compilable?
21246 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21248 cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h. */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21254 $ac_includes_default
21255 #include <$ac_header>
21256 _ACEOF
21257 rm -f conftest.$ac_objext
21258 if { (ac_try="$ac_compile"
21259 case "(($ac_try" in
21260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21261 *) ac_try_echo=$ac_try;;
21262 esac
21263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21264 (eval "$ac_compile") 2>conftest.er1
21265 ac_status=$?
21266 grep -v '^ *+' conftest.er1 >conftest.err
21267 rm -f conftest.er1
21268 cat conftest.err >&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); } && {
21271 test -z "$ac_c_werror_flag" ||
21272 test ! -s conftest.err
21273 } && test -s conftest.$ac_objext; then
21274 ac_header_compiler=yes
21275 else
21276 echo "$as_me: failed program was:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21279 ac_header_compiler=no
21282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21284 echo "${ECHO_T}$ac_header_compiler" >&6; }
21286 # Is the header present?
21287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21289 cat >conftest.$ac_ext <<_ACEOF
21290 /* confdefs.h. */
21291 _ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h. */
21295 #include <$ac_header>
21296 _ACEOF
21297 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21312 }; then
21313 ac_header_preproc=yes
21314 else
21315 echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ac_header_preproc=no
21321 rm -f conftest.err conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21323 echo "${ECHO_T}$ac_header_preproc" >&6; }
21325 # So? What about this header?
21326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21327 yes:no: )
21328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21332 ac_header_preproc=yes
21334 no:yes:* )
21335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21349 esac
21350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 else
21355 eval "$as_ac_Header=\$ac_header_preproc"
21357 ac_res=`eval echo '${'$as_ac_Header'}'`
21358 { echo "$as_me:$LINENO: result: $ac_res" >&5
21359 echo "${ECHO_T}$ac_res" >&6; }
21362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21363 cat >>confdefs.h <<_ACEOF
21364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21365 _ACEOF
21369 done
21373 done
21377 done
21380 for ac_header in krb.h
21382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 ac_res=`eval echo '${'$as_ac_Header'}'`
21390 { echo "$as_me:$LINENO: result: $ac_res" >&5
21391 echo "${ECHO_T}$ac_res" >&6; }
21392 else
21393 # Is the header compilable?
21394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21396 cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h. */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 $ac_includes_default
21403 #include <$ac_header>
21404 _ACEOF
21405 rm -f conftest.$ac_objext
21406 if { (ac_try="$ac_compile"
21407 case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_compile") 2>conftest.er1
21413 ac_status=$?
21414 grep -v '^ *+' conftest.er1 >conftest.err
21415 rm -f conftest.er1
21416 cat conftest.err >&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } && {
21419 test -z "$ac_c_werror_flag" ||
21420 test ! -s conftest.err
21421 } && test -s conftest.$ac_objext; then
21422 ac_header_compiler=yes
21423 else
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21427 ac_header_compiler=no
21430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21432 echo "${ECHO_T}$ac_header_compiler" >&6; }
21434 # Is the header present?
21435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21437 cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h. */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 #include <$ac_header>
21444 _ACEOF
21445 if { (ac_try="$ac_cpp conftest.$ac_ext"
21446 case "(($ac_try" in
21447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448 *) ac_try_echo=$ac_try;;
21449 esac
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21452 ac_status=$?
21453 grep -v '^ *+' conftest.er1 >conftest.err
21454 rm -f conftest.er1
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } >/dev/null && {
21458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21460 }; then
21461 ac_header_preproc=yes
21462 else
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21466 ac_header_preproc=no
21469 rm -f conftest.err conftest.$ac_ext
21470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21471 echo "${ECHO_T}$ac_header_preproc" >&6; }
21473 # So? What about this header?
21474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21475 yes:no: )
21476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21480 ac_header_preproc=yes
21482 no:yes:* )
21483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21497 esac
21498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21502 else
21503 eval "$as_ac_Header=\$ac_header_preproc"
21505 ac_res=`eval echo '${'$as_ac_Header'}'`
21506 { echo "$as_me:$LINENO: result: $ac_res" >&5
21507 echo "${ECHO_T}$ac_res" >&6; }
21510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21511 cat >>confdefs.h <<_ACEOF
21512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21513 _ACEOF
21515 else
21517 for ac_header in kerberosIV/krb.h
21519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 ac_res=`eval echo '${'$as_ac_Header'}'`
21527 { echo "$as_me:$LINENO: result: $ac_res" >&5
21528 echo "${ECHO_T}$ac_res" >&6; }
21529 else
21530 # Is the header compilable?
21531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21533 cat >conftest.$ac_ext <<_ACEOF
21534 /* confdefs.h. */
21535 _ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h. */
21539 $ac_includes_default
21540 #include <$ac_header>
21541 _ACEOF
21542 rm -f conftest.$ac_objext
21543 if { (ac_try="$ac_compile"
21544 case "(($ac_try" in
21545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21547 esac
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549 (eval "$ac_compile") 2>conftest.er1
21550 ac_status=$?
21551 grep -v '^ *+' conftest.er1 >conftest.err
21552 rm -f conftest.er1
21553 cat conftest.err >&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } && {
21556 test -z "$ac_c_werror_flag" ||
21557 test ! -s conftest.err
21558 } && test -s conftest.$ac_objext; then
21559 ac_header_compiler=yes
21560 else
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21564 ac_header_compiler=no
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21569 echo "${ECHO_T}$ac_header_compiler" >&6; }
21571 # Is the header present?
21572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h. */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 #include <$ac_header>
21581 _ACEOF
21582 if { (ac_try="$ac_cpp conftest.$ac_ext"
21583 case "(($ac_try" in
21584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585 *) ac_try_echo=$ac_try;;
21586 esac
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21589 ac_status=$?
21590 grep -v '^ *+' conftest.er1 >conftest.err
21591 rm -f conftest.er1
21592 cat conftest.err >&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } >/dev/null && {
21595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21596 test ! -s conftest.err
21597 }; then
21598 ac_header_preproc=yes
21599 else
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21603 ac_header_preproc=no
21606 rm -f conftest.err conftest.$ac_ext
21607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21608 echo "${ECHO_T}$ac_header_preproc" >&6; }
21610 # So? What about this header?
21611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21612 yes:no: )
21613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21617 ac_header_preproc=yes
21619 no:yes:* )
21620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21634 esac
21635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21638 echo $ECHO_N "(cached) $ECHO_C" >&6
21639 else
21640 eval "$as_ac_Header=\$ac_header_preproc"
21642 ac_res=`eval echo '${'$as_ac_Header'}'`
21643 { echo "$as_me:$LINENO: result: $ac_res" >&5
21644 echo "${ECHO_T}$ac_res" >&6; }
21647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21648 cat >>confdefs.h <<_ACEOF
21649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21650 _ACEOF
21652 else
21654 for ac_header in kerberos/krb.h
21656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 ac_res=`eval echo '${'$as_ac_Header'}'`
21664 { echo "$as_me:$LINENO: result: $ac_res" >&5
21665 echo "${ECHO_T}$ac_res" >&6; }
21666 else
21667 # Is the header compilable?
21668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h. */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21677 #include <$ac_header>
21678 _ACEOF
21679 rm -f conftest.$ac_objext
21680 if { (ac_try="$ac_compile"
21681 case "(($ac_try" in
21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21684 esac
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_compile") 2>conftest.er1
21687 ac_status=$?
21688 grep -v '^ *+' conftest.er1 >conftest.err
21689 rm -f conftest.er1
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } && {
21693 test -z "$ac_c_werror_flag" ||
21694 test ! -s conftest.err
21695 } && test -s conftest.$ac_objext; then
21696 ac_header_compiler=yes
21697 else
21698 echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 ac_header_compiler=no
21704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21706 echo "${ECHO_T}$ac_header_compiler" >&6; }
21708 # Is the header present?
21709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21711 cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h. */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <$ac_header>
21718 _ACEOF
21719 if { (ac_try="$ac_cpp conftest.$ac_ext"
21720 case "(($ac_try" in
21721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722 *) ac_try_echo=$ac_try;;
21723 esac
21724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21726 ac_status=$?
21727 grep -v '^ *+' conftest.er1 >conftest.err
21728 rm -f conftest.er1
21729 cat conftest.err >&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } >/dev/null && {
21732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21733 test ! -s conftest.err
21734 }; then
21735 ac_header_preproc=yes
21736 else
21737 echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 ac_header_preproc=no
21743 rm -f conftest.err conftest.$ac_ext
21744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21745 echo "${ECHO_T}$ac_header_preproc" >&6; }
21747 # So? What about this header?
21748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21749 yes:no: )
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21754 ac_header_preproc=yes
21756 no:yes:* )
21757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21771 esac
21772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 else
21777 eval "$as_ac_Header=\$ac_header_preproc"
21779 ac_res=`eval echo '${'$as_ac_Header'}'`
21780 { echo "$as_me:$LINENO: result: $ac_res" >&5
21781 echo "${ECHO_T}$ac_res" >&6; }
21784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21785 cat >>confdefs.h <<_ACEOF
21786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21787 _ACEOF
21791 done
21795 done
21799 done
21803 for ac_header in com_err.h
21805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 ac_res=`eval echo '${'$as_ac_Header'}'`
21813 { echo "$as_me:$LINENO: result: $ac_res" >&5
21814 echo "${ECHO_T}$ac_res" >&6; }
21815 else
21816 # Is the header compilable?
21817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21819 cat >conftest.$ac_ext <<_ACEOF
21820 /* confdefs.h. */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21825 $ac_includes_default
21826 #include <$ac_header>
21827 _ACEOF
21828 rm -f conftest.$ac_objext
21829 if { (ac_try="$ac_compile"
21830 case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21833 esac
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_compile") 2>conftest.er1
21836 ac_status=$?
21837 grep -v '^ *+' conftest.er1 >conftest.err
21838 rm -f conftest.er1
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest.$ac_objext; then
21845 ac_header_compiler=yes
21846 else
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21850 ac_header_compiler=no
21853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21855 echo "${ECHO_T}$ac_header_compiler" >&6; }
21857 # Is the header present?
21858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h. */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 #include <$ac_header>
21867 _ACEOF
21868 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21883 }; then
21884 ac_header_preproc=yes
21885 else
21886 echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21889 ac_header_preproc=no
21892 rm -f conftest.err conftest.$ac_ext
21893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21894 echo "${ECHO_T}$ac_header_preproc" >&6; }
21896 # So? What about this header?
21897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21898 yes:no: )
21899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21903 ac_header_preproc=yes
21905 no:yes:* )
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21920 esac
21921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 else
21926 eval "$as_ac_Header=\$ac_header_preproc"
21928 ac_res=`eval echo '${'$as_ac_Header'}'`
21929 { echo "$as_me:$LINENO: result: $ac_res" >&5
21930 echo "${ECHO_T}$ac_res" >&6; }
21933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21934 cat >>confdefs.h <<_ACEOF
21935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21936 _ACEOF
21940 done
21944 # Solaris requires -lintl if you want strerror (which calls dgettext)
21945 # to return localized messages.
21947 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21948 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21949 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21952 ac_check_lib_save_LIBS=$LIBS
21953 LIBS="-lintl $LIBS"
21954 cat >conftest.$ac_ext <<_ACEOF
21955 /* confdefs.h. */
21956 _ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21961 /* Override any GCC internal prototype to avoid an error.
21962 Use char because int might match the return type of a GCC
21963 builtin and then its argument prototype would still apply. */
21964 #ifdef __cplusplus
21965 extern "C"
21966 #endif
21967 char dgettext ();
21969 main ()
21971 return dgettext ();
21973 return 0;
21975 _ACEOF
21976 rm -f conftest.$ac_objext conftest$ac_exeext
21977 if { (ac_try="$ac_link"
21978 case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21981 esac
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_link") 2>conftest.er1
21984 ac_status=$?
21985 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } && {
21990 test -z "$ac_c_werror_flag" ||
21991 test ! -s conftest.err
21992 } && test -s conftest$ac_exeext &&
21993 $as_test_x conftest$ac_exeext; then
21994 ac_cv_lib_intl_dgettext=yes
21995 else
21996 echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21999 ac_cv_lib_intl_dgettext=no
22002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22003 conftest$ac_exeext conftest.$ac_ext
22004 LIBS=$ac_check_lib_save_LIBS
22006 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22007 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22008 if test $ac_cv_lib_intl_dgettext = yes; then
22009 cat >>confdefs.h <<_ACEOF
22010 #define HAVE_LIBINTL 1
22011 _ACEOF
22013 LIBS="-lintl $LIBS"
22018 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22019 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22020 if test "${emacs_cv_localtime_cache+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22022 else
22023 if test x$ac_cv_func_tzset = xyes; then
22024 if test "$cross_compiling" = yes; then
22025 # If we have tzset, assume the worst when cross-compiling.
22026 emacs_cv_localtime_cache=yes
22027 else
22028 cat >conftest.$ac_ext <<_ACEOF
22029 /* confdefs.h. */
22030 _ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22034 #include <time.h>
22035 extern char **environ;
22036 unset_TZ ()
22038 char **from, **to;
22039 for (to = from = environ; (*to = *from); from++)
22040 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22041 to++;
22043 char TZ_GMT0[] = "TZ=GMT0";
22044 char TZ_PST8[] = "TZ=PST8";
22045 main()
22047 time_t now = time ((time_t *) 0);
22048 int hour_GMT0, hour_unset;
22049 if (putenv (TZ_GMT0) != 0)
22050 exit (1);
22051 hour_GMT0 = localtime (&now)->tm_hour;
22052 unset_TZ ();
22053 hour_unset = localtime (&now)->tm_hour;
22054 if (putenv (TZ_PST8) != 0)
22055 exit (1);
22056 if (localtime (&now)->tm_hour == hour_GMT0)
22057 exit (1);
22058 unset_TZ ();
22059 if (localtime (&now)->tm_hour != hour_unset)
22060 exit (1);
22061 exit (0);
22063 _ACEOF
22064 rm -f conftest$ac_exeext
22065 if { (ac_try="$ac_link"
22066 case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22069 esac
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_link") 2>&5
22072 ac_status=$?
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22075 { (case "(($ac_try" in
22076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077 *) ac_try_echo=$ac_try;;
22078 esac
22079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22080 (eval "$ac_try") 2>&5
22081 ac_status=$?
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; }; then
22084 emacs_cv_localtime_cache=no
22085 else
22086 echo "$as_me: program exited with status $ac_status" >&5
22087 echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 ( exit $ac_status )
22091 emacs_cv_localtime_cache=yes
22093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22097 else
22098 # If we lack tzset, report that localtime does not cache TZ,
22099 # since we can't invalidate the cache if we don't have tzset.
22100 emacs_cv_localtime_cache=no
22103 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22104 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22105 if test $emacs_cv_localtime_cache = yes; then
22107 cat >>confdefs.h <<\_ACEOF
22108 #define LOCALTIME_CACHE 1
22109 _ACEOF
22113 if test "x$HAVE_TIMEVAL" = xyes; then
22115 for ac_func in gettimeofday
22117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22121 echo $ECHO_N "(cached) $ECHO_C" >&6
22122 else
22123 cat >conftest.$ac_ext <<_ACEOF
22124 /* confdefs.h. */
22125 _ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22131 #define $ac_func innocuous_$ac_func
22133 /* System header to define __stub macros and hopefully few prototypes,
22134 which can conflict with char $ac_func (); below.
22135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22136 <limits.h> exists even on freestanding compilers. */
22138 #ifdef __STDC__
22139 # include <limits.h>
22140 #else
22141 # include <assert.h>
22142 #endif
22144 #undef $ac_func
22146 /* Override any GCC internal prototype to avoid an error.
22147 Use char because int might match the return type of a GCC
22148 builtin and then its argument prototype would still apply. */
22149 #ifdef __cplusplus
22150 extern "C"
22151 #endif
22152 char $ac_func ();
22153 /* The GNU C library defines this for functions which it implements
22154 to always fail with ENOSYS. Some functions are actually named
22155 something starting with __ and the normal name is an alias. */
22156 #if defined __stub_$ac_func || defined __stub___$ac_func
22157 choke me
22158 #endif
22161 main ()
22163 return $ac_func ();
22165 return 0;
22167 _ACEOF
22168 rm -f conftest.$ac_objext conftest$ac_exeext
22169 if { (ac_try="$ac_link"
22170 case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22173 esac
22174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22175 (eval "$ac_link") 2>conftest.er1
22176 ac_status=$?
22177 grep -v '^ *+' conftest.er1 >conftest.err
22178 rm -f conftest.er1
22179 cat conftest.err >&5
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); } && {
22182 test -z "$ac_c_werror_flag" ||
22183 test ! -s conftest.err
22184 } && test -s conftest$ac_exeext &&
22185 $as_test_x conftest$ac_exeext; then
22186 eval "$as_ac_var=yes"
22187 else
22188 echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22191 eval "$as_ac_var=no"
22194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22195 conftest$ac_exeext conftest.$ac_ext
22197 ac_res=`eval echo '${'$as_ac_var'}'`
22198 { echo "$as_me:$LINENO: result: $ac_res" >&5
22199 echo "${ECHO_T}$ac_res" >&6; }
22200 if test `eval echo '${'$as_ac_var'}'` = yes; then
22201 cat >>confdefs.h <<_ACEOF
22202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22203 _ACEOF
22206 done
22208 if test $ac_cv_func_gettimeofday = yes; then
22209 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22210 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22211 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22212 echo $ECHO_N "(cached) $ECHO_C" >&6
22213 else
22214 cat >conftest.$ac_ext <<_ACEOF
22215 /* confdefs.h. */
22216 _ACEOF
22217 cat confdefs.h >>conftest.$ac_ext
22218 cat >>conftest.$ac_ext <<_ACEOF
22219 /* end confdefs.h. */
22221 #ifdef TIME_WITH_SYS_TIME
22222 #include <sys/time.h>
22223 #include <time.h>
22224 #else
22225 #ifdef HAVE_SYS_TIME_H
22226 #include <sys/time.h>
22227 #else
22228 #include <time.h>
22229 #endif
22230 #endif
22232 main ()
22234 struct timeval time;
22235 gettimeofday (&time, 0);
22237 return 0;
22239 _ACEOF
22240 rm -f conftest.$ac_objext
22241 if { (ac_try="$ac_compile"
22242 case "(($ac_try" in
22243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244 *) ac_try_echo=$ac_try;;
22245 esac
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247 (eval "$ac_compile") 2>conftest.er1
22248 ac_status=$?
22249 grep -v '^ *+' conftest.er1 >conftest.err
22250 rm -f conftest.er1
22251 cat conftest.err >&5
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); } && {
22254 test -z "$ac_c_werror_flag" ||
22255 test ! -s conftest.err
22256 } && test -s conftest.$ac_objext; then
22257 emacs_cv_gettimeofday_two_arguments=yes
22258 else
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22262 emacs_cv_gettimeofday_two_arguments=no
22265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22267 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22268 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22269 if test $emacs_cv_gettimeofday_two_arguments = no; then
22271 cat >>confdefs.h <<\_ACEOF
22272 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22273 _ACEOF
22279 ok_so_far=yes
22280 { echo "$as_me:$LINENO: checking for socket" >&5
22281 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22282 if test "${ac_cv_func_socket+set}" = set; then
22283 echo $ECHO_N "(cached) $ECHO_C" >&6
22284 else
22285 cat >conftest.$ac_ext <<_ACEOF
22286 /* confdefs.h. */
22287 _ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h. */
22291 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22293 #define socket innocuous_socket
22295 /* System header to define __stub macros and hopefully few prototypes,
22296 which can conflict with char socket (); below.
22297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22298 <limits.h> exists even on freestanding compilers. */
22300 #ifdef __STDC__
22301 # include <limits.h>
22302 #else
22303 # include <assert.h>
22304 #endif
22306 #undef socket
22308 /* Override any GCC internal prototype to avoid an error.
22309 Use char because int might match the return type of a GCC
22310 builtin and then its argument prototype would still apply. */
22311 #ifdef __cplusplus
22312 extern "C"
22313 #endif
22314 char socket ();
22315 /* The GNU C library defines this for functions which it implements
22316 to always fail with ENOSYS. Some functions are actually named
22317 something starting with __ and the normal name is an alias. */
22318 #if defined __stub_socket || defined __stub___socket
22319 choke me
22320 #endif
22323 main ()
22325 return socket ();
22327 return 0;
22329 _ACEOF
22330 rm -f conftest.$ac_objext conftest$ac_exeext
22331 if { (ac_try="$ac_link"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22335 esac
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_link") 2>conftest.er1
22338 ac_status=$?
22339 grep -v '^ *+' conftest.er1 >conftest.err
22340 rm -f conftest.er1
22341 cat conftest.err >&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); } && {
22344 test -z "$ac_c_werror_flag" ||
22345 test ! -s conftest.err
22346 } && test -s conftest$ac_exeext &&
22347 $as_test_x conftest$ac_exeext; then
22348 ac_cv_func_socket=yes
22349 else
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_cv_func_socket=no
22356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22357 conftest$ac_exeext conftest.$ac_ext
22359 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22360 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22361 if test $ac_cv_func_socket = yes; then
22363 else
22364 ok_so_far=no
22367 if test $ok_so_far = yes; then
22368 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22369 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22370 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22371 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22374 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22375 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22376 else
22377 # Is the header compilable?
22378 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22379 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22380 cat >conftest.$ac_ext <<_ACEOF
22381 /* confdefs.h. */
22382 _ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22386 $ac_includes_default
22387 #include <netinet/in.h>
22388 _ACEOF
22389 rm -f conftest.$ac_objext
22390 if { (ac_try="$ac_compile"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22394 esac
22395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22396 (eval "$ac_compile") 2>conftest.er1
22397 ac_status=$?
22398 grep -v '^ *+' conftest.er1 >conftest.err
22399 rm -f conftest.er1
22400 cat conftest.err >&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); } && {
22403 test -z "$ac_c_werror_flag" ||
22404 test ! -s conftest.err
22405 } && test -s conftest.$ac_objext; then
22406 ac_header_compiler=yes
22407 else
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22411 ac_header_compiler=no
22414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22416 echo "${ECHO_T}$ac_header_compiler" >&6; }
22418 # Is the header present?
22419 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22420 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22421 cat >conftest.$ac_ext <<_ACEOF
22422 /* confdefs.h. */
22423 _ACEOF
22424 cat confdefs.h >>conftest.$ac_ext
22425 cat >>conftest.$ac_ext <<_ACEOF
22426 /* end confdefs.h. */
22427 #include <netinet/in.h>
22428 _ACEOF
22429 if { (ac_try="$ac_cpp conftest.$ac_ext"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22433 esac
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22436 ac_status=$?
22437 grep -v '^ *+' conftest.er1 >conftest.err
22438 rm -f conftest.er1
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } >/dev/null && {
22442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 }; then
22445 ac_header_preproc=yes
22446 else
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 ac_header_preproc=no
22453 rm -f conftest.err conftest.$ac_ext
22454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22455 echo "${ECHO_T}$ac_header_preproc" >&6; }
22457 # So? What about this header?
22458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22459 yes:no: )
22460 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22461 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22462 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22463 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22464 ac_header_preproc=yes
22466 no:yes:* )
22467 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22468 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22469 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22470 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22471 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22472 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22473 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22474 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22475 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22476 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22477 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22478 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22481 esac
22482 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22483 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22484 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22485 echo $ECHO_N "(cached) $ECHO_C" >&6
22486 else
22487 ac_cv_header_netinet_in_h=$ac_header_preproc
22489 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22490 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22493 if test $ac_cv_header_netinet_in_h = yes; then
22495 else
22496 ok_so_far=no
22501 if test $ok_so_far = yes; then
22502 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22503 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22504 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22505 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22508 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22509 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22510 else
22511 # Is the header compilable?
22512 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22513 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22514 cat >conftest.$ac_ext <<_ACEOF
22515 /* confdefs.h. */
22516 _ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22520 $ac_includes_default
22521 #include <arpa/inet.h>
22522 _ACEOF
22523 rm -f conftest.$ac_objext
22524 if { (ac_try="$ac_compile"
22525 case "(($ac_try" in
22526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527 *) ac_try_echo=$ac_try;;
22528 esac
22529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530 (eval "$ac_compile") 2>conftest.er1
22531 ac_status=$?
22532 grep -v '^ *+' conftest.er1 >conftest.err
22533 rm -f conftest.er1
22534 cat conftest.err >&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } && {
22537 test -z "$ac_c_werror_flag" ||
22538 test ! -s conftest.err
22539 } && test -s conftest.$ac_objext; then
22540 ac_header_compiler=yes
22541 else
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22545 ac_header_compiler=no
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22550 echo "${ECHO_T}$ac_header_compiler" >&6; }
22552 # Is the header present?
22553 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22554 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22555 cat >conftest.$ac_ext <<_ACEOF
22556 /* confdefs.h. */
22557 _ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22561 #include <arpa/inet.h>
22562 _ACEOF
22563 if { (ac_try="$ac_cpp conftest.$ac_ext"
22564 case "(($ac_try" in
22565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566 *) ac_try_echo=$ac_try;;
22567 esac
22568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22570 ac_status=$?
22571 grep -v '^ *+' conftest.er1 >conftest.err
22572 rm -f conftest.er1
22573 cat conftest.err >&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } >/dev/null && {
22576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22577 test ! -s conftest.err
22578 }; then
22579 ac_header_preproc=yes
22580 else
22581 echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22584 ac_header_preproc=no
22587 rm -f conftest.err conftest.$ac_ext
22588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22589 echo "${ECHO_T}$ac_header_preproc" >&6; }
22591 # So? What about this header?
22592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22593 yes:no: )
22594 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22595 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22596 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22597 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22598 ac_header_preproc=yes
22600 no:yes:* )
22601 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22602 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22603 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22604 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22605 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22606 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22607 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22608 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22609 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22610 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22611 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22612 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22615 esac
22616 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22617 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22618 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22619 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 else
22621 ac_cv_header_arpa_inet_h=$ac_header_preproc
22623 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22624 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22627 if test $ac_cv_header_arpa_inet_h = yes; then
22629 else
22630 ok_so_far=no
22635 if test $ok_so_far = yes; then
22637 cat >>confdefs.h <<\_ACEOF
22638 #define HAVE_INET_SOCKETS 1
22639 _ACEOF
22644 for ac_header in sys/ioctl.h
22646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
22653 ac_res=`eval echo '${'$as_ac_Header'}'`
22654 { echo "$as_me:$LINENO: result: $ac_res" >&5
22655 echo "${ECHO_T}$ac_res" >&6; }
22656 else
22657 # Is the header compilable?
22658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22660 cat >conftest.$ac_ext <<_ACEOF
22661 /* confdefs.h. */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 $ac_includes_default
22667 #include <$ac_header>
22668 _ACEOF
22669 rm -f conftest.$ac_objext
22670 if { (ac_try="$ac_compile"
22671 case "(($ac_try" in
22672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673 *) ac_try_echo=$ac_try;;
22674 esac
22675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22676 (eval "$ac_compile") 2>conftest.er1
22677 ac_status=$?
22678 grep -v '^ *+' conftest.er1 >conftest.err
22679 rm -f conftest.er1
22680 cat conftest.err >&5
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); } && {
22683 test -z "$ac_c_werror_flag" ||
22684 test ! -s conftest.err
22685 } && test -s conftest.$ac_objext; then
22686 ac_header_compiler=yes
22687 else
22688 echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22691 ac_header_compiler=no
22694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22696 echo "${ECHO_T}$ac_header_compiler" >&6; }
22698 # Is the header present?
22699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22701 cat >conftest.$ac_ext <<_ACEOF
22702 /* confdefs.h. */
22703 _ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22707 #include <$ac_header>
22708 _ACEOF
22709 if { (ac_try="$ac_cpp conftest.$ac_ext"
22710 case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22713 esac
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22716 ac_status=$?
22717 grep -v '^ *+' conftest.er1 >conftest.err
22718 rm -f conftest.er1
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } >/dev/null && {
22722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22723 test ! -s conftest.err
22724 }; then
22725 ac_header_preproc=yes
22726 else
22727 echo "$as_me: failed program was:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22730 ac_header_preproc=no
22733 rm -f conftest.err conftest.$ac_ext
22734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22735 echo "${ECHO_T}$ac_header_preproc" >&6; }
22737 # So? What about this header?
22738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22739 yes:no: )
22740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22744 ac_header_preproc=yes
22746 no:yes:* )
22747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22761 esac
22762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22765 echo $ECHO_N "(cached) $ECHO_C" >&6
22766 else
22767 eval "$as_ac_Header=\$ac_header_preproc"
22769 ac_res=`eval echo '${'$as_ac_Header'}'`
22770 { echo "$as_me:$LINENO: result: $ac_res" >&5
22771 echo "${ECHO_T}$ac_res" >&6; }
22774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22775 cat >>confdefs.h <<_ACEOF
22776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22777 _ACEOF
22781 done
22784 if test -f /usr/lpp/X11/bin/smt.exp; then
22786 cat >>confdefs.h <<\_ACEOF
22787 #define HAVE_AIX_SMT_EXP 1
22788 _ACEOF
22792 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22793 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22794 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22795 { echo "$as_me:$LINENO: result: yes" >&5
22796 echo "${ECHO_T}yes" >&6; }
22798 cat >>confdefs.h <<\_ACEOF
22799 #define HAVE_DEV_PTMX 1
22800 _ACEOF
22802 else
22803 { echo "$as_me:$LINENO: result: no" >&5
22804 echo "${ECHO_T}no" >&6; }
22807 { echo "$as_me:$LINENO: checking for pid_t" >&5
22808 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22809 if test "${ac_cv_type_pid_t+set}" = set; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
22811 else
22812 cat >conftest.$ac_ext <<_ACEOF
22813 /* confdefs.h. */
22814 _ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22818 $ac_includes_default
22819 typedef pid_t ac__type_new_;
22821 main ()
22823 if ((ac__type_new_ *) 0)
22824 return 0;
22825 if (sizeof (ac__type_new_))
22826 return 0;
22828 return 0;
22830 _ACEOF
22831 rm -f conftest.$ac_objext
22832 if { (ac_try="$ac_compile"
22833 case "(($ac_try" in
22834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22835 *) ac_try_echo=$ac_try;;
22836 esac
22837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22838 (eval "$ac_compile") 2>conftest.er1
22839 ac_status=$?
22840 grep -v '^ *+' conftest.er1 >conftest.err
22841 rm -f conftest.er1
22842 cat conftest.err >&5
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); } && {
22845 test -z "$ac_c_werror_flag" ||
22846 test ! -s conftest.err
22847 } && test -s conftest.$ac_objext; then
22848 ac_cv_type_pid_t=yes
22849 else
22850 echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22853 ac_cv_type_pid_t=no
22856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22858 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22859 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22860 if test $ac_cv_type_pid_t = yes; then
22862 else
22864 cat >>confdefs.h <<_ACEOF
22865 #define pid_t int
22866 _ACEOF
22871 for ac_header in vfork.h
22873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22878 echo $ECHO_N "(cached) $ECHO_C" >&6
22880 ac_res=`eval echo '${'$as_ac_Header'}'`
22881 { echo "$as_me:$LINENO: result: $ac_res" >&5
22882 echo "${ECHO_T}$ac_res" >&6; }
22883 else
22884 # Is the header compilable?
22885 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22887 cat >conftest.$ac_ext <<_ACEOF
22888 /* confdefs.h. */
22889 _ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22893 $ac_includes_default
22894 #include <$ac_header>
22895 _ACEOF
22896 rm -f conftest.$ac_objext
22897 if { (ac_try="$ac_compile"
22898 case "(($ac_try" in
22899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900 *) ac_try_echo=$ac_try;;
22901 esac
22902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903 (eval "$ac_compile") 2>conftest.er1
22904 ac_status=$?
22905 grep -v '^ *+' conftest.er1 >conftest.err
22906 rm -f conftest.er1
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } && {
22910 test -z "$ac_c_werror_flag" ||
22911 test ! -s conftest.err
22912 } && test -s conftest.$ac_objext; then
22913 ac_header_compiler=yes
22914 else
22915 echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 ac_header_compiler=no
22921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22923 echo "${ECHO_T}$ac_header_compiler" >&6; }
22925 # Is the header present?
22926 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22928 cat >conftest.$ac_ext <<_ACEOF
22929 /* confdefs.h. */
22930 _ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h. */
22934 #include <$ac_header>
22935 _ACEOF
22936 if { (ac_try="$ac_cpp conftest.$ac_ext"
22937 case "(($ac_try" in
22938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939 *) ac_try_echo=$ac_try;;
22940 esac
22941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22943 ac_status=$?
22944 grep -v '^ *+' conftest.er1 >conftest.err
22945 rm -f conftest.er1
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } >/dev/null && {
22949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22950 test ! -s conftest.err
22951 }; then
22952 ac_header_preproc=yes
22953 else
22954 echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22957 ac_header_preproc=no
22960 rm -f conftest.err conftest.$ac_ext
22961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22962 echo "${ECHO_T}$ac_header_preproc" >&6; }
22964 # So? What about this header?
22965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22966 yes:no: )
22967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22971 ac_header_preproc=yes
22973 no:yes:* )
22974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22981 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22988 esac
22989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22992 echo $ECHO_N "(cached) $ECHO_C" >&6
22993 else
22994 eval "$as_ac_Header=\$ac_header_preproc"
22996 ac_res=`eval echo '${'$as_ac_Header'}'`
22997 { echo "$as_me:$LINENO: result: $ac_res" >&5
22998 echo "${ECHO_T}$ac_res" >&6; }
23001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23002 cat >>confdefs.h <<_ACEOF
23003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23004 _ACEOF
23008 done
23012 for ac_func in fork vfork
23014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23019 else
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h. */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23028 #define $ac_func innocuous_$ac_func
23030 /* System header to define __stub macros and hopefully few prototypes,
23031 which can conflict with char $ac_func (); below.
23032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23033 <limits.h> exists even on freestanding compilers. */
23035 #ifdef __STDC__
23036 # include <limits.h>
23037 #else
23038 # include <assert.h>
23039 #endif
23041 #undef $ac_func
23043 /* Override any GCC internal prototype to avoid an error.
23044 Use char because int might match the return type of a GCC
23045 builtin and then its argument prototype would still apply. */
23046 #ifdef __cplusplus
23047 extern "C"
23048 #endif
23049 char $ac_func ();
23050 /* The GNU C library defines this for functions which it implements
23051 to always fail with ENOSYS. Some functions are actually named
23052 something starting with __ and the normal name is an alias. */
23053 #if defined __stub_$ac_func || defined __stub___$ac_func
23054 choke me
23055 #endif
23058 main ()
23060 return $ac_func ();
23062 return 0;
23064 _ACEOF
23065 rm -f conftest.$ac_objext conftest$ac_exeext
23066 if { (ac_try="$ac_link"
23067 case "(($ac_try" in
23068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23069 *) ac_try_echo=$ac_try;;
23070 esac
23071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23072 (eval "$ac_link") 2>conftest.er1
23073 ac_status=$?
23074 grep -v '^ *+' conftest.er1 >conftest.err
23075 rm -f conftest.er1
23076 cat conftest.err >&5
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } && {
23079 test -z "$ac_c_werror_flag" ||
23080 test ! -s conftest.err
23081 } && test -s conftest$ac_exeext &&
23082 $as_test_x conftest$ac_exeext; then
23083 eval "$as_ac_var=yes"
23084 else
23085 echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23088 eval "$as_ac_var=no"
23091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23092 conftest$ac_exeext conftest.$ac_ext
23094 ac_res=`eval echo '${'$as_ac_var'}'`
23095 { echo "$as_me:$LINENO: result: $ac_res" >&5
23096 echo "${ECHO_T}$ac_res" >&6; }
23097 if test `eval echo '${'$as_ac_var'}'` = yes; then
23098 cat >>confdefs.h <<_ACEOF
23099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23100 _ACEOF
23103 done
23105 if test "x$ac_cv_func_fork" = xyes; then
23106 { echo "$as_me:$LINENO: checking for working fork" >&5
23107 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23108 if test "${ac_cv_func_fork_works+set}" = set; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 else
23111 if test "$cross_compiling" = yes; then
23112 ac_cv_func_fork_works=cross
23113 else
23114 cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h. */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 $ac_includes_default
23122 main ()
23125 /* By Ruediger Kuhlmann. */
23126 return fork () < 0;
23129 return 0;
23131 _ACEOF
23132 rm -f conftest$ac_exeext
23133 if { (ac_try="$ac_link"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23137 esac
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_link") 2>&5
23140 ac_status=$?
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23143 { (case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_try") 2>&5
23149 ac_status=$?
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; }; then
23152 ac_cv_func_fork_works=yes
23153 else
23154 echo "$as_me: program exited with status $ac_status" >&5
23155 echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23158 ( exit $ac_status )
23159 ac_cv_func_fork_works=no
23161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23166 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23167 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23169 else
23170 ac_cv_func_fork_works=$ac_cv_func_fork
23172 if test "x$ac_cv_func_fork_works" = xcross; then
23173 case $host in
23174 *-*-amigaos* | *-*-msdosdjgpp*)
23175 # Override, as these systems have only a dummy fork() stub
23176 ac_cv_func_fork_works=no
23179 ac_cv_func_fork_works=yes
23181 esac
23182 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23183 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23185 ac_cv_func_vfork_works=$ac_cv_func_vfork
23186 if test "x$ac_cv_func_vfork" = xyes; then
23187 { echo "$as_me:$LINENO: checking for working vfork" >&5
23188 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23189 if test "${ac_cv_func_vfork_works+set}" = set; then
23190 echo $ECHO_N "(cached) $ECHO_C" >&6
23191 else
23192 if test "$cross_compiling" = yes; then
23193 ac_cv_func_vfork_works=cross
23194 else
23195 cat >conftest.$ac_ext <<_ACEOF
23196 /* confdefs.h. */
23197 _ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h. */
23201 /* Thanks to Paul Eggert for this test. */
23202 $ac_includes_default
23203 #include <sys/wait.h>
23204 #ifdef HAVE_VFORK_H
23205 # include <vfork.h>
23206 #endif
23207 /* On some sparc systems, changes by the child to local and incoming
23208 argument registers are propagated back to the parent. The compiler
23209 is told about this with #include <vfork.h>, but some compilers
23210 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23211 static variable whose address is put into a register that is
23212 clobbered by the vfork. */
23213 static void
23214 #ifdef __cplusplus
23215 sparc_address_test (int arg)
23216 # else
23217 sparc_address_test (arg) int arg;
23218 #endif
23220 static pid_t child;
23221 if (!child) {
23222 child = vfork ();
23223 if (child < 0) {
23224 perror ("vfork");
23225 _exit(2);
23227 if (!child) {
23228 arg = getpid();
23229 write(-1, "", 0);
23230 _exit (arg);
23236 main ()
23238 pid_t parent = getpid ();
23239 pid_t child;
23241 sparc_address_test (0);
23243 child = vfork ();
23245 if (child == 0) {
23246 /* Here is another test for sparc vfork register problems. This
23247 test uses lots of local variables, at least as many local
23248 variables as main has allocated so far including compiler
23249 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23250 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23251 reuse the register of parent for one of the local variables,
23252 since it will think that parent can't possibly be used any more
23253 in this routine. Assigning to the local variable will thus
23254 munge parent in the parent process. */
23255 pid_t
23256 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23257 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23258 /* Convince the compiler that p..p7 are live; otherwise, it might
23259 use the same hardware register for all 8 local variables. */
23260 if (p != p1 || p != p2 || p != p3 || p != p4
23261 || p != p5 || p != p6 || p != p7)
23262 _exit(1);
23264 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23265 from child file descriptors. If the child closes a descriptor
23266 before it execs or exits, this munges the parent's descriptor
23267 as well. Test for this by closing stdout in the child. */
23268 _exit(close(fileno(stdout)) != 0);
23269 } else {
23270 int status;
23271 struct stat st;
23273 while (wait(&status) != child)
23275 return (
23276 /* Was there some problem with vforking? */
23277 child < 0
23279 /* Did the child fail? (This shouldn't happen.) */
23280 || status
23282 /* Did the vfork/compiler bug occur? */
23283 || parent != getpid()
23285 /* Did the file descriptor bug occur? */
23286 || fstat(fileno(stdout), &st) != 0
23290 _ACEOF
23291 rm -f conftest$ac_exeext
23292 if { (ac_try="$ac_link"
23293 case "(($ac_try" in
23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295 *) ac_try_echo=$ac_try;;
23296 esac
23297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23298 (eval "$ac_link") 2>&5
23299 ac_status=$?
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23302 { (case "(($ac_try" in
23303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23304 *) ac_try_echo=$ac_try;;
23305 esac
23306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23307 (eval "$ac_try") 2>&5
23308 ac_status=$?
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); }; }; then
23311 ac_cv_func_vfork_works=yes
23312 else
23313 echo "$as_me: program exited with status $ac_status" >&5
23314 echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23317 ( exit $ac_status )
23318 ac_cv_func_vfork_works=no
23320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23325 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23326 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23329 if test "x$ac_cv_func_fork_works" = xcross; then
23330 ac_cv_func_vfork_works=$ac_cv_func_vfork
23331 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23332 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23335 if test "x$ac_cv_func_vfork_works" = xyes; then
23337 cat >>confdefs.h <<\_ACEOF
23338 #define HAVE_WORKING_VFORK 1
23339 _ACEOF
23341 else
23343 cat >>confdefs.h <<\_ACEOF
23344 #define vfork fork
23345 _ACEOF
23348 if test "x$ac_cv_func_fork_works" = xyes; then
23350 cat >>confdefs.h <<\_ACEOF
23351 #define HAVE_WORKING_FORK 1
23352 _ACEOF
23357 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23358 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23359 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23360 echo $ECHO_N "(cached) $ECHO_C" >&6
23361 else
23362 cat >conftest.$ac_ext <<_ACEOF
23363 /* confdefs.h. */
23364 _ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23368 #include <langinfo.h>
23370 main ()
23372 char* cs = nl_langinfo(CODESET);
23374 return 0;
23376 _ACEOF
23377 rm -f conftest.$ac_objext conftest$ac_exeext
23378 if { (ac_try="$ac_link"
23379 case "(($ac_try" in
23380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381 *) ac_try_echo=$ac_try;;
23382 esac
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384 (eval "$ac_link") 2>conftest.er1
23385 ac_status=$?
23386 grep -v '^ *+' conftest.er1 >conftest.err
23387 rm -f conftest.er1
23388 cat conftest.err >&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } && {
23391 test -z "$ac_c_werror_flag" ||
23392 test ! -s conftest.err
23393 } && test -s conftest$ac_exeext &&
23394 $as_test_x conftest$ac_exeext; then
23395 emacs_cv_langinfo_codeset=yes
23396 else
23397 echo "$as_me: failed program was:" >&5
23398 sed 's/^/| /' conftest.$ac_ext >&5
23400 emacs_cv_langinfo_codeset=no
23403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23404 conftest$ac_exeext conftest.$ac_ext
23407 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23408 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23409 if test $emacs_cv_langinfo_codeset = yes; then
23411 cat >>confdefs.h <<\_ACEOF
23412 #define HAVE_LANGINFO_CODESET 1
23413 _ACEOF
23417 { echo "$as_me:$LINENO: checking for size_t" >&5
23418 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23419 if test "${ac_cv_type_size_t+set}" = set; then
23420 echo $ECHO_N "(cached) $ECHO_C" >&6
23421 else
23422 cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h. */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 $ac_includes_default
23429 typedef size_t ac__type_new_;
23431 main ()
23433 if ((ac__type_new_ *) 0)
23434 return 0;
23435 if (sizeof (ac__type_new_))
23436 return 0;
23438 return 0;
23440 _ACEOF
23441 rm -f conftest.$ac_objext
23442 if { (ac_try="$ac_compile"
23443 case "(($ac_try" in
23444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23446 esac
23447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23448 (eval "$ac_compile") 2>conftest.er1
23449 ac_status=$?
23450 grep -v '^ *+' conftest.er1 >conftest.err
23451 rm -f conftest.er1
23452 cat conftest.err >&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } && {
23455 test -z "$ac_c_werror_flag" ||
23456 test ! -s conftest.err
23457 } && test -s conftest.$ac_objext; then
23458 ac_cv_type_size_t=yes
23459 else
23460 echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23463 ac_cv_type_size_t=no
23466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23469 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23470 if test $ac_cv_type_size_t = yes; then
23472 cat >>confdefs.h <<_ACEOF
23473 #define HAVE_SIZE_T 1
23474 _ACEOF
23480 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23481 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23482 if test "${ac_cv_type_mbstate_t+set}" = set; then
23483 echo $ECHO_N "(cached) $ECHO_C" >&6
23484 else
23485 cat >conftest.$ac_ext <<_ACEOF
23486 /* confdefs.h. */
23487 _ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h. */
23491 $ac_includes_default
23492 # include <wchar.h>
23494 main ()
23496 mbstate_t x; return sizeof x;
23498 return 0;
23500 _ACEOF
23501 rm -f conftest.$ac_objext
23502 if { (ac_try="$ac_compile"
23503 case "(($ac_try" in
23504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505 *) ac_try_echo=$ac_try;;
23506 esac
23507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23508 (eval "$ac_compile") 2>conftest.er1
23509 ac_status=$?
23510 grep -v '^ *+' conftest.er1 >conftest.err
23511 rm -f conftest.er1
23512 cat conftest.err >&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } && {
23515 test -z "$ac_c_werror_flag" ||
23516 test ! -s conftest.err
23517 } && test -s conftest.$ac_objext; then
23518 ac_cv_type_mbstate_t=yes
23519 else
23520 echo "$as_me: failed program was:" >&5
23521 sed 's/^/| /' conftest.$ac_ext >&5
23523 ac_cv_type_mbstate_t=no
23526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23528 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23529 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23530 if test $ac_cv_type_mbstate_t = yes; then
23532 cat >>confdefs.h <<\_ACEOF
23533 #define HAVE_MBSTATE_T 1
23534 _ACEOF
23536 else
23538 cat >>confdefs.h <<\_ACEOF
23539 #define mbstate_t int
23540 _ACEOF
23544 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23545 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23546 if test "${emacs_cv_c_restrict+set}" = set; then
23547 echo $ECHO_N "(cached) $ECHO_C" >&6
23548 else
23549 cat >conftest.$ac_ext <<_ACEOF
23550 /* confdefs.h. */
23551 _ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h. */
23555 void fred (int *restrict x);
23557 main ()
23561 return 0;
23563 _ACEOF
23564 rm -f conftest.$ac_objext
23565 if { (ac_try="$ac_compile"
23566 case "(($ac_try" in
23567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568 *) ac_try_echo=$ac_try;;
23569 esac
23570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23571 (eval "$ac_compile") 2>conftest.er1
23572 ac_status=$?
23573 grep -v '^ *+' conftest.er1 >conftest.err
23574 rm -f conftest.er1
23575 cat conftest.err >&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } && {
23578 test -z "$ac_c_werror_flag" ||
23579 test ! -s conftest.err
23580 } && test -s conftest.$ac_objext; then
23581 emacs_cv_c_restrict=yes
23582 else
23583 echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23586 cat >conftest.$ac_ext <<_ACEOF
23587 /* confdefs.h. */
23588 _ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h. */
23592 void fred (int *__restrict x);
23594 main ()
23598 return 0;
23600 _ACEOF
23601 rm -f conftest.$ac_objext
23602 if { (ac_try="$ac_compile"
23603 case "(($ac_try" in
23604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605 *) ac_try_echo=$ac_try;;
23606 esac
23607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23608 (eval "$ac_compile") 2>conftest.er1
23609 ac_status=$?
23610 grep -v '^ *+' conftest.er1 >conftest.err
23611 rm -f conftest.er1
23612 cat conftest.err >&5
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } && {
23615 test -z "$ac_c_werror_flag" ||
23616 test ! -s conftest.err
23617 } && test -s conftest.$ac_objext; then
23618 emacs_cv_c_restrict=__restrict
23619 else
23620 echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23623 emacs_cv_c_restrict=no
23626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23631 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23632 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23633 case "$emacs_cv_c_restrict" in
23634 yes) emacs_restrict=restrict;;
23635 no) emacs_restrict="";;
23636 *) emacs_restrict="$emacs_cv_c_restrict";;
23637 esac
23638 if test "$emacs_restrict" != __restrict; then
23640 cat >>confdefs.h <<_ACEOF
23641 #define __restrict $emacs_restrict
23642 _ACEOF
23646 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23647 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23648 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23649 echo $ECHO_N "(cached) $ECHO_C" >&6
23650 else
23651 cat >conftest.$ac_ext <<_ACEOF
23652 /* confdefs.h. */
23653 _ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h. */
23657 void fred (int x[__restrict]);
23659 main ()
23663 return 0;
23665 _ACEOF
23666 rm -f conftest.$ac_objext
23667 if { (ac_try="$ac_compile"
23668 case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23671 esac
23672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23673 (eval "$ac_compile") 2>conftest.er1
23674 ac_status=$?
23675 grep -v '^ *+' conftest.er1 >conftest.err
23676 rm -f conftest.er1
23677 cat conftest.err >&5
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); } && {
23680 test -z "$ac_c_werror_flag" ||
23681 test ! -s conftest.err
23682 } && test -s conftest.$ac_objext; then
23683 emacs_cv_c_restrict_arr=yes
23684 else
23685 echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 emacs_cv_c_restrict_arr=no
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23693 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23694 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23695 if test "$emacs_cv_c_restrict_arr" = yes; then
23697 cat >>confdefs.h <<\_ACEOF
23698 #define __restrict_arr __restrict
23699 _ACEOF
23705 # Set up the CFLAGS for real compilation, so we can substitute it.
23706 CFLAGS="$REAL_CFLAGS"
23707 CPPFLAGS="$REAL_CPPFLAGS"
23709 #### Find out which version of Emacs this is.
23710 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23711 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23712 if test x"${version}" = x; then
23713 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23714 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23715 { (exit 1); exit 1; }; }
23718 ### Specify what sort of things we'll be editing into Makefile and config.h.
23719 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23755 cat >>confdefs.h <<_ACEOF
23756 #define EMACS_CONFIGURATION "${canonical}"
23757 _ACEOF
23760 cat >>confdefs.h <<_ACEOF
23761 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23762 _ACEOF
23765 cat >>confdefs.h <<_ACEOF
23766 #define config_machfile "${machfile}"
23767 _ACEOF
23770 cat >>confdefs.h <<_ACEOF
23771 #define config_opsysfile "${opsysfile}"
23772 _ACEOF
23775 cat >>confdefs.h <<_ACEOF
23776 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23777 _ACEOF
23780 cat >>confdefs.h <<_ACEOF
23781 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23782 _ACEOF
23785 cat >>confdefs.h <<_ACEOF
23786 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23787 _ACEOF
23790 cat >>confdefs.h <<_ACEOF
23791 #define UNEXEC_SRC ${UNEXEC_SRC}
23792 _ACEOF
23795 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23797 cat >>confdefs.h <<\_ACEOF
23798 #define HAVE_X_WINDOWS 1
23799 _ACEOF
23802 if test "${USE_X_TOOLKIT}" != "none" ; then
23804 cat >>confdefs.h <<\_ACEOF
23805 #define USE_X_TOOLKIT 1
23806 _ACEOF
23809 if test "${HAVE_X11}" = "yes" ; then
23811 cat >>confdefs.h <<\_ACEOF
23812 #define HAVE_X11 1
23813 _ACEOF
23816 if test "${HAVE_XFREE386}" = "yes" ; then
23818 cat >>confdefs.h <<\_ACEOF
23819 #define HAVE_XFREE386 1
23820 _ACEOF
23823 if test "${HAVE_MENUS}" = "yes" ; then
23825 cat >>confdefs.h <<\_ACEOF
23826 #define HAVE_MENUS 1
23827 _ACEOF
23830 if test "${GNU_MALLOC}" = "yes" ; then
23832 cat >>confdefs.h <<\_ACEOF
23833 #define GNU_MALLOC 1
23834 _ACEOF
23837 if test "${REL_ALLOC}" = "yes" ; then
23839 cat >>confdefs.h <<\_ACEOF
23840 #define REL_ALLOC 1
23841 _ACEOF
23850 #### Report on what we decided to do.
23851 #### Report GTK as a toolkit, even if it doesn't use Xt.
23852 #### It makes printing result more understandable as using GTK sets
23853 #### toolkit_scroll_bars to yes by default.
23854 if test "${HAVE_GTK}" = "yes"; then
23855 USE_X_TOOLKIT=GTK
23858 echo "
23859 Configured for \`${canonical}'.
23861 Where should the build process find the source code? ${srcdir}
23862 What operating system and machine description files should Emacs use?
23863 \`${opsysfile}' and \`${machfile}'
23864 What compiler should emacs be built with? ${CC} ${CFLAGS}
23865 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23866 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23867 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23868 What window system should Emacs use? ${window_system}
23869 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23871 if test -n "${x_includes}"; then
23872 echo " Where do we find X Windows header files? ${x_includes}"
23873 else
23874 echo " Where do we find X Windows header files? Standard dirs"
23876 if test -n "${x_libraries}"; then
23877 echo " Where do we find X Windows libraries? ${x_libraries}"
23878 else
23879 echo " Where do we find X Windows libraries? Standard dirs"
23882 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23883 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23884 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23885 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23886 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23887 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23888 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23889 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23890 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23891 echo
23893 if test $USE_XASSERTS = yes; then
23894 echo " Compiling with asserts turned on."
23895 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23896 echo
23899 if test "$USE_X_TOOLKIT" = GTK; then
23900 case "$canonical" in
23901 *cygwin*)
23902 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23903 will probably get a crash on startup. If this happens, please use another
23904 toolkit for Emacs. See etc/PROBLEMS for more information."
23906 esac
23910 if test "$HAVE_CARBON" = "yes"; then
23911 echo
23912 echo "Warning: The Mac Carbon port is currently unsupported and has
23913 known problems. It is not recommended for use by non-developers.
23914 Read the emacs-devel archives for more information."
23915 echo
23918 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23919 echo "D-Bus integration has been tested for GNU/Linux only."
23920 echo
23924 # Remove any trailing slashes in these variables.
23925 test "${prefix}" != NONE &&
23926 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23927 test "${exec_prefix}" != NONE &&
23928 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23930 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23931 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23932 ## from Makefile.c can correctly provide the arg `-traditional' to the
23933 ## C preprocessor.
23935 cat >conftest.$ac_ext <<_ACEOF
23936 /* confdefs.h. */
23937 _ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h. */
23941 yes..yes
23942 _ACEOF
23943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23944 $EGREP "yes..yes" >/dev/null 2>&1; then
23945 CPP_NEED_TRADITIONAL=no
23946 else
23947 CPP_NEED_TRADITIONAL=yes
23949 rm -f conftest*
23952 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"
23954 ac_config_commands="$ac_config_commands default"
23956 cat >confcache <<\_ACEOF
23957 # This file is a shell script that caches the results of configure
23958 # tests run on this system so they can be shared between configure
23959 # scripts and configure runs, see configure's option --config-cache.
23960 # It is not useful on other systems. If it contains results you don't
23961 # want to keep, you may remove or edit it.
23963 # config.status only pays attention to the cache file if you give it
23964 # the --recheck option to rerun configure.
23966 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23967 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23968 # following values.
23970 _ACEOF
23972 # The following way of writing the cache mishandles newlines in values,
23973 # but we know of no workaround that is simple, portable, and efficient.
23974 # So, we kill variables containing newlines.
23975 # Ultrix sh set writes to stderr and can't be redirected directly,
23976 # and sets the high bit in the cache file unless we assign to the vars.
23978 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23979 eval ac_val=\$$ac_var
23980 case $ac_val in #(
23981 *${as_nl}*)
23982 case $ac_var in #(
23983 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23984 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23985 esac
23986 case $ac_var in #(
23987 _ | IFS | as_nl) ;; #(
23988 *) $as_unset $ac_var ;;
23989 esac ;;
23990 esac
23991 done
23993 (set) 2>&1 |
23994 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23995 *${as_nl}ac_space=\ *)
23996 # `set' does not quote correctly, so add quotes (double-quote
23997 # substitution turns \\\\ into \\, and sed turns \\ into \).
23998 sed -n \
23999 "s/'/'\\\\''/g;
24000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24001 ;; #(
24003 # `set' quotes correctly as required by POSIX, so do not add quotes.
24004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24006 esac |
24007 sort
24009 sed '
24010 /^ac_cv_env_/b end
24011 t clear
24012 :clear
24013 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24014 t end
24015 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24016 :end' >>confcache
24017 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24018 if test -w "$cache_file"; then
24019 test "x$cache_file" != "x/dev/null" &&
24020 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24021 echo "$as_me: updating cache $cache_file" >&6;}
24022 cat confcache >$cache_file
24023 else
24024 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24025 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24028 rm -f confcache
24030 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24031 # Let make expand exec_prefix.
24032 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24034 DEFS=-DHAVE_CONFIG_H
24036 ac_libobjs=
24037 ac_ltlibobjs=
24038 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24039 # 1. Remove the extension, and $U if already installed.
24040 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24041 ac_i=`echo "$ac_i" | sed "$ac_script"`
24042 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24043 # will be set to the directory where LIBOBJS objects are built.
24044 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24045 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24046 done
24047 LIBOBJS=$ac_libobjs
24049 LTLIBOBJS=$ac_ltlibobjs
24053 : ${CONFIG_STATUS=./config.status}
24054 ac_clean_files_save=$ac_clean_files
24055 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24056 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24057 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24058 cat >$CONFIG_STATUS <<_ACEOF
24059 #! $SHELL
24060 # Generated by $as_me.
24061 # Run this file to recreate the current configuration.
24062 # Compiler output produced by configure, useful for debugging
24063 # configure, is in config.log if it exists.
24065 debug=false
24066 ac_cs_recheck=false
24067 ac_cs_silent=false
24068 SHELL=\${CONFIG_SHELL-$SHELL}
24069 _ACEOF
24071 cat >>$CONFIG_STATUS <<\_ACEOF
24072 ## --------------------- ##
24073 ## M4sh Initialization. ##
24074 ## --------------------- ##
24076 # Be more Bourne compatible
24077 DUALCASE=1; export DUALCASE # for MKS sh
24078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24079 emulate sh
24080 NULLCMD=:
24081 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24082 # is contrary to our usage. Disable this feature.
24083 alias -g '${1+"$@"}'='"$@"'
24084 setopt NO_GLOB_SUBST
24085 else
24086 case `(set -o) 2>/dev/null` in
24087 *posix*) set -o posix ;;
24088 esac
24095 # PATH needs CR
24096 # Avoid depending upon Character Ranges.
24097 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24098 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24099 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24100 as_cr_digits='0123456789'
24101 as_cr_alnum=$as_cr_Letters$as_cr_digits
24103 # The user is always right.
24104 if test "${PATH_SEPARATOR+set}" != set; then
24105 echo "#! /bin/sh" >conf$$.sh
24106 echo "exit 0" >>conf$$.sh
24107 chmod +x conf$$.sh
24108 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24109 PATH_SEPARATOR=';'
24110 else
24111 PATH_SEPARATOR=:
24113 rm -f conf$$.sh
24116 # Support unset when possible.
24117 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24118 as_unset=unset
24119 else
24120 as_unset=false
24124 # IFS
24125 # We need space, tab and new line, in precisely that order. Quoting is
24126 # there to prevent editors from complaining about space-tab.
24127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24128 # splitting by setting IFS to empty value.)
24129 as_nl='
24131 IFS=" "" $as_nl"
24133 # Find who we are. Look in the path if we contain no directory separator.
24134 case $0 in
24135 *[\\/]* ) as_myself=$0 ;;
24136 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24137 for as_dir in $PATH
24139 IFS=$as_save_IFS
24140 test -z "$as_dir" && as_dir=.
24141 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24142 done
24143 IFS=$as_save_IFS
24146 esac
24147 # We did not find ourselves, most probably we were run as `sh COMMAND'
24148 # in which case we are not to be found in the path.
24149 if test "x$as_myself" = x; then
24150 as_myself=$0
24152 if test ! -f "$as_myself"; then
24153 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24154 { (exit 1); exit 1; }
24157 # Work around bugs in pre-3.0 UWIN ksh.
24158 for as_var in ENV MAIL MAILPATH
24159 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24160 done
24161 PS1='$ '
24162 PS2='> '
24163 PS4='+ '
24165 # NLS nuisances.
24166 for as_var in \
24167 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24168 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24169 LC_TELEPHONE LC_TIME
24171 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24172 eval $as_var=C; export $as_var
24173 else
24174 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24176 done
24178 # Required to use basename.
24179 if expr a : '\(a\)' >/dev/null 2>&1 &&
24180 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24181 as_expr=expr
24182 else
24183 as_expr=false
24186 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24187 as_basename=basename
24188 else
24189 as_basename=false
24193 # Name of the executable.
24194 as_me=`$as_basename -- "$0" ||
24195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24196 X"$0" : 'X\(//\)$' \| \
24197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24198 echo X/"$0" |
24199 sed '/^.*\/\([^/][^/]*\)\/*$/{
24200 s//\1/
24203 /^X\/\(\/\/\)$/{
24204 s//\1/
24207 /^X\/\(\/\).*/{
24208 s//\1/
24211 s/.*/./; q'`
24213 # CDPATH.
24214 $as_unset CDPATH
24218 as_lineno_1=$LINENO
24219 as_lineno_2=$LINENO
24220 test "x$as_lineno_1" != "x$as_lineno_2" &&
24221 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24223 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24224 # uniformly replaced by the line number. The first 'sed' inserts a
24225 # line-number line after each line using $LINENO; the second 'sed'
24226 # does the real work. The second script uses 'N' to pair each
24227 # line-number line with the line containing $LINENO, and appends
24228 # trailing '-' during substitution so that $LINENO is not a special
24229 # case at line end.
24230 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24231 # scripts with optimization help from Paolo Bonzini. Blame Lee
24232 # E. McMahon (1931-1989) for sed's syntax. :-)
24233 sed -n '
24235 /[$]LINENO/=
24236 ' <$as_myself |
24237 sed '
24238 s/[$]LINENO.*/&-/
24239 t lineno
24241 :lineno
24243 :loop
24244 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24245 t loop
24246 s/-\n.*//
24247 ' >$as_me.lineno &&
24248 chmod +x "$as_me.lineno" ||
24249 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24250 { (exit 1); exit 1; }; }
24252 # Don't try to exec as it changes $[0], causing all sort of problems
24253 # (the dirname of $[0] is not the place where we might find the
24254 # original and so on. Autoconf is especially sensitive to this).
24255 . "./$as_me.lineno"
24256 # Exit status is that of the last command.
24257 exit
24261 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24262 as_dirname=dirname
24263 else
24264 as_dirname=false
24267 ECHO_C= ECHO_N= ECHO_T=
24268 case `echo -n x` in
24269 -n*)
24270 case `echo 'x\c'` in
24271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24272 *) ECHO_C='\c';;
24273 esac;;
24275 ECHO_N='-n';;
24276 esac
24278 if expr a : '\(a\)' >/dev/null 2>&1 &&
24279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24280 as_expr=expr
24281 else
24282 as_expr=false
24285 rm -f conf$$ conf$$.exe conf$$.file
24286 if test -d conf$$.dir; then
24287 rm -f conf$$.dir/conf$$.file
24288 else
24289 rm -f conf$$.dir
24290 mkdir conf$$.dir
24292 echo >conf$$.file
24293 if ln -s conf$$.file conf$$ 2>/dev/null; then
24294 as_ln_s='ln -s'
24295 # ... but there are two gotchas:
24296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24298 # In both cases, we have to default to `cp -p'.
24299 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24300 as_ln_s='cp -p'
24301 elif ln conf$$.file conf$$ 2>/dev/null; then
24302 as_ln_s=ln
24303 else
24304 as_ln_s='cp -p'
24306 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24307 rmdir conf$$.dir 2>/dev/null
24309 if mkdir -p . 2>/dev/null; then
24310 as_mkdir_p=:
24311 else
24312 test -d ./-p && rmdir ./-p
24313 as_mkdir_p=false
24316 if test -x / >/dev/null 2>&1; then
24317 as_test_x='test -x'
24318 else
24319 if ls -dL / >/dev/null 2>&1; then
24320 as_ls_L_option=L
24321 else
24322 as_ls_L_option=
24324 as_test_x='
24325 eval sh -c '\''
24326 if test -d "$1"; then
24327 test -d "$1/.";
24328 else
24329 case $1 in
24330 -*)set "./$1";;
24331 esac;
24332 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24333 ???[sx]*):;;*)false;;esac;fi
24334 '\'' sh
24337 as_executable_p=$as_test_x
24339 # Sed expression to map a string onto a valid CPP name.
24340 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24342 # Sed expression to map a string onto a valid variable name.
24343 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24346 exec 6>&1
24348 # Save the log message, to keep $[0] and so on meaningful, and to
24349 # report actual input values of CONFIG_FILES etc. instead of their
24350 # values after options handling.
24351 ac_log="
24352 This file was extended by $as_me, which was
24353 generated by GNU Autoconf 2.61. Invocation command line was
24355 CONFIG_FILES = $CONFIG_FILES
24356 CONFIG_HEADERS = $CONFIG_HEADERS
24357 CONFIG_LINKS = $CONFIG_LINKS
24358 CONFIG_COMMANDS = $CONFIG_COMMANDS
24359 $ $0 $@
24361 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24364 _ACEOF
24366 cat >>$CONFIG_STATUS <<_ACEOF
24367 # Files that config.status was made for.
24368 config_files="$ac_config_files"
24369 config_headers="$ac_config_headers"
24370 config_commands="$ac_config_commands"
24372 _ACEOF
24374 cat >>$CONFIG_STATUS <<\_ACEOF
24375 ac_cs_usage="\
24376 \`$as_me' instantiates files from templates according to the
24377 current configuration.
24379 Usage: $0 [OPTIONS] [FILE]...
24381 -h, --help print this help, then exit
24382 -V, --version print version number and configuration settings, then exit
24383 -q, --quiet do not print progress messages
24384 -d, --debug don't remove temporary files
24385 --recheck update $as_me by reconfiguring in the same conditions
24386 --file=FILE[:TEMPLATE]
24387 instantiate the configuration file FILE
24388 --header=FILE[:TEMPLATE]
24389 instantiate the configuration header FILE
24391 Configuration files:
24392 $config_files
24394 Configuration headers:
24395 $config_headers
24397 Configuration commands:
24398 $config_commands
24400 Report bugs to <bug-autoconf@gnu.org>."
24402 _ACEOF
24403 cat >>$CONFIG_STATUS <<_ACEOF
24404 ac_cs_version="\\
24405 config.status
24406 configured by $0, generated by GNU Autoconf 2.61,
24407 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24409 Copyright (C) 2006 Free Software Foundation, Inc.
24410 This config.status script is free software; the Free Software Foundation
24411 gives unlimited permission to copy, distribute and modify it."
24413 ac_pwd='$ac_pwd'
24414 srcdir='$srcdir'
24415 INSTALL='$INSTALL'
24416 _ACEOF
24418 cat >>$CONFIG_STATUS <<\_ACEOF
24419 # If no file are specified by the user, then we need to provide default
24420 # value. By we need to know if files were specified by the user.
24421 ac_need_defaults=:
24422 while test $# != 0
24424 case $1 in
24425 --*=*)
24426 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24427 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24428 ac_shift=:
24431 ac_option=$1
24432 ac_optarg=$2
24433 ac_shift=shift
24435 esac
24437 case $ac_option in
24438 # Handling of the options.
24439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24440 ac_cs_recheck=: ;;
24441 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24442 echo "$ac_cs_version"; exit ;;
24443 --debug | --debu | --deb | --de | --d | -d )
24444 debug=: ;;
24445 --file | --fil | --fi | --f )
24446 $ac_shift
24447 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24448 ac_need_defaults=false;;
24449 --header | --heade | --head | --hea )
24450 $ac_shift
24451 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24452 ac_need_defaults=false;;
24453 --he | --h)
24454 # Conflict between --help and --header
24455 { echo "$as_me: error: ambiguous option: $1
24456 Try \`$0 --help' for more information." >&2
24457 { (exit 1); exit 1; }; };;
24458 --help | --hel | -h )
24459 echo "$ac_cs_usage"; exit ;;
24460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24461 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24462 ac_cs_silent=: ;;
24464 # This is an error.
24465 -*) { echo "$as_me: error: unrecognized option: $1
24466 Try \`$0 --help' for more information." >&2
24467 { (exit 1); exit 1; }; } ;;
24469 *) ac_config_targets="$ac_config_targets $1"
24470 ac_need_defaults=false ;;
24472 esac
24473 shift
24474 done
24476 ac_configure_extra_args=
24478 if $ac_cs_silent; then
24479 exec 6>/dev/null
24480 ac_configure_extra_args="$ac_configure_extra_args --silent"
24483 _ACEOF
24484 cat >>$CONFIG_STATUS <<_ACEOF
24485 if \$ac_cs_recheck; then
24486 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24487 CONFIG_SHELL=$SHELL
24488 export CONFIG_SHELL
24489 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24492 _ACEOF
24493 cat >>$CONFIG_STATUS <<\_ACEOF
24494 exec 5>>config.log
24496 echo
24497 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24498 ## Running $as_me. ##
24499 _ASBOX
24500 echo "$ac_log"
24501 } >&5
24503 _ACEOF
24504 cat >>$CONFIG_STATUS <<_ACEOF
24506 # INIT-COMMANDS
24508 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24510 _ACEOF
24512 cat >>$CONFIG_STATUS <<\_ACEOF
24514 # Handling of arguments.
24515 for ac_config_target in $ac_config_targets
24517 case $ac_config_target in
24518 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24519 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24520 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24521 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24522 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24523 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24524 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24525 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24526 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24527 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24528 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24529 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24530 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24532 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24533 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24534 { (exit 1); exit 1; }; };;
24535 esac
24536 done
24539 # If the user did not use the arguments to specify the items to instantiate,
24540 # then the envvar interface is used. Set only those that are not.
24541 # We use the long form for the default assignment because of an extremely
24542 # bizarre bug on SunOS 4.1.3.
24543 if $ac_need_defaults; then
24544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24549 # Have a temporary directory for convenience. Make it in the build tree
24550 # simply because there is no reason against having it here, and in addition,
24551 # creating and moving files from /tmp can sometimes cause problems.
24552 # Hook for its removal unless debugging.
24553 # Note that there is a small window in which the directory will not be cleaned:
24554 # after its creation but before its name has been assigned to `$tmp'.
24555 $debug ||
24557 tmp=
24558 trap 'exit_status=$?
24559 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24561 trap '{ (exit 1); exit 1; }' 1 2 13 15
24563 # Create a (secure) tmp directory for tmp files.
24566 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24567 test -n "$tmp" && test -d "$tmp"
24568 } ||
24570 tmp=./conf$$-$RANDOM
24571 (umask 077 && mkdir "$tmp")
24572 } ||
24574 echo "$me: cannot create a temporary directory in ." >&2
24575 { (exit 1); exit 1; }
24579 # Set up the sed scripts for CONFIG_FILES section.
24582 # No need to generate the scripts if there are no CONFIG_FILES.
24583 # This happens for instance when ./config.status config.h
24584 if test -n "$CONFIG_FILES"; then
24586 _ACEOF
24590 ac_delim='%!_!# '
24591 for ac_last_try in false false false false false :; do
24592 cat >conf$$subs.sed <<_ACEOF
24593 SHELL!$SHELL$ac_delim
24594 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24595 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24596 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24597 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24598 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24599 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24600 exec_prefix!$exec_prefix$ac_delim
24601 prefix!$prefix$ac_delim
24602 program_transform_name!$program_transform_name$ac_delim
24603 bindir!$bindir$ac_delim
24604 sbindir!$sbindir$ac_delim
24605 libexecdir!$libexecdir$ac_delim
24606 datarootdir!$datarootdir$ac_delim
24607 datadir!$datadir$ac_delim
24608 sysconfdir!$sysconfdir$ac_delim
24609 sharedstatedir!$sharedstatedir$ac_delim
24610 localstatedir!$localstatedir$ac_delim
24611 includedir!$includedir$ac_delim
24612 oldincludedir!$oldincludedir$ac_delim
24613 docdir!$docdir$ac_delim
24614 infodir!$infodir$ac_delim
24615 htmldir!$htmldir$ac_delim
24616 dvidir!$dvidir$ac_delim
24617 pdfdir!$pdfdir$ac_delim
24618 psdir!$psdir$ac_delim
24619 libdir!$libdir$ac_delim
24620 localedir!$localedir$ac_delim
24621 mandir!$mandir$ac_delim
24622 DEFS!$DEFS$ac_delim
24623 ECHO_C!$ECHO_C$ac_delim
24624 ECHO_N!$ECHO_N$ac_delim
24625 ECHO_T!$ECHO_T$ac_delim
24626 LIBS!$LIBS$ac_delim
24627 build_alias!$build_alias$ac_delim
24628 host_alias!$host_alias$ac_delim
24629 target_alias!$target_alias$ac_delim
24630 MAINT!$MAINT$ac_delim
24631 build!$build$ac_delim
24632 build_cpu!$build_cpu$ac_delim
24633 build_vendor!$build_vendor$ac_delim
24634 build_os!$build_os$ac_delim
24635 host!$host$ac_delim
24636 host_cpu!$host_cpu$ac_delim
24637 host_vendor!$host_vendor$ac_delim
24638 host_os!$host_os$ac_delim
24639 CC!$CC$ac_delim
24640 CFLAGS!$CFLAGS$ac_delim
24641 LDFLAGS!$LDFLAGS$ac_delim
24642 CPPFLAGS!$CPPFLAGS$ac_delim
24643 ac_ct_CC!$ac_ct_CC$ac_delim
24644 EXEEXT!$EXEEXT$ac_delim
24645 OBJEXT!$OBJEXT$ac_delim
24646 CPP!$CPP$ac_delim
24647 GREP!$GREP$ac_delim
24648 EGREP!$EGREP$ac_delim
24649 LN_S!$LN_S$ac_delim
24650 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24651 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24652 INSTALL_DATA!$INSTALL_DATA$ac_delim
24653 RANLIB!$RANLIB$ac_delim
24654 INSTALL_INFO!$INSTALL_INFO$ac_delim
24655 GZIP_PROG!$GZIP_PROG$ac_delim
24656 MAKEINFO!$MAKEINFO$ac_delim
24657 LIBSOUND!$LIBSOUND$ac_delim
24658 PKG_CONFIG!$PKG_CONFIG$ac_delim
24659 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24660 ALSA_LIBS!$ALSA_LIBS$ac_delim
24661 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24662 SET_MAKE!$SET_MAKE$ac_delim
24663 XMKMF!$XMKMF$ac_delim
24664 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24665 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24666 RSVG_LIBS!$RSVG_LIBS$ac_delim
24667 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24668 GTK_LIBS!$GTK_LIBS$ac_delim
24669 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24670 DBUS_LIBS!$DBUS_LIBS$ac_delim
24671 DBUS_INFO!$DBUS_INFO$ac_delim
24672 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24673 XFT_LIBS!$XFT_LIBS$ac_delim
24674 ALLOCA!$ALLOCA$ac_delim
24675 liblockfile!$liblockfile$ac_delim
24676 LIBOBJS!$LIBOBJS$ac_delim
24677 NEED_SETGID!$NEED_SETGID$ac_delim
24678 KMEM_GROUP!$KMEM_GROUP$ac_delim
24679 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24680 GETOPT_H!$GETOPT_H$ac_delim
24681 GETOPTOBJS!$GETOPTOBJS$ac_delim
24682 version!$version$ac_delim
24683 configuration!$configuration$ac_delim
24684 canonical!$canonical$ac_delim
24685 srcdir!$srcdir$ac_delim
24686 lispdir!$lispdir$ac_delim
24687 locallisppath!$locallisppath$ac_delim
24688 lisppath!$lisppath$ac_delim
24689 x_default_search_path!$x_default_search_path$ac_delim
24690 _ACEOF
24692 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24693 break
24694 elif $ac_last_try; then
24695 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24696 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24697 { (exit 1); exit 1; }; }
24698 else
24699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24701 done
24703 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24704 if test -n "$ac_eof"; then
24705 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24706 ac_eof=`expr $ac_eof + 1`
24709 cat >>$CONFIG_STATUS <<_ACEOF
24710 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24712 _ACEOF
24713 sed '
24714 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24715 s/^/s,@/; s/!/@,|#_!!_#|/
24718 s/'"$ac_delim"'$/,g/; t
24719 s/$/\\/; p
24720 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24721 ' >>$CONFIG_STATUS <conf$$subs.sed
24722 rm -f conf$$subs.sed
24723 cat >>$CONFIG_STATUS <<_ACEOF
24724 CEOF$ac_eof
24725 _ACEOF
24728 ac_delim='%!_!# '
24729 for ac_last_try in false false false false false :; do
24730 cat >conf$$subs.sed <<_ACEOF
24731 etcdir!$etcdir$ac_delim
24732 archlibdir!$archlibdir$ac_delim
24733 bitmapdir!$bitmapdir$ac_delim
24734 gamedir!$gamedir$ac_delim
24735 gameuser!$gameuser$ac_delim
24736 c_switch_system!$c_switch_system$ac_delim
24737 c_switch_machine!$c_switch_machine$ac_delim
24738 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24739 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24740 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24741 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24742 machfile!$machfile$ac_delim
24743 opsysfile!$opsysfile$ac_delim
24744 carbon_appdir!$carbon_appdir$ac_delim
24745 LTLIBOBJS!$LTLIBOBJS$ac_delim
24746 _ACEOF
24748 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24749 break
24750 elif $ac_last_try; then
24751 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24752 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24753 { (exit 1); exit 1; }; }
24754 else
24755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24757 done
24759 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24760 if test -n "$ac_eof"; then
24761 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24762 ac_eof=`expr $ac_eof + 1`
24765 cat >>$CONFIG_STATUS <<_ACEOF
24766 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24768 _ACEOF
24769 sed '
24770 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24771 s/^/s,@/; s/!/@,|#_!!_#|/
24774 s/'"$ac_delim"'$/,g/; t
24775 s/$/\\/; p
24776 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24777 ' >>$CONFIG_STATUS <conf$$subs.sed
24778 rm -f conf$$subs.sed
24779 cat >>$CONFIG_STATUS <<_ACEOF
24780 :end
24781 s/|#_!!_#|//g
24782 CEOF$ac_eof
24783 _ACEOF
24786 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24787 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24788 # trailing colons and then remove the whole line if VPATH becomes empty
24789 # (actually we leave an empty line to preserve line numbers).
24790 if test "x$srcdir" = x.; then
24791 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24792 s/:*\$(srcdir):*/:/
24793 s/:*\${srcdir}:*/:/
24794 s/:*@srcdir@:*/:/
24795 s/^\([^=]*=[ ]*\):*/\1/
24796 s/:*$//
24797 s/^[^=]*=[ ]*$//
24801 cat >>$CONFIG_STATUS <<\_ACEOF
24802 fi # test -n "$CONFIG_FILES"
24805 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24807 case $ac_tag in
24808 :[FHLC]) ac_mode=$ac_tag; continue;;
24809 esac
24810 case $ac_mode$ac_tag in
24811 :[FHL]*:*);;
24812 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24813 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24814 { (exit 1); exit 1; }; };;
24815 :[FH]-) ac_tag=-:-;;
24816 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24817 esac
24818 ac_save_IFS=$IFS
24819 IFS=:
24820 set x $ac_tag
24821 IFS=$ac_save_IFS
24822 shift
24823 ac_file=$1
24824 shift
24826 case $ac_mode in
24827 :L) ac_source=$1;;
24828 :[FH])
24829 ac_file_inputs=
24830 for ac_f
24832 case $ac_f in
24833 -) ac_f="$tmp/stdin";;
24834 *) # Look for the file first in the build tree, then in the source tree
24835 # (if the path is not absolute). The absolute path cannot be DOS-style,
24836 # because $ac_f cannot contain `:'.
24837 test -f "$ac_f" ||
24838 case $ac_f in
24839 [\\/$]*) false;;
24840 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24841 esac ||
24842 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24843 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24844 { (exit 1); exit 1; }; };;
24845 esac
24846 ac_file_inputs="$ac_file_inputs $ac_f"
24847 done
24849 # Let's still pretend it is `configure' which instantiates (i.e., don't
24850 # use $as_me), people would be surprised to read:
24851 # /* config.h. Generated by config.status. */
24852 configure_input="Generated from "`IFS=:
24853 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24854 if test x"$ac_file" != x-; then
24855 configure_input="$ac_file. $configure_input"
24856 { echo "$as_me:$LINENO: creating $ac_file" >&5
24857 echo "$as_me: creating $ac_file" >&6;}
24860 case $ac_tag in
24861 *:-:* | *:-) cat >"$tmp/stdin";;
24862 esac
24864 esac
24866 ac_dir=`$as_dirname -- "$ac_file" ||
24867 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24868 X"$ac_file" : 'X\(//\)[^/]' \| \
24869 X"$ac_file" : 'X\(//\)$' \| \
24870 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24871 echo X"$ac_file" |
24872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24873 s//\1/
24876 /^X\(\/\/\)[^/].*/{
24877 s//\1/
24880 /^X\(\/\/\)$/{
24881 s//\1/
24884 /^X\(\/\).*/{
24885 s//\1/
24888 s/.*/./; q'`
24889 { as_dir="$ac_dir"
24890 case $as_dir in #(
24891 -*) as_dir=./$as_dir;;
24892 esac
24893 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24894 as_dirs=
24895 while :; do
24896 case $as_dir in #(
24897 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24898 *) as_qdir=$as_dir;;
24899 esac
24900 as_dirs="'$as_qdir' $as_dirs"
24901 as_dir=`$as_dirname -- "$as_dir" ||
24902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24903 X"$as_dir" : 'X\(//\)[^/]' \| \
24904 X"$as_dir" : 'X\(//\)$' \| \
24905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24906 echo X"$as_dir" |
24907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24908 s//\1/
24911 /^X\(\/\/\)[^/].*/{
24912 s//\1/
24915 /^X\(\/\/\)$/{
24916 s//\1/
24919 /^X\(\/\).*/{
24920 s//\1/
24923 s/.*/./; q'`
24924 test -d "$as_dir" && break
24925 done
24926 test -z "$as_dirs" || eval "mkdir $as_dirs"
24927 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24928 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24929 { (exit 1); exit 1; }; }; }
24930 ac_builddir=.
24932 case "$ac_dir" in
24933 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24935 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24936 # A ".." for each directory in $ac_dir_suffix.
24937 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24938 case $ac_top_builddir_sub in
24939 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24940 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24941 esac ;;
24942 esac
24943 ac_abs_top_builddir=$ac_pwd
24944 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24945 # for backward compatibility:
24946 ac_top_builddir=$ac_top_build_prefix
24948 case $srcdir in
24949 .) # We are building in place.
24950 ac_srcdir=.
24951 ac_top_srcdir=$ac_top_builddir_sub
24952 ac_abs_top_srcdir=$ac_pwd ;;
24953 [\\/]* | ?:[\\/]* ) # Absolute name.
24954 ac_srcdir=$srcdir$ac_dir_suffix;
24955 ac_top_srcdir=$srcdir
24956 ac_abs_top_srcdir=$srcdir ;;
24957 *) # Relative name.
24958 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24959 ac_top_srcdir=$ac_top_build_prefix$srcdir
24960 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24961 esac
24962 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24965 case $ac_mode in
24968 # CONFIG_FILE
24971 case $INSTALL in
24972 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24973 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24974 esac
24975 _ACEOF
24977 cat >>$CONFIG_STATUS <<\_ACEOF
24978 # If the template does not know about datarootdir, expand it.
24979 # FIXME: This hack should be removed a few years after 2.60.
24980 ac_datarootdir_hack=; ac_datarootdir_seen=
24982 case `sed -n '/datarootdir/ {
24986 /@datadir@/p
24987 /@docdir@/p
24988 /@infodir@/p
24989 /@localedir@/p
24990 /@mandir@/p
24991 ' $ac_file_inputs` in
24992 *datarootdir*) ac_datarootdir_seen=yes;;
24993 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24994 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24995 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24996 _ACEOF
24997 cat >>$CONFIG_STATUS <<_ACEOF
24998 ac_datarootdir_hack='
24999 s&@datadir@&$datadir&g
25000 s&@docdir@&$docdir&g
25001 s&@infodir@&$infodir&g
25002 s&@localedir@&$localedir&g
25003 s&@mandir@&$mandir&g
25004 s&\\\${datarootdir}&$datarootdir&g' ;;
25005 esac
25006 _ACEOF
25008 # Neutralize VPATH when `$srcdir' = `.'.
25009 # Shell code in configure.ac might set extrasub.
25010 # FIXME: do we really want to maintain this feature?
25011 cat >>$CONFIG_STATUS <<_ACEOF
25012 sed "$ac_vpsub
25013 $extrasub
25014 _ACEOF
25015 cat >>$CONFIG_STATUS <<\_ACEOF
25017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25018 s&@configure_input@&$configure_input&;t t
25019 s&@top_builddir@&$ac_top_builddir_sub&;t t
25020 s&@srcdir@&$ac_srcdir&;t t
25021 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25022 s&@top_srcdir@&$ac_top_srcdir&;t t
25023 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25024 s&@builddir@&$ac_builddir&;t t
25025 s&@abs_builddir@&$ac_abs_builddir&;t t
25026 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25027 s&@INSTALL@&$ac_INSTALL&;t t
25028 $ac_datarootdir_hack
25029 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25032 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25034 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25035 which seems to be undefined. Please make sure it is defined." >&5
25036 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25037 which seems to be undefined. Please make sure it is defined." >&2;}
25039 rm -f "$tmp/stdin"
25040 case $ac_file in
25041 -) cat "$tmp/out"; rm -f "$tmp/out";;
25042 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25043 esac
25047 # CONFIG_HEADER
25049 _ACEOF
25051 # Transform confdefs.h into a sed script `conftest.defines', that
25052 # substitutes the proper values into config.h.in to produce config.h.
25053 rm -f conftest.defines conftest.tail
25054 # First, append a space to every undef/define line, to ease matching.
25055 echo 's/$/ /' >conftest.defines
25056 # Then, protect against being on the right side of a sed subst, or in
25057 # an unquoted here document, in config.status. If some macros were
25058 # called several times there might be several #defines for the same
25059 # symbol, which is useless. But do not sort them, since the last
25060 # AC_DEFINE must be honored.
25061 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25062 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25063 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25064 # PARAMS is the parameter list in the macro definition--in most cases, it's
25065 # just an empty string.
25066 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25067 ac_dB='\\)[ (].*,\\1define\\2'
25068 ac_dC=' '
25069 ac_dD=' ,'
25071 uniq confdefs.h |
25072 sed -n '
25073 t rset
25074 :rset
25075 s/^[ ]*#[ ]*define[ ][ ]*//
25076 t ok
25079 s/[\\&,]/\\&/g
25080 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25081 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25082 ' >>conftest.defines
25084 # Remove the space that was appended to ease matching.
25085 # Then replace #undef with comments. This is necessary, for
25086 # example, in the case of _POSIX_SOURCE, which is predefined and required
25087 # on some systems where configure will not decide to define it.
25088 # (The regexp can be short, since the line contains either #define or #undef.)
25089 echo 's/ $//
25090 s,^[ #]*u.*,/* & */,' >>conftest.defines
25092 # Break up conftest.defines:
25093 ac_max_sed_lines=50
25095 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25096 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25097 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25098 # et cetera.
25099 ac_in='$ac_file_inputs'
25100 ac_out='"$tmp/out1"'
25101 ac_nxt='"$tmp/out2"'
25103 while :
25105 # Write a here document:
25106 cat >>$CONFIG_STATUS <<_ACEOF
25107 # First, check the format of the line:
25108 cat >"\$tmp/defines.sed" <<\\CEOF
25109 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25110 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25112 :def
25113 _ACEOF
25114 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25115 echo 'CEOF
25116 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25117 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25118 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25119 grep . conftest.tail >/dev/null || break
25120 rm -f conftest.defines
25121 mv conftest.tail conftest.defines
25122 done
25123 rm -f conftest.defines conftest.tail
25125 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25126 cat >>$CONFIG_STATUS <<\_ACEOF
25127 if test x"$ac_file" != x-; then
25128 echo "/* $configure_input */" >"$tmp/config.h"
25129 cat "$ac_result" >>"$tmp/config.h"
25130 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25131 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25132 echo "$as_me: $ac_file is unchanged" >&6;}
25133 else
25134 rm -f $ac_file
25135 mv "$tmp/config.h" $ac_file
25137 else
25138 echo "/* $configure_input */"
25139 cat "$ac_result"
25141 rm -f "$tmp/out12"
25144 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25145 echo "$as_me: executing $ac_file commands" >&6;}
25147 esac
25150 case $ac_file$ac_mode in
25151 "default":C)
25153 ### Make the necessary directories, if they don't exist.
25154 for dir in etc lisp ; do
25155 test -d ${dir} || mkdir ${dir}
25156 done
25158 # Build src/Makefile from ${srcdir}/src/Makefile.c
25159 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25160 # This must be done after src/config.h is built, since we rely on that file.
25162 # Now get this: Some word that is part of the ${srcdir} directory name
25163 # or the ${configuration} value might, just might, happen to be an
25164 # identifier like `sun4' or `i386' or something, and be predefined by
25165 # the C preprocessor to some helpful value like 1, or maybe the empty
25166 # string. Needless to say consequent macro substitutions are less
25167 # than conducive to the makefile finding the correct directory.
25168 undefs="`echo $top_srcdir $configuration $canonical |
25169 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25170 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25173 echo creating src/epaths.h
25174 ${MAKE-make} epaths-force
25176 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25177 # `..' to `. .' unless invoked with -traditional
25179 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25180 CPPFLAGS="$CPPFLAGS -traditional"
25183 echo creating lib-src/Makefile
25184 ( cd lib-src
25185 rm -f junk.c junk1.c junk2.c
25186 sed -e '/start of cpp stuff/q' \
25187 < Makefile.c > junk1.c
25188 sed -e '1,/start of cpp stuff/d'\
25189 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25190 < Makefile.c > junk.c
25191 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25192 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25193 cat junk1.c junk2.c > Makefile.new
25194 rm -f junk.c junk1.c junk2.c
25195 chmod 444 Makefile.new
25196 mv -f Makefile.new Makefile
25199 echo creating src/Makefile
25200 ( cd src
25201 rm -f junk.c junk1.c junk2.c
25202 sed -e '/start of cpp stuff/q' \
25203 < Makefile.c > junk1.c
25204 sed -e '1,/start of cpp stuff/d'\
25205 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25206 < Makefile.c > junk.c
25207 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25208 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25209 cat junk1.c junk2.c > Makefile.new
25210 rm -f junk.c junk1.c junk2.c
25211 chmod 444 Makefile.new
25212 mv -f Makefile.new Makefile
25215 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25216 echo creating src/.gdbinit
25217 echo source $srcdir/src/.gdbinit > src/.gdbinit
25220 # This is how we know whether to re-run configure in certain cases.
25221 touch src/config.stamp
25225 esac
25226 done # for ac_tag
25229 { (exit 0); exit 0; }
25230 _ACEOF
25231 chmod +x $CONFIG_STATUS
25232 ac_clean_files=$ac_clean_files_save
25235 # configure is writing to config.log, and then calls config.status.
25236 # config.status does its own redirection, appending to config.log.
25237 # Unfortunately, on DOS this fails, as config.log is still kept open
25238 # by configure, so config.status won't be able to write to it; its
25239 # output is simply discarded. So we exec the FD to /dev/null,
25240 # effectively closing config.log, so it can be properly (re)opened and
25241 # appended to by config.status. When coming back to configure, we
25242 # need to make the FD available again.
25243 if test "$no_create" != yes; then
25244 ac_cs_success=:
25245 ac_config_status_args=
25246 test "$silent" = yes &&
25247 ac_config_status_args="$ac_config_status_args --quiet"
25248 exec 5>/dev/null
25249 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25250 exec 5>>config.log
25251 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25252 # would make configure fail if this is the last instruction.
25253 $ac_cs_success || { (exit 1); exit 1; }